/* Discovery funnel screens on the public booking form. Solid colours only. */

.funnel-subtitle { font-size: var(--fs-read, 18px); color: #4b5563; margin: 0 0 20px; line-height: 1.6; }

/* Choice questions: each option is a card; the whole card is the click target */
.funnel-options { display: grid; gap: 10px; margin-top: 4px; }
.funnel-options .funnel-option {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 14px 16px; margin: 0;
	border: 2px solid var(--sk-line, #e9ecef); border-radius: 12px; background: var(--sk-card, #fff);
	cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.funnel-options .funnel-option:hover { border-color: var(--sk-accent, #2A7178); }
.funnel-options .funnel-option.is-selected { border-color: var(--sk-accent, #2A7178); background: #EAF4F5; }
.funnel-options .funnel-option:focus-within { box-shadow: 0 0 0 4px rgba(42, 113, 120, 0.15); }
.funnel-options .funnel-option input {
	flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sk-accent, #2A7178); cursor: pointer;
}
.funnel-option-body { display: grid; gap: 2px; min-width: 0; }
.funnel-option-label { font-size: var(--fs-read, 18px); font-weight: 600; color: #1f2937; line-height: 1.4; }
.funnel-option-desc { display: block; color: #475569; font-size: var(--fs-read, 18px); line-height: 1.45; }

/* ── Answer layouts ─────────────────────────────────────────────────────────
   The admin picks one per question (FunnelScreenConfig::LAYOUTS); the page
   puts it on the group as data-layout. Only the look changes — the inputs,
   the pick-one rule and the stop rule are the same in every layout.
   "cards" (the default) is the rules above. */

/* Two-column cards */
.funnel-options[data-layout="cards_grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.funnel-options[data-layout="cards_grid"] .funnel-option { align-items: center; padding: 12px 14px; }
.funnel-options[data-layout="cards_grid"] .funnel-option input { margin-top: 0; }
.funnel-options[data-layout="cards_grid"] .funnel-option-label { font-size: var(--fs-read, 18px); }

/* Buttons in a row: no radio circle; the picked one fills teal. The input
   stays in the label (focusable, read by screen readers), just not drawn. */
.funnel-options[data-layout="buttons"] { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.funnel-options[data-layout="buttons"] .funnel-option {
	position: relative; justify-content: center; align-items: center;
	padding: 14px 12px; text-align: center;
}
.funnel-options[data-layout="buttons"] .funnel-option input {
	position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none;
}
.funnel-options[data-layout="buttons"] .funnel-option-body { justify-items: center; }
.funnel-options[data-layout="buttons"] .funnel-option.is-selected { background: var(--sk-accent, #2A7178); border-color: var(--sk-accent, #2A7178); }
.funnel-options[data-layout="buttons"] .funnel-option.is-selected .funnel-option-label { color: #fff; }
.funnel-options[data-layout="buttons"] .funnel-option.is-selected .funnel-option-desc { color: #D7EBED; }

/* Lists (compact, roomy, tick on the right): one bordered box of rows */
.funnel-options[data-layout^="list"] {
	gap: 0; border: 1px solid var(--sk-line, #DCEBEC); border-radius: 12px; overflow: hidden; background: var(--sk-card, #fff);
}
.funnel-options[data-layout^="list"] .funnel-option {
	align-items: center; padding: 11px 16px;
	border: 0; border-top: 1px solid #E6EFF0; border-radius: 0;
}
.funnel-options[data-layout^="list"] .funnel-option:first-child { border-top: 0; }
/* Hover / picked tint the row; the divider keeps its colour (the card rules above turn it teal). */
.funnel-options[data-layout^="list"] .funnel-option:hover { background: #F7FBFB; border-color: #E6EFF0; }
.funnel-options[data-layout^="list"] .funnel-option.is-selected { background: #EAF4F5; border-color: #E6EFF0; }
/* The box clips an outer ring, so focus is drawn inside the row. */
.funnel-options[data-layout^="list"] .funnel-option:focus-within { box-shadow: inset 0 0 0 2px rgba(42, 113, 120, 0.35); }
.funnel-options[data-layout^="list"] .funnel-option input { margin-top: 0; }
.funnel-options[data-layout^="list"] .funnel-option-label { font-size: var(--fs-read, 18px); font-weight: 500; }
.funnel-options[data-layout^="list"] .funnel-option.is-selected .funnel-option-label { color: #1D555A; font-weight: 600; }

/* Roomy list: taller rows, larger text and marker — easier to tap */
.funnel-options[data-layout="list_roomy"] .funnel-option { padding: 16px 18px; gap: 14px; }
.funnel-options[data-layout="list_roomy"] .funnel-option input { width: 20px; height: 20px; }
.funnel-options[data-layout="list_roomy"] .funnel-option-label { font-size: var(--fs-label, 19px); }

/* List with tick on the right: text first, a tick that fills teal when picked.
   Round for pick one, rounded square for pick many, so the two still differ. */
.funnel-options[data-layout="list_ticks"] .funnel-option-body { flex: 1; order: 1; }
.funnel-options[data-layout="list_ticks"] .funnel-option input {
	order: 2; appearance: none; -webkit-appearance: none;
	width: 22px; height: 22px; margin: 0; border: 1.5px solid #C9D6D9; border-radius: 50%;
	background: #fff center / 13px 13px no-repeat;
}
.funnel-options[data-layout="list_ticks"] .funnel-option input[type="checkbox"] { border-radius: 6px; }
.funnel-options[data-layout="list_ticks"] .funnel-option input:checked {
	border-color: var(--sk-accent, #2A7178); background-color: var(--sk-accent, #2A7178);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

@media (max-width: 379.98px) {
	.funnel-options[data-layout="cards_grid"] { grid-template-columns: minmax(0, 1fr); }
}

/* Extra info under a question's answers (admin rich text) */
.funnel-question-info {
	margin-top: 20px; padding: 18px 20px;
	background: var(--sk-surface-soft, #F4F9F9); border: 1px solid var(--sk-line, #DCEBEC); border-radius: 12px;
	font-size: var(--fs-read, 18px); line-height: 1.6; color: #1f2937;
}
.funnel-question-info > :first-child { margin-top: 0; }
.funnel-question-info > :last-child { margin-bottom: 0; }
.funnel-question-info p { margin: 0 0 10px; }
.funnel-question-info h3, .funnel-question-info h4, .funnel-question-info h5, .funnel-question-info h6 {
	margin: 0 0 10px; font-size: var(--fs-heading, 22px); font-weight: 700; color: #1f2937; line-height: 1.35;
}
.funnel-question-info h4, .funnel-question-info h5, .funnel-question-info h6 { font-size: var(--fs-label, 19px); }
.funnel-question-info ul, .funnel-question-info ol { margin: 0 0 12px; padding-left: 22px; }
.funnel-question-info li { margin: 4px 0; padding-left: 2px; }
.funnel-question-info li::marker { color: var(--sk-accent, #2A7178); }
.funnel-question-info li.is-check { list-style: none; margin-left: -20px; }
.funnel-question-info a { color: var(--sk-accent, #2A7178); text-decoration: underline; text-underline-offset: 3px; }

/* Extra-info blocks (FunnelInfoBlocks): a stack above or below the answers */
.funnel-info-stack { display: grid; gap: 14px; }
.funnel-info-stack--above { margin-bottom: 20px; }
.funnel-info-stack--below { margin-top: 20px; }
.funnel-info-stack .funnel-question-info { margin-top: 0; }

/* "What's included" checklist card */
.funnel-info-checklist {
	border: 1px solid var(--sk-line, #DCEBEC); border-radius: 14px; background: var(--sk-card, #fff); overflow: hidden;
}
.funnel-info-checklist-title {
	padding: 13px 20px; background: var(--sk-accent, #2A7178); color: #fff;
	font-size: var(--fs-label, 19px); font-weight: 700; line-height: 1.35;
}
.funnel-info-checklist-items {
	list-style: none; margin: 0; padding: 18px 20px;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px;
}
.funnel-info-checklist-items li {
	display: flex; align-items: flex-start; gap: 10px; margin: 0;
	font-size: var(--fs-read, 18px); line-height: 1.45; color: #1f2937;
}
.funnel-info-tick {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; margin-top: 0; border-radius: 50%;
	background: #EAF4F5; color: #2A7178;
}
.funnel-info-tick svg { width: 13px; height: 13px; stroke-width: 3; }
.funnel-info-checklist-foot {
	display: flex; justify-content: center;
	padding: 12px 20px; border-top: 1px solid #E6EFF0; background: #F7FBFB;
}
.funnel-info-badge {
	display: inline-block; padding: 5px 14px; border-radius: 999px;
	background: var(--sk-tint1-bg, #EAF4F5); color: var(--sk-tint1-ink, #1D555A); font-size: var(--fs-tag, 16px); font-weight: 700; letter-spacing: .2px;
}

/* Note / callout */
.funnel-info-callout {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 13px 16px; border-radius: 12px; border: 1px solid #CFE3E5;
	background: #EAF4F5; color: #1D555A;
}
.funnel-info-callout p { margin: 0; font-size: var(--fs-read, 18px); line-height: 1.5; }
.funnel-info-callout-icon { flex: none; display: inline-flex; color: #2A7178; margin-top: 1px; }
.funnel-info-callout-icon svg { width: 20px; height: 20px; }
.funnel-info-callout--caution { background: #FFF6E5; border-color: #F3D9A4; color: #6B4300; }
.funnel-info-callout--caution .funnel-info-callout-icon { color: #B7791F; }

/* Highlight tiles */
.funnel-info-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.funnel-info-highlights[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.funnel-info-highlights[data-count="2"],
.funnel-info-highlights[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.funnel-info-tile {
	display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
	padding: 16px 12px; border: 1px solid var(--sk-line, #DCEBEC); border-radius: 12px; background: var(--sk-card, #fff);
}
.funnel-info-tile-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%;
	background: var(--sk-tint1-bg, #EAF4F5); color: var(--sk-tint1-ink, #2A7178);
}
/* Skins rotate three tints across the highlight tiles so neighbours differ.
   Classic's fallbacks are the same teal as tile 1. */
.funnel-info-tile:nth-child(3n+2) .funnel-info-tile-icon { background: var(--sk-tint2-bg, #EAF4F5); color: var(--sk-tint2-ink, #2A7178); }
.funnel-info-tile:nth-child(3n) .funnel-info-tile-icon { background: var(--sk-tint3-bg, #EAF4F5); color: var(--sk-tint3-ink, #2A7178); }
.funnel-info-tile-icon svg { width: 20px; height: 20px; }
.funnel-info-tile-title { font-size: var(--fs-label, 19px); font-weight: 700; color: #1f2937; line-height: 1.35; }
.funnel-info-tile-text { font-size: var(--fs-read, 18px); color: #475569; line-height: 1.45; }

/* A list block's optional heading (steps, testimonials, FAQ) */
.funnel-info-heading { margin: 0 0 12px; font-size: var(--fs-heading, 22px); font-weight: 700; color: #1f2937; line-height: 1.35; }

/* How it works: numbered circles joined by a teal line (stacked on a phone) */
.funnel-info-steps-list {
	--steps: 3;
	position: relative; list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 12px;
}
.funnel-info-steps-list[data-count="1"] { --steps: 1; }
.funnel-info-steps-list[data-count="2"] { --steps: 2; }
.funnel-info-steps-list[data-count="4"] { --steps: 4; }
.funnel-info-steps-list[data-count="5"] { --steps: 5; }
.funnel-info-steps-list::before {
	content: ''; position: absolute; top: 18px; height: 3px; background: var(--sk-accent, #2A7178);
	left: calc(50% / var(--steps)); right: calc(50% / var(--steps));
}
.funnel-info-steps-list[data-count="1"]::before { display: none; }
.funnel-info-steps-list li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin: 0; }
.funnel-info-step-num {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 38px; height: 38px; border-radius: 50%; background: var(--sk-pop, #2A7178); color: var(--sk-pop-ink, #fff);
	font-size: 17px; font-weight: 700; box-shadow: 0 0 0 4px #fff;
}
.funnel-info-step-body { display: grid; gap: 2px; }
.funnel-info-step-body strong { font-size: var(--fs-label, 19px); color: #1f2937; line-height: 1.35; }
.funnel-info-step-body span { font-size: var(--fs-read, 18px); color: #475569; line-height: 1.45; }

/* Testimonials: one card, or a slider of them */
.funnel-info-quote {
	display: flex; align-items: flex-start; gap: 16px; margin: 0;
	padding: 18px 20px; border: 1px solid var(--sk-line, #DCEBEC); border-radius: 14px; background: var(--sk-card, #fff);
}
.funnel-info-quote-photo {
	flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
	border: 2px solid var(--sk-accent, #2A7178); background: #EAF4F5;
}
.funnel-info-quote-body { display: grid; gap: 8px; min-width: 0; }
.funnel-info-quote-stars { display: flex; gap: 2px; color: var(--sk-star, #B7791F); }
.funnel-info-quote-stars svg { width: 16px; height: 16px; fill: currentColor; }
.funnel-info-quote-text {
	margin: 0; padding: 0; border: 0; font-family: Georgia, 'Times New Roman', serif;
	font-size: 18px; line-height: 1.55; color: #1f2937; white-space: pre-line;
}
.funnel-info-quote-who { font-size: var(--fs-read, 18px); color: #475569; }
.funnel-info-quote-result {
	justify-self: start; padding: 4px 12px; border-radius: 999px;
	background: #EAF4F5; color: #1D555A; font-size: var(--fs-tag, 16px); font-weight: 700;
}
.funnel-info-slider-viewport { display: grid; touch-action: pan-y; }
.funnel-info-slider-viewport > .funnel-info-quote { grid-area: 1 / 1; }
.funnel-info-slider-viewport > .funnel-info-quote.is-offstage { visibility: hidden; }
.funnel-info-slider-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.funnel-info-slider-arrow {
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sk-line, #CFE3E5);
	background: #fff; color: var(--sk-accent, #2A7178); font-size: 18px; line-height: 1; cursor: pointer;
}
.funnel-info-slider-arrow:hover { background: #EAF4F5; }
.funnel-info-slider-arrow:focus-visible,
.funnel-info-slider-dot:focus-visible { outline: 2px solid var(--sk-accent, #2A7178); outline-offset: 2px; }
.funnel-info-slider-dots { display: flex; gap: 8px; }
.funnel-info-slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #CBD5E1; cursor: pointer; }
.funnel-info-slider-dot.is-current { background: var(--sk-accent, #2A7178); }
.funnel-info-results-note { margin: 10px 0 0; font-size: var(--fs-tag, 16px); color: #475569; line-height: 1.5; }

/* FAQ: the browser's own open / close */
.funnel-info-faq { border-top: 1px solid #E6EFF0; }
.funnel-info-faq .funnel-info-heading { padding-top: 4px; }
.funnel-info-faq-item { border-bottom: 1px solid #E6EFF0; }
.funnel-info-faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 2px; cursor: pointer; list-style: none;
	font-size: var(--fs-label, 19px); font-weight: 700; color: #1f2937; line-height: 1.4;
}
.funnel-info-faq-item summary::-webkit-details-marker { display: none; }
.funnel-info-faq-item summary:focus-visible { outline: 2px solid var(--sk-accent, #2A7178); outline-offset: 2px; }
.funnel-info-faq-chev {
	flex: none; width: 9px; height: 9px; margin-right: 4px;
	border: solid var(--sk-accent, #2A7178); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s;
}
.funnel-info-faq-item[open] .funnel-info-faq-chev { transform: rotate(-135deg); }
.funnel-info-faq-answer { padding: 0 2px 14px; font-size: var(--fs-read, 18px); color: #475569; line-height: 1.6; white-space: pre-line; }

/* Big numbers */
.funnel-info-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.funnel-info-stats[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.funnel-info-stats[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.funnel-info-stat {
	display: grid; gap: 2px; justify-items: center; text-align: center;
	padding: 16px 12px; border-radius: 12px; background: var(--sk-surface-soft, #EAF4F5);
}
.funnel-info-stat-value { font-size: 32px; font-weight: 700; color: var(--sk-pop-text, #2A7178); line-height: 1.15; }
.funnel-info-stat-caption { font-size: var(--fs-read, 18px); color: #1D555A; line-height: 1.4; }

/* An Info screen's body is a block stack of its own. Its Free text is the
   screen's own copy, so it reads as plain paragraphs (as Info screens did
   before blocks), not in the tinted box a question's extra info uses. */
.funnel-content-blocks { gap: 22px; }
.funnel-content-blocks > .funnel-question-info {
	margin: 0; padding: 0; background: none; border: 0; border-radius: 0; font-size: var(--fs-read, 18px); line-height: 1.7;
}

@media (max-width: 575.98px) {
	.funnel-info-checklist-items { grid-template-columns: minmax(0, 1fr); padding: 16px; }
	.funnel-info-checklist-title { padding: 12px 16px; }
	.funnel-info-highlights,
	.funnel-info-highlights[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.funnel-info-highlights[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
	/* Steps stack: the line runs down through the circles. */
	.funnel-info-steps-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.funnel-info-steps-list::before { top: 19px; bottom: 19px; left: 18px; right: auto; width: 3px; height: auto; }
	.funnel-info-steps-list li { flex-direction: row; align-items: center; text-align: left; gap: 14px; }
	.funnel-info-quote { flex-direction: column; align-items: center; text-align: center; padding: 16px; }
	.funnel-info-quote-result { justify-self: center; }
	.funnel-info-quote-stars { justify-content: center; }
	.funnel-info-stat-value { font-size: 26px; }
	.funnel-info-stats { gap: 8px; }
	.funnel-info-stat { padding: 12px 6px; }
}

/* Date-of-birth question: the calendar FLOATS over the Continue button (and
   past the card's bottom edge — .booking-wizard only clips sideways), right
   under the date box, so opening it never moves the page. */
.funnel-screen .booking-dob-pop {
	top: 54px; /* 48px input + 6px gap, over the hint line */
	z-index: 1000;
	width: 300px;
	max-width: 100%;
}

/* An answer the admin marked as stopping the patient was picked */
.funnel-stop-note {
	margin-top: 16px; padding: 14px 16px;
	border: 1px solid #f1aeb5; border-left: 4px solid #dc3545; border-radius: 10px;
	background: #fdecee; color: #842029; font-size: var(--fs-read, 18px); line-height: 1.5;
}
.funnel-stop-note p { margin: 0; white-space: pre-line; }
.funnel-stop-note[hidden] { display: none; }
.funnel-computed .funnel-result-stop { text-align: left; margin: 16px 0 0; }
/* Extra info ABOVE the answers sits between the question and its options */
.funnel-question-info + .funnel-question { margin-top: 18px; }
.funnel-subtitle + .funnel-question-info { margin-top: 0; }

/* Contact details: first/last name side by side, then email and phone */
.funnel-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.funnel-contact-grid .funnel-contact-field { margin: 0; }
@media (max-width: 520px) { .funnel-contact-grid { grid-template-columns: 1fr; } }

/* Final "Your information" step: fields filled in from the funnel are read-only */
.booking-form-input.is-prefilled { background-color: #eef4f4; border-color: #d5e3e4; color: #334155; cursor: default; }
.booking-form-input.is-prefilled:hover, .booking-form-input.is-prefilled:focus { border-color: #d5e3e4; box-shadow: none; }
.booking-dob-toggle:disabled { opacity: .45; cursor: default; }
.booking-dob-wrap.is-locked .booking-dob-pop { display: none !important; }
.funnel-prefill-note {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 18px; padding: 10px 14px;
	border-radius: 10px; background: #EAF4F5; color: #1f4f53; font-size: var(--fs-read, 18px);
}
.funnel-prefill-edit {
	margin-left: auto; padding: 4px 12px; border: 1px solid var(--sk-accent, #2A7178); border-radius: 8px;
	background: #fff; color: var(--sk-accent, #2A7178); font-weight: 600; font-size: var(--fs-tag, 16px); cursor: pointer;
}
.funnel-prefill-edit:hover { background: var(--sk-accent, #2A7178); color: #fff; }

/* The shorter last step when the funnel already gave every detail
   (applyFunnelCompactLayout(), booking-js/funnel.php). Hidden, not removed:
   the read-only fields are still submitted. */
.is-details-compact [data-funnel-compact="details"],
.is-funnel-short [data-funnel-compact="extra"] { display: none !important; }
#additionalInfoHeading[hidden], #additionalQuestionsHeading[hidden] { display: none; }
/* "Your personal information": a <details> accordion, closed by default */
.funnel-details-card {
	margin: 0 0 20px; border: 1px solid #D6E6E8; border-radius: 12px; background: #F7FAFA;
}
.funnel-details-head {
	display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none;
	border-radius: 12px;
}
.funnel-details-head::-webkit-details-marker { display: none; }
.funnel-details-head:focus-visible { outline: 2px solid var(--sk-accent, #2A7178); outline-offset: 2px; }
.funnel-details-title { font-size: var(--fs-label, 19px); font-weight: 700; color: #1f2f33; }
.funnel-details-chevron {
	margin-left: auto; width: 10px; height: 10px; flex-shrink: 0;
	border-right: 2px solid var(--sk-accent, #2A7178); border-bottom: 2px solid var(--sk-accent, #2A7178);
	transform: translateY(-3px) rotate(45deg); transition: transform .15s ease;
}
.funnel-details-card[open] .funnel-details-chevron { transform: translateY(2px) rotate(-135deg); }
.funnel-details-card[open] .funnel-details-head { border-bottom: 1px solid #D6E6E8; border-radius: 12px 12px 0 0; }
.funnel-details-body { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px 14px; }
.funnel-details-lines { flex: 1 1 auto; min-width: 0; }
.funnel-details-body .funnel-prefill-edit { flex-shrink: 0; }
.funnel-details-line { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; font-size: var(--fs-read, 18px); line-height: 1.5; color: #1f2f33; }
.funnel-details-line.is-muted { color: #475569; }
.funnel-details-bit.is-nowrap { white-space: nowrap; }
.funnel-details-bit.is-email { min-width: 0; overflow-wrap: anywhere; }

/* Number questions (height & weight): a grid, units inside the boxes */
.funnel-number-group {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 16px;
}
.funnel-number-group .funnel-number-field { margin: 0; }
.funnel-input-wrap { position: relative; }
.funnel-input-wrap.has-unit .booking-form-input { padding-right: 48px; }
.funnel-input-wrap .booking-form-input { -moz-appearance: textfield; appearance: textfield; }
.funnel-input-wrap .booking-form-input::-webkit-outer-spin-button,
.funnel-input-wrap .booking-form-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.funnel-unit {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	font-size: var(--fs-tag, 16px); font-weight: 600; color: #64748b; pointer-events: none;
}
.funnel-disclaimer { font-size: var(--fs-tag, 16px); color: #475569; margin: 14px 0 0; line-height: 1.5; }

/* Tones shared by result messages, scales and the live preview */
.funnel-tone-neutral { --funnel-tone: #94a3b8; --funnel-tone-bg: #f1f5f9; --funnel-tone-text: #334155; }
.funnel-tone-amber   { --funnel-tone: #f59e0b; --funnel-tone-bg: #fef3c7; --funnel-tone-text: #78350f; }
.funnel-tone-green   { --funnel-tone: #10b981; --funnel-tone-bg: #d1fae5; --funnel-tone-text: #064e3b; }
.funnel-tone-red     { --funnel-tone: #ef4444; --funnel-tone-bg: #fee2e2; --funnel-tone-text: #7f1d1d; }

/* Calculation screen */
.funnel-computed { text-align: left; }
.funnel-computed-label { font-size: var(--fs-read, 18px); font-weight: 600; color: #475569; margin: 0 0 4px; }
/* The number and its range name side by side, on one baseline */
.funnel-computed-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 6px 0 22px; }
.funnel-computed-value {
	font-family: "fields", Georgia, "Times New Roman", serif;
	font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -1px; color: #2E565B;
}
.funnel-computed-range { font-size: 21px; color: #475569; }
/* The bar: a gap between ranges, the patient's value as a pin */
.funnel-scale { margin: 0 0 18px; padding-top: 22px; }
.funnel-scale-track { position: relative; display: flex; gap: 6px; height: 12px; }
.funnel-scale-seg { position: relative; display: block; flex: 1 1 0; min-width: 6px; height: 100%; border-radius: 4px; background: var(--funnel-tone); }
.funnel-scale-seg--empty { background: #e2e8f0; }
.funnel-scale-marker { position: absolute; bottom: 0; top: -20px; width: 2px; margin-left: -1px; background: #1f2f33; pointer-events: none; }
.funnel-scale-marker::before {
	content: ''; position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
	border-radius: 50%; background: #1f2f33; box-shadow: 0 0 0 2px #fff;
}
.funnel-scale-labels { display: flex; gap: 6px; margin-top: 10px; }
.funnel-scale-label { flex: 1 1 0; min-width: 6px; font-size: var(--fs-tag, 16px); color: #475569; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.funnel-scale-label.is-narrow { visibility: hidden; }
.funnel-computed-note { margin-top: 6px; }
@media (max-width: 575.98px) {
	.funnel-computed-value { font-size: 56px; }
	.funnel-computed-range { font-size: 19px; }
	.funnel-scale-label { font-size: var(--fs-tag, 16px); }
}

/* Live preview under a question (Task 15) */
.funnel-live { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; }
.funnel-live-label { font-size: var(--fs-read, 18px); color: #64748b; }
.funnel-live-value { font-size: 24px; font-weight: 700; color: #0f172a; }
.funnel-live-band { grid-column: 1 / -1; font-size: var(--fs-read, 18px); color: var(--funnel-tone-text, #64748b); }

/* Recommendation */
/* The patient's answers, as a row of chips */
.funnel-summary-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.funnel-summary-chip {
	display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px;
	border-radius: 999px; background: #EAF4F5; color: #1D555A; font-size: var(--fs-read, 18px);
}
.funnel-summary-label { color: #1D555A; }
.funnel-summary-value { font-weight: 700; color: #1D555A; }
.funnel-med-group { display: grid; gap: 10px; }
.funnel-med-others { font-size: var(--fs-read, 18px); font-weight: 700; color: #475569; margin: 12px 0 0; }

/* The radio is real (keyboard + screen reader) but drawn as a check mark */
.funnel-med-radio { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.funnel-med-mark {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b8c7ca; background: #fff; color: transparent;
}
.funnel-med-mark svg { width: 13px; height: 13px; stroke-width: 3; }
.is-picked > .funnel-med-mark,
.is-picked .funnel-med-hero .funnel-med-mark { border-color: var(--sk-accent, #2A7178); background: var(--sk-accent, #2A7178); color: #fff; }
.funnel-med-radio:focus-visible + .funnel-med-mark { outline: 2px solid var(--sk-accent, #2A7178); outline-offset: 2px; }

/* The featured medicine: tinted header (photo, name, price), then what it includes */
.funnel-med-card {
	position: relative; display: block; border: 1px solid var(--sk-line, #CFE3E5); border-radius: 16px;
	overflow: hidden; cursor: pointer; background: var(--sk-card, #fff);
}
.funnel-med-card.is-picked { border: 2px solid var(--sk-accent, #2A7178); }
.funnel-med-card > .funnel-med-mark { position: absolute; top: 16px; right: 16px; }
.funnel-med-hero {
	display: flex; align-items: center; gap: 16px; padding: 22px 56px 20px 24px; background: var(--sk-surface-soft, #EAF4F5);
}
.funnel-med-titles { flex: 1; min-width: 0; display: grid; gap: 4px; }
.funnel-med-badge { font-size: var(--fs-tag, 16px); font-weight: 700; color: var(--sk-pop-text, #2A7178); letter-spacing: .2px; }
.funnel-med-card .funnel-med-name {
	font-family: "fields", Georgia, "Times New Roman", serif;
	font-size: 28px; font-weight: 700; line-height: 1.2; color: #1f2f33;
}
.funnel-med-price { flex: none; display: grid; justify-items: end; text-align: right; gap: 2px; }
.funnel-med-price .funnel-med-amount {
	font-family: "fields", Georgia, "Times New Roman", serif;
	font-size: 36px; font-weight: 700; line-height: 1; color: #2E565B;
}
.funnel-med-amount-note { font-size: var(--fs-tag, 16px); color: #475569; line-height: 1.35; max-width: 170px; }
.funnel-med-body { display: block; padding: 18px 24px 20px; }
/* With a photo: what it includes on the left (one column), the photo on the right */
.funnel-med-body.has-photo {
	display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center;
}
.funnel-med-body.has-photo .funnel-med-checks { grid-template-columns: minmax(0, 1fr); }
.funnel-med-photo {
	display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain;
	border-radius: 12px; background: #fff;
}

/* A medicine's description: "Includes:" heading, ticked items, short closing badges */
.funnel-med-desc { display: grid; gap: 10px; font-size: var(--fs-read, 18px); color: #334155; line-height: 1.5; }
.funnel-med-desc-head { display: block; font-size: var(--fs-read, 18px); font-weight: 700; color: #475569; }
.funnel-med-desc-line { display: block; }
/* A short closing line after the list (e.g. "Cancel at any time!"): prominent
   text, deliberately NOT a pill — a filled shape read as a button nobody could
   press. Solid red, bold, underlined; #B42318 is 6.5:1 on white. */
.funnel-med-desc-note {
	justify-self: start; margin-top: 4px;
	color: #B42318; font-size: var(--fs-read, 18px); font-weight: 700; line-height: 1.35;
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
	cursor: default;
}
.funnel-med-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.funnel-med-check { display: block; position: relative; padding-left: 32px; min-height: 22px; }
.funnel-med-check::before {
	content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #EAF4F5;
}
.funnel-med-check::after {
	content: ''; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px;
	border: solid #2A7178; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Any other medicine: one compact row, details behind "What's included" */
.funnel-med-row {
	position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
	border: 1px solid var(--sk-line, #DCE5E7); border-radius: 12px; cursor: pointer; background: var(--sk-card, #fff);
}
.funnel-med-row.is-picked { border: 2px solid var(--sk-accent, #2A7178); padding: 13px 15px; }
.funnel-med-row > .funnel-med-mark { margin-top: 2px; }
.funnel-med-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid #DCE5E7; }
.funnel-med-row-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.funnel-med-row .funnel-med-name { font-size: var(--fs-label, 19px); font-weight: 700; color: #1f2937; line-height: 1.35; }
.funnel-med-details summary {
	display: inline-block; cursor: pointer; list-style: none;
	font-size: var(--fs-read, 18px); font-weight: 600; color: var(--sk-accent, #2A7178); text-decoration: underline; text-underline-offset: 3px;
}
.funnel-med-details summary::-webkit-details-marker { display: none; }
.funnel-med-details[open] summary { margin-bottom: 10px; }
.funnel-med-details .funnel-med-desc { font-size: var(--fs-read, 18px); }
.funnel-med-details .funnel-med-desc-note { font-size: var(--fs-read, 18px); }
.funnel-med-details .funnel-med-checks { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.funnel-med-row-price { flex: none; display: grid; justify-items: end; text-align: right; gap: 2px; }
.funnel-med-row-price .funnel-med-amount { font-size: 20px; font-weight: 700; color: #1f2937; line-height: 1.2; }
.funnel-med-row-price .funnel-med-amount-note { font-size: var(--fs-tag, 16px); max-width: 130px; }

@media (max-width: 575.98px) {
	.funnel-med-hero { flex-wrap: wrap; padding: 18px 52px 16px 18px; gap: 12px; }
	.funnel-med-body.has-photo { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.funnel-med-photo { order: -1; justify-self: center; width: auto; max-width: 100%; max-height: 180px; }
	.funnel-med-card .funnel-med-name { font-size: 24px; }
	.funnel-med-price { box-sizing: border-box; flex-basis: 100%; display: flex; align-items: baseline; text-align: left; gap: 8px; }
	.funnel-med-price .funnel-med-amount { font-size: 30px; }
	.funnel-med-amount-note { max-width: none; }
	.funnel-med-body { padding: 16px 18px 18px; }
	.funnel-med-checks { grid-template-columns: minmax(0, 1fr); }
	.funnel-med-row { flex-wrap: wrap; }
	.funnel-med-row-price { box-sizing: border-box; flex-basis: 100%; display: flex; align-items: baseline; text-align: left; gap: 6px; padding-left: 38px; }
}

/* Analyzing: Continue waits (hidden, space kept) until the animation ends */
#nextBtn.is-funnel-waiting { visibility: hidden; }
/* Analyzing */
.funnel-progress { text-align: center; padding: 8px 0 4px; }
.funnel-progress-pct { font-size: var(--fs-tag, 16px); font-weight: 600; color: #0f766e; margin-bottom: 8px; }
.funnel-progress-track { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin: 0 auto 18px; max-width: 420px; }
.funnel-progress-bar { height: 100%; width: 0; background: #0f766e; }
.funnel-checklist { list-style: none; margin: 0 auto; padding: 0; max-width: 360px; text-align: left; }
.funnel-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: var(--fs-read, 18px); color: #94a3b8; }
.funnel-check.is-active, .funnel-check.is-done { color: #0f172a; }
.funnel-check-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; position: relative; }
.funnel-check.is-done .funnel-check-icon { background: #0f766e; border-color: #0f766e; }
.funnel-check.is-done .funnel-check-icon::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.funnel-ring-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.funnel-ring { width: 140px; height: 140px; }
.funnel-ring-track { fill: none; stroke: #e2e8f0; stroke-width: 8; }
.funnel-ring-bar { fill: none; stroke: #0f766e; stroke-width: 8; stroke-linecap: round; }
.funnel-progress--ring .funnel-progress-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0; color: #0f172a; }
.funnel-progress-message { min-height: 24px; margin: 16px 0 0; font-size: var(--fs-read, 18px); color: #0f172a; }

@media (prefers-reduced-motion: reduce) {
    .funnel-progress-bar, .funnel-ring-bar, .funnel-details-chevron { transition: none; }
}
