/* Family First Hypnosis — High-Intent Screener
   Palette: warm sand/cream background, deep teal-green for trust + calm,
   soft terracotta accent for the single CTA moment. Generous whitespace,
   rounded but not bubbly, nothing clinical. */

.ffh-screener {
	--ffh-ink: #20342f;
	--ffh-ink-soft: #4a5d57;
	--ffh-bg: #faf7f1;
	--ffh-card: #ffffff;
	--ffh-line: #e3ddd0;
	--ffh-teal: #2f5d56;
	--ffh-teal-dark: #1f433d;
	--ffh-accent: #c8714f;
	--ffh-accent-dark: #a85a3c;
	--ffh-error: #b3433a;
	--ffh-radius: 14px;
	--ffh-shadow: 0 4px 24px rgba(32, 52, 47, 0.08);

	max-width: 640px;
	margin: 0 auto;
	padding: 2.25rem 2rem 2rem;
	background: var(--ffh-bg);
	border: 1px solid var(--ffh-line);
	border-radius: var(--ffh-radius);
	box-shadow: var(--ffh-shadow);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--ffh-ink);
	box-sizing: border-box;
}

.ffh-screener * {
	box-sizing: border-box;
}

.ffh-screener__headline {
	font-size: 1.5rem;
	line-height: 1.3;
	margin: 0 0 0.4rem;
	color: var(--ffh-teal-dark);
	font-weight: 700;
}

.ffh-screener__subheadline {
	margin: 0 0 1.5rem;
	color: var(--ffh-ink-soft);
	font-size: 1rem;
	line-height: 1.5;
}

.ffh-screener__progress {
	height: 6px;
	background: var(--ffh-line);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.ffh-screener__progress-bar {
	height: 100%;
	width: 20%;
	background: var(--ffh-teal);
	border-radius: 999px;
	transition: width 0.3s ease;
}

.ffh-screener__step-indicator {
	margin: 0 0 1.5rem;
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ffh-ink-soft);
}

.ffh-screener__form {
	position: relative;
}

.ffh-screener__step legend {
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 1.1rem;
	padding: 0;
	color: var(--ffh-ink);
}

.ffh-screener__options {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
}

.ffh-screener__option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	background: var(--ffh-card);
	border: 1.5px solid var(--ffh-line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ffh-screener__option:hover {
	border-color: var(--ffh-teal);
}

.ffh-screener__option input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--ffh-teal);
	flex-shrink: 0;
}

.ffh-screener__option:has(input:checked) {
	border-color: var(--ffh-teal);
	background: #eef4f1;
}

.ffh-screener__option span {
	font-size: 0.98rem;
	line-height: 1.4;
}

.ffh-screener__other-wrap {
	margin: 0.5rem 0 1rem;
}

.ffh-screener__other-wrap label {
	display: block;
	font-size: 0.85rem;
	color: var(--ffh-ink-soft);
	margin-bottom: 0.3rem;
}

.ffh-screener__other-wrap input[type="text"],
.ffh-screener__fields input {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid var(--ffh-line);
	border-radius: 8px;
	font-size: 0.98rem;
	font-family: inherit;
	color: var(--ffh-ink);
	background: var(--ffh-card);
}

.ffh-screener__other-wrap input:focus,
.ffh-screener__fields input:focus {
	outline: none;
	border-color: var(--ffh-teal);
	box-shadow: 0 0 0 3px rgba(47, 93, 86, 0.15);
}

.ffh-screener__fields {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-bottom: 0.5rem;
}

.ffh-screener__fields label {
	font-size: 0.85rem;
	color: var(--ffh-ink-soft);
	margin-top: 0.6rem;
}

.ffh-screener__fields label:first-child {
	margin-top: 0;
}

.ffh-screener__error {
	min-height: 1.2em;
	color: var(--ffh-error);
	font-size: 0.88rem;
	margin-bottom: 0.5rem;
}

.ffh-screener__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.25rem;
	gap: 0.75rem;
}

.ffh-screener__nav button {
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 8px;
	padding: 0.75rem 1.4rem;
	cursor: pointer;
	border: none;
	transition: background 0.15s ease, transform 0.05s ease;
}

.ffh-screener__nav button:active {
	transform: scale(0.98);
}

.ffh-screener__back {
	background: transparent;
	color: var(--ffh-ink-soft);
	border: 1.5px solid var(--ffh-line) !important;
	margin-left: 0;
}

