/*
Theme Name: Rawz
Description: Multisite theme with internal Submissions CPT and funnel shell.
Version: 1.0.55
Text Domain: rawz
*/

/* -------------------------------------------------------------------------
   Design tokens — fallbacks only; Theme Options inject overrides on :root
   (#rawz-theme-css-vars in wp_head).
   ------------------------------------------------------------------------- */
:root {
	/* Brand palette */
	--color-page-bg:    #6A9C80;   /* sage green */
	--color-surface:    #ffffff;
	--color-text:       #1a1d26;
	--color-text-muted: #4a5568;
	--color-accent:     #D94035;   /* red — submit & selected states */
	--color-accent-soft:#fde8e6;
	--color-border:     rgba(255 255 255 / 0.22);

	/* Page typography (override via Theme Options) */
	--color-heading:    #ffffff;
	--color-body:       #1a1d26;
	--color-funnel-step-title: #ffffff;

	/* Pill / textarea brand tones */
	--color-pill-bg:       #fdd7bb;   /* resting rating / chips */
	--color-pill-hover:    #fbc9a8;   /* hover state */
	--color-pill-selected: #D94035;   /* red — rating hint + accents (pill/rating fills use orange) */
	--color-rating-active: #F97A1F;   /* selected rating tile (hint uses --color-pill-selected) */
	--color-rating-inactive: #9c9c9c; /* unselected rating numerals */
	--color-pill-text:     #1a1d26;
	--color-pill-text-sel: #ffffff;
	--color-textarea-bg:    #fdd7bb;   /* textarea fill */

	/* Typography: Ruddy headings + prose; Inter for form chips / textarea / ratings + submit */
	--font-body:    'Ruddy', Georgia, 'Times New Roman', serif;
	--font-display: 'Ruddy', Georgia, 'Times New Roman', serif;
	--font-heading-size: clamp(0.94rem, 0.91vw + 0.6rem, 1.5rem);/* white-card question labels ~16–24px */

	/* Funnel-readable body: px min/max avoids rem+vw clamp quirks on mobile Safari; ~18px @320 → 22px cap */
	--font-funnel-prose: clamp(14px, 0.5rem + 3.15vw, 22px);
	--font-inter:   'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* Radii */
	--radius-sm:   0.5rem;
	--radius-md:   0.875rem;
	--radius-lg:   1.125rem;
	--radius-pill: 9999px;

	/* Shadows (form card uses black-based lift; see --shadow-form) */
	--shadow-card:       0 2px 12px rgb(0 0 0 / 0.08), 0 0 0 1px rgb(0 0 0 / 0.04);
	--radius-form-card: 16px;
	--shadow-form:      0 4px 6px rgb(0 0 0 / 0.07),
		0 12px 24px rgb(0 0 0 / 0.12),
		0 24px 48px rgb(0 0 0 / 0.14);

	/* Spacing */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2rem;
	--space-xl: clamp(2rem, 6vw, 3rem);

	--tap-min: 2.75rem;

	/* Motion */
	--ease-out-soft:  cubic-bezier(0.22, 1, 0.36, 1);
	--ease-funnel-crossfade: cubic-bezier(0.14, 1, 0.32, 1); /* slightly more settling than --ease-out-soft */
	--duration-step:  0.28s;
	--duration-funnel-crossfade: 0.52s; /* step swap: ~subtle drama; pairs with main.js cleanup timeout */
	--duration-fast:  0.15s;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--duration-step: 0.01ms;
		--duration-funnel-crossfade: 0.01ms;
		--duration-fast: 0.01ms;
	}
}

/* -------------------------------------------------------------------------
   Ruddy — Regular + Bold (assets/fonts/Ruddy-Regular, Ruddy-Bold)
   ------------------------------------------------------------------------- */
