html {
    scroll-behavior: smooth;
}

:root {
    /* Colors - Updated based on Parfum d'Automne request */
    --color-primary: #F8B62D;
    /* Jaune Rizières / Au Vietnam */
    --color-primary-dark: #e09b10;
    --color-secondary: #3a2a1f;
    /* brun profond */
    --color-text: #2b2b2b;
    --color-muted: #6f6f6f;
    --color-bg: #fffaf5;
    /* fond très léger */
    --color-card: #ffffff;
    --color-border: #E5E0D8;
    /* Kept for structural borders */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Component */
    --radius: 16px;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

p {
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-bottom: var(--spacing-sm);
}

/* Layout */
.app-container {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md);
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.brand-logo {
    height: 60px;
    /* Increased slightly for better visibility */
    width: auto;
    object-fit: contain;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */
.site-footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.footer-col p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-link-highlight:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-sm);
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Legal Page Styles */
.legal-page {
    padding: var(--spacing-xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page .container {
    padding-top: var(--spacing-lg);
}

.legal-page h1 {
    margin-bottom: var(--spacing-lg);
    color: #1e293b;
}

.legal-section {
    margin-bottom: var(--spacing-lg);
}

.legal-section h2 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: #334155;
}

.legal-section p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.legal-footer {
    margin-top: var(--spacing-xl);
    margin-bottom: 4rem;
    /* Extra spacing to prevent overlap with footer */
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Components: Buttons */
.primary-btn {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.primary-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 108, 44, 0.3);
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    color: var(--color-muted);
    transition: all 0.2s ease;
}

.nav-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Screens Management */
.screen {
    width: 100%;
    opacity: 0;
    position: absolute;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(10px);
}

.screen.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
    transform: translateY(0);
}

.screen.hidden {
    display: none;
}

/* Intro Screen */
#intro-screen {
    text-align: center;
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.decorative-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(217, 108, 44, 0.08) 0%, rgba(255, 250, 245, 0) 70%);
    z-index: -1;
    animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

#intro-screen .main-title {
    font-size: 3.5rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    position: relative;
}

#intro-screen .subtitle {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg) auto;
    font-size: 1.25rem;
    line-height: 1.8;
    position: relative;
}

/* Question Screen Header */
.progress-segments {
    display: flex;
    gap: 8px;
    flex: 1;
    margin-right: 1.5rem;
    padding-top: 1rem;
}

.segment {
    height: 4px;
    flex: 1;
    background-color: #E8E8E8;
    border-radius: 2px;
}

.segment.active {
    background-color: var(--color-primary);
}

.question-container {
    margin-top: 2rem;
    margin-bottom: var(--spacing-lg);
}

.step-indicator {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.question-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    text-align: left;
    /* Alignment from mockup */
}

.question-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: left;
}

.options-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    text-align: left;
}

.option-card:hover {
    border-color: var(--color-primary);
    background-color: #fdfaf8;
}

.option-card.selected {
    border-color: var(--color-primary);
    background-color: #fdfaf8;
    box-shadow: 0 0 0 1px var(--color-primary);
}

.option-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 8px;
}

.option-label {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-secondary);
}

/* Result Screen */
#result-screen {
    max-width: 800px;
}

