/* ==========================================================================
   Lead forms (EstimateFormV2 + careers form in the prototype).
   ========================================================================== */

.lead-card {
	background: #FFFFFF;
	border: 1px solid #E3DED6;
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .5);
	font-family: var(--f-body);
	color: var(--c-ink);
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 100%;
}

.lead-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lead-form__step {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lead-form__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lead-form__title {
	font-family: var(--f-display);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0;
}

.lead-form__sub {
	font-size: 0.875rem;
	color: #5C6166;
	line-height: 1.45;
}

/* Step indicator */
.stepper {
	display: flex;
	align-items: center;
	gap: 10px;
}

.stepper__step {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
}

.stepper__step--2 { justify-content: flex-end; }

.stepper__n {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #E3DED6;
	color: #5C6166;
	display: grid;
	place-items: center;
	font-size: 0.75rem;
	font-weight: 800;
	flex: none;
}

.stepper__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #6B7480; /* prototype #A3A6AD (2.5:1 on white); darkened for WCAG AA */
	white-space: nowrap;
}

.stepper__bar {
	height: 2px;
	flex: 1;
	background: #E3DED6;
	border-radius: 2px;
}

.stepper__step--1 .stepper__n,
.lead-form[data-step="2"] .stepper__step--2 .stepper__n {
	background: var(--c-accent);
	color: #fff;
}

.stepper__step--1 .stepper__label,
.lead-form[data-step="2"] .stepper__step--2 .stepper__label { color: var(--c-ink); }

.lead-form[data-step="2"] .stepper__bar { background: var(--c-accent); }

/* Fields */
.field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #5C6166;
}

.field__input {
	font: inherit;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--c-ink);
	padding: 12px;
	border: 1px solid #D8D2C8;
	border-radius: 8px;
	background: #FBFAF7;
	outline: none;
	min-width: 0;
	width: 100%;
}

textarea.field__input { resize: vertical; }

.field__input:focus {
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px rgba(208, 22, 29, .2);
}

.field__input[aria-invalid="true"] { border-color: #B42318; }

.field__error {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: #B42318;
}

/* Photo upload */
.upload {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1.5px dashed #BDB6AA;
	border-radius: 8px;
	background: #FBFAF7;
	cursor: pointer;
	position: relative;
}

.upload:hover {
	border-color: var(--c-accent);
	background: #FFF1F0;
}

.upload:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(208, 22, 29, .2); }

.upload__plus {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--c-accent);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: clamp(1rem, calc(0.9536rem + 0.1905cqw), 1.125rem);
	flex: none;
}

.upload__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.upload__label {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--c-ink);
}

.upload__hint {
	font-size: 0.75rem;
	color: #5C6166;
}

.upload input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

/* Buttons */
.lead-form__next,
.lead-form__submit {
	font-family: var(--f-body);
	font-weight: 800;
	font-size: 0.9375rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--c-accent);
	border: 0;
	border-radius: 10px;
	padding: 16px 20px;
	cursor: pointer;
	min-height: 52px;
}

.lead-form__next:hover,
.lead-form__submit:hover { background: var(--c-accent-hover); }

.lead-form__submit { flex: 1; }
.lead-form__submit[aria-busy="true"] { opacity: .7; cursor: progress; }

.lead-form__back {
	font-family: var(--f-body);
	font-weight: 800;
	font-size: 0.9375rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--c-ink);
	background: #fff;
	border: 1.5px solid #D8D2C8;
	border-radius: 10px;
	padding: 0 18px;
	cursor: pointer;
	min-height: 52px;
	flex: none;
}

.lead-form__back:hover { border-color: var(--c-ink); }

.lead-form__actions {
	display: flex;
	gap: 10px;
}

.lead-form__note {
	font-size: 0.75rem;
	color: #5C6166;
	text-align: center;
	line-height: 1.4;
}

.lead-form__summary {
	background: #FBFAF7;
	border: 1px solid #E3DED6;
	border-radius: 8px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lead-form__summary-label {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #5C6166;
}

.lead-form__summary-text {
	font-size: 0.875rem;
	color: var(--c-ink);
	line-height: 1.45;
}

.lead-form__alert {
	font-size: 0.875rem;
	line-height: 1.45;
	color: #B42318;
	background: #FEF3F2;
	border: 1px solid #FECDCA;
	border-radius: 8px;
	padding: 10px 12px;
}

.lead-form__alert a { color: inherit; font-weight: 700; }

.lead-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Thank-you state */
.lead-form__sent {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px 0;
	text-align: center;
	align-items: center;
	outline: none;
}

.lead-form__check {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--c-accent);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: clamp(1.3125rem, calc(1.1964rem + 0.4762cqw), 1.625rem);
}

.lead-form__sent-title {
	font-family: var(--f-display);
	font-size: 0.9375rem;
	text-transform: uppercase;
}

.lead-form__sent-text {
	font-size: 0.9375rem;
	color: #5C6166;
	line-height: 1.5;
	max-width: 340px;
}

.lead-form__sent-text a {
	color: var(--c-accent);
	font-weight: 700;
}

.lead-form__again {
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--c-accent);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
}

/* ---------- Dark variant (careers application card) ---------- */

.lead-card--dark {
	background: var(--c-surface);
	border-color: var(--c-line);
	color: var(--c-text);
}

.lead-card--dark .lead-form__title { font-size: 0.9375rem; line-height: 1.1; }
.lead-card--dark .lead-form__sub { color: var(--c-muted); }
.lead-card--dark .field { color: var(--c-muted); }
.lead-card--dark .field__input {
	font-size: 0.9375rem;
	border-color: var(--c-line-2);
}
.lead-card--dark .field__input:focus { border-color: var(--c-accent-light); box-shadow: none; }
.lead-card--dark .lead-form__note { color: var(--c-muted); }
.lead-card--dark .lead-form__note a { color: var(--c-accent-light); font-weight: 700; }
.lead-card--dark .lead-form__sent-title { color: var(--c-text); }
.lead-card--dark .lead-form__sent-text { color: var(--c-muted); }
.lead-card--dark .lead-form__alert { color: #FECDCA; background: rgba(180, 35, 24, .15); border-color: rgba(254, 205, 202, .3); }
.lead-card--dark .lead-form__head { gap: 14px; }


/* Consent and privacy line under lead forms (Novax, 1 Nov 2026) */
.lead-form__legal {
	font-size: 0.6875rem;
	line-height: 1.45;
	color: #5C6166;
	text-align: center;
	margin: 0.5rem 0 0;
}
.lead-form__legal a {
	color: inherit;
	text-decoration: underline;
}