@font-face {
	font-family: 'Ruddy';
	src:
		url('assets/fonts/Ruddy-Regular/Ruddy-Regular.woff2') format('woff2'),
		url('assets/fonts/Ruddy-Regular/Ruddy-Regular.woff')  format('woff'),
		url('assets/fonts/Ruddy-Regular/Ruddy-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style:  normal;
	font-display: swap;
}

@font-face {
	font-family: 'Ruddy';
	src:
		url('assets/fonts/Ruddy-Bold/Ruddy-Bold.woff2') format('woff2'),
		url('assets/fonts/Ruddy-Bold/Ruddy-Bold.woff')  format('woff'),
		url('assets/fonts/Ruddy-Bold/Ruddy-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style:  normal;
	font-display: swap;
}

@font-face {
	font-family: 'Ruddy';
	src:
		url('assets/fonts/Ruddy-Bold/Ruddy-Bold.woff2') format('woff2'),
		url('assets/fonts/Ruddy-Bold/Ruddy-Bold.woff')  format('woff'),
		url('assets/fonts/Ruddy-Bold/Ruddy-Bold.ttf') format('truetype');
	font-weight: 800;
	font-style:  normal;
	font-display: swap;
}

@font-face {
	font-family: 'Ruddy';
	src:
		url('assets/fonts/Ruddy-Bold/Ruddy-Bold.woff2') format('woff2'),
		url('assets/fonts/Ruddy-Bold/Ruddy-Bold.woff')  format('woff'),
		url('assets/fonts/Ruddy-Bold/Ruddy-Bold.ttf') format('truetype');
	font-weight: 900;
	font-style:  normal;
	font-display: swap;
}

/* -------------------------------------------------------------------------
   Inter — form UI (SemiBold numeric/chips; Black button)
   Self-hosted WOFF2 (latin + latin-ext, Google Fonts slices) + TTF fallback.
   assets/fonts/Inter/static/
   ------------------------------------------------------------------------- */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src:
		url('assets/fonts/Inter/static/Inter_latin-ext.woff2') format('woff2'),
		url('assets/fonts/Inter/static/Inter_18pt-SemiBold.ttf') format('truetype');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src:
		url('assets/fonts/Inter/static/Inter_latin.woff2') format('woff2'),
		url('assets/fonts/Inter/static/Inter_18pt-SemiBold.ttf') format('truetype');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src:
		url('assets/fonts/Inter/static/Inter_latin-ext.woff2') format('woff2'),
		url('assets/fonts/Inter/static/Inter_18pt-Black.ttf') format('truetype');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src:
		url('assets/fonts/Inter/static/Inter_latin.woff2') format('woff2'),
		url('assets/fonts/Inter/static/Inter_18pt-Black.ttf') format('truetype');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------
   Global reset / base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	line-height: 1.45;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-body);
	min-height: 100dvh;
	background-color: var(--color-page-bg);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* -------------------------------------------------------------------------
   Site header
   ------------------------------------------------------------------------- */
.site-header {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-block: clamp(1rem, 4vw, 1.5rem) var(--space-xs);
	padding-inline: clamp(0.6875rem, 4vw, 1rem);
}

.site-branding {
	text-align: center;
}

.site-logo-link {
	display: inline-block;
	text-decoration: none;
	transition: opacity var(--duration-fast) var(--ease-out-soft);
}

.site-logo-link:hover   { opacity: 0.88; }
.site-logo-link:focus-visible {
	outline: 2px solid var(--color-surface);
	outline-offset: 0.35rem;
	border-radius: var(--radius-sm);
}

.site-logo-link .site-logo {
	display: block;
	max-height: clamp(3rem, 10vw, 5rem);
	width: auto;
	margin-inline: auto;
}

/* text fallback when no logo image */
.site-brand-name {
	display: inline-block;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: clamp(2rem, 9vw, 4rem);
	line-height: 1;
	color: var(--color-heading);
}

/* -------------------------------------------------------------------------
   Footer — “Vezi și” (WP menu: rawz_footer_see_also)
   Background matches body / Theme Options --color-page-bg.
   ------------------------------------------------------------------------- */
nav.rawz-footer-see-also {
	background-color: var(--color-page-bg);
	transition: background-color var(--duration-step) var(--ease-out-soft);
	margin-bottom: 0px;
}

.rawz-footer-see-also__inner {
	box-sizing: border-box;
	max-width: 845px;
	margin-inline: auto;
	padding-block: var(--space-sm);
	padding-inline: clamp(0.6875rem, 4vw, 1rem);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: clamp(0.75rem, 3vw, 1.25rem);
	row-gap: var(--space-xs);
}

.rawz-footer-see-also__prefix {
	margin: 0;
	font-family: var(--font-inter);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--color-heading);
	white-space: nowrap;
}

