/* Contractor referral programme: public lead form and dealer lead panel. */

.rsdp-leadform .rsdp-card {
	max-width: 44rem;
	margin: 0 auto 2rem;
}

.rsdp-leadform fieldset {
	border: 1px solid #e2e5e9;
	border-radius: 8px;
	padding: 1.1rem 1.25rem 0.4rem;
	margin: 0 0 1.4rem;
}

.rsdp-leadform legend {
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0 0.4rem;
	color: #33383d;
}

.rsdp-leadform .rsdp-form p {
	margin: 0 0 1.05rem;
}

.rsdp-leadform label {
	display: block;
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 0.3rem;
	color: #23282d;
}

.rsdp-leadform input[type="text"],
.rsdp-leadform input[type="email"],
.rsdp-leadform input[type="tel"],
.rsdp-leadform input[type="number"],
.rsdp-leadform select,
.rsdp-leadform textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.7rem;
	border: 1px solid #c6ccd2;
	border-radius: 6px;
	font-size: 1rem;
	line-height: 1.35;
	background: #fff;
}

.rsdp-leadform input:focus,
.rsdp-leadform select:focus,
.rsdp-leadform textarea:focus {
	outline: 2px solid #1f6feb;
	outline-offset: 1px;
	border-color: #1f6feb;
}

.rsdp-leadform #rsdp-state {
	max-width: 6rem;
	text-transform: uppercase;
}

.rsdp-leadform #rsdp-zip,
.rsdp-leadform #rsdp-sms-code {
	max-width: 10rem;
	letter-spacing: 0.05em;
}

.rsdp-leadform .rsdp-note {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #5b6570;
	font-weight: 400;
}

/* The consent checkbox reads as one sentence, not a stacked label. */
.rsdp-leadform label[for="rsdp-consent-sms"] {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.9rem;
	line-height: 1.5;
}

.rsdp-leadform label[for="rsdp-consent-sms"] input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.rsdp-leadform .rsdp-error {
	background: #fdecea;
	border-left: 4px solid #b32d2e;
	padding: 0.75rem 0.9rem;
	border-radius: 4px;
	margin: 0 0 1.2rem;
}

.rsdp-leadform #rsdp-verify-status {
	display: inline-block;
	margin-left: 0.6rem;
}

/* ---- dealer portal: leads panel ---- */

.rsdp-lead-card {
	border: 1px solid #e2e5e9;
	border-left: 4px solid #f0a020;
	border-radius: 8px;
	padding: 1rem 1.15rem;
	margin: 0 0 1.1rem;
	background: #fffdf8;
}

.rsdp-lead-card h4 {
	margin: 0 0 0.55rem;
	font-size: 1.05rem;
}

.rsdp-lead-facts {
	list-style: none;
	margin: 0 0 0.7rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	font-size: 0.9rem;
	color: #444c55;
}

.rsdp-lead-facts li::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #f0a020;
	margin-right: 0.45rem;
	vertical-align: 0.18em;
}

.rsdp-lead-notes {
	font-size: 0.92rem;
	background: #fff;
	border: 1px dashed #ddd;
	border-radius: 6px;
	padding: 0.6rem 0.75rem;
	margin: 0 0 0.7rem;
}

.rsdp-lead-actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin: 0.6rem 0 0;
}

.rsdp-callout {
	background: #eef5ff;
	border-left: 4px solid #1f6feb;
	padding: 0.8rem 1rem;
	border-radius: 4px;
	margin: 0 0 1.2rem;
}

.rsdp-lead-prefs {
	border-top: 1px solid #e2e5e9;
	padding-top: 1rem;
	margin-top: 1.4rem;
}

.rsdp-lead-prefs label {
	font-weight: 400;
}

.rsdp-lead-prefs input[type="number"] {
	width: 5.5rem;
	padding: 0.35rem 0.45rem;
	border: 1px solid #c6ccd2;
	border-radius: 5px;
}

@media (max-width: 640px) {
	.rsdp-leadform fieldset {
		padding: 0.9rem 0.9rem 0.2rem;
	}

	.rsdp-lead-actions .rsdp-btn,
	.rsdp-lead-actions .rsdp-btn-secondary {
		flex: 1 1 100%;
	}
}