/**
 * Quiz Funnel - Video LP
 *
 * Two constraints shape everything here:
 *
 * 1. px, never rem. The theme's root font-size changes per breakpoint
 *    (16/14/13/11/16px across 1280/1080/992/768), so at 769-991px 1rem = 11px
 *    and any rem value silently shrinks by a third.
 *
 * 2. The form engine writes inline `display:block|none` onto each step <form>
 *    when it fades screens in and out, so a <form> can never be a flex
 *    container. .fq__pane inside it does the flex column instead.
 *
 * The height chain is load-bearing: .fq has a definite height, so
 * .js-multistep-forms (the scroll container) does, so `height:100%` on the form
 * does, so `min-height:100%` on .fq__pane resolves - which is what gives
 * .fq__cta's `margin-top:auto` free space to push against. Break any link and
 * the CTA stops pinning to the bottom.
 */

/* Full-page takeover: the funnel is the page, so paint the gutters and the
   leftover legal disclaimer to match instead of leaving them white.

   Matched to the funnel's own navy rather than the deeper shade, so that if the
   section ever comes up short of the visible area - a browser without dvh, or an
   iOS chrome state we haven't seen - the shortfall reads as more page instead of
   a distinct band under the CTA. That mismatch is what made the iPhone gap so
   obvious even though it was only a few dozen pixels. */
body:has(.fq) {
	background: #004c8d;
}

/* The theme pins both to `min-height: 100vh`. On iOS `vh` is the LARGE viewport -
   the height with browser chrome retracted - so the page box stayed taller than
   the funnel's dvh and left roughly a toolbar's worth of scrollable overflow.
   Small, but enough that dismissing the keyboard could leave the document
   scrolled, sliding the progress bar up under the notch. Desktop resolves vh and
   dvh identically, which is why it only ever showed on a phone.

   overflow:hidden on top of the corrected min-height is deliberate: it makes the
   document unscrollable outright, so no residual pixel from any future browser
   quirk can be scrolled to. The funnel's own .js-multistep-forms remains the
   scroller, and focus still scrolls inputs into view inside it. */
html:has(.fq),
body:has(.fq) {
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	overflow: hidden;
}

body:has(.fq) .footer-disclaimer p {
	color: rgba(255, 255, 255, 0.45);
}

body:has(.fq) .footer-disclaimer hr {
	border-top-color: rgba(255, 255, 255, 0.12) !important;
}

/* The theme's submit overlay is white full-screen; tone it to the funnel. */
body:has(.fq) .custom-loader {
	background: rgba(0, 51, 95, 0.92);
}

body:has(.fq) .custom-loader__text p {
	color: #f2f7fb;
}

.fq {
	--fq-navy: #004c8d;
	--fq-deep: #00335f;
	--fq-line: #3771a5;
	--fq-ink: #f2f7fb;
	--fq-muted: #c3d9ef;
	--fq-green: #00b43d;

	/* Three declarations, weakest first - the last one the engine understands
	   wins, so this degrades without @supports.

	   svh reserves room for the browser chrome at its LARGEST, which on iOS is a
	   permanent underestimate for this page: the document can't scroll, so Safari
	   never expands past its compact toolbars and never actually claims the space
	   svh held back. The difference showed as a strip of page background under the
	   funnel on iPhone (both Safari and Chrome, since both are WebKit).

	   dvh is the exact visible height. It's normally avoided on full-height pages
	   because it re-resolves as the URL bar collapses mid-scroll - but that needs a
	   scrolling document, and this one is overflow:hidden with its own inner
	   scroller (scrolling a nested element doesn't move iOS chrome). The keyboard
	   can't shrink it either: iOS always behaves as interactive-widget=
	   resizes-visual, which leaves the layout viewport - and so dvh - untouched. */
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--fq-navy);
	color: var(--fq-ink);
	font-family: "Inter", sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* WordPress shifts the document down for the admin bar with
   `html { margin-top: 32px !important }` (46px under 783px), but a viewport-unit
   takeover still claims the full height - so a logged-in editor previewing the
   page loses the bottom 32-46px, which is exactly where the CTA sits. Give the
   height back. Anonymous visitors never match these selectors. */