.rawz-footer-see-also__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(0.55rem, 2.2vw, 1.25rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.rawz-footer-see-also__list > li {
	margin: 0;
	padding: 0;
}

.rawz-footer-see-also__list a {
	display: inline-block;
	font-family: var(--font-inter);
	font-weight: 700;
	font-size: clamp(13px, 6px + 2.2vw, 24px);
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffe6d5;
	transition:
		opacity var(--duration-fast) var(--ease-out-soft),
		text-decoration var(--duration-fast) var(--ease-out-soft);
}

.rawz-footer-see-also__list a:hover,
.rawz-footer-see-also__list a:focus-visible {
	opacity: 0.92;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.rawz-footer-see-also__list .current-menu-item a {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* -------------------------------------------------------------------------
   Funnel layout
   ------------------------------------------------------------------------- */
/*
 * main#primary: specificity over generic resets + Theme Options --color-page-bg.
 */
main#primary.site-main.funnel-host {
	padding-block: var(--space-sm) var(--space-xl);
	padding-inline: clamp(0.6875rem, 4vw, 1rem);
	max-width: 566px;
	margin-inline: auto;
	background-color: var(--color-page-bg);
	transition: background-color var(--duration-step) var(--ease-out-soft);
}
.funnel-root {
	position: relative;
	min-height: 60vh;
}
.funnel-root.funnel-root--step-crossfade {
	display: grid;
}

.funnel-root.funnel-root--step-crossfade > .funnel-step.funnel-step--crossfade-stack {
	grid-area: 1 / 1;
	min-width: 0;
	align-self: start;
	justify-self: stretch;
	transition: opacity var(--duration-funnel-crossfade) var(--ease-funnel-crossfade);
}

/* Stepped transition: opacity-only crossfade (no slide) */
.funnel-step.funnel-step--crossfade-enter {
	opacity: 0;
	pointer-events: none;
}

.funnel-step.funnel-step--crossfade-leave {
	opacity: 0;
	pointer-events: none;
}

/* -------------------------------------------------------------------------
   Funnel step
   ------------------------------------------------------------------------- */
.funnel-step {
	position: relative;
	border-radius: var(--radius-lg);
	padding: 0;
	padding-block-end: var(--space-md);
	transition:
		opacity  var(--duration-step) var(--ease-out-soft),
		transform var(--duration-step) var(--ease-out-soft);
	will-change: opacity;
	transform: translateZ(0);
	backface-visibility: hidden;
}

.funnel-step:focus-within { outline: none; }

/* Optional hero before step title / subtitle (Theme Options per step). */
.funnel-step__intro-image {
	margin: 0 0 clamp(0.875rem, 2.75vw + 0.52rem, 1.5rem);
	padding: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.funnel-step__intro-image .funnel-step__intro-image-el {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.funnel-step__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xs);
	text-align: center;
	margin: 0 0 clamp(1rem, 3.25vw + 0.52rem, 1.5rem);
}

.funnel-step__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.75rem, 5.85vw + 0.72rem, 3rem); /* ~28–48px in the funnel column */
	line-height: 1.22;
	letter-spacing: 0.033em;
	text-align: center;
	margin: 0;
	color: var(--color-funnel-step-title);
	text-transform: uppercase;
}

.funnel-step__subtitle {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: clamp(1.1rem, 0.9vw + 0.75rem, 1.5rem);
	line-height: 1.42;
	letter-spacing: 0.025em;
	text-align: center;
	margin: 0 0 clamp(0.4rem, 0.5vw + 0.2rem, 0.6rem);
	max-width: 36ch;
	color: var(--color-heading);
}

/* Step masthead fragments (hero / title / subtitle) interleaved via Theme Options block order */
.funnel-step__meta-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xs);
	text-align: center;
	margin: 0;
	width: 100%;
}

.funnel-step__content {
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 1vw + 0.5rem, 1.5rem);
}

