/*
Theme Name: Marqway
Theme URI: https://themarq.com
Author: The Marq
Description: The Marq Way Ambassadors — a split-screen recognition landing page. Four editable value boxes with popups on the left, fixed brand hero on the right, and a two-step conditional nomination form. Teal (#054053) + warm off-white (#DEDBD0), Merriweather. Mobile-first, viewport-locked on desktop.
Version: 1.4.1
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: marqway
*/

/* ============================================================
   Custom properties (palette + fallbacks the dynamic CSS overrides)
   ============================================================ */
:root {
	--tai-main: #054053;            /* Teal */
	--tai-main-rgb: 5, 64, 83;
	--tai-second: #DEDBD0;          /* Warm off-white */
	--tai-second-rgb: 222, 219, 208;

	/* Derived surfaces */
	--tai-bg: #043542;              /* slightly darker teal page bg */
	--tai-panel: #054053;           /* form/values panel */
	--tai-panel-2: #064a5f;         /* raised surfaces (boxes, modal) */
	--tai-border: rgba(var(--tai-second-rgb), 0.16);
	--tai-border-strong: rgba(var(--tai-second-rgb), 0.30);

	/* Text on teal */
	--tai-text: #fbf1dd;
	--tai-text-dim: rgba(251, 241, 221, 0.66);
	--tai-text-faint: rgba(251, 241, 221, 0.40);

	--btn-bg: #054053;
	--btn-txt: #DEDBD0;

	/* Overlay/vignette — overridden by wp_add_inline_style() */
	--tai-overlay-bg:
		linear-gradient(115deg, rgba(5,64,83,0.92) 0%, rgba(5,64,83,0.78) 50%, rgba(5,64,83,0.62) 100%),
		radial-gradient(120% 80% at 28% 38%, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0) 60%);
	--tai-vignette-bg:
		linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0.08) 55%, rgba(0,0,0,0.60) 100%);
	--tai-hero-focus: center center;

	--tai-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--tai-maxw: 560px;

	/* Rounded corners (soft, not sharp) */
	--tai-radius-sm: 10px;
	--tai-radius: 16px;
	--tai-radius-lg: 22px;
	--tai-radius-pill: 999px;
}

/* ============================================================
   Reset / base (MOBILE-FIRST: natural document flow)
   ============================================================ */
* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
}

body.marqway {
	font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
	font-weight: 300;
	background: var(--tai-bg);
	color: var(--tai-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
	font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* The split container: in the base it is simple stacked flow */
.tai-split {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
}

/* Mobile-first stacking order: hero on top, form below.
   (Desktop >=1025px overrides these orders in its own media query.) */
.tai-hero { order: 1; }
.tai-left { order: 2; }

/* ============================================================
   HERO (mobile: stacked on top, relative)
   ============================================================ */
.tai-hero {
	position: relative;
	width: 100%;
	min-height: 64vh;
	overflow: hidden;
	background: var(--tai-main);
}

.tai-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--tai-hero-image, none);
	background-size: cover;
	background-position: var(--tai-hero-focus);
	background-repeat: no-repeat;
	background-color: var(--tai-main);
}

.tai-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--tai-overlay-bg);
}

.tai-hero-vignette {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--tai-vignette-bg);
	pointer-events: none;
}

.tai-hero-inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	padding: 54px 26px;
	min-height: 64vh;
}

.tai-watermark {
	position: absolute;
	right: 2%;
	bottom: 0;
	z-index: 0;
	font-size: 88px;
	font-weight: 700;
	letter-spacing: -0.04em;
	color: var(--tai-second);
	opacity: 0.014;
	pointer-events: none;
	user-select: none;
	line-height: 0.8;
	white-space: nowrap;
}

/* Brand logo at top of hero */
.tai-logo { margin-bottom: 6px; }
.tai-logo img { display: block; }

/* Eyebrow */
.tai-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--tai-text-dim);
}
.tai-eyebrow::before {
	content: "";
	width: 30px;
	height: 1px;
	background: var(--tai-border-strong);
	flex: none;
}

