/* =========================================================================
   Troper Trip Planner — Public Calculator Styles
   Design tokens are CSS custom properties so wp-admin branding colours
   (Settings → Branding) can override them at runtime via JS — see
   applyBranding() in troper-calculator.js. Values below are the defaults.
   ========================================================================= */

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

.ttp-root {
	--ttp-primary: #0B1F3A;
	--ttp-secondary: #142C54;
	--ttp-accent: #C9A24B;
	--ttp-accent-light: #E8CD8A;
	--ttp-accent-light: color-mix(in srgb, var(--ttp-accent) 35%, white);
	--ttp-white: #FFFFFF;
	--ttp-grey-soft: #F5F7FA;
	--ttp-grey-mid: #E4E9F0;
	--ttp-ink: #1C2733;
	--ttp-ink-light: #5B6B7C;
	--ttp-success: #2F7A57;
	--ttp-danger: #B3392C;
	--ttp-glass-bg: rgba(255, 255, 255, 0.72);
	--ttp-glass-border: rgba(255, 255, 255, 0.5);

	--ttp-radius-sm: 8px;
	--ttp-radius-md: 14px;
	--ttp-radius-lg: 22px;
	--ttp-radius-pill: 999px;

	--ttp-shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.08);
	--ttp-shadow-md: 0 8px 24px rgba(11, 31, 58, 0.12);
	--ttp-shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.18);

	--ttp-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--ttp-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--ttp-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

	all: initial;
	display: block;
	font-family: var(--ttp-font-body);
	color: var(--ttp-ink);
	font-size: 16px;
	line-height: 1.55;
	background: var(--ttp-grey-soft);
	border-radius: var(--ttp-radius-lg);
	overflow: hidden;
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	box-shadow: var(--ttp-shadow-lg);
}

.ttp-root h1, .ttp-root h2, .ttp-root h3, .ttp-root h4,
.ttp-root p, .ttp-root ul, .ttp-root li, .ttp-root button,
.ttp-root input, .ttp-root select, .ttp-root textarea, .ttp-root label {
	margin: 0;
	font: inherit;
	color: inherit;
}
.ttp-root ul { list-style: none; padding: 0; }
.ttp-root button { cursor: pointer; background: none; border: none; }
.ttp-root img { max-width: 100%; display: block; }
.ttp-root strong { font-weight: 700; }

.ttp-root :focus-visible {
	outline: 3px solid var(--ttp-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.ttp-root * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.ttp-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
	.ttp-root {
		--ttp-grey-soft: #0E1524;
		--ttp-grey-mid: #1D2A40;
		--ttp-ink: #EAF0FA;
		--ttp-ink-light: #9AACC2;
		--ttp-white: #16213A;
		--ttp-glass-bg: rgba(20, 30, 54, 0.65);
		--ttp-glass-border: rgba(255, 255, 255, 0.08);
		--ttp-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
	}
}

/* =========================================================================
   Hero
   ========================================================================= */
.ttp-hero {
	position: relative;
	background: linear-gradient(135deg, var(--ttp-primary) 0%, var(--ttp-secondary) 65%, #1c3a63 100%);
	color: #fff;
	padding: 48px 40px 40px;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 32px;
	align-items: center;
	overflow: hidden;
}
.ttp-hero__content { position: relative; z-index: 2; }
.ttp-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ttp-accent-light);
	font-weight: 700;
	margin-bottom: 14px;
}
.ttp-hero__title {
	font-family: var(--ttp-font-display);
	font-weight: 600;
	font-size: clamp(1.9rem, 3.2vw + 0.8rem, 2.9rem);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin-bottom: 14px;
	color: #fff;
}
.ttp-hero__title em { font-style: italic; color: var(--ttp-accent-light); }
.ttp-hero__subtitle {
	font-size: 1.05rem;
	color: rgba(255,255,255,0.82);
	max-width: 46ch;
	margin-bottom: 24px;
}
.ttp-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.ttp-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.18);
	backdrop-filter: blur(6px);
	padding: 7px 14px;
	border-radius: var(--ttp-radius-pill);
	font-size: 0.8rem;
	font-weight: 600;
}
.ttp-badge svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--ttp-accent-light); }

