/**
 * 26-BAT-008 — Multistep lead form (GF form 26) styled per approved Figma.
 * Scope: .bat-multistep-form (form-level cssClass) inside .gform_wrapper.
 * Colors: card #167200 · accent #37CE0D · CTA gradient #F76900→#E05E00
 */

/* ── Card shell ─────────────────────────────────────────── */
.gform_wrapper:has(.bat-multistep-form) {
	background: #167200;
	border-radius: 6px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	max-width: 768px;
}

/* Kill GF native step indicator — replaced by .bat-ms-progress (JS) */
.bat-multistep-form .gf_page_steps { display: none; }

/* No "* indicates required fields" legend in the design */
.gform_wrapper:has(.bat-multistep-form) .gform_required_legend { display: none !important; }

/* ── Custom progress header (built by bat-multistep-form.js) ── */
.bat-ms-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
@media (min-width: 640px) {
	.bat-ms-progress { gap: 16px; padding: 12px 24px; }
}
.bat-ms-steps {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.bat-ms-dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s, box-shadow 0.3s;
}
.bat-ms-dot.is-active,
.bat-ms-dot.is-done { background: #37ce0d; }
.bat-ms-dot.is-active { box-shadow: 0 0 0 2px rgba(55, 206, 13, 0.4); }
.bat-ms-dot svg { width: 12px; height: 12px; }
.bat-ms-conn {
	width: 32px;
	height: 1px;
	background: rgba(255, 255, 255, 0.2);
	transition: background 0.3s;
}
.bat-ms-conn.is-done { background: #37ce0d; }
.bat-ms-bar {
	flex: 1;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	overflow: hidden;
}
.bat-ms-bar-fill {
	height: 100%;
	border-radius: 999px;
	background: #37ce0d;
	transition: width 0.5s;
}
.bat-ms-count {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
}

/* ── Page body ──────────────────────────────────────────────
   The page owns the 28px bottom padding so it holds whether or not the
   footer renders (page 1 has no back link on desktop). */
.bat-multistep-form .gform_page { padding-bottom: 18px; }
.bat-multistep-form .gform_page_fields { padding: 16px 14px 0; }
@media (min-width: 640px) {
	.bat-multistep-form .gform_page { padding-bottom: 24px; }
	.bat-multistep-form .gform_page_fields { padding: 22px 28px 0; }
}
.bat-multistep-form .gform_page_footer {
	padding: 0 18px !important;
	margin: 10px 0 0;
	border: 0;
}
@media (min-width: 640px) {
	.bat-multistep-form .gform_page_footer { padding: 0 28px !important; }
}

/* Flex row layout: fields inline on desktop, stacked on mobile (Layout A) */
.bat-multistep-form .gform_fields {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-end; /* bottom-align inputs when a label wraps (step 3) */
	gap: 10px 12px;
	grid-template-columns: none;
}
@media (min-width: 640px) {
	.bat-multistep-form .gform_fields { gap: 12px 14px; }
}
.bat-multistep-form .gform_fields > .gfield { flex: 1 1 100%; min-width: 0; }
/* Hidden/honeypot wrappers must never join the flex flow — GF conditional
   logic re-shows them with inline display:block (13 fields x 20px row gap
   inflated the card after toggling the intent gate). Inputs still submit. */
.bat-multistep-form .gform_fields > .gfield--type-hidden,
.bat-multistep-form .gform_fields > .gform_hidden,
.bat-multistep-form .gform_fields > .gfield--type-honeypot { display: none !important; }
@media (min-width: 640px) {
	.bat-multistep-form .gform_fields > .gfield--type-text,
	.bat-multistep-form .gform_fields > .gfield--type-email,
	.bat-multistep-form .gform_fields > .gfield--type-phone,
	.bat-multistep-form .gform_fields > .gfield--type-select { flex: 1 1 0; min-width: 180px; }
}

/* Headings (HTML fields) */
.bat-multistep-form .bat-ms-heading { margin-bottom: 0; }
.bat-ms-sub { margin-bottom: 0; }
.bat-ms-h2 {
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}
.bat-ms-sub {
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
	margin: 4px 0 0;
}
@media (max-width: 639px) {
	.bat-ms-h2 { font-size: 20px; }
}

/* Labels */
.bat-multistep-form .gfield_label {
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.bat-multistep-form .gfield_required,
.bat-multistep-form .gfield_required_asterisk {
	color: #4ade80 !important;
	text-transform: none;
	letter-spacing: normal;
}

/* Inputs / selects */
.bat-multistep-form input[type="text"],
.bat-multistep-form input[type="email"],
.bat-multistep-form input[type="tel"],
.bat-multistep-form select {
	width: 100%;
	padding: 10px 14px;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: #fff;
	color: #111827;
	font-size: 14px;
	line-height: 1.4;
	transition: box-shadow 0.15s, border-color 0.15s;
}
.bat-multistep-form input::placeholder { color: #9ca3af; }
.bat-multistep-form input:focus,
.bat-multistep-form select:focus {
	outline: none;
	border-color: #22c55e;
	box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.5);
}
.bat-multistep-form select { cursor: pointer; }

/* Validation */
.bat-multistep-form .gfield_error input,
.bat-multistep-form .gfield_error select {
	border-color: #f87171;
	box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}
.bat-multistep-form .gfield_error .gfield_label,
.bat-multistep-form .gfield_error legend.gfield_label { color: #fff !important; }
.bat-multistep-form .gfield_validation_message,
.bat-multistep-form .validation_message {
	background: none !important;
	border: 0 !important;
	padding: 4px 0 0 !important;
	margin: 0 !important;
	color: #fca5a5 !important;
	font-size: 12px;
	font-weight: 500;
}
.bat-multistep-form .gform_validation_errors {
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(248, 113, 113, 0.5);
	border-radius: 4px;
	padding: 10px 14px;
	margin: 16px 24px 0;
	box-shadow: none;
}
.bat-multistep-form .gform_validation_errors h2 {
	color: #fca5a5;
	font-size: 13px;
	margin: 0;
}
.bat-multistep-form .gform_validation_errors ol { display: none; }

/* ── Buttons ────────────────────────────────────────────── */
/* GF renders next/prev/submit as <input> elements */
.bat-multistep-form .gform_next_button,
.bat-multistep-form .gform_button[type="submit"] {
	display: inline-block;
	padding: 10px 20px;
	border: 0 !important;
	border-radius: 4px;
	background: linear-gradient(135deg, #f76900, #e05e00) !important;
	color: #000 !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none !important;
	letter-spacing: normal;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.15s, transform 0.1s;
}
.bat-multistep-form .gform_next_button:hover,
.bat-multistep-form .gform_button[type="submit"]:hover { opacity: 0.9; }
.bat-multistep-form .gform_next_button:active,
.bat-multistep-form .gform_button[type="submit"]:active { transform: scale(0.98); }

/* Back link — restyle the input as a quiet text link */
.bat-multistep-form .gform_previous_button {
	display: inline-block;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0;
	margin: 0;
	color: rgba(255, 255, 255, 0.5) !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	text-transform: none !important;
	text-decoration: none !important;
	letter-spacing: normal;
	cursor: pointer;
	transition: color 0.15s;
}
.bat-multistep-form .gform_previous_button:hover { color: #fff !important; }

/* Footer holds the back link (next/submit is moved inline by JS on desktop) */
.bat-multistep-form .gform_page_footer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	margin-top: 16px;
}
/* Next/submit as a flex item inside the fields row */
.bat-multistep-form .gform_fields > .gform_next_button,
.bat-multistep-form .gform_fields > .gform_button[type="submit"] {
	flex: 0 0 auto;
	align-self: flex-end;
}
/* Mobile: Continue stacked above the back link (Layout B) */
@media (max-width: 639px) {
	.bat-multistep-form .gform_page_footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
}

/* ── Text Opt-In (consent checkbox) ─────────────────────── */
.bat-multistep-form .bat-ms-optin { flex-basis: 100% !important; }
.bat-multistep-form .bat-ms-optin .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.bat-multistep-form .bat-ms-optin input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin-top: 2px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.1);
	cursor: pointer;
	position: relative;
	transition: border-color 0.15s, background 0.15s;
}
.bat-multistep-form .bat-ms-optin input[type="checkbox"]:hover { border-color: #4ade80; }
.bat-multistep-form .bat-ms-optin input[type="checkbox"]:checked {
	background: #4ade80;
	border-color: #4ade80;
}
.bat-multistep-form .bat-ms-optin input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	inset: 2px 4px 5px 4px;
	border: solid #000;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.bat-multistep-form .bat-ms-optin .gform-field-label--type-inline {
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	line-height: 1.45;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	margin: 0;
	padding: 0 !important;
}
.bat-multistep-form .bat-ms-optin label::before,
.bat-multistep-form .bat-ms-optin label::after {
	display: none !important;
	content: none !important;
}
.bat-multistep-form .bat-ms-optin input[type="checkbox"] { display: inline-block !important; opacity: 1; }
/* Hide raw description — JS turns it into the tooltip */
.bat-multistep-form .bat-ms-optin .gfield_description:not(.gfield_validation_message) { display: none; }

/* Tooltip */
.bat-ms-tip-btn {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	font-style: italic;
	font-family: Georgia, serif;
	line-height: 16px;
	cursor: pointer;
	vertical-align: middle;
	transition: background 0.15s, color 0.15s;
}
.bat-ms-tip-btn:hover { background: #4ade80; color: #000; }
.bat-ms-tip-wrap { position: relative; display: inline-flex; }
.bat-ms-tip-pop {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	width: min(320px, 80vw);
	background: #0d4800;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	padding: 14px;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
	z-index: 50;
}
.bat-ms-tip-pop::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 10px;
	height: 10px;
	background: #0d4800;
	border-right: 1px solid rgba(255, 255, 255, 0.2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Cloudflare badge ───────────────────────────────────── */
.bat-multistep-form .bat-ms-badge { flex-basis: 100% !important; }
.bat-ms-cf {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
}
.bat-ms-cf strong { color: #fff; }
.bat-ms-cf-lock { width: 14px; height: 14px; color: #4ade80; flex-shrink: 0; }

/* ── Job-seeker gate (compact boxed question per Make update 2026-08-24) ── */
.bat-multistep-form .bat-intent-gate {
	flex-basis: 100% !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important; /* !important: GF/Astra reset fieldsets to border:0 */
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.11) !important; /* lighter green panel on the card */
	padding: 12px 14px !important;
}
.bat-multistep-form .bat-intent-gate legend.gfield_label,
.bat-multistep-form .bat-intent-gate .gfield_label {
	float: left; /* pulls the legend off the fieldset border, inside the panel */
	width: 100%;
	color: #fff !important;
	text-transform: none;
	letter-spacing: normal;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
}
.bat-multistep-form .bat-intent-gate .gchoice,
.bat-multistep-form .bat-intent-gate .gchoice label { white-space: nowrap !important; }
@media (max-width: 429px) {
	/* Galaxy-width tune: keep the gate question to as few lines as possible */
	.bat-multistep-form .bat-intent-gate { padding: 10px 12px !important; }
	.bat-multistep-form .bat-intent-gate legend.gfield_label,
	.bat-multistep-form .bat-intent-gate .gfield_label { font-size: 13px; }
	.bat-multistep-form .bat-intent-gate .gchoice label { font-size: 13px; }
}
.bat-multistep-form .bat-intent-gate .gfield_radio {
	clear: both; /* pairs with the floated legend */
	width: 100% !important;   /* use the panel's full width (GF leaves a dead gutter) */
	max-width: none !important;
	padding: 0 !important;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}
.bat-multistep-form .bat-intent-gate .gchoice { display: flex; align-items: center; gap: 10px; }
.bat-multistep-form .bat-intent-gate input[type="radio"] {
	display: inline-block !important; /* site CSS hides GF choice inputs for its legacy custom radios */
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin: 0;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	position: relative;
	opacity: 1;
	transition: border-color 0.15s;
}
.bat-multistep-form .bat-intent-gate input[type="radio"]:hover { border-color: #fff; }
.bat-multistep-form .bat-intent-gate input[type="radio"]:checked {
	border-color: #4ade80;
	background: #4ade80;
}
.bat-multistep-form .bat-intent-gate input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: #000;
}
/* option label: 60% white until its radio is selected (Make spec) */
.bat-multistep-form .bat-intent-gate .gchoice label { color: rgba(255, 255, 255, 0.6) !important; }
.bat-multistep-form .bat-intent-gate .gchoice input:checked + label,
.bat-multistep-form .bat-intent-gate .gchoice:hover label { color: #fff !important; }
/* Site CSS draws its own fake radio square on the label — remove it here */
.bat-multistep-form .bat-intent-gate label::before,
.bat-multistep-form .bat-intent-gate label::after {
	display: none !important;
	content: none !important;
}
.bat-multistep-form .bat-intent-gate label {
	color: #fff;
	font-size: 14px;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	margin: 0;
	padding: 0 !important; /* site CSS pads labels to make room for its fake radio */
}
.bat-multistep-form .bat-careers-html { flex-basis: 100% !important; }
/* Careers panel renders on the site's light card — keep the copy dark */
.bat-multistep-form .bat-careers-message { color: #1f2937; font-size: 14px; line-height: 1.5; }
.bat-multistep-form .bat-careers-message .bat-careers-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 20px;
	border-radius: 4px;
	background: linear-gradient(135deg, #f76900, #e05e00);
	color: #000;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
/* Hide nav + progress when the job-seeker path is chosen (JS toggles class) */
.gform_wrapper.bat-ms-job-mode .bat-ms-progress,
.gform_wrapper.bat-ms-job-mode .gform_page_footer { display: none !important; }

/* Turnstile field spacing */
.bat-multistep-form .gfield--type-turnstile { flex-basis: 100% !important; }

/* 2026-08 A2P consent package inside the card: white consent box full width,
   disclaimer readable on the green ground */
.bat-multistep-form .gfield.hda-sms-consent {
	flex-basis: 100% !important;
	padding: 12px 14px !important;
}
.bat-multistep-form .gfield.hda-sms-consent .hda-optional-badge { margin-bottom: 4px; }
/* Step-3 footer order (2026-08-18 review): disclaimer, then Request button,
   then the back link — footer is a wrapping flex row */
.bat-multistep-form .gform_page_footer { flex-wrap: wrap; }
.bat-multistep-form .disclaimer-text {
	color: rgba(255, 255, 255, 0.65) !important;
	font-size: 12px;
	line-height: 1.55;
	margin: 0;
	flex-basis: 100%;
	order: 1;
}
.bat-multistep-form .disclaimer-text a { color: rgba(255, 255, 255, 0.85) !important; }
.bat-multistep-form .gform_page_footer .gform_button[type="submit"] { order: 2; }
.bat-multistep-form .gform_page_footer .gform_previous_button { order: 3; }

/* Honeypot stays hidden (GF handles, belt & suspenders) */
.bat-multistep-form .gform_validation_container { display: none !important; }

/* ── Homepage hero placement (page 92686, per Figma 1:1264) ──
   The old green band section becomes transparent, its "Start your ownership
   journey" heading goes away, and the card overlaps the hero bottom. */
.elementor-element-764c76d3 { display: none !important; } /* legacy heading + divider */
/* The band is a top-level sibling after the hero (moved out of it 2026-08-13):
   green hero ends at its own content; the card overlaps its bottom ~150px and
   the card bottom sits on the white page, per Figma 1:1264. */
.elementor-element-54e00c45 {
	background: transparent !important;
	margin-top: -155px !important;
	margin-bottom: 32px !important;
	padding: 0 !important;
	position: relative;
	z-index: 5;
}
.elementor-element-54e00c45 .elementor-element-1f192e97 { padding: 0 !important; margin: 0 !important; }
.elementor-element-7ec6868f {
	max-width: 768px;
	width: 100% !important;
	margin: 0 auto !important;
}
.elementor-element-7ec6868f .gform_wrapper { margin: 0 auto; }
@media (max-width: 767px) {
	.elementor-element-54e00c45 {
		margin-top: -12px !important; /* overlaps the orange box padding, never its text */
		margin-bottom: 12px !important; /* breathing room between form and store image */
		padding: 0 8px !important; /* wider card for narrow (Galaxy) viewports */
		margin-left: -20px !important;  /* escape the hero's 20px side padding */
		margin-right: -20px !important;
		width: calc(100% + 40px) !important; /* e-con pins width:100%, widen past it */
		max-width: none !important;
		position: relative;
		z-index: 5;
	}
	/* store image pokes past the green section's bottom edge (negative
	   bottom margin shortens the hero, so the green ends mid-image) */
	.bat-ms-in-hero ~ .elementor-element-6f89f44c,
	.elementor-element-3af88502 .elementor-element-6f89f44c {
		margin-bottom: -48px;
		position: relative;
		z-index: 3;
	}
	.elementor-element-3af88502 { padding-bottom: 0 !important; margin-bottom: 64px !important; } /* 48px image overhang + 16px breathing room before the next section */
}
