/**
 * TRVL Mobile Planner ΓÇö homepage quiz layout (mockup).
 */

:root {
	--quiz-green: #1e4d3a;
	--quiz-green-dark: #163828;
	--quiz-blue: #0052ff;
	--quiz-text-muted: #6b7280;
	--trvl-mobile-sticky-header-height: 64px;
	--trvl-mobile-bottom-nav-height: 74px;
	--trvl-mobile-bottom-nav-clearance: calc(var(--trvl-mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav {
	display: grid;
}

@media (max-width: 1023px) {
	.trvl-planner-home .site-nav--desktop,
	.trvl-planner-home .site-header__actions,
	.trvl-planner-home .site-nav-toggle--desktop {
		display: none;
	}

	.trvl-planner-home .site-header--planner {
		position: sticky;
		top: 0;
		left: 0;
		right: 0;
		z-index: 50;
		background: #050505;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.trvl-planner-home .site-header--planner .site-header__inner {
		min-height: var(--trvl-mobile-sticky-header-height);
		padding-inline: 16px;
		display: grid;
		grid-template-columns: 44px 1fr 44px;
		align-items: center;
		max-width: none;
	}

	.trvl-planner-home .site-header--planner .site-logo {
		justify-self: center;
		font-size: 1.35rem;
		font-weight: 800;
		color: #ffffff;
	}

	.trvl-planner-home .site-header--planner .planner-header__menu {
		justify-self: start;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.06);
		box-shadow: none;
		cursor: pointer;
	}

	/* Right 44px track kept empty so the logo stays visually centered after removing the AI icon. */

	.trvl-home {
		--planner-home-height: auto;
	}

	.trvl-home .planner-home {
		min-height: 0;
	}

	.trvl-home .planner-home__bg::after {
		background: var(--vibe-hero-overlay, var(--planner-hero-overlay-neutral));
		transition: background var(--trvl-vibe-transition, 0.32s) ease;
	}

	.trvl-home .planner-home__inner {
		position: relative;
		z-index: 2;
		width: var(--home-wide-width);
		max-width: none;
		margin-inline: auto;
		padding: 68px var(--planner-hero-inset-right, 16px) clamp(1.75rem, 5vw, 2.5rem) var(--planner-hero-inset-left, 16px);
		min-height: 0;
	}

	.trvl-planner-home .site-main {
		padding-bottom: 0;
	}

	html:has(body.trvl-planner-home) {
		overflow-y: scroll;
	}

	body.trvl-planner-home {
		overflow-x: clip;
		overflow-y: visible;
	}

	body.trvl-planner-home #site-main {
		overflow: visible;
		max-height: none;
		height: auto;
	}

	body.trvl-planner-home .trvl-home {
		overflow: visible;
		max-height: none;
		height: auto;
	}

	.trvl-planner-home .site-footer {
		display: block;
		position: relative;
		z-index: 1;
		margin-top: 0;
		padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid rgba(255, 138, 61, 0.18);
	}
}

@media (min-width: 1024px) {
	.trvl-planner-home .site-nav--desktop,
	.trvl-planner-home .site-header__actions {
		display: flex;
	}

	.trvl-planner-home .site-header--planner .planner-header__menu,
	.trvl-planner-home .site-header--planner .planner-header__ai,
	.trvl-planner-home .site-nav-toggle--desktop {
		display: none;
	}
}

.planner-home {
	position: relative;
	min-height: auto;
	background: transparent;
}

@media (max-width: 1023px) {
	.planner-home__bg {
		display: block;
	}
}

.planner-home__intro--mobile {
	margin-bottom: 1.25rem;
	padding-bottom: 0.15rem;
}

.trvl-home .planner-home__quiz {
	position: relative;
	z-index: 2;
	margin-top: 0.35rem;
}

@media (max-width: 1023px) {
	.trvl-home .planner-home__title,
	.trvl-home .planner-home__subtitle {
		color: #fff;
	}

	.trvl-home .planner-home__title {
		font-size: 1.5rem;
		margin-bottom: 6px;
	}

	.trvl-home .planner-home__subtitle {
		font-size: 0.875rem;
		line-height: 1.45;
		max-width: 100%;
	}

	.trvl-home .planner-home__badge {
		margin-bottom: 10px;
		padding: 6px 12px;
		font-size: 0.75rem;
	}

	.trvl-home .planner-home__title-accent {
		color: #fff;
		text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
	}

	.trvl-planner-home .ai-planner-v190 .ai-quiz__card {
		padding: 14px 14px 16px;
	}

	.home-how-it-works.home-section {
		padding-top: clamp(1.25rem, 3vw, 2rem);
	}
}

.planner-home__title {
	margin: 0 0 8px;
	font-family: var(--font-heading);
	font-size: 1.65rem;
	font-weight: 800;
	line-height: 1.2;
	color: #121212;
}

.planner-home__subtitle {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--quiz-text-muted);
	max-width: 22rem;
}