.result-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.itinerary-card {
    background: var(--color-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: var(--spacing-lg);
}

.tag-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background-color: #F0EEE9;
    /* More subtle neutral/warm for tags */
    color: var(--color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#itinerary-title {
    font-size: 2rem;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

#itinerary-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-md) auto;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.region-item {
    text-align: center;
}

.region-name {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.region-desc {
    font-size: 0.9rem;
}

.expert-note {
    background-color: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    border-left: 3px solid var(--color-secondary);
}

.expert-note h4 {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--color-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-muted);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    /* Slightly easier radius for inputs */
    font-family: var(--font-body);
    font-size: 1rem;
}

.full-width {
    width: 100%;
}

/* Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--color-primary);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-sm) auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-content {
    text-align: center;
}

/* Mobile */
@media (max-width: 600px) {
    #intro-screen .main-title {
        font-size: 2.5rem;
    }

    .regions-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .app-container {
        padding: var(--spacing-sm);
    }

    /* Improve Mobile Spacing / Elegance */
    .itinerary-card,
    .expert-note,
    .map-section {
        padding: var(--spacing-md);
        /* Was lg, reduced for mobile */
    }

    .expert-note {
        padding: var(--spacing-sm);
        /* Even tighter for the note to look like a sidebar/block */
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Map Section */
.map-section {
    display: flex;
    justify-content: center;
    width: 100%;
    /* Card Style matching .itinerary-card */
    background: var(--color-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin: var(--spacing-lg) 0;
    /* Add margin to separate from card above and below */
}

.map-section.hidden {
    display: none;
}

#map-frame {
    width: 100%;
    min-height: 400px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

/* ========================================= */
/* LANDING PAGE STYLES                       */
/* ========================================= */

/* Header Adjustments */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
    margin-right: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Specific state for landing page over hero */
.site-header.header-over-hero:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.site-header.header-over-hero:not(.scrolled) .nav-link:hover {
    color: var(--color-primary);
}

.header-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
}

/* Responsive Nav */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .header-nav {
        display: flex;
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0.5rem 0 0;
        gap: 1.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .site-header.header-over-hero:not(.scrolled) .header-nav {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header.scrolled .header-nav {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 480px) {
    .header-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }
}

/* Landing Layout */
.landing-page {
    width: 100%;
    padding: 0;
    max-width: none;
    display: block;
    /* Override flex from app-container */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}


/* Header Overlay */
/* Header Overlay */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    /* Default for all pages */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific state for landing page over hero */
.site-header.header-over-hero:not(.scrolled) {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Update logo visibility only when over hero and NOT scrolled */
.site-header.header-over-hero:not(.scrolled) .brand-logo {
    filter: brightness(0) invert(1);
}

.brand-name {
    color: #fff;
    /* White text for logo on overlay */
}

.brand-tagline {
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    /* Full screen */
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    background-color: #333;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to ensure header readability and focus on center */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

.hero-start-btn {
    box-shadow: 0 10px 30px rgba(217, 108, 44, 0.5);
}

.pulsate {
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 108, 44, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(217, 108, 44, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(217, 108, 44, 0);
    }
}

.hero-disclaimer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: var(--spacing-sm);
}

/* ========================================= */
/* HOW IT WORKS SECTION                      */
/* ========================================= */
.how-it-works-section {
    padding: var(--spacing-lg) 0;
    background: #fff;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    position: relative;
    /* For potential connecting lines future improvement */
}

/* Add connecting lines between steps on Desktop */
@media (min-width: 768px) {
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 25px;
        /* Aligned with icon center roughly */
        right: -50%;
        width: 100%;
        height: 2px;
        background: #f0f0f0;
        z-index: 0;
        display: none;
        /* Hidden for now as simple design didn't explicitly show it, can toggle */
    }
}

.step-card {
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.step-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.step-icon {
    font-size: 2.5rem;
    background: #FFF9F0;
    /* Very light orange/yellow bg */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto;
    color: var(--color-primary);
}

.step-number {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #1e293b;
    /* Dark blue/black from screenshot */
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--color-muted);
}


/* ========================================= */
/* WHY IT'S DIFFERENT SECTION                */
/* ========================================= */
.why-different-section {
    padding: var(--spacing-lg) 0;
    background: #fafafa;
    /* Slightly different bg to separate sections */
}

.why-different-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

/* Left: Image Column */
.why-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.why-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    /* Square aspect ratio as per screenshot */
    object-fit: cover;
}

.why-quote-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    font-style: italic;
    font-size: 0.9rem;
    color: #555;
    border-left: 4px solid var(--color-primary);
}

/* Right: Content Column */
.why-content-col {
    text-align: left;
}

.why-subtitle {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.difference-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.difference-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.diff-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #FFF9F0;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.diff-text h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #1e293b;
}

.diff-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .why-different-grid {
        grid-template-columns: 1fr;
    }

    .why-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .why-quote-card {
        right: 0;
        left: 0;
        margin: 0 auto;
        bottom: -20px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Examples Section */
.examples-section {
    padding: var(--spacing-lg) 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.example-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.example-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

/* Placeholders if images missings */
.placeholder-1 {
    background-image: url('../assets/images/family_trip.jpg');
}

.placeholder-2 {
    background-image: url('../assets/images/mountains.jpg');
}

.placeholder-3 {
    background-image: url('../assets/images/beach_relax.jpg');
}

.card-content {
    padding: var(--spacing-md);
}

.card-content .tag {
    display: inline-block;
    margin-bottom: var(--spacing-xs);
}

.text-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: var(--spacing-sm);
    text-decoration: underline;
}

/* ========================================= */
/* MODAL WIZARD OVERRIDES                    */
/* ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    /* Reduced opacity for better transparency */
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--color-bg);
    width: 95%;
    max-width: 600px;
    /* Narrower for question phase as in mockup */
    height: auto;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Results need to be wider and taller to enable internal scroll */
.modal-container.is-result {
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close-modal-btn:hover {
    color: var(--color-secondary);
}

#wizard-wrapper {
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding: 0;
}

.wizard-step {
    display: none;
    flex-direction: column;
    min-height: 100%;
    /* Changed from height:100% to allow expansion */
    padding: 2rem;
    box-sizing: border-box;
}

.wizard-step.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

/* Wizard Navigation Footer */
.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
}