.ffh-screener__back:hover {
	border-color: var(--ffh-ink-soft) !important;
}

.ffh-screener__next,
.ffh-screener__submit {
	background: var(--ffh-teal);
	color: #fff;
	margin-left: auto;
}

.ffh-screener__next:hover,
.ffh-screener__submit:hover {
	background: var(--ffh-teal-dark);
}

.ffh-screener__submit {
	background: var(--ffh-accent);
}

.ffh-screener__submit:hover {
	background: var(--ffh-accent-dark);
}

.ffh-screener__step[data-step="1"] .ffh-screener__nav {
	justify-content: flex-end;
}

.ffh-screener__result {
	text-align: center;
	padding: 1.5rem 0.5rem 0.5rem;
}

.ffh-screener__result h3 {
	font-size: 1.3rem;
	color: var(--ffh-teal-dark);
	margin: 0 0 0.5rem;
}

.ffh-screener__result p {
	color: var(--ffh-ink-soft);
	line-height: 1.5;
	margin: 0 0 1.25rem;
}

.ffh-screener__booking-embed {
	margin: 0 -0.25rem 1.25rem;
	border: 1px solid var(--ffh-line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--ffh-card);
}

.ffh-screener__booking-embed iframe {
	display: block;
	width: 100%;
	/* 800px is just a sensible starting height before Acuity's embed.js
	   resizes it to match real content — embed.js sets the height inline
	   via JS afterward, so nothing here should fight that with !important
	   or a fixed max-height. */
	height: 800px;
	border: none;
}

/* Acuity's own UI needs real room; widen the whole widget once the
   calendar is showing rather than cramming it into the question width. */
.ffh-screener:has(.ffh-screener__booking-embed:not([hidden])) {
	max-width: 900px;
}

.ffh-screener__booking-link,
.ffh-screener__fallback-resource {
	display: inline-block;
	background: var(--ffh-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: 0.8rem 1.6rem;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.ffh-screener__booking-link:hover,
.ffh-screener__fallback-resource:hover {
	background: var(--ffh-accent-dark);
	color: #fff;
}

/* When the embed loaded successfully, the new-tab link is a secondary,
   low-emphasis option rather than the main call to action. */
.ffh-screener__booking-embed:not([hidden]) ~ .ffh-screener__booking-link {
	display: block;
	background: none;
	color: var(--ffh-ink-soft);
	text-decoration: underline;
	padding: 0.4rem 0;
	font-weight: 500;
	font-size: 0.85rem;
}

.ffh-screener__booking-embed:not([hidden]) ~ .ffh-screener__booking-link:hover {
	background: none;
	color: var(--ffh-ink);
}

.ffh-screener__embed-fallback-note {
	display: none;
	background: #fbf3e7;
	border: 1px solid #e8d3ab;
	color: #7a5c2e;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	font-size: 0.88rem;
	line-height: 1.5;
	margin: 0 0 1rem;
	text-align: left;
}

.ffh-screener__embed-fallback-note:not([hidden]) {
	display: block;
}

/* If the embed timed out / failed to load, the button is the real next
   step again — restore full prominence even though it's after an embed. */
.ffh-screener__booking-embed:not([hidden]) ~ .ffh-screener__booking-link.ffh-screener__booking-link--promoted {
	display: inline-block;
	background: var(--ffh-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: 0.8rem 1.6rem;
	font-size: 1rem;
}

.ffh-screener__booking-embed:not([hidden]) ~ .ffh-screener__booking-link.ffh-screener__booking-link--promoted:hover {
	background: var(--ffh-accent-dark);
	color: #fff;
}

@media (max-width: 480px) {
	.ffh-screener__booking-embed iframe {
		height: 700px;
	}
}

.ffh-screener__loading {
	text-align: center;
	color: var(--ffh-ink-soft);
	padding: 1.5rem 0;
	font-size: 0.95rem;
}

@media (max-width: 480px) {
	.ffh-screener {
		padding: 1.5rem 1.25rem;
		border-radius: 10px;
	}

	.ffh-screener__nav {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.ffh-screener__next,
	.ffh-screener__submit,
	.ffh-screener__back {
		width: 100%;
		text-align: center;
		margin-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffh-screener__progress-bar,
	.ffh-screener__option,
	.ffh-screener__nav button {
		transition: none;
	}
}