.trvl-planner-home .ai-quiz {
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.trvl-planner-home .ai-planner-v190 .ai-quiz__card {
	padding: 18px 16px 20px;
	background: linear-gradient(165deg, var(--trvl-charcoal, #171719) 0%, var(--trvl-black, #0b0b0c) 100%);
	border: 1px solid color-mix(in srgb, var(--trvl-white, #fff) 10%, transparent);
	border-radius: 20px;
	box-shadow: var(--trvl-shadow-lg, 0 24px 64px rgba(11, 11, 12, 0.18));
}

.ai-quiz__card {
	padding: 18px 16px 20px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(18, 18, 18, 0.1);
}

.ai-quiz__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.ai-quiz__card-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

.ai-quiz__card-map {
	color: var(--quiz-blue);
}

.ai-quiz__step-badge {
	padding: 6px 12px;
	background: #f3f4f6;
	border-radius: 999px;
	font-size: 0.8125rem;
	color: #6b7280;
}

.ai-quiz__step-badge strong {
	color: var(--quiz-blue);
	font-weight: 800;
}

.ai-quiz__stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.ai-quiz__stepper-item {
	position: relative;
	flex: 1;
	display: flex;
	justify-content: center;
}

.ai-quiz__stepper-item:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 50%;
	left: calc(50% + 14px);
	width: calc(100% - 28px);
	border-top: 2px dashed #d1d5db;
	transform: translateY(-50%);
}

.ai-quiz__stepper-dot {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f3f4f6;
	font-size: 0.75rem;
	font-weight: 700;
	color: #9ca3af;
}

.ai-quiz__stepper-item.is-active .ai-quiz__stepper-dot,
.ai-quiz__stepper-item.is-done .ai-quiz__stepper-dot {
	background: var(--quiz-blue);
	color: #fff;
}

.ai-quiz__question {
	margin: 0 0 6px;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 800;
	color: #121212;
}

.ai-quiz__hint {
	margin: 0 0 16px;
	font-size: 0.875rem;
	color: var(--quiz-text-muted);
}

.ai-quiz__options:not(.ai-planner-v190__options--vibe-grid) {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ai-quiz__option {
	position: relative;
	display: grid;
	grid-template-columns: 40px 1fr 24px;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1.5px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
}

.ai-quiz__option--rich {
	grid-template-columns: 56px 40px 1fr 24px;
	padding: 8px 12px 8px 8px;
}

.ai-quiz__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ai-quiz__option-thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
}

.ai-quiz__option-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f3f4f6;
}

.ai-quiz__option-icon--spa::before { content: '≡ƒ¬╖'; }
.ai-quiz__option-icon--mountain::before { content: 'Γ¢░∩╕Å'; }
.ai-quiz__option-icon--column::before { content: '≡ƒÅ¢∩╕Å'; }
.ai-quiz__option-icon--heart::before { content: 'ΓÖÑ'; color: #9ca3af; }
.ai-quiz__option-icon--calendar::before { content: '≡ƒôà'; }
.ai-quiz__option-icon--users::before { content: '≡ƒæÑ'; }
.ai-quiz__option-icon--kids::before { content: '≡ƒæ╢'; }
.ai-quiz__option-icon--wallet::before { content: '≡ƒÆ│'; }

.ai-quiz__option-label {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #121212;
}

.ai-quiz__option-radio {
	width: 22px;
	height: 22px;
	border: 2px solid #d1d5db;
	border-radius: 50%;
}

.ai-quiz__option.is-selected {
	border-color: var(--quiz-green);
	box-shadow: 0 0 0 1px var(--quiz-green);
}

.ai-quiz__option.is-selected .ai-quiz__option-label {
	color: var(--quiz-green);
}

.ai-quiz__option.is-selected .ai-quiz__option-icon {
	background: rgba(0, 214, 125, 0.12);
}

.ai-quiz__option.is-selected .ai-quiz__option-icon--heart::before {
	color: var(--quiz-green);
}

.ai-quiz__option.is-selected .ai-quiz__option-radio {
	border-color: var(--quiz-green);
	background: var(--quiz-green);
	box-shadow: inset 0 0 0 3px #fff;
}

.ai-quiz__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 16px;
	min-height: 54px;
	padding: 14px 24px;
	border: none;
	border-radius: 16px;
	background: var(--quiz-green);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 214, 125, 0.35);
}

.ai-quiz__cta:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

.ai-quiz__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ai-quiz-spin 0.7s linear infinite;
}

.ai-quiz__spinner:not([hidden]) {
	display: inline-block;
}

@keyframes ai-quiz-spin {
	to { transform: rotate(360deg); }
}

.ai-results-mount {
	padding: 0 16px 24px;
}

.mobile-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid #e5e7eb;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-bottom-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 6px 4px;
	color: #9ca3af;
	font-size: 0.6875rem;
	font-weight: 600;
	text-decoration: none;
}