.ttp-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--ttp-accent);
	color: var(--ttp-primary);
	font-weight: 700;
	padding: 15px 28px;
	border-radius: var(--ttp-radius-pill);
	font-size: 1rem;
	transition: transform var(--ttp-transition), box-shadow var(--ttp-transition);
	box-shadow: 0 10px 24px rgba(201, 162, 75, 0.35);
}
.ttp-hero__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 75, 0.45); }

/* Illustration: layered SVG "backwater sunset" signature visual */
.ttp-hero__art { position: relative; z-index: 1; height: 260px; }
.ttp-hero__art svg { width: 100%; height: 100%; }
.ttp-wave { animation: ttp-drift 9s ease-in-out infinite alternate; }
.ttp-wave--slow { animation-duration: 13s; }
@keyframes ttp-drift {
	from { transform: translateX(-2%); }
	to { transform: translateX(2%); }
}
.ttp-sun { animation: ttp-glow 4s ease-in-out infinite alternate; transform-origin: center; }
@keyframes ttp-glow {
	from { opacity: 0.85; }
	to { opacity: 1; }
}

@media (max-width: 860px) {
	.ttp-hero { grid-template-columns: 1fr; padding: 36px 22px 28px; text-align: left; }
	.ttp-hero__art { height: 160px; order: -1; opacity: 0.85; }
}

/* =========================================================================
   Stepper
   ========================================================================= */
.ttp-stepper {
	display: flex;
	align-items: flex-start;
	gap: 0;
	padding: 22px 40px;
	background: var(--ttp-white);
	border-bottom: 1px solid var(--ttp-grey-mid);
	overflow-x: auto;
	scrollbar-width: thin;
}
.ttp-stepper__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 1 0 auto;
	min-width: 84px;
	position: relative;
	text-align: center;
}
.ttp-stepper__connector {
	flex: 1 1 24px;
	height: 2px;
	background: var(--ttp-grey-mid);
	margin-top: 16px;
	min-width: 16px;
	position: relative;
	top: 0;
}
.ttp-stepper__connector.is-done { background: var(--ttp-accent); }
.ttp-stepper__circle {
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--ttp-grey-mid);
	color: var(--ttp-ink-light);
	display: flex; align-items: center; justify-content: center;
	font-size: 0.8rem; font-weight: 700;
	transition: all var(--ttp-transition);
	border: 2px solid transparent;
}
.ttp-stepper__item.is-active .ttp-stepper__circle {
	background: var(--ttp-primary);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(11,31,58,0.12);
}
.ttp-stepper__item.is-done .ttp-stepper__circle {
	background: var(--ttp-accent);
	color: var(--ttp-primary);
}
.ttp-stepper__label {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--ttp-ink-light);
	white-space: nowrap;
}
.ttp-stepper__item.is-active .ttp-stepper__label { color: var(--ttp-primary); }

@media (max-width: 700px) {
	.ttp-stepper { padding: 16px; }
	.ttp-stepper__label { display: none; }
	.ttp-stepper__item.is-active .ttp-stepper__label {
		display: block; position: absolute; top: 38px; font-size: 0.68rem; width: 100px; left: 50%; transform: translateX(-50%);
	}
}

/* =========================================================================
   Shell / layout
   ========================================================================= */
.ttp-shell {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 0;
	align-items: start;
}
.ttp-main { padding: 36px 40px 100px; min-width: 0; }
.ttp-sidebar { padding: 24px 24px 24px 0; position: sticky; top: 16px; align-self: start; }