/* Headline — mixed weight, two lines */
.tai-headline {
	margin: 0;
	font-weight: 700;
	font-size: clamp(34px, 9vw, 48px);
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--tai-text);
}
.tai-headline .light {
	display: block;
	font-weight: 300;
	font-style: italic;
	color: var(--tai-text-dim);
}

/* Headline lockup image (replaces the text headline) */
.tai-headline-img {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}
.tai-headline-img img { display: block; }
.tai-headline-sub {
	font-size: clamp(18px, 3vw, 24px);
	font-weight: 300;
	font-style: italic;
	color: var(--tai-text-dim);
	letter-spacing: 0.01em;
}

.tai-hero-body {
	margin: 0;
	max-width: 44ch;
	font-size: 15px;
	font-weight: 300;
	color: var(--tai-text-dim);
	line-height: 1.7;
}

/* Route element */
.tai-route {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 4px;
}
.tai-route-node { display: flex; flex-direction: column; gap: 4px; }
.tai-route-code {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--tai-text);
}
.tai-route-label {
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tai-text-faint);
}
.tai-route-sep {
	flex: 1;
	min-width: 28px;
	height: 1px;
	background: var(--tai-border-strong);
	position: relative;
}
.tai-route-sep::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px; height: 5px;
	border-top: 1px solid var(--tai-border-strong);
	border-right: 1px solid var(--tai-border-strong);
	transform: translateY(-50%) rotate(45deg);
}

/* Hero footer row */
.tai-hero-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin-top: 10px;
	padding-top: 20px;
	border-top: 1px solid var(--tai-border);
}
.tai-hero-foot-item { display: flex; flex-direction: column; gap: 5px; }
.tai-foot-label {
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tai-text-faint);
}
.tai-foot-value {
	font-size: 13px;
	font-weight: 400;
	color: var(--tai-text);
}

/* ============================================================
   VALUES BLOCK — now lives inside the hero panel (left side)
   ============================================================ */
.tai-hero-values {
	margin-top: 14px;
	padding-top: 30px;
	border-top: 1px solid var(--tai-border);
}
.tai-hero-values .tai-left-head { margin-bottom: 22px; }
/* On the photographic hero, give the boxes a translucent dark surface so
   they read regardless of the background image. */
.tai-hero-values .tai-value-box {
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-color: rgba(var(--tai-second-rgb), 0.22);
}

/* Support line under the value boxes */
.tai-support {
	margin: 26px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--tai-border);
	font-size: 13px;
	font-weight: 300;
	color: var(--tai-text-dim);
	line-height: 1.7;
}
.tai-support a {
	color: var(--tai-text);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid var(--tai-border-strong);
	transition: border-color 0.3s var(--tai-ease), color 0.3s var(--tai-ease);
	white-space: nowrap;
}
.tai-support a:hover {
	color: var(--tai-second);
	border-color: var(--tai-second);
}

/* ============================================================
   FORM PANEL (now on the RIGHT — solid teal)
   ============================================================ */
.tai-left {
	position: relative;
	width: 100%;
	background: var(--tai-panel);
	padding: 48px 24px 64px;
}

.tai-left-head { margin-bottom: 34px; }
.tai-overline {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--tai-text);
}
.tai-overline::before {
	content: "";
	width: 18px; height: 1px;
	background: var(--tai-border-strong);
	flex: none;
}
.tai-left-title {
	margin: 16px 0 6px;
	font-size: 24px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--tai-text);
}
.tai-left-sub {
	margin: 0;
	font-size: 14px;
	font-style: italic;
	font-weight: 300;
	color: var(--tai-text-dim);
}

/* Values grid: 2x2 */
.tai-values {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 44px;
}