.trvl-planner-home .ai-quiz__progress,
.trvl-planner-home .ai-quiz__step-label,
.trvl-planner-home .ai-quiz__pills,
.trvl-planner-home .ai-quiz__nav {
	display: none !important;
}

/* Homepage — hero compact pe mobile, bannere mai aproape */
@media (max-width: 1023px) {
	.trvl-home .planner-home,
	.trvl-home .planner-home__inner {
		min-height: 0;
	}

	/*
	 * First-paint CTA was geometrically inside the fixed nav band because:
	 * 1) sticky header is already in document flow, but inner still had 68px padding-top;
	 * 2) nav clearance lived as margin-bottom AFTER the in-flow CTA, so the button
	 *    itself sat in the nav overlap zone until the user scrolled.
	 * Reserve nav+safe-area on the inner content box (border-box) and keep the CTA
	 * in normal flow above that padding.
	 */
	.trvl-home .planner-home__inner {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		padding-top: 12px;
		padding-inline: var(--planner-hero-inset-left, 16px) var(--planner-hero-inset-right, 16px);
		padding-bottom: calc(var(--trvl-mobile-bottom-nav-clearance) + 0.5rem);
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.trvl-planner-home .planner-home__hero {
		flex: 0 0 auto;
	}

	.trvl-planner-home .planner-home__quiz,
	.trvl-planner-home .ai-planner-v190,
	.trvl-planner-home .ai-quiz,
	.trvl-planner-home .ai-planner-v190 .ai-quiz__card,
	.trvl-planner-home .ai-planner-v190__panel.is-active,
	.trvl-planner-home .ai-quiz__form {
		display: flex;
		flex-direction: column;
		flex: 0 0 auto;
		min-height: 0;
		overflow: visible;
	}

	.trvl-planner-home .ai-quiz__panel.is-active {
		flex: 0 0 auto;
		min-height: 0;
		overflow: visible;
	}

	/* In-flow CTA: never sticky, never under the fixed bottom nav. */
	.trvl-planner-home .ai-quiz__footer {
		position: static;
		flex-shrink: 0;
		padding-top: 0.5rem;
		padding-bottom: 0.15rem;
		margin-top: 0.5rem;
		margin-bottom: 0;
		background: none;
		box-shadow: none;
		filter: none;
	}

	.trvl-planner-home .ai-planner-v190.is-mobile-quiz .ai-quiz__footer {
		margin-top: 0.5rem;
		margin-bottom: 0;
	}

	/* Keep in-flow CTA above the fixed bottom nav on first paint. */
	.trvl-planner-home .ai-planner-v190 .ai-quiz__option-vibe-shell {
		padding: 0.55rem 0.18rem 0.45rem;
		gap: 0.35rem;
	}

	.trvl-planner-home .ai-planner-v190 .ai-quiz__option--vibe-card .ai-quiz__option-media {
		width: 7.25rem;
		height: 7.25rem;
	}

	.trvl-planner-home .ai-planner-v190 .ai-quiz__option--vibe-card .ai-quiz__option-media--heart {
		width: 8.1rem;
		height: 7.35rem;
	}

	.trvl-planner-home .ai-quiz__panel.is-active > h3,
	.trvl-planner-home .ai-quiz__panel.is-active .ai-quiz__title {
		margin-bottom: 0.35rem;
	}

	.trvl-planner-home .ai-quiz__cta {
		scroll-margin-bottom: calc(var(--trvl-mobile-bottom-nav-clearance) + 0.75rem);
	}

	.trvl-home.trvl-planner-home .ai-quiz__cta,
	.trvl-home.trvl-planner-home .ai-planner-v190 .ai-quiz__cta {
		box-shadow: none;
	}

	.trvl-home.trvl-planner-home .ai-quiz__cta:hover:not(:disabled),
	.trvl-home.trvl-planner-home .ai-planner-v190 .ai-quiz__cta:hover:not(:disabled) {
		box-shadow: none;
	}

	.trvl-home.trvl-planner-home .ai-quiz__cta:focus-visible,
	.trvl-home.trvl-planner-home .ai-planner-v190 .ai-quiz__cta:focus-visible {
		outline: 2px solid #fff;
		outline-offset: 3px;
	}
}

@media (min-width: 1024px) {
	.trvl-home .planner-home {
		min-height: var(--planner-home-height, 800px);
	}

	.trvl-home .planner-home__inner {
		min-height: var(--planner-home-height, 800px);
		padding-inline: var(--planner-hero-inset-left, 24px) var(--planner-hero-inset-right, 24px);
		padding-bottom: 8px;
	}
}

/* ── Partea B: compactare quiz + results (375px ref) ── */

.ai-quiz__mobile-progress {
	display: none;
}

@media (max-width: 767px) {
	.ai-planner-v190.is-mobile-quiz .ai-quiz__stepper {
		display: none;
	}

	.ai-planner-v190.is-mobile-quiz .ai-quiz__mobile-progress {
		display: block;
		height: 3px;
		background: rgba(0, 0, 0, 0.08);
		border-radius: 999px;
		margin: 0 0 1rem;
		overflow: hidden;
	}

	.ai-planner-v190.is-mobile-quiz .ai-quiz__mobile-progress > span {
		display: block;
		height: 100%;
		background: var(--color-accent, #3d9b72);
		border-radius: inherit;
		transition: width 0.25s ease, transform 0.25s ease;
		transform: translateZ(0);
	}

	.ai-planner-v190.is-mobile-quiz .ai-quiz__panel.is-active {
		min-height: 0;
		display: flex;
		flex-direction: column;
		gap: 0.35rem;
	}

	.ai-planner-v190.is-mobile-quiz .ai-quiz__footer {
		display: block;
		margin-top: auto;
		padding-top: 0.65rem;
	}

	.ai-planner-v190.is-mobile-quiz .ai-planner-v190__field--free {
		margin-bottom: 0.35rem;
	}

	.ai-planner-v190.is-mobile-quiz .ai-planner-v190__textarea--free {
		min-height: 112px;
	}

	.ai-planner-v190.is-mobile-quiz .ai-quiz__panel[data-wizard-step='2'],
	.ai-planner-v190.is-mobile-quiz .ai-quiz__panel[data-wizard-step='3'],
	.ai-planner-v190.is-mobile-quiz .ai-quiz__panel[data-wizard-step='4'] {
		gap: 0.5rem;
	}

	.ai-quiz__back {
		display: none !important;
	}

	.ai-planner-v190.is-mobile-quiz .ai-quiz__cta {
		min-height: 48px;
		width: 100%;
	}

	.ai-planner-v190.is-mobile-quiz .ai-planner-v190__tabs {
		display: none;
	}

	body.trvl-planner-loading-active .site-header,
	body.trvl-planner-loading-active .site-footer,
	body.trvl-planner-loading-active #masthead,
	body.trvl-planner-loading-active #colophon,
	body.trvl-planner-loading-active .trvl-header,
	body.trvl-planner-loading-active .trvl-footer {
		visibility: hidden !important;
		pointer-events: none !important;
	}

	body.trvl-planner-loading-active .trvl-planner-gen-overlay {
		z-index: 100001;
	}

	body.trvl-planner-redirecting .ai-planner-v190,
	body.trvl-planner-redirecting .ai-planner-v190__wizard,
	body.trvl-planner-redirecting [data-ai-staged],
	body.trvl-planner-redirecting [data-ai-results] {
		visibility: hidden !important;
		pointer-events: none !important;
	}

	body.trvl-planner-redirecting .trvl-planner-gen-overlay {
		z-index: 100002;
	}

	.trvl-pr__btn,
	.trvl-pr__deck-btn,
	.trvl-pr__map-teaser,
	.trvl-pr__dock-handle,
	.trvl-pr__text-btn,
	.trvl-pr__tier-btn {
		min-height: 44px;
		min-width: 44px;
	}

	.trvl-pr__toast {
		bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 0.75rem);
		z-index: 100050;
	}

	body.trvl-pr-dock-open .trvl-pr__toast {
		bottom: calc(42vh + env(safe-area-inset-bottom, 0px));
	}

	.trvl-pr__save-sheet {
		position: fixed;
		inset: 0;
		z-index: 100040;
		display: grid;
		align-items: end;
	}

	.trvl-pr__save-sheet[hidden] {
		display: none !important;
	}

	.trvl-pr__save-sheet-backdrop {
		position: absolute;
		inset: 0;
		border: 0;
		background: rgba(8, 14, 26, 0.45);
	}

	.trvl-pr__save-sheet-panel {
		position: relative;
		background: #fff;
		border-radius: 20px 20px 0 0;
		padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
		box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
	}

	.trvl-pr__save-sheet-title {
		margin: 0 0 0.35rem;
		font-size: 1.15rem;
	}

	.trvl-pr__save-sheet-copy {
		margin: 0 0 0.85rem;
		color: #6b7280;
		font-size: 0.88rem;
		line-height: 1.45;
	}

	.trvl-pr__save-sheet .trvl-pr__email {
		display: grid;
		gap: 0.65rem;
	}

	.trvl-pr__save-sheet .trvl-pr__email input {
		min-height: 48px;
	}

	.trvl-pr__dock-extra {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
		margin-bottom: 0.65rem;
	}

	.trvl-pr__checklist--dock[hidden] {
		display: none !important;
	}

	.trvl-pr__deck-card,
	.trvl-pr__dock-panel,
	.trvl-pr__save-sheet-panel {
		will-change: transform, opacity;
	}
}