@media (max-width: 980px) {
	.ttp-shell { grid-template-columns: 1fr; }
	.ttp-sidebar { display: none; }
	.ttp-main { padding: 28px 20px 120px; }
}

/* =========================================================================
   Step content
   ========================================================================= */
.ttp-step { animation: ttp-fade-up 380ms ease both; }
@keyframes ttp-fade-up {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}
.ttp-step__eyebrow {
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--ttp-accent); margin-bottom: 6px; display:block;
}
.ttp-step__title {
	font-family: var(--ttp-font-display);
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--ttp-primary);
	margin-bottom: 6px;
}
.ttp-step__subtitle { color: var(--ttp-ink-light); margin-bottom: 26px; max-width: 60ch; }

/* Option cards (hotel category, meal plan, vehicle, trip type...) */
.ttp-option-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 8px;
}
.ttp-option-card {
	text-align: left;
	background: var(--ttp-white);
	border: 2px solid var(--ttp-grey-mid);
	border-radius: var(--ttp-radius-md);
	padding: 18px;
	transition: border-color var(--ttp-transition), transform var(--ttp-transition), box-shadow var(--ttp-transition);
	display: flex; flex-direction: column; gap: 6px;
	position: relative;
}
.ttp-option-card:hover { border-color: var(--ttp-accent-light); transform: translateY(-2px); box-shadow: var(--ttp-shadow-sm); }
.ttp-option-card.is-selected {
	border-color: var(--ttp-accent);
	background: linear-gradient(160deg, rgba(201,162,75,0.09), rgba(201,162,75,0.02));
	box-shadow: var(--ttp-shadow-sm);
}
.ttp-option-card__check {
	position: absolute; top: 12px; right: 12px;
	width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid var(--ttp-grey-mid);
	display: flex; align-items: center; justify-content: center;
	transition: all var(--ttp-transition);
}
.ttp-option-card.is-selected .ttp-option-card__check {
	background: var(--ttp-accent); border-color: var(--ttp-accent);
}
.ttp-option-card.is-selected .ttp-option-card__check svg { opacity: 1; transform: scale(1); }
.ttp-option-card__check svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(0.5); transition: all 150ms; }
.ttp-option-card__icon { font-size: 1.5rem; margin-bottom: 2px; }
.ttp-option-card__label { font-weight: 700; color: var(--ttp-primary); padding-right: 20px; }
.ttp-option-card__meta { font-size: 0.82rem; color: var(--ttp-ink-light); }