.tai-value-box {
	position: relative;
	text-align: left;
	background:
		linear-gradient(150deg, rgba(var(--tai-second-rgb), 0.10) 0%, rgba(var(--tai-second-rgb), 0) 55%),
		rgba(3, 26, 34, 0.42);
	border: 1px solid var(--tai-border);
	border-radius: var(--tai-radius);
	padding: 24px 22px 22px;
	color: var(--tai-text);
	transition: transform 0.4s var(--tai-ease), border-color 0.4s var(--tai-ease), background 0.4s var(--tai-ease), box-shadow 0.4s var(--tai-ease);
	overflow: hidden;
	min-height: 168px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
/* glow accent that grows on hover, top-right */
.tai-value-box::after {
	content: "";
	position: absolute;
	top: -40px; right: -40px;
	width: 120px; height: 120px;
	background: radial-gradient(circle, rgba(var(--tai-second-rgb), 0.18) 0%, rgba(var(--tai-second-rgb), 0) 70%);
	opacity: 0;
	transition: opacity 0.45s var(--tai-ease);
	pointer-events: none;
}
.tai-value-box::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	border-radius: var(--tai-radius) 0 0 var(--tai-radius);
	background: var(--tai-second);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.45s var(--tai-ease);
}
.tai-value-box:hover {
	transform: translateY(-4px);
	border-color: var(--tai-border-strong);
	box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
}
.tai-value-box:hover::before { transform: scaleY(1); }
.tai-value-box:hover::after { opacity: 1; }
.tai-value-box:focus-visible {
	outline: 1px solid var(--tai-second);
	outline-offset: 2px;
}

/* Header row: icon next to title */
.tai-value-head {
	display: flex;
	align-items: center;
	gap: 14px;
}
.tai-value-icon {
	width: 54px; height: 54px;
	flex: none;
	display: flex; align-items: center; justify-content: center;
	color: var(--tai-second);
	background: rgba(var(--tai-second-rgb), 0.08);
	border: 1px solid var(--tai-border);
	border-radius: var(--tai-radius-sm);
	transition: background 0.4s var(--tai-ease), transform 0.4s var(--tai-ease);
}
.tai-value-box:hover .tai-value-icon {
	background: rgba(var(--tai-second-rgb), 0.14);
	transform: scale(1.04);
}
.tai-value-icon img { width: 32px; height: 32px; object-fit: contain; }
.tai-value-icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.tai-value-title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--tai-text);
	margin: 0;
	line-height: 1.2;
}
.tai-value-motto {
	font-size: 13px;
	font-style: italic;
	font-weight: 300;
	color: var(--tai-text-dim);
	margin: 0;
	line-height: 1.5;
}
.tai-value-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tai-text-faint);
	transition: color 0.3s var(--tai-ease), gap 0.3s var(--tai-ease);
}
.tai-value-box:hover .tai-value-more { color: var(--tai-second); gap: 10px; }

/* ============================================================
   MODAL (value popup)
   ============================================================ */
.tai-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.tai-modal.is-open { display: flex; }
.tai-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 26, 34, 0.72);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.35s var(--tai-ease);
}
.tai-modal.is-open .tai-modal-backdrop { opacity: 1; }

.tai-modal-card {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 86vh;
	overflow-y: auto;
	background: var(--tai-panel-2);
	border: 1px solid var(--tai-border-strong);
	border-radius: var(--tai-radius-lg);
	padding: 44px 38px 40px;
	transform: translateY(16px) scale(0.985);
	opacity: 0;
	transition: transform 0.4s var(--tai-ease), opacity 0.4s var(--tai-ease);
}
.tai-modal.is-open .tai-modal-card { transform: none; opacity: 1; }

.tai-modal-close {
	position: absolute;
	top: 18px; right: 18px;
	width: 36px; height: 36px;
	background: transparent;
	border: 1px solid var(--tai-border);
	border-radius: var(--tai-radius-pill);
	color: var(--tai-text-dim);
	font-size: 18px;
	line-height: 1;
	display: flex; align-items: center; justify-content: center;
	transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.tai-modal-close:hover { color: var(--tai-text); border-color: var(--tai-border-strong); transform: rotate(90deg); }

.tai-modal-icon {
	width: 46px; height: 46px;
	color: var(--tai-second);
	margin-bottom: 22px;
}
.tai-modal-icon img { width: 46px; height: 46px; object-fit: contain; }
.tai-modal-icon svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.3; }