/* Text blocks aligned left — vertical rhythm vs neighbouring blocks */
.funnel-block.funnel-block--text.funnel-block--align-left {
	margin-top: clamp(10px, 2vw, 14px);
	margin-bottom: clamp(10px, 2vw, 14px);
}

/* -------------------------------------------------------------------------
   Block horizontal alignment (Theme Options → Align, next to Block type)
   ------------------------------------------------------------------------- */
.funnel-block--text.funnel-block--align-center,
.funnel-block--form.funnel-block--align-center {
	text-align: center;
}

.funnel-block--text.funnel-block--align-right,
.funnel-block--form.funnel-block--align-right {
	text-align: right;
}

/* Image blocks: horizontal placement without forcing full bleed */
.funnel-block--image.funnel-block--align-center {
	display: flex;
	justify-content: center;
}

.funnel-block--image.funnel-block--align-right {
	display: flex;
	justify-content: flex-end;
}

.funnel-block--image.funnel-block--align-center .funnel-block__image,
.funnel-block--image.funnel-block--align-right .funnel-block__image {
	width: auto;
	max-width: 100%;
}

/* Form controls that are flex strips — pills centered; rating strip stays full-width spacing */
.funnel-block--form.funnel-block--align-center .funnel-field__control--pills {
	justify-content: center;
}

.funnel-block--form.funnel-block--align-right .funnel-field__control--pills {
	justify-content: flex-end;
}

.funnel-block--form.funnel-block--align-center .funnel-field__label {
	text-align: center;
}

.funnel-block--form.funnel-block--align-right .funnel-field__label {
	text-align: right;
}

.funnel-block--form.funnel-block--align-center .funnel-field__rating-hint {
	text-align: center;
}

.funnel-block--form.funnel-block--align-right .funnel-field__rating-hint {
	text-align: right;
}

/* Readable typing even when card is centred in the funnel column */
.funnel-block--form.funnel-block--align-center .funnel-field__textarea,
.funnel-block--form.funnel-block--align-center .funnel-field__textarea--pill-followup,
.funnel-block--form.funnel-block--align-right .funnel-field__textarea,
.funnel-block--form.funnel-block--align-right .funnel-field__textarea--pill-followup {
	text-align: start;
}

/* -------------------------------------------------------------------------
   Text block
   ------------------------------------------------------------------------- */
.funnel-block--text .funnel-block__heading,
h3.funnel-block__heading {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--font-funnel-prose);
	font-weight: 400;
	line-height: 1.28;
	color: var(--color-heading);
	text-transform: uppercase;
}

.funnel-block--text .funnel-block__body {
	color: var(--color-body);
	font-family: var(--font-body);
	font-size: var(--font-funnel-prose);
	font-weight: 400;
	line-height: 1.48;
	margin: 0;
	white-space: pre-line;
}

/* Narrow viewports: slightly smaller prose than --font-funnel-prose clamp */
@media (max-width: 48rem) {
	.funnel-block--text .funnel-block__body {
		font-size: 0.82rem;
	}
}

.funnel-block--text .funnel-block__body :where(p, li, h1, h2, h3, h4, h5, h6) {
	white-space: pre-line;
}

/*
 * UA styles give h1–h6 a larger font-size in em units, which overrides the parent’s
 * var(--font-funnel-prose). Inherit so the token is the visual size for rich-text headings too.
 */
.funnel-block--text .funnel-block__body :where(h1, h2, h3, h4, h5, h6) {
	font-size: inherit;
}

/* Inline rich-text tokens (Theme Options toolbar — whitelisted span classes) */
.funnel-block--text .funnel-block__body .rawz-rich-tone-heading {
	color: var(--color-heading);
}

.funnel-block--text .funnel-block__body .rawz-rich-tone-body {
	color: var(--color-body);
}

.funnel-block--text .funnel-block__body .rawz-rich-fw-bold {
	font-weight: 700;
}

.funnel-block--text .funnel-block__body .rawz-rich-fw-regular {
	font-weight: 400;
}



/* -------------------------------------------------------------------------
   Image block
   ------------------------------------------------------------------------- */