/* Destination chips */
.ttp-dest-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}
.ttp-dest-chip {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	background: var(--ttp-white);
	border: 2px solid var(--ttp-grey-mid);
	border-radius: var(--ttp-radius-sm);
	padding: 12px 14px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all var(--ttp-transition);
	text-align: left;
}
.ttp-dest-chip:hover { border-color: var(--ttp-accent-light); }
.ttp-dest-chip.is-selected { border-color: var(--ttp-primary); background: var(--ttp-primary); color: #fff; }
.ttp-dest-chip__state { font-size: 0.68rem; opacity: 0.65; display: block; font-weight: 500; color: inherit; }

.ttp-state-filter { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.ttp-state-filter button {
	padding: 8px 16px; border-radius: var(--ttp-radius-pill);
	border: 2px solid var(--ttp-grey-mid); font-weight: 600; font-size: 0.85rem;
	color: var(--ttp-ink-light); transition: all var(--ttp-transition);
}
.ttp-state-filter button.is-active { background: var(--ttp-primary); border-color: var(--ttp-primary); color: #fff; }

/* Suggestions ("travellers who visit X also include Y") */
.ttp-suggestions { margin-top: 22px; padding: 16px; background: var(--ttp-grey-soft); border-radius: var(--ttp-radius-md); }
.ttp-suggestions__title { font-size: 0.85rem; font-weight: 700; color: var(--ttp-primary); margin-bottom: 10px; }
.ttp-suggestion-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--ttp-white); border: 1px dashed var(--ttp-accent);
	padding: 7px 12px; border-radius: var(--ttp-radius-pill); font-size: 0.82rem; font-weight: 600;
	margin: 0 8px 8px 0;
}
.ttp-suggestion-chip span.plus { color: var(--ttp-accent); font-weight: 800; }

/* Smart recommendation cards */
.ttp-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-top: 24px; }
.ttp-rec-card {
	background: linear-gradient(160deg, var(--ttp-primary), var(--ttp-secondary));
	color: #fff; border-radius: var(--ttp-radius-md); padding: 16px;
	display: flex; flex-direction: column; gap: 8px;
}
.ttp-rec-card__eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ttp-accent-light); font-weight: 700; }
.ttp-rec-card__title { font-weight: 700; font-size: 0.95rem; color: #fff; }
.ttp-rec-card__price { font-size: 0.78rem; color: rgba(255,255,255,0.75); }
.ttp-rec-card__btn {
	margin-top: 4px; align-self: flex-start;
	background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
	padding: 6px 14px; border-radius: var(--ttp-radius-pill); font-size: 0.78rem; font-weight: 700;
	transition: background var(--ttp-transition);
}
.ttp-rec-card__btn:hover { background: var(--ttp-accent); color: var(--ttp-primary); border-color: var(--ttp-accent); }
.ttp-rec-card.is-added .ttp-rec-card__btn { background: var(--ttp-success); border-color: var(--ttp-success); }

/* Form fields (contact step, numeric steppers) */
.ttp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.ttp-field label { font-weight: 700; font-size: 0.85rem; color: var(--ttp-primary); }
.ttp-field input[type="text"], .ttp-field input[type="email"], .ttp-field input[type="tel"], .ttp-field select {
	padding: 12px 14px; border: 2px solid var(--ttp-grey-mid); border-radius: var(--ttp-radius-sm);
	font-size: 0.95rem; background: var(--ttp-white); color: var(--ttp-ink);
	transition: border-color var(--ttp-transition);
}
.ttp-field input:focus, .ttp-field select:focus { border-color: var(--ttp-accent); }
.ttp-field .ttp-hint { font-size: 0.78rem; color: var(--ttp-ink-light); }
.ttp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .ttp-form-grid { grid-template-columns: 1fr; } }

.ttp-stepper-input { display: flex; align-items: center; gap: 14px; }
.ttp-stepper-input button {
	width: 40px; height: 40px; border-radius: 50%; background: var(--ttp-grey-soft);
	font-size: 1.2rem; font-weight: 700; color: var(--ttp-primary); border: 2px solid var(--ttp-grey-mid);
	transition: all var(--ttp-transition);
}
.ttp-stepper-input button:hover { border-color: var(--ttp-accent); }
.ttp-stepper-input__value { font-size: 1.3rem; font-weight: 700; min-width: 40px; text-align: center; color: var(--ttp-primary); }

/* Honeypot (hidden from real visitors, present for bots) */
.ttp-honeypot { position: absolute !important; left: -9999px !important; top: -9999px !important; }

/* =========================================================================
   Navigation buttons
   ========================================================================= */
.ttp-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 12px; flex-wrap: wrap; }
.ttp-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 26px; border-radius: var(--ttp-radius-pill);
	font-weight: 700; font-size: 0.92rem;
	transition: transform var(--ttp-transition), box-shadow var(--ttp-transition), background var(--ttp-transition);
}
.ttp-btn--primary { background: var(--ttp-primary); color: #fff; box-shadow: var(--ttp-shadow-sm); }
.ttp-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--ttp-shadow-md); }
.ttp-btn--gold { background: var(--ttp-accent); color: var(--ttp-primary); box-shadow: 0 10px 22px rgba(201,162,75,0.3); }
.ttp-btn--gold:hover { transform: translateY(-2px); }
.ttp-btn--ghost { background: transparent; color: var(--ttp-ink-light); border: 2px solid var(--ttp-grey-mid); }
.ttp-btn--ghost:hover { border-color: var(--ttp-primary); color: var(--ttp-primary); }
.ttp-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.ttp-btn svg { width: 16px; height: 16px; }