.tai-modal-title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 700;
	color: var(--tai-text);
}
.tai-modal-motto {
	margin: 0 0 20px;
	font-size: 14px;
	font-style: italic;
	font-weight: 300;
	color: var(--tai-second);
}
.tai-modal-desc {
	margin: 0 0 24px;
	font-size: 15px;
	font-weight: 300;
	color: var(--tai-text-dim);
	line-height: 1.75;
}
.tai-modal-bullets {
	list-style: none;
	margin: 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--tai-border);
	display: flex;
	flex-direction: column;
	gap: 13px;
}
.tai-modal-bullets li {
	position: relative;
	padding-left: 22px;
	font-size: 14px;
	font-weight: 300;
	color: var(--tai-text);
	line-height: 1.5;
}
.tai-modal-bullets li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.62em;
	width: 6px; height: 6px;
	border: 1px solid var(--tai-second);
	transform: rotate(45deg);
}

/* ============================================================
   FORM (multi-step)
   ============================================================ */
.tai-form-wrap {
	max-width: var(--tai-maxw);
	background: rgba(var(--tai-second-rgb), 0.04);
	border: 1px solid var(--tai-border);
	border-radius: var(--tai-radius-lg);
	padding: 38px 34px 40px;
}
.tai-form-head { margin-bottom: 30px; }

.tai-progress {
	display: flex;
	gap: 8px;
	margin-bottom: 26px;
}
.tai-progress-step {
	flex: 1;
	height: 4px;
	border-radius: var(--tai-radius-pill);
	background: var(--tai-border);
	position: relative;
	overflow: hidden;
}
.tai-progress-step::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tai-second);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--tai-ease);
}
.tai-progress-step.active::after { transform: scaleX(1); }

.tai-step { display: none; }
.tai-step.active { display: block; animation: taiFade 0.45s var(--tai-ease); }
@keyframes taiFade {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

/* Staggered reveal of sections within an active step */
.tai-step.active .tai-section {
	animation: taiRise 0.55s var(--tai-ease) both;
}
.tai-step.active .tai-section:nth-child(1) { animation-delay: 0.04s; }
.tai-step.active .tai-section:nth-child(2) { animation-delay: 0.12s; }
.tai-step.active .tai-section:nth-child(3) { animation-delay: 0.20s; }
.tai-step.active .tai-actions { animation: taiRise 0.55s var(--tai-ease) both; animation-delay: 0.26s; }
@keyframes taiRise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

/* Form sections */
.tai-section { margin-bottom: 34px; }
.tai-section-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tai-text);
	padding-bottom: 12px;
	margin: 0 0 22px;
	border-bottom: 1px solid var(--tai-border);
}

/* Field rows */
.tai-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	margin-bottom: 22px;
}
.tai-field { position: relative; }
.tai-field label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--tai-text-dim);
	margin-bottom: 8px;
	transition: color 0.3s var(--tai-ease);
}
.tai-field .tai-dot {
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--tai-second);
	box-shadow: 0 0 0 4px rgba(var(--tai-second-rgb), 0.16);
	opacity: 0;
	transform: scale(0.4);
	transition: opacity 0.3s var(--tai-ease), transform 0.3s var(--tai-ease);
}

.tai-field input[type="text"],
.tai-field input[type="email"],
.tai-field input[type="tel"],
.tai-field textarea {
	width: 100%;
	background: rgba(var(--tai-second-rgb), 0.05);
	border: 1px solid var(--tai-border-strong);
	border-radius: var(--tai-radius-sm);
	color: var(--tai-text);
	font-family: inherit;
	font-size: 16px; /* prevent iOS zoom */
	font-weight: 300;
	padding: 14px 16px;
	outline: none;
	transition: border-color 0.3s var(--tai-ease), background 0.3s var(--tai-ease), box-shadow 0.3s var(--tai-ease);
}
.tai-field textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.7;
}
.tai-field input::placeholder,
.tai-field textarea::placeholder { color: var(--tai-text-faint); }

.tai-field input:focus,
.tai-field textarea:focus {
	border-color: var(--tai-second);
	background: rgba(var(--tai-second-rgb), 0.08);
	box-shadow: 0 0 0 4px rgba(var(--tai-second-rgb), 0.10);
}