.funnel-block--image {
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.funnel-block__image {
	width: 100%;
	display: block;
}

/* -------------------------------------------------------------------------
   Form block: transparent stack — one white card per question (fieldset).
   ------------------------------------------------------------------------- */
.funnel-block--form {
	display: flex;
	flex-direction: column;
	gap: clamp(1.15rem, 3.85vw + 0.65rem, 2rem);
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	margin-block: clamp(1rem, 3vw, 1.5rem);
	padding: 0;
	min-inline-size: 0;
}

.funnel-block--form fieldset.funnel-field {
	position: relative;
	box-sizing: border-box;
	background-color: var(--color-surface);
	border: 0;
	border-radius: var(--radius-form-card);
	box-shadow: var(--shadow-form);
	margin: 0;
	min-width: 0;
	padding: clamp(1rem, 3.5vw, 1.4rem);
}

/* Visible question heading (legend is sr-only — avoids UA drawing legend outside the card) */
.funnel-block--form .funnel-field__label {
	float: none;
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 clamp(0.65rem, 2.2vw, 1rem);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--font-heading-size);
	line-height: 1.28;
	text-transform: uppercase;
	letter-spacing: 0.055em;
	text-align: left;
	color: var(--color-text);
}

/* -------------------------------------------------------------------------
   Rating — desktop: single-row strip + scroll snap when overflowing
   Rating — mobile (≤48rem): CSS grid — 5 equal columns × 2 rows (1–5, 6–10)
   ------------------------------------------------------------------------- */
.funnel-field__control--rating {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	min-width: 0;
	column-gap: 0.15rem;
	padding-block: 0.2rem;
	margin-inline: -0.125rem;
	padding-inline: 0.125rem;
	overflow-x: auto;
	overflow-y: visible;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}

.funnel-field__rating-option {
	position: relative;
	box-sizing: border-box;
	flex: 0 0 var(--tap-min);
	width: var(--tap-min);
	height: var(--tap-min);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	scroll-snap-align: center;
}

.funnel-field__rating-option input {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: var(--tap-min);
	height: var(--tap-min);
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.funnel-field__rating-option span[aria-hidden="true"] {
	box-sizing: border-box;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 0;
	display: grid;
	place-items: center;
	justify-content: center;
	align-content: center;
	width: clamp(min(2.125rem, 78%), 3.08rem - 2.4vw, 2.6rem);
	height: clamp(min(2.125rem, 78%), 3.08rem - 2.4vw, 2.6rem);
	padding: 0;
	margin: 0;
	overflow: visible;
	line-height: 1;
	border-radius: 50%;
	font-family: var(--font-inter);
	font-size: clamp(0.6875rem, 2vw, 0.75rem);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
	background: var(--color-pill-bg);
	color: var(--color-rating-inactive);
	transition:
		background-color var(--duration-fast) ease,
		color var(--duration-fast) ease;
	pointer-events: none;
	user-select: none;
}

.funnel-field__rating-option:hover span[aria-hidden="true"],
.funnel-field__rating-option:focus-within span[aria-hidden="true"] {
	background-color: var(--color-pill-hover);
}

.funnel-field__rating-option input:checked + .screen-reader-text + span[aria-hidden="true"] {
	background: var(--color-rating-active);
	color: var(--color-pill-text-sel);
}

/* hint text below rating */
.funnel-field__rating-hint {
	font-size: clamp(0.9375rem, 0.5rem + 1.85vw, 1rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-pill-selected);
	text-align: center;
	margin: 4px;
}

/* Mobile ≤48rem: five equal columns × two rows — 1–5 then 6–10 (no horizontal pan) */
@media (max-width: 48rem) {
	.funnel-field__control--rating {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: clamp(0.2rem, 1.35vw, 0.42rem);
		row-gap: clamp(0.3rem, 1.85vw, 0.52rem);
		overflow-x: visible;
		scroll-snap-type: none;
		margin-inline: 0;
		padding-inline: 0;
	}

	.funnel-field__rating-option {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 1;
		min-width: 0;
		min-height: 0;
		scroll-snap-align: unset;
	}

	.funnel-field__rating-option input {
		width: 100%;
		height: 100%;
	}

	.funnel-field__rating-option span[aria-hidden="true"] {
		width: 88%;
		height: 88%;
		font-size: clamp(0.65rem, 3.2vmin, 0.8125rem);
	}
}

/* -------------------------------------------------------------------------
   Pills (multi-select checkboxes)
   ------------------------------------------------------------------------- */
.funnel-field__control--pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.funnel-field__pill {
	display: block;
	flex: 0 1 auto;
	cursor: pointer;
}

.funnel-field__pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.funnel-field__pill-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	box-sizing: border-box;
	padding: 0.2rem clamp(0.5rem, 0.136rem + 1.82vw, 1.5rem);
	border-radius: var(--radius-pill);
	background-color: var(--color-pill-bg);
	font-family: var(--font-inter);
	font-size: clamp(0.6rem, 0.8vw + 0.4rem, 1rem);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-pill-text);
	line-height: 1.22;
	transition:
		background-color var(--duration-fast) ease,
		color var(--duration-fast) ease;
	white-space: nowrap;
}