/* =========================================================================
   Sidebar: live summary (glassmorphic, signature budget meter, trip score)
   ========================================================================= */
.ttp-summary {
	background: var(--ttp-glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--ttp-glass-border);
	border-radius: var(--ttp-radius-lg);
	padding: 24px;
	box-shadow: var(--ttp-shadow-md);
}
.ttp-summary__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--ttp-ink-light); margin-bottom: 4px; }
.ttp-summary__total-value {
	font-family: var(--ttp-font-display);
	font-size: 2.1rem; font-weight: 600; color: var(--ttp-primary);
	line-height: 1.1;
}
.ttp-summary__per-person { font-size: 0.85rem; color: var(--ttp-ink-light); margin-top: 2px; margin-bottom: 18px; }

.ttp-summary__rows { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ttp-grey-mid); }
.ttp-summary__row { display: flex; justify-content: space-between; font-size: 0.85rem; gap: 10px; }
.ttp-summary__row dt { color: var(--ttp-ink-light); }
.ttp-summary__row dd { font-weight: 600; text-align: right; color: var(--ttp-ink); }

/* Budget meter — signature element */
.ttp-meter { margin-bottom: 20px; }
.ttp-meter__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ttp-meter__title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ttp-ink-light); }
.ttp-meter__value { font-size: 0.85rem; font-weight: 700; color: var(--ttp-primary); }
.ttp-meter__track {
	position: relative;
	height: 10px; border-radius: var(--ttp-radius-pill);
	background: linear-gradient(90deg, #cfe0d4, #d9e3f5, #f1e2c4, #f3d9a8);
	overflow: visible;
}
.ttp-meter__fill-marker {
	position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ttp-white); border: 3px solid var(--ttp-accent);
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	transform: translate(-50%, -50%);
	transition: left 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ttp-meter__ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.65rem; color: var(--ttp-ink-light); }

/* Trip score */
.ttp-score { margin-bottom: 4px; }
.ttp-score__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ttp-score__title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ttp-ink-light); }
.ttp-score__stars { display: flex; gap: 3px; margin-bottom: 4px; }
.ttp-score__star { width: 18px; height: 18px; color: var(--ttp-grey-mid); transition: color 300ms, transform 300ms; }
.ttp-score__star.is-filled { color: var(--ttp-accent); }
.ttp-score__label { font-weight: 700; color: var(--ttp-primary); font-size: 0.9rem; margin-bottom: 6px; }
.ttp-score__reasons { font-size: 0.78rem; color: var(--ttp-ink-light); }
.ttp-score__reasons li { display: flex; gap: 6px; margin-bottom: 3px; }
.ttp-score__reasons li::before { content: '•'; color: var(--ttp-accent); }

/* Mobile floating summary bar */
.ttp-mobile-bar {
	display: none;
	position: sticky; bottom: 0; left: 0; right: 0;
	background: var(--ttp-glass-bg);
	backdrop-filter: blur(14px);
	border-top: 1px solid var(--ttp-glass-border);
	padding: 12px 18px;
	align-items: center; justify-content: space-between;
	box-shadow: 0 -8px 24px rgba(11,31,58,0.12);
	z-index: 20;
}
.ttp-mobile-bar__total { font-family: var(--ttp-font-display); font-weight: 600; font-size: 1.2rem; color: var(--ttp-primary); }
.ttp-mobile-bar__sub { font-size: 0.72rem; color: var(--ttp-ink-light); }
@media (max-width: 980px) { .ttp-mobile-bar { display: flex; } }

/* =========================================================================
   Itinerary preview
   ========================================================================= */