/* Underline retained but hidden — focus ring handles the active state now */
.tai-underline { display: none; }
.tai-field.focused label { color: var(--tai-text); }
.tai-field.focused .tai-dot { opacity: 1; transform: scale(1); }

/* Eligibility list */
.tai-elig-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tai-elig-list li {
	position: relative;
	padding-left: 22px;
	font-size: 14px;
	font-weight: 300;
	color: var(--tai-text-dim);
	line-height: 1.5;
}
.tai-elig-list li::before {
	content: "";
	position: absolute;
	left: 2px; top: 0.55em;
	width: 6px; height: 6px;
	background: var(--tai-second);
	border-radius: 50%;
}

/* Checkbox / confirm */
.tai-confirm {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 18px 0 4px;
	cursor: pointer;
}
.tai-confirm input { position: absolute; opacity: 0; pointer-events: none; }
.tai-checkbox {
	flex: none;
	width: 20px; height: 20px;
	border: 1px solid var(--tai-border-strong);
	border-radius: 6px;
	margin-top: 2px;
	position: relative;
	transition: border-color 0.3s, background 0.3s;
}
.tai-checkbox::after {
	content: "";
	position: absolute;
	left: 6px; top: 2px;
	width: 5px; height: 10px;
	border: solid var(--tai-main);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.25s var(--tai-ease);
}
.tai-confirm input:checked + .tai-checkbox { background: var(--tai-second); border-color: var(--tai-second); }
.tai-confirm input:checked + .tai-checkbox::after { transform: rotate(45deg) scale(1); }
.tai-confirm-text {
	font-size: 13px;
	font-weight: 300;
	color: var(--tai-text-dim);
	line-height: 1.6;
}