body.admin-bar .fq {
	height: calc(100vh - 32px);
	height: calc(100svh - 32px);
	height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .fq {
		height: calc(100vh - 46px);
		height: calc(100svh - 46px);
		height: calc(100dvh - 46px);
	}
}

.fq *,
.fq *::before,
.fq *::after {
	box-sizing: border-box;
}

/* Visually-hidden helper: keeps <label> text available to findLabel() (which
   feeds form_field_label / form_error) and to collectData(), which builds the
   "Label: value" blob sent to the CRM. */
.fq .fq__sr,
.fq .input--sr > label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	white-space: nowrap;
	clip-path: inset(50%);
	border: 0;
}

/* ── chrome ──────────────────────────────────────────────────────────── */

.fq__stage {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* .fq__done receives an inline display:block from the engine's fadeIn(), so the
   flex column has to live on the inner wrapper instead - otherwise the chrome
   and a min-height:100% pane stack to 112% of the screen and the call button is
   clipped by .fq's overflow:hidden. */
.fq__done {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.fq__done-inner {
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

.fq__done .fq__pane {
	flex: 1 1 auto;
	min-height: 0;
}

/* Capped to the same width as .fq__pane so the progress bar and the content
   share one column instead of the bar stretching across a desktop viewport. */
.fq__chrome {
	flex: 0 0 auto;
	width: 100%;
	max-width: 420px;
	margin-inline: auto;
	padding: calc(12px + env(safe-area-inset-top)) 20px 4px;
}

.fq__bar {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Fixed slot so the segments don't reflow when the back button appears. */
.fq__back-slot {
	flex: 0 0 32px;
	height: 32px;
}

.fq__back {
	width: 32px;
	height: 32px;
	padding: 7px;
	border: 0;
	border-radius: 50%;
	line-height: 0;
	background: rgba(255, 255, 255, 0.08);
	color: var(--fq-ink);
	cursor: pointer;
	transition:
		background 0.18s,
		transform 0.1s;
}

.fq__back:hover {
	background: rgba(255, 255, 255, 0.16);
}

.fq__back:active {
	transform: scale(0.92);
}

.fq__back svg {
	display: block;
	margin: 0 auto;
}

.fq__segs {
	flex: 1 1 auto;
	display: flex;
	gap: 8px;
}

.fq__seg {
	flex: 1;
	height: 9px;
	border-radius: 99px;
	background: var(--fq-line);
	overflow: hidden;
}

.fq__seg i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 99px;
	background: var(--fq-green);
	transition: width 0.45s ease;
}

.fq__seg.is-done i,
.fq__seg.is-active i {
	width: 100%;
}

.fq__count {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 700;
	color: var(--fq-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.fq__logo {
	display: flex;
	justify-content: center;
	padding: 10px 20px 8px;
}

.fq__logo-img {
	height: 54px;
	width: auto;
	max-width: 100%;
	display: block;
}

/* ── screens ─────────────────────────────────────────────────────────── */

/* Screen transitions are the prototype's, not the engine's.
 *
 * The prototype stacks every screen absolutely and cross-fades them with a
 * single transition on the SAME element:
 *
 *   .screen        { opacity:0; visibility:hidden; transform:translateY(10px);
 *                    transition:opacity .4s ease, transform .4s ease, visibility .4s }
 *   .screen.active { opacity:1; visibility:visible; transform:none }
 *
 * so the outgoing screen drifts down and fades while the incoming one rises and
 * fades in, both at once. The engine instead runs fadeOut(300ms) and *then*
 * fadeIn(300ms) on step <form>s it shows and hides with inline `display`, which
 * can only ever produce a sequential out-then-in.
 *
 * Rather than fight it frame by frame, we make its writes inert: `display` is
 * pinned with !important so show/hide is a no-op, and the inline `opacity` it
 * animates is overridden the same way. Its rAF loops still run and its
 * onComplete callbacks (reject-flow, next-step) still fire, so nothing about the
 * engine's logic changes - only what you see. view.js owns `.fq-active`.
 *
 * Transitioning transform also keeps the active screen on one composited layer,
 * which is what stops Chrome re-rasterising colour-emoji glyphs mid-fade.
 */
.fq .js-multistep-forms {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.fq .js-multistep-forms > form {
	position: absolute;
	inset: 0;
	display: block !important;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	opacity: 0 !important;
	visibility: hidden;
	transform: translateY(10px);
	transition:
		opacity 0.4s ease,
		transform 0.4s ease,
		visibility 0.4s;
}

.fq .js-multistep-forms > form.fq-active {
	opacity: 1 !important;
	visibility: visible;
	transform: none;
}

.fq__pane {
	min-height: 100%;
	max-width: 420px;
	margin-inline: auto;
	padding: 16px 24px calc(28px + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* The confirmation screen isn't one of the stacked steps - the engine swaps the
   whole stage out for it - so it can't ride the cross-fade above and gets the
   same movement as a one-shot animation instead. */
.fq__done .fq__pane.is-entering {
	animation: fq-enter 0.4s ease both;
}

@keyframes fq-enter {
	from {
		transform: translateY(10px);
	}
	to {
		transform: none;
	}
}

.fq__body {
	width: 100%;
	margin-block: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Screens whose content is tall (the 6-tile grid, the 3-step list) start at the
   top instead of centring, so they don't collide with the pinned CTA. */
.fq__pane--top .fq__body {
	margin-block: 0 auto;
	padding-top: 8px;
}

/* ── type ────────────────────────────────────────────────────────────── */

.fq__kicker {
	align-self: center;
	margin: 0 0 18px;
	padding: 7px 14px;
	border: 1px solid rgba(0, 180, 61, 0.35);
	border-radius: 99px;
	background: rgba(0, 180, 61, 0.14);
	color: var(--fq-green);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
}

.fq__h {
	max-width: 15ch;
	margin: 0 0 16px;
	font-size: 33px;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
	color: var(--fq-ink);
	text-wrap: balance;
}

.fq__h em {
	font-style: normal;
	color: #fff;
}

.fq__sub {
	max-width: 33ch;
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--fq-muted);
	text-wrap: balance;
}

.fq__micro {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--fq-muted);
}

.fq__micro a,
.fq__legal-open {
	color: var(--fq-muted);
	text-decoration: underline;
}

/* A button for semantics (it opens a dialog, it doesn't navigate) that reads as
   the link beside it. */
.fq__legal-open {
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	cursor: pointer;
}

/* ── disclaimer dialog ───────────────────────────────────────────────────
   footer.php's copy is suppressed for this page ($no_disclaimer): below a
   100svh takeover it created a second scroll context outside the funnel. Here
   it costs no layout height until opened. */

.fq__legal {
	width: min(520px, calc(100vw - 32px));
	max-height: min(70svh, 560px);
	/* Explicit, because the theme's reset zeroes margins and would otherwise
	   override the UA rule that centres an open modal dialog. */
	margin: auto;
	padding: 0;
	border: none;
	border-radius: 16px;
	background: #fff;
	color: #1c2b3a;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

@supports not (max-height: 70svh) {
	.fq__legal {
		max-height: min(70vh, 560px);
	}
}

.fq__legal::backdrop {
	background: rgba(0, 20, 40, 0.6);
}

.fq__legal-inner {
	padding: 22px;
	max-height: inherit;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.fq__legal-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
}

.fq__legal-body {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(28, 43, 58, 0.78);
	text-align: left;
}

.fq__legal-close {
	display: block;
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 99px;
	background: var(--fq-green);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.fq__fastlane {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--fq-muted);
}

.fq__fastlane a {
	color: var(--fq-green);
	font-weight: 700;
	text-decoration: none;
}

.fq__fastlane a:hover {
	text-decoration: underline;
}

/* ── buttons ─────────────────────────────────────────────────────────── */

.fq__cta {
	margin-top: auto;
}

.fq__btn {
	display: block;
	width: 100%;
	max-width: 340px;
	padding: 18px;
	border: none;
	border-radius: 99px;
	background: linear-gradient(180deg, #12c24a 0%, #00b43d 100%);
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-shadow: 0 1px 1px rgba(0, 80, 25, 0.2);
	cursor: pointer;
	box-shadow:
		0 10px 30px -8px rgba(0, 150, 50, 0.4),
		inset 0 1px 0 0 rgba(255, 255, 255, 0.28);
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		filter 0.15s ease;
}

.fq__btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
	box-shadow:
		0 16px 38px -8px rgba(0, 150, 50, 0.48),
		inset 0 1px 0 0 rgba(255, 255, 255, 0.32);
}

.fq__btn:active {
	transform: translateY(0);
	filter: brightness(0.97);
}

.fq__btn.is-loading {
	opacity: 0.75;
	pointer-events: none;
}

.fq__btn--2line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding-block: 13px;
	line-height: 1.2;
}

.fq__btn-phone {
	flex: 0 0 auto;
}

.fq__btn-txt {
	display: flex;
	flex-direction: column;
}

.fq__btn-l1 {
	font-size: 15px;
	font-weight: 600;
	opacity: 0.95;
}

.fq__btn-l2 {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

/* ── inputs ──────────────────────────────────────────────────────────── */

.fq__field-wrap {
	width: 100%;
	max-width: 340px;
	margin-top: 26px;
}

.fq__fields {
	width: 100%;
	max-width: 340px;
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fq .fq__field input {
	width: 100%;
	padding: 16px;
	border: 1.5px solid transparent;
	border-radius: 14px;
	background: #fff;
	color: var(--fq-navy);
	font-family: inherit;
	/* 16px minimum, or iOS Safari zooms the page on focus. */
	font-size: 16px;
	text-align: center;
	box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.35);
	transition: 0.2s;
}

.fq .fq__field input:focus {
	outline: none;
	border-color: var(--fq-green);
	box-shadow: 0 0 0 4px rgba(0, 180, 61, 0.2);
}

.fq .fq__field input::placeholder {
	color: #9aa7b8;
}

.fq .fq__field.is-error input {
	border-color: #ff6b6b;
}

.fq .input__message {
	margin-top: 6px;
	color: #ffc9c9;
	font-size: 12.5px;
	line-height: 1.35;
	text-align: center;
}

.fq .input__message p {
	margin: 0;
}

/* ── Google Places dropdown ──────────────────────────────────────────────
   .pac-container is appended to <body> by the Maps SDK, so it can't be scoped
   inside .fq - `body:has(.fq)` keeps the restyle to this page only. Google sets
   width/left inline from the input; view.js re-syncs the width so the panel
   always matches the field (the SDK subtracts its own 1px borders, which we
   remove here). The "powered by Google" mark in .pac-logo::after is required
   attribution - restyled, never hidden. */

body:has(.fq) .pac-container {
	margin-top: 6px;
	padding: 0;
	border: none;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.22);
	font-family: "Inter", sans-serif;
	overflow: hidden;
}

body:has(.fq) .pac-item {
	padding: 12px 16px;
	border-top: 1px solid #eef2f7;
	font-size: 14px;
	line-height: 1.35;
	color: #7a8798;
	text-align: left;
	cursor: pointer;
}

body:has(.fq) .pac-item:first-child {
	border-top: none;
}

body:has(.fq) .pac-item:hover,
body:has(.fq) .pac-item-selected {
	background: #f2f7fb;
}

body:has(.fq) .pac-item-query {
	margin-right: 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--fq-navy, #004c8d);
}

body:has(.fq) .pac-matched {
	font-weight: 800;
}

/* The grey pin sprite adds nothing next to an address string. */
body:has(.fq) .pac-icon {
	display: none;
}

body:has(.fq) .pac-logo::after {
	margin: 6px 16px 10px;
	background-position: right center;
	opacity: 0.5;
}

/* ── how it works ────────────────────────────────────────────────────── */

.fq__steps {
	width: 100%;
	max-width: 320px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.fq__stepline {
	display: flex;
	gap: 14px;
	align-items: center;
	text-align: left;
}

.fq__stepnum {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--fq-green);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 32px;
	text-align: center;
}

.fq__steptxt {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fq__steptxt b {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--fq-ink);
}

.fq__steptxt small {
	font-size: 13px;
	color: var(--fq-muted);
}

/* ── tiles (Q1) & choices (Q2) ───────────────────────────────────────── */

.fq__tiles {
	width: 100%;
	max-width: 340px;
	margin-top: 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.fq__choices {
	width: 100%;
	max-width: 340px;
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fq .fq__tile,
.fq .fq__choice {
	position: relative;
	border: 1.5px solid transparent;
	border-radius: 16px;
	background: #fff;
	color: var(--fq-navy);
	cursor: pointer;
	box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.35);
	transition: 0.18s;
}

.fq .fq__tile:hover,
.fq .fq__choice:hover {
	border-color: var(--fq-green);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45);
}

.fq .fq__tile:active,
.fq .fq__choice:active {
	transform: translateY(0) scale(0.98);
}

/* The radio itself stays focusable and hit-testable but invisible: the label
   is the control, and clicking it is what the engine turns into a change
   event (which is what makes .auto-submit advance the step). */
.fq .fq__tile input,
.fq .fq__choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.fq .fq__tile:focus-within,
.fq .fq__choice:focus-within {
	border-color: var(--fq-green);
	box-shadow: 0 0 0 4px rgba(0, 180, 61, 0.2);
}

.fq .fq__tile {
	aspect-ratio: 1.5 / 1;
	padding: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	text-align: center;
}

.fq__tile-emoji {
	font-size: 30px;
	line-height: 1;
}

.fq__tile-label {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
}

.fq .fq__choice {
	padding: 17px;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

.fq__choice-emoji {
	margin-right: 9px;
	font-size: 20px;
	vertical-align: -2px;
}

/* ── proof ───────────────────────────────────────────────────────────── */

.fq__proof {
	width: 100%;
}

.fq__quote {
	width: 100%;
	max-width: 340px;
	margin: 0 auto;
	padding: 30px 26px 26px;
	border-radius: 22px;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.4);
}

/* Explicit: the display:flex above would otherwise beat the UA [hidden] rule. */
.fq__quote[hidden] {
	display: none;
}

.fq__quote-text {
	max-width: 26ch;
	margin: 0 0 16px;
	border: 0;
	padding: 0;
	color: var(--fq-navy);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.015em;
}

.fq__avatar {
	width: 56px;
	height: 56px;
	/* AVIF <picture> + display:contents lets a fixed-size img get squished as a
	   flex child in Chrome; flex-shrink:0 is the house fix. */
	flex-shrink: 0;
	margin-bottom: 10px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px rgba(0, 180, 61, 0.55);
}

.fq__quote-by {
	color: var(--fq-navy);
	font-size: 13px;
	font-weight: 700;
}

.fq__quote-by span {
	color: #7a8798;
	font-weight: 400;
}

.fq__stars {
	margin-top: 8px;
	color: #f5a623;
	font-size: 14px;
	letter-spacing: 3px;
}

/* The shared trust row ships light-on-white and carries `order: -2` so it pins
   to the top of a hero form card. Here it belongs under the testimonial, so
   reset the order and recolour it for the navy background. */
.fq .cbh-trust-row {
	order: 0;
	margin: 20px 0 0;
	justify-content: center;
}

.fq .cbh-trust-row,
.fq .cbh-trust-row * {
	color: var(--fq-ink);
}

/* ── video ───────────────────────────────────────────────────────────── */

/* Sized from the viewport height, with the width derived from the aspect ratio,
   so the clip is never cropped and never taller than the screen. Most market
   clips are 9:16 vertical; one whose lower third was cropped out at encode time
   is not, and declares its real shape via --fq-clip-ar (the market map's
   `clipAspect`) so this frame still matches it exactly. */
.fq__player {
	position: relative;
	height: min(58svh, 500px);
	aspect-ratio: var(--fq-clip-ar, 9 / 16);
	width: auto;
	max-width: 100%;
	margin-top: 14px;
	border-radius: 20px;
	overflow: hidden;
	background: #000;
	cursor: pointer;
	box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.5);
}

@supports not (height: 58svh) {
	.fq__player {
		height: min(58vh, 500px);
	}
}

.fq__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}

.fq__sound {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 76px;
	height: 76px;
	padding-left: 4px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 180, 61, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.55);
	transition:
		transform 0.15s ease,
		opacity 0.2s ease;
}

.fq__sound:hover {
	transform: translate(-50%, -50%) scale(1.06);
}

/* Sits just under the sound button (76px tall, centred) rather than at the
   bottom of the frame, where it would cover the show's burned-in lower third. */
.fq__soundhint {
	position: absolute;
	top: calc(50% + 50px);
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	padding: 6px 13px;
	border-radius: 99px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

/* Once the user has tapped in, the big button and its hint have done their job -
   the small corner toggle carries sound state from here. */
.fq__player.is-live .fq__sound,
.fq__player.is-live .fq__soundhint {
	opacity: 0;
	pointer-events: none;
}

/* ── our own player chrome (no native controls) ──────────────────────────
   video.controls is never set: enabling it paints the full native overlay
   immediately - scrubber, skip buttons, fullscreen - which on iOS Safari covers
   the clip at the exact moment the user engages with it. These two elements are
   the whole replacement. */

.fq__mute {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

/* Only meaningful once playback is under the user's control. */
.fq__player.is-live .fq__mute {
	opacity: 1;
	pointer-events: auto;
}

.fq__mute-on,
.fq__mute-off {
	display: none;
}

.fq__player.is-unmuted .fq__mute-on,
.fq__player:not(.is-unmuted) .fq__mute-off {
	display: block;
}

/* Paused badge. Mirrors the big button's shape at a smaller size so the two read
   as the same control, and stays out of the way of the burned-in lower third. */
.fq__playicon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	padding-left: 4px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.fq__player.is-paused .fq__playicon {
	opacity: 1;
}

/* Autoplay refused (iOS Low Power Mode) or codec unsupported: the button
   becomes a real play button, and its click is the gesture that unblocks it. */
.fq__player.is-blocked .fq__soundhint,
.fq__player.is-unsupported .fq__soundhint {
	opacity: 0;
}

.fq__player.is-unsupported .fq__sound {
	display: none;
}

/* ── confirmation ────────────────────────────────────────────────────── */

.fq__check {
	width: 70px;
	height: 70px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: linear-gradient(180deg, #12c24a 0%, #00b43d 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow:
		0 10px 30px -8px rgba(0, 150, 50, 0.55),
		inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
	animation: fq-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes fq-pop {
	0% {
		transform: scale(0.4);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* The theme hides .show-on-success and gives every [id] a scroll offset for the
   sticky header, which this page doesn't have. */
.fq .show-on-success {
	scroll-margin-top: 0;
}

/* ── larger screens ──────────────────────────────────────────────────── */

@media (min-width: 769px) {
	.fq__h {
		font-size: 38px;
	}

	.fq__chrome,
	.fq__pane {
		max-width: 460px;
	}

	.fq__player {
		height: min(56svh, 520px);
	}

	/* On a tall desktop window the column would sprawl over the full height;
	   cap it and centre the whole funnel instead. */
	.fq__stage,
	.fq__done {
		max-height: 800px;
		margin-block: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fq *,
	.fq *::before,
	.fq *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* ══ Photo skin ═══════════════════════════════════════════════════════════
   Same backbone, different clothes: white content cards over a full-screen
   house photo, blue accents, no brand green. Shared by both photo skins -
   "unbranded" (no logo) and "branded-photo" (market logo above the hero
   line); the logo's presence or absence in the DOM is their only difference.
   Appended after the navy rules so equal-specificity overrides win by order.
   Everything here is scoped under .fq--photo except .fq__card's navy reset. */

/* On the navy skin the card wrapper must not exist for layout: its children
   (.fq__body's margin-block:auto, .fq__cta's margin-top:auto) are direct flex
   items of .fq__pane. display:contents keeps one DOM for every skin. */
.fq__card {
	display: contents;
}

/* The selection dot inside tiles/choices is photo-skin-only chrome. */
.fq__dot {
	display: none;
}

body:has(.fq--photo) {
	background: #12335f;
}

body:has(.fq--photo) .custom-loader {
	background: rgba(10, 22, 40, 0.92);
}

.fq--photo {
	--fq-blue: #52aad9;
	--fq-blue-hi: #70b7dd;
	--fq-blue-deep: #2c8cc4;
	--fq-blue-press: #2379ab;
	--fq-card-ink: #000;
	--fq-card-body: #4d555e;
	position: relative;
	background: #12335f;
}

/* ── background photo + scrim ── */

.fq__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

/* get_responsive_image() emits a <picture>; both it and the img must fill the
   frame or object-fit has nothing to cover. */
.fq__bg picture {
	display: block;
	width: 100%;
	height: 100%;
}

.fq__bg .fq__bg-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.fq__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 22, 40, 0.62) 0%,
		rgba(10, 22, 40, 0.5) 16%,
		rgba(10, 22, 40, 0.38) 34%,
		rgba(10, 22, 40, 0.36) 66%,
		rgba(10, 22, 40, 0.48) 100%
	);
}

/* Everything else rides above the photo. */
.fq--photo > *:not(.fq__bg) {
	position: relative;
	z-index: 1;
}

/* ── chrome over the photo ── */

.fq--photo .fq__seg {
	background: rgba(255, 255, 255, 0.42);
}

.fq--photo .fq__seg i {
	background: var(--fq-blue);
}

.fq--photo .fq__count {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.fq--photo .fq__back {
	background: rgba(255, 255, 255, 0.16);
}

.fq--photo .fq__back:hover {
	background: rgba(255, 255, 255, 0.28);
}

/* ── logo over the photo (branded-photo skin only) ──
   The navy skin gives the logo its own padded bar; here it sits tight above
   the hero line as one centred unit, with a shadow so a white wordmark stays
   readable wherever the photo happens to be light. */

.fq--photo .fq__logo {
	padding: 10px 0 0;
}

.fq--photo .fq__logo-img {
	height: 46px;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

/* The persistent pitch line. It stands alone on the unbranded skin and sits
   under the logo on the branded one, hence the sibling override below. */
.fq__hero {
	margin: 12px 0 2px;
	padding: 0 4px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	text-align: center;
	color: #fff;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.5),
		0 3px 18px rgba(0, 0, 0, 0.6);
	text-wrap: balance;
}

.fq--photo .fq__logo + .fq__hero {
	margin-top: 10px;
}

/* ── the white card ── */

.fq--photo .fq__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 362px;
	/* Auto margins centre the card when the screen is short and collapse to 0
	   when it overflows the scroller, so tall screens stay reachable - unlike
	   justify-content:center, which clips the top. */
	margin-block: auto;
	padding: 26px 20px 22px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 54px -22px rgba(0, 0, 0, 0.55);
}

/* Inside the card the branded pin-to-bottom flex tricks are meaningless. */
.fq--photo .fq__body {
	margin-block: 0;
	padding-top: 0;
}

.fq--photo .fq__cta {
	margin-top: 16px;
}

/* ── type on white ── */

.fq--photo .fq__kicker {
	display: none;
}

.fq--photo .fq__h {
	max-width: 19ch;
	font-size: 24px;
	line-height: 1.16;
	color: var(--fq-card-ink);
}

.fq--photo .fq__h em {
	color: var(--fq-card-ink);
}

.fq--photo .fq__sub {
	font-size: 14px;
	line-height: 1.5;
	color: var(--fq-card-body);
}

/* Fastlane + micro sit outside the card, over the photo. */
.fq--photo .fq__fastlane {
	color: #fff;
	font-weight: 600;
	text-shadow:
		0 1px 3px rgba(0, 0, 0, 0.6),
		0 2px 14px rgba(0, 0, 0, 0.5);
}

.fq--photo .fq__fastlane a {
	color: #9ad2ef;
	font-weight: 800;
}

.fq--photo .fq__micro {
	color: rgba(255, 255, 255, 0.92);
	text-shadow:
		0 1px 3px rgba(0, 0, 0, 0.6),
		0 2px 14px rgba(0, 0, 0, 0.5);
}

.fq--photo .fq__micro a,
.fq--photo .fq__legal-open {
	color: rgba(255, 255, 255, 0.92);
}

/* ── buttons ── */

.fq--photo .fq__btn {
	max-width: none;
	padding: 17px;
	border-radius: 12px;
	background: var(--fq-blue-deep);
	font-weight: 800;
	letter-spacing: -0.01em;
	text-shadow: none;
	box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.6);
}

.fq--photo .fq__btn:hover {
	background: #2e96d1;
	filter: none;
	box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.65);
}

.fq--photo .fq__btn:active {
	background: var(--fq-blue-press);
	filter: none;
}

/* ── inputs on white ── */

.fq--photo .fq__field input {
	background: #f2f5f8;
	border-color: #e1e6ea;
	color: var(--fq-card-ink);
	border-radius: 12px;
	box-shadow: none;
}

.fq--photo .fq__field input:focus {
	background: #fff;
	border-color: var(--fq-blue);
	box-shadow: 0 0 0 4px rgba(82, 170, 217, 0.22);
}

.fq--photo .fq__field input::placeholder {
	color: #9aa3ac;
}

.fq--photo .fq__field.is-error input {
	border-color: #d94b4b;
}

.fq--photo .input__message {
	color: #c43d3d;
}

/* ── how it works, on white ── */

.fq--photo .fq__stepnum {
	background: var(--fq-blue);
}

.fq--photo .fq__steptxt b {
	color: var(--fq-card-ink);
}

.fq--photo .fq__steptxt small {
	color: var(--fq-card-body);
}

/* ── tiles & choices: the ref's solid-blue option buttons ── */

.fq--photo .fq__tiles,
.fq--photo .fq__choices {
	max-width: none;
	margin-top: 4px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fq--photo .fq__tile,
.fq--photo .fq__choice {
	aspect-ratio: auto;
	padding: 11px 14px 13px;
	border: none;
	border-radius: 12px;
	background: var(--fq-blue);
	box-shadow: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.fq--photo .fq__tile:hover,
.fq--photo .fq__choice:hover {
	background: var(--fq-blue-hi);
	border: none;
	transform: none;
	box-shadow: none;
}

.fq--photo .fq__tile:active,
.fq--photo .fq__choice:active {
	transform: scale(0.985);
}

.fq--photo .fq__tile:focus-within,
.fq--photo .fq__choice:focus-within {
	border: none;
	box-shadow: 0 0 0 4px rgba(82, 170, 217, 0.4);
}

.fq--photo .fq__tile-emoji,
.fq--photo .fq__choice-emoji {
	display: none;
}

.fq--photo .fq__tile-label,
.fq--photo .fq__choice-label {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	letter-spacing: -0.005em;
}

.fq--photo .fq__dot {
	width: 17px;
	height: 17px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.95);
	display: grid;
	place-items: center;
}

.fq--photo .fq__dot svg {
	opacity: 0;
	transition: opacity 0.16s ease;
}

.fq--photo .fq__tile:has(input:checked),
.fq--photo .fq__choice:has(input:checked) {
	background: var(--fq-blue-hi);
}

.fq--photo .fq__tile:has(input:checked) .fq__dot,
.fq--photo .fq__choice:has(input:checked) .fq__dot {
	background: #fff;
	border-color: #fff;
}

.fq--photo .fq__tile:has(input:checked) .fq__dot svg,
.fq--photo .fq__choice:has(input:checked) .fq__dot svg {
	opacity: 1;
}

/* ── proof: the quote already sits inside the white card, so strip the
      inner card chrome the branded skin gives it ── */

.fq--photo .fq__quote {
	max-width: none;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

.fq--photo .fq__quote-text {
	font-size: 17px;
	color: var(--fq-card-ink);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.fq--photo .fq__avatar {
	box-shadow: 0 0 0 3px #edf1f4;
}

.fq--photo .fq__quote-by {
	color: var(--fq-card-ink);
}

/* ── video: a fixed, wider-than-9:16 frame ──
   One frame shape for every market, so the design doesn't shift per clip. What
   it does to a clip depends on that clip's shape, and both cases are intended:
     - a full 9:16 clip (KC) is centre-cropped to ~59% of its height, which
       hides the show's lower-third banner and keeps the burned-in captions;
     - a clip already cropped at encode time (STL, 720x736 - see `clipAspect`
       in render.php) is a near match for this frame, so it only loses ~1% off
       each side and nothing off the top or bottom.
   The aspect-ratio, rather than the ref's vh-based height, is what keeps that
   percentage constant at every card width; the ref let the banner peek through
   on narrow phones. Overrides the navy skin's --fq-clip-ar frame on purpose. */
.fq--photo .fq__player {
	width: 100%;
	height: auto;
	aspect-ratio: 20 / 21;
	max-height: min(44vh, 340px);
	margin-top: 4px;
	border-radius: 14px;
	box-shadow: none;
}

.fq--photo .fq__h--video {
	margin-bottom: 14px;
}

.fq--photo .fq__sound {
	background: rgba(82, 170, 217, 0.95);
}

/* ── confirmation ── */

.fq--photo .fq__check {
	background: var(--fq-blue);
	box-shadow: 0 12px 26px -12px rgba(82, 170, 217, 0.9);
}

.fq--photo .fq__legal-close {
	background: var(--fq-blue-deep);
}

@media (min-width: 769px) {
	.fq--photo .fq__h {
		font-size: 26px;
	}
}