.ttp-itinerary { margin-top: 26px; border-left: 2px solid var(--ttp-grey-mid); padding-left: 22px; display: flex; flex-direction: column; gap: 18px; }
.ttp-itinerary__day { position: relative; }
.ttp-itinerary__day::before {
	content: ''; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
	background: var(--ttp-accent); border: 2px solid var(--ttp-white); box-shadow: 0 0 0 2px var(--ttp-accent);
}
.ttp-itinerary__day-number { font-size: 0.72rem; font-weight: 700; color: var(--ttp-accent); text-transform: uppercase; letter-spacing: 0.06em; }
.ttp-itinerary__day-title { font-weight: 600; color: var(--ttp-primary); }

/* =========================================================================
   Trip Score explanation / Weather / travel tips chips
   ========================================================================= */
.ttp-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; margin-top: 22px; }
.ttp-info-card { background: var(--ttp-grey-soft); border-radius: var(--ttp-radius-md); padding: 16px; }
.ttp-info-card__title { font-size: 0.72rem; text-transform: uppercase; font-weight: 700; color: var(--ttp-ink-light); margin-bottom: 6px; letter-spacing: 0.05em; }
.ttp-info-card__body { font-size: 0.88rem; color: var(--ttp-ink); }

/* =========================================================================
   Final step: results / download
   ========================================================================= */
.ttp-result-hero { text-align: center; padding: 12px 0 28px; }
.ttp-result-hero__quote { display: inline-block; background: var(--ttp-grey-soft); padding: 6px 16px; border-radius: var(--ttp-radius-pill); font-weight: 700; color: var(--ttp-primary); font-size: 0.85rem; margin-bottom: 14px; }
.ttp-result-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-top: 24px; }
.ttp-result-actions .ttp-btn { width: 100%; justify-content: center; }
.ttp-share-link-box { display: flex; gap: 8px; margin-top: 14px; }
.ttp-share-link-box input { flex: 1; padding: 10px 14px; border-radius: var(--ttp-radius-sm); border: 2px solid var(--ttp-grey-mid); font-size: 0.85rem; color: var(--ttp-ink); }

/* Loading / toast */
.ttp-spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: ttp-spin 700ms linear infinite; display:inline-block; }
.ttp-btn--ghost .ttp-spinner, .ttp-btn--gold .ttp-spinner { border-color: rgba(11,31,58,0.25); border-top-color: var(--ttp-primary); }
@keyframes ttp-spin { to { transform: rotate(360deg); } }

.ttp-toast {
	position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
	background: var(--ttp-primary); color: #fff; padding: 12px 22px; border-radius: var(--ttp-radius-pill);
	font-size: 0.85rem; font-weight: 600; box-shadow: var(--ttp-shadow-lg);
	opacity: 0; pointer-events: none; transition: all 300ms ease; z-index: 999;
}
.ttp-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.ttp-toast.is-error { background: var(--ttp-danger); }

.ttp-error-text { color: var(--ttp-danger); font-size: 0.8rem; margin-top: 4px; }

/* Public "shared estimate" read-only view */
.ttp-shared-banner { background: var(--ttp-grey-soft); border-radius: var(--ttp-radius-md); padding: 14px 18px; margin-bottom: 20px; font-size: 0.88rem; color: var(--ttp-ink-light); }

/* =========================================================================
   Static intro + FAQ — server-rendered, sits outside #ttp-root so the app's
   JS (which replaces #ttp-root's innerHTML on every state change) never
   touches it. This is what non-JS crawlers and AI answer-engine bots see.
   Uses native <details>/<summary> for the FAQ — no JS needed for the
   accordion interaction, so it works identically with or without the
   calculator's script having loaded.
   ========================================================================= */