/* Value selector (radio cards) */
.tai-value-select {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.tai-value-radio { position: relative; }
.tai-value-radio input { position: absolute; opacity: 0; pointer-events: none; }
.tai-value-radio label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 16px;
	border: 1px solid var(--tai-border);
	border-radius: var(--tai-radius-sm);
	background: var(--tai-panel-2);
	cursor: pointer;
	transition: border-color 0.3s var(--tai-ease), background 0.3s var(--tai-ease), transform 0.3s var(--tai-ease);
	margin: 0;
	height: 100%;
}
.tai-value-radio label .vr-title {
	font-size: 14px; font-weight: 600; color: var(--tai-text);
}
.tai-value-radio label .vr-motto {
	font-size: 11px; font-style: italic; font-weight: 300; color: var(--tai-text-dim);
}
.tai-value-radio label::before {
	content: "";
	position: absolute;
	top: 14px; right: 14px;
	width: 14px; height: 14px;
	border: 1px solid var(--tai-border-strong);
	border-radius: 50%;
	transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.tai-value-radio input:checked + label {
	border-color: var(--tai-second);
	transform: translateY(-2px);
}
.tai-value-radio input:checked + label::before {
	background: var(--tai-second);
	border-color: var(--tai-second);
	box-shadow: inset 0 0 0 3px var(--tai-panel-2);
}
.tai-value-radio input:focus-visible + label { outline: 1px solid var(--tai-second); outline-offset: 2px; }

/* Step-2 dynamic question */
.tai-question-block { margin-bottom: 26px; }
.tai-question {
	font-size: 18px;
	font-weight: 600;
	color: var(--tai-text);
	margin: 0 0 6px;
	line-height: 1.4;
}
.tai-question-sub {
	font-size: 14px;
	font-weight: 300;
	color: var(--tai-text-dim);
	margin: 0 0 4px;
}

/* Per-bullet answer items — one textarea for each behaviour point */
.tai-answers {
	display: flex;
	flex-direction: column;
	gap: 26px;
	margin-top: 26px;
}
.tai-answer-item {
	position: relative;
	padding-left: 22px;
}
.tai-answer-item::before {
	content: "";
	position: absolute;
	left: 0; top: 7px;
	width: 6px; height: 6px;
	border: 1px solid var(--tai-second);
	transform: rotate(45deg);
}
.tai-answer-item .tai-answer-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--tai-text);
	margin-bottom: 10px;
	line-height: 1.45;
}
.tai-answer-item .tai-field {
	margin: 0;
}
.tai-answer-item textarea {
	min-height: 84px;
}
.tai-answer-item.has-error .tai-answer-label { color: #ffb4a8; }

/* Honeypot */
.tai-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* Errors */
.tai-error {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: #ffb4a8;
	margin-top: 8px;
	min-height: 0;
}
.tai-field.has-error input,
.tai-field.has-error textarea { border-color: #e8836f; box-shadow: 0 0 0 4px rgba(232, 131, 111, 0.12); }
.tai-form-notice {
	font-size: 13px;
	color: #ffb4a8;
	margin-bottom: 0;
	min-height: 0;
}
.tai-form-notice:not(:empty) {
	background: rgba(232, 131, 111, 0.12);
	border: 1px solid rgba(232, 131, 111, 0.35);
	border-radius: var(--tai-radius-sm);
	padding: 12px 16px;
	margin-bottom: 20px;
}

/* Buttons */
.tai-actions {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-top: 38px;
}
.tai-btn {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--btn-bg);
	background: var(--btn-bg);
	color: var(--btn-txt);
	border-radius: var(--tai-radius-pill);
	padding: 20px 32px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	transition: transform 0.35s var(--tai-ease), box-shadow 0.35s var(--tai-ease), background 0.35s var(--tai-ease), color 0.35s var(--tai-ease), border-color 0.35s var(--tai-ease);
	flex: 1;
	box-shadow: 0 8px 24px -10px rgba(var(--tai-second-rgb), 0.5);
}
.tai-btn .tai-arrow { transition: transform 0.35s var(--tai-ease); }
.tai-btn::before {
	content: "";
	position: absolute;
	top: 0; left: -120%;
	width: 60%; height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: skewX(-20deg);
	transition: left 0.6s var(--tai-ease);
}
.tai-btn:hover {
	background: transparent;
	color: var(--btn-bg);
	border-color: var(--btn-bg);
	transform: translateY(-2px);
	box-shadow: 0 14px 36px -10px rgba(var(--tai-second-rgb), 0.55);
}
.tai-btn:hover::before { left: 130%; }
.tai-btn:hover .tai-arrow { transform: translateX(4px); }
.tai-btn:active { transform: translateY(0); }

.tai-btn--ghost {
	background: transparent;
	color: var(--tai-text-dim);
	border-color: var(--tai-border-strong);
	border-radius: var(--tai-radius-pill);
	box-shadow: none;
	flex: 0 0 auto;
	padding: 20px 28px;
}
.tai-btn--ghost:hover {
	color: var(--tai-text);
	border-color: var(--tai-text);
	box-shadow: none;
	transform: translateY(-2px);
}
.tai-btn[disabled] { opacity: 0.55; pointer-events: none; }

/* Success state */
.tai-success {
	display: none;
	text-align: center;
	padding: 60px 10px;
	animation: taiFade 0.5s var(--tai-ease);
}
.tai-success.is-visible { display: block; }
.tai-success-mark {
	width: 64px; height: 64px;
	margin: 0 auto 28px;
	border: 1px solid var(--tai-second);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: var(--tai-second);
}
.tai-success-mark svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.tai-success-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--tai-text);
	margin: 0 0 12px;
}
.tai-success-body {
	font-size: 15px;
	font-weight: 300;
	color: var(--tai-text-dim);
	max-width: 38ch;
	margin: 0 auto;
	line-height: 1.7;
}

/* ============================================================
   DEADLINE HIGHLIGHT (after the form)
   ============================================================ */