.funnel-field__pill:hover .funnel-field__pill-text,
.funnel-field__pill:focus-within .funnel-field__pill-text {
	background-color: var(--color-pill-hover);
}

/* Selected: same tokens as `.funnel-field__rating-option` checked (solid orange fill, white numerals/type) */
.funnel-field__pill input:checked + .funnel-field__pill-text {
	background-color: var(--color-rating-active);
	color: var(--color-pill-text-sel);
}

.funnel-field--pills .funnel-field__pill-followup {
	margin-top: clamp(0.875rem, 2.5vw + 0.55rem, 1.5rem);
}

/* -------------------------------------------------------------------------
   Textarea
   ------------------------------------------------------------------------- */
textarea.funnel-field__control {
	box-sizing: border-box;
	width: 100%;
	border-radius: var(--radius-md);
	border: none;
	background: var(--color-textarea-bg);
	padding: var(--space-sm) var(--space-sm);
	font-family: var(--font-inter);
	font-size: clamp(0.8125rem, 0.6vw + 0.65rem, 1rem);
	font-weight: 400;
	line-height: 1.55;
	resize: vertical;
	color: var(--color-text);
	transition: box-shadow var(--duration-fast) ease;
}

textarea.funnel-field__control::placeholder {
	color: #3b6d4c8f;
    font-style: italic;
	font-size: 1em;
	opacity: 1;
}

textarea.funnel-field__control::-webkit-input-placeholder {
	color: #3b6d4c8f;
	font-size: 1em;
	opacity: 1;
}

textarea.funnel-field__control::-moz-placeholder {
	color: #3b6d4c8f;
	font-size: 1em;
	opacity: 1;
}

/* Hide ghost placeholder on click/tap (native placeholder often stays visible until typing). */
textarea.funnel-field__control:focus::placeholder {
	opacity: 0;
	transition: opacity var(--duration-fast) ease;
}

textarea.funnel-field__control:focus::-webkit-input-placeholder {
	opacity: 0;
	transition: opacity var(--duration-fast) ease;
}

textarea.funnel-field__control:focus::-moz-placeholder {
	opacity: 0;
}

textarea.funnel-field__control:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgb(217 64 53 / 0.22);
}

/* Step footer — submit + GDPR (only appended on steps containing a `.funnel-block--form`; see assets/js/main.js) */
.funnel-step__footer {
	margin-top: clamp(1rem, 3vw, 1.5rem);
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2.25vw + 0.45rem, 1rem);
}

/* Non-form steps: same vertical rhythm without GDPR slot */
.funnel-step__nav {
	margin-top: clamp(1rem, 3vw, 1.5rem);
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2.25vw + 0.45rem, 1rem);
}

/* GDPR consent block */
.funnel-gdpr-consent {
	font-size: clamp(0.72rem, 1.95vw + 0.62rem, 0.8125rem);
	line-height: 1.58;
	color: rgba(255 255 255 / 0.8);
	padding-inline-start: clamp(0.5625rem, 2vw, 0.75rem);
	border-left: 2px solid rgba(255 255 255 / 0.35);
}