.ttp-static-content {
	box-shadow: none;
	border-radius: 0;
	max-width: 1400px;
	margin: 28px auto 0;
	padding: 0 40px 40px;
	background: transparent;
}
.ttp-static-intro h2,
.ttp-faq h2 {
	font-family: var(--ttp-font-display);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--ttp-primary);
	margin-bottom: 12px;
}
.ttp-static-intro p {
	color: var(--ttp-ink-light);
	max-width: 74ch;
	margin-bottom: 32px;
}
.ttp-faq__item {
	border-bottom: 1px solid var(--ttp-grey-mid);
	padding: 16px 0;
}
.ttp-faq__item summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--ttp-primary);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.ttp-faq__item summary::-webkit-details-marker { display: none; }
.ttp-faq__item summary::after {
	content: '+';
	font-size: 1.2rem;
	color: var(--ttp-accent);
	flex-shrink: 0;
	transition: transform var(--ttp-transition);
}
.ttp-faq__item[open] summary::after { transform: rotate(45deg); }
.ttp-faq__item p {
	margin-top: 10px;
	color: var(--ttp-ink-light);
	max-width: 74ch;
}

@media (max-width: 860px) {
	.ttp-static-content { padding: 0 20px 32px; }
}

.ttp-faq__category {
	font-family: var(--ttp-font-display);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ttp-accent);
	margin: 26px 0 4px;
}
.ttp-faq__category:first-of-type { margin-top: 4px; }

.ttp-tips {
	background: var(--ttp-grey-soft);
	border-radius: var(--ttp-radius-md);
	padding: 20px 24px;
	margin-bottom: 32px;
}
.ttp-tips ul { display: flex; flex-direction: column; gap: 8px; }
.ttp-tips li {
	position: relative;
	padding-left: 20px;
	color: var(--ttp-ink);
	font-size: 0.92rem;
}
.ttp-tips li::before {
	content: '';
	position: absolute;
	left: 0; top: 8px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--ttp-accent);
}

.ttp-disclaimer {
	background: var(--ttp-grey-soft);
	border-left: 3px solid var(--ttp-accent);
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 0.8rem;
	color: var(--ttp-ink-light);
	line-height: 1.55;
	margin: 0 0 22px;
}

/* =========================================================================
   Mobile pass — real, testable fixes, not just "make it smaller":
   - 16px minimum on form fields (below that, iOS Safari auto-zooms the
     whole page on focus, which reads as a bug even though it's "by design")
   - 44px minimum touch targets throughout (Apple/Google's own guidance)
   - full-width stacked nav buttons below ~420px, where side-by-side buttons
     get uncomfortably small to tap accurately
   - safe-area padding on the sticky mobile bar so it clears the home
     indicator on notched phones instead of sitting flush against it
   ========================================================================= */
@media (max-width: 640px) {
	.ttp-field input[type="text"],
	.ttp-field input[type="email"],
	.ttp-field input[type="tel"],
	.ttp-field select {
		font-size: 16px;
		padding: 13px 14px;
	}
	.ttp-btn {
		min-height: 44px;
		padding: 12px 22px;
	}
	.ttp-stepper-input button {
		width: 44px;
		height: 44px;
	}
	.ttp-option-card {
		padding: 16px;
	}
	.ttp-dest-chip {
		min-height: 44px;
	}
	.ttp-step__title {
		font-size: 1.35rem;
	}
	.ttp-main {
		padding: 24px 16px 110px;
	}
	.ttp-nav {
		margin-top: 24px;
	}
}

/* Below this, side-by-side Back/Continue buttons get too narrow to tap
   accurately — stack them full-width instead. */
@media (max-width: 420px) {
	.ttp-nav {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.ttp-nav .ttp-btn {
		width: 100%;
		justify-content: center;
	}
	.ttp-nav span:empty {
		display: none;
	}
}

/* Clears the home-indicator bar on notched phones instead of sitting flush
   against the bottom edge. */
.ttp-mobile-bar {
	padding-bottom: max(12px, env(safe-area-inset-bottom));
}