.back-link {
    background: none;
    border: none;
    color: #999;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    padding: 0;
}

.back-link:hover:not(:disabled) {
    color: var(--color-secondary);
}

.back-link.hidden {
    visibility: hidden;
}

/* Removed next-btn styles */

/* Removed redundant/conflicting active class to prevent layout lock */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================= */
/* NEW RESULT DISPLAY (ACCORDIONS)           */
/* ========================================= */

.result-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

#result-screen {
    padding: 0;
    /* Padding moved to scroll area */
    height: 100%;
}

.result-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: var(--spacing-sm);
}

.expert-alert {
    background: #FFFbea;
    border: 1px solid #fcebbd;
    color: #8c6b1f;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    font-size: 0.95rem;
    margin: 0 auto var(--spacing-md);
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expert-alert:empty {
    display: none;
}

.timeline-container {
    max-width: 700px;
    margin: 0 auto;
}

.day-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.day-header {
    padding: var(--spacing-sm) var(--spacing-md);
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.day-header:hover {
    background: #f9f9f9;
}

.day-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.day-number {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.day-title {
    font-weight: 600;
    font-size: 1rem;
}

.day-toggle-icon {
    font-size: 1.2rem;
    color: var(--color-muted);
    transition: transform 0.3s;
}

.day-item.open .day-toggle-icon {
    transform: rotate(180deg);
}

.day-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fafafa;
}

.day-item.open .day-content {
    max-height: 500px;
    /* Approx height */
    border-top: 1px solid var(--color-border);
}

.day-body {
    padding: var(--spacing-md);
}

.transport-info {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.transport-alt {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-style: italic;
}

.day-desc {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.expert-tip {
    font-size: 0.85rem;
    color: #5a5a5a;
    font-style: italic;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 2px solid var(--color-secondary);
}

.warning-box {
    color: #d32f2f;
    background: #ffebee;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Result CTA Block */
.result-cta-block {
    text-align: center;
    background: var(--color-primary);
    /* Primary bg for contrast */
    color: #fff;
    padding: var(--spacing-md);
    border-radius: var(--radius);
    margin-top: var(--spacing-lg);
}

.result-cta-block h3 {
    color: #fff;
}

.result-cta-block p {
    color: rgba(255, 255, 255, 0.9);
}

.result-cta-block .primary-btn {
    background: #fff;
    color: var(--color-primary);
}

.result-cta-block .secondary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
}

/* Agency Section */
.agency-section {
    padding: var(--spacing-lg) 0;
    background: #fff;
}

.agency-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.agency-content-col h2 {
    font-size: 2.25rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.agency-description p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
}

.agency-image-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.agency-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Agency Section Responsive */
@media (max-width: 900px) {
    .agency-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .agency-content-col {
        order: 2;
    }

    .agency-image-col {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }

    .agency-content-col h2 {
        font-size: 1.75rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-section {
        height: auto;
        padding: 100px 0;
    }

    .modal-container {
        height: 100%;
        width: 100%;
        max-width: none;
        border-radius: 0;
    }
}

/* Hero Secondary Button */
.hero-secondary-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 1rem 2rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
}

.hero-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Mobile: Stack hero buttons vertically with proper spacing */
@media (max-width: 768px) {
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-secondary-btn {
        margin-left: 0;
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .primary-btn.large {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}


/* Logo Style */
.brand-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Helps if logo has white bg */
}

/* Ensure header alignment */
.header-content {
    align-items: center;
}