.tai-deadline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
	padding: 16px 20px;
	border-radius: var(--tai-radius-sm);
	background: linear-gradient(135deg, rgba(var(--tai-second-rgb), 0.16), rgba(var(--tai-second-rgb), 0.06));
	border: 1px solid var(--tai-border-strong);
	color: var(--tai-text);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: center;
}
.tai-deadline svg { color: var(--tai-second); flex: none; }
@media (min-width: 1025px) {
	html, body { height: 100%; overflow: hidden; }

	.tai-split {
		flex-direction: row;
		height: 100vh;
		min-height: 100vh;
	}

	/* LEFT: hero + values, scrolls internally */
	.tai-hero {
		order: 1;
		width: 50%;
		height: 100vh;
		min-height: 100vh;
		overflow-y: auto;
		position: relative;
		scrollbar-width: thin;
		scrollbar-color: rgba(var(--tai-second-rgb), 0.25) transparent;
	}
	.tai-hero::-webkit-scrollbar { width: 6px; }
	.tai-hero::-webkit-scrollbar-track { background: transparent; }
	.tai-hero::-webkit-scrollbar-thumb { background: rgba(var(--tai-second-rgb), 0.22); border-radius: 3px; }
	.tai-hero::-webkit-scrollbar-thumb:hover { background: rgba(var(--tai-second-rgb), 0.4); }

	/* The 3 background layers must cover the full scroll height, so they
	   become fixed-to-panel via sticky wrapper behaviour: keep them covering
	   the viewport height and let content flow above. */
	.tai-hero-bg,
	.tai-hero-overlay,
	.tai-hero-vignette {
		position: fixed;
		width: 50%;
		left: 0;
		top: 0;
		height: 100vh;
	}
	.tai-hero-inner {
		position: relative;
		inset: auto;
		min-height: 100vh;
		padding: 72px 60px;
		justify-content: flex-start;
		gap: 26px;
	}
	.tai-watermark { font-size: 130px; position: fixed; left: auto; right: 50%; margin-right: 2%; }

	/* RIGHT: form panel, scrolls internally */
	.tai-left {
		order: 2;
		width: 50%;
		height: 100vh;
		overflow-y: auto;
		padding: 64px 56px 72px;
		scrollbar-width: thin;
		scrollbar-color: rgba(var(--tai-second-rgb), 0.25) transparent;
	}
	.tai-left::-webkit-scrollbar { width: 6px; }
	.tai-left::-webkit-scrollbar-track { background: transparent; }
	.tai-left::-webkit-scrollbar-thumb { background: rgba(var(--tai-second-rgb), 0.22); border-radius: 3px; }
	.tai-left::-webkit-scrollbar-thumb:hover { background: rgba(var(--tai-second-rgb), 0.4); }

	/* Two-column field rows on desktop; single rows stay full width */
	.tai-row { grid-template-columns: 1fr 1fr; }
	.tai-row--single { grid-template-columns: 1fr; }
}

/* Laptop */
@media (min-width: 1025px) and (max-width: 1280px) {
	.tai-left { padding: 52px 42px 60px; }
	.tai-hero-inner { padding: 56px 46px; }
	.tai-headline { font-size: clamp(30px, 3.4vw, 40px); }
	.tai-watermark { font-size: 108px; }
}

/* Tablet down — stacked (base already handles this) */
@media (max-width: 1024px) {
	.tai-hero { min-height: 56vh; }
	.tai-hero-inner { min-height: 56vh; }
}

/* Phone */
@media (max-width: 768px) {
	.tai-row { grid-template-columns: 1fr; }
	.tai-field input,
	.tai-field textarea { font-size: 16px; }
	.tai-left { padding: 40px 20px 56px; }
	.tai-hero-inner { padding: 46px 22px; }
}

/* Small phone */
@media (max-width: 480px) {
	.tai-headline { font-size: clamp(28px, 9vw, 34px); }
	.tai-values { grid-template-columns: 1fr; }
	.tai-value-select { grid-template-columns: 1fr; }
	.tai-route { flex-wrap: wrap; }
	.tai-hero-footer { gap: 18px; }
	.tai-watermark { font-size: 64px; }
	.tai-modal-card { padding: 38px 24px 32px; }
	.tai-actions { flex-direction: column-reverse; }
	.tai-btn, .tai-btn--ghost { width: 100%; flex: none; }
}

/* Landscape phone */
@media (max-height: 600px) and (max-width: 1024px) {
	.tai-hero, .tai-hero-inner { min-height: auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