.funnel-gdpr-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	min-height: var(--tap-min);
	padding-block: 0.15rem;
}

.funnel-gdpr-checkbox {
	appearance: none;
	-webkit-appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	align-self: flex-start;
	margin: 0.25rem 0 0;
	border-radius: var(--radius-sm);
	border: 1.5px solid rgba(255 255 255 / 0.5);
	background: transparent;
	transition:
		border-color var(--duration-fast) ease,
		background-color var(--duration-fast) ease;
}

.funnel-gdpr-checkbox:checked {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	box-shadow: inset 0 0 0 2px #fff;
}

.funnel-gdpr-checkbox:focus-visible {
	outline: 2px solid rgba(255 255 255 / 0.6);
	outline-offset: 2px;
}

.funnel-gdpr-text {
	color: rgba(255 255 255 / 0.8);
	overflow-wrap: break-word;
}

.funnel-gdpr-text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.funnel-gdpr-text a:hover,
.funnel-gdpr-text a:focus-visible {
	color: #fff;
}

/* Short rule above Trimite — minimum answered questions gate (see assets/js/main.js) */
.funnel-step__submit-requirement {
	align-self: center;
	text-align: center;
	max-width: 44ch;
	margin: 0;
	font-family: var(--font-body);
	font-size: clamp(0.75rem, 1.95vw + 0.62rem, 0.8125rem);
	line-height: 1.45;
	font-style: italic;
	color: rgba(255 255 255 / 0.9);
	transition: opacity var(--duration-fast) ease, color var(--duration-fast) ease;
}

.funnel-step__submit-requirement.rawz-submit-req-met,
.funnel-step__submit-requirement[hidden] {
	display: none;
}

.funnel-step__submit-error {
	align-self: center;
	text-align: center;
	max-width: 44ch;
	margin: 0 0 0.75rem;
	font-family: var(--font-body);
	font-size: clamp(0.8125rem, 1.95vw + 0.62rem, 0.875rem);
	line-height: 1.45;
	color: #fff5f4;
	background: rgb(217 64 53 / 0.35);
	border-radius: var(--radius-sm, 6px);
	padding: 0.5rem 0.75rem;
}

.funnel-step__submit-error[hidden] {
	display: none !important;
}

/* Submit button */
.funnel-step__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: max(3.25rem, var(--tap-min));
	padding: clamp(0.6875rem, 3vw + 0.35rem, 1rem) var(--space-md);
	border: none;
	border-radius: var(--radius-pill);
	font-family: var(--font-inter);
	font-size: clamp(1rem, 0.82rem + 2.95vw, 1.0625rem);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	color: #ffffff;
	background: var(--color-accent);
	box-shadow: 0 4px 16px rgb(217 64 53 / 0.35);
	transition:
		transform var(--duration-fast) var(--ease-out-soft),
		box-shadow var(--duration-fast) ease,
		opacity var(--duration-fast) ease;
}

.funnel-step__submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(255 255 255 / 0.4), 0 4px 16px rgb(217 64 53 / 0.35);
}

.funnel-step__submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgb(217 64 53 / 0.45);
}

.funnel-step__submit:active:not(:disabled) {
	transform: translateY(0);
}

.funnel-step__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* -------------------------------------------------------------------------
   Completion / thank-you screen
   ------------------------------------------------------------------------- */
.funnel-complete {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 60vh;
	padding: clamp(1.5rem, 5vw, var(--space-xl)) clamp(0.75rem, 3vw, 1rem);
	gap: clamp(0.75rem, 0.6rem + 2.85vw, 1rem);
}

.funnel-complete__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.35rem, 3.95vw + 0.76rem, 1.875rem); /* headline above card-scale question labels */
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-heading);
	margin: 0;
}

.funnel-complete__subtitle {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: clamp(0.9rem, 0.74rem + 2.05vw, 1.125rem);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-body);
	margin: 0;
}

/* -------------------------------------------------------------------------
   Screen-reader only
   ------------------------------------------------------------------------- */
.screen-reader-text {
	clip-path: inset(50%);
	overflow: hidden;
	position: absolute;
	width: 1px;
	height: 1px;
	white-space: nowrap;
}
