/**
 * Royal Nepal Voyage - Page-Specific Styles
 * 
 * Hero sections, page layouts, and unique page elements
 */

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: pan-zoom 30s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Improved overlay for better text contrast */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    padding: var(--space-6);

    /* MOBILE DEFAULT: Start from top with spacing */
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
}

/* DESKTOP OVERRIDE: Center content and increase padding */
@media (min-width: 1024px) {
    .hero-content {
        justify-content: center;
        padding-top: var(--space-20);
        padding-bottom: var(--space-20);
    }
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;

    /* MOBILE DEFAULT: Distinct spacing */
    margin-bottom: var(--space-6);
    margin-top: 0;

    opacity: 0;
    animation: fade-down 1s var(--ease-out) forwards;
}

@media (min-width: 1024px) {
    .hero-title {
        margin-bottom: var(--space-8);
    }
}

.hero-flag {
    display: block;
    height: 80px;
    width: auto;
    margin-bottom: var(--space-6);
    margin-top: var(--space-2);

    opacity: 0;
    animation: fade-down 1s var(--ease-out) forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: var(--space-4);
    max-width: 800px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);

    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.3s forwards;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin-bottom: var(--space-10);
    }
}

.hero-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    /* Larger gap before buttons */
    margin-bottom: var(--space-12);

    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.5s forwards;
}

@media (min-width: 1024px) {
    .hero-tagline {
        margin-bottom: var(--space-10);
    }
}

/* Glass Labels */
.hero-tagline span {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    /* Smaller padding */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;

    font-size: 0.7rem;
    /* Smaller font */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.hero-tagline span:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Remove the old dots since we have pills now */
.hero-tagline span::after {
    display: none !important;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
    width: 100%;

    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.7s forwards;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;

    opacity: 0;
    animation: fade-in 1s ease-out 1.5s forwards, bounce 2s infinite 2s;
    cursor: pointer;
    transition: opacity 0.3s;
}

.hero-scroll:hover {
    opacity: 1 !important;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
}

/* Animations using vars if available, else usage of CSS vars defined in variables.css */
@keyframes fade-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

@keyframes pan-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Page Hero (smaller, for inner pages) */
.page-hero {
    padding-top: 120px;
    padding-bottom: var(--space-16);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #FFFFFF;
    text-align: center;
}

.page-hero-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
    color: #FFFFFF;
}

.page-hero-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    max-width: 600px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

/* About Section */
.about-section {
    background: var(--color-surface);
}

.about-content {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.about-lead {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    margin-bottom: var(--space-8);
    line-height: var(--line-height-normal);
}

.about-text {
    text-align: left;
    max-width: 680px;
    margin-inline: auto;
}

.about-text p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

/* Philosophy Section */
.philosophy-section {
    background: var(--color-bg-alt);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-10);
}

@media (min-width: 768px) {
    .philosophy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.philosophy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-6);
}

.philosophy-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
}

.philosophy-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

/* Journey Builder Section */
.journey-builder-section {
    background: var(--color-surface);
}

.journey-form {
    max-width: 900px;
    margin-inline: auto;
}

.journey-step {
    margin-bottom: var(--space-10);
}

.journey-step-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-6);
    text-align: center;
}

/* Destinations Grid */
.destinations-section {
    background: var(--color-bg);
}

.destinations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Featured destination (larger) */
.destination-card.featured {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

@media (min-width: 1024px) {
    .destination-card.featured {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }
}

/* Packages Section */
.packages-section {
    background: var(--color-bg-alt);
}

.packages-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}

@media (min-width: 768px) {
    .packages-content {
        grid-template-columns: 1fr 1fr;
    }
}

.packages-list {
    list-style: none;
}

.packages-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-color);
}

.packages-list svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Why Us Section */
.why-us-section {
    background: var(--color-surface);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
}

.why-us-icon {
    width: 48px;
    height: 48px;
    padding: var(--space-3);
    background: rgba(230, 126, 34, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-accent);
    flex-shrink: 0;
}

.why-us-icon svg {
    width: 100%;
    height: 100%;
}

.why-us-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.why-us-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #FFFFFF !important;
    text-align: center;
}

.cta-section .cta-title {
    margin-bottom: var(--space-4);
    color: #FFFFFF !important;
}

.cta-section .cta-text {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-inline: auto;
    color: #FFFFFF !important;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-section .cta-note {
    margin-top: var(--space-8);
    font-size: var(--font-size-sm);
    color: #FFFFFF !important;
    opacity: 0.9;
}

/* ========================================
   EXPLORE NEPAL PAGE
   ======================================== */

.explore-intro {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
    padding: var(--space-16) var(--section-padding-x);
}

.explore-category {
    padding: var(--section-padding-y) 0;
}

.explore-category:nth-child(even) {
    background: var(--color-bg-alt);
}

.explore-category-header {
    margin-bottom: var(--space-10);
}

.explore-category-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-3);
}

.explore-category-desc {
    color: var(--color-text-secondary);
}

/* City/Destination Detail Card */
.city-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.city-card-image {
    height: 240px;
    overflow: hidden;
}

.city-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.city-card:hover .city-card-image img {
    transform: scale(1.05);
}

.city-card-body {
    padding: var(--space-6);
}

.city-card-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
}

.city-card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-4);
}

.city-card-highlights {
    margin-bottom: var(--space-4);
}

.city-card-highlights li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.city-card-highlights svg {
    width: 16px;
    height: 16px;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.city-card-ideal {
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
}

.city-card-ideal strong {
    color: var(--color-primary);
}

/* ========================================
   CONTACT PAGE
   ========================================*/
/* Contact Page */
.contact-section {
    padding: var(--space-16) 0;
    /* Top and bottom spacing */
    position: relative;
    z-index: 20;
    /* Ensure dropdowns appear over following sections */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.contact-info-item {
    display: flex;
    gap: var(--space-4);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

.contact-info-value {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.contact-info-value a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-info-value a:hover {
    color: var(--color-accent);
}

.contact-form-card {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* Wizard Form Styles */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 400px;
    margin-inline: auto;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.completed .step-number {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #FFFFFF;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 10px;
    margin-bottom: 20px;
    /* Align with dots */
}

/* Wizard Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-8);
    gap: var(--space-4);
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-4);
}

.phone-input-group {
    display: flex;
    flex-direction: row;
    /* Explicit row for desktop */
    align-items: stretch;
    gap: var(--space-3);
    /* Increased gap */
    position: relative;
}

/* Custom Select CSS */
.custom-select-wrapper {
    position: relative;
    width: 170px;
    /* Fixed width - enough for "Select Country Code" */
    min-width: 170px;
    flex-shrink: 0;
    user-select: none;
    z-index: 50;
    /* Ensure trigger is above input */
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-3);
    font-size: var(--font-size-base);
    background: #FFFFFF;
    /* Force white background */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.custom-select-wrapper.error .custom-select-trigger {
    border-color: #e74c3c;
    /* Red error border */
    background-color: #fff8f8;
    /* Light red tint */
}

.custom-select-trigger:hover {
    border-color: var(--color-primary);
}

.selected-flag {
    margin-right: var(--space-2);
    display: flex;
    align-items: center;
}

.flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.arrow-down {
    border: solid var(--color-text-secondary);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: auto;
    /* Push arrow to right */
    transition: transform 0.3s;
}

.selected-code {
    margin-right: auto;
    /* Push code to left */
    font-size: 14px;
}

.custom-select-wrapper.open .arrow-down {
    transform: rotate(-135deg);
}

.custom-options {
    position: absolute;
    top: 105%;
    /* Slight gap */
    left: 0;
    width: 300px;
    /* Wide dropdown */
    max-height: 280px;
    background: #FFFFFF;
    /* Ensure opaque background */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    z-index: 9999;
    /* Max z-index to overlap everything */
    display: none;
    overflow: hidden;
    flex-direction: column;
}

.custom-select-wrapper.open .custom-options {
    display: flex;
    /* Flex to handle search box + list */
    animation: fadeIn 0.15s ease-out;
}

.search-box {
    padding: var(--space-3);
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 2;
}

.country-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    background: #FFFFFF;
}

.country-search:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

.options-list {
    flex: 1;
    /* Take remaining height */
    overflow-y: auto;
    max-height: 220px;
    /* Scrollable area */
    background: #FFFFFF;
}

.option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.1s;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--border-color-light);
}

.option:last-child {
    border-bottom: none;
}

.option:hover,
.option.selected {
    background-color: var(--color-primary);
    color: #ffffff;
}

.option-flag {
    margin-right: 12px;
    /* Restore spacing */
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Prevent flag from shrinking */
}

.option-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile optimizations for phone input */
@media (max-width: 480px) {
    .phone-input-group {
        flex-direction: column;
        gap: var(--space-3);
    }

    .custom-select-wrapper {
        width: 100% !important;
        min-width: 100% !important;
    }

    .custom-select-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .selected-code {
        font-size: 12px;
        /* Smaller text */
    }

    .selected-flag:empty {
        margin-right: 0;
        display: none;
    }

    .selected-flag {
        margin-right: 6px;
    }

    .custom-options {
        width: 100%;
        /* Match trigger width */
    }

    .phone-input-group .form-input {
        width: 100%;
    }
}

/* ========================================
   404 PAGE
   ======================================== */

.error-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-6);
    background: var(--color-bg);
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-4);
    opacity: 0.3;
}

.error-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
}

.error-text {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.error-illustration {
    max-width: 300px;
    margin: 0 auto var(--space-8);
    opacity: 0.8;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-inverse);
    padding: 150px 0 var(--space-16);
}

.about-story {
    background: var(--color-surface);
    padding: var(--space-16) 0;
}

.about-story-content {
    max-width: 800px;
    margin-inline: auto;
}

.about-story-content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.values-section {
    background: var(--color-bg-alt);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    padding: var(--space-4);
    background: rgba(230, 126, 34, 0.1);
    border-radius: var(--radius-xl);
    color: var(--color-accent);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.value-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ========================================
   404 ERROR PAGE
   ======================================== */

.error-page {
    min-height: calc(100vh - 200px);
    /* Account for header and footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    background: var(--color-bg);
}

.error-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-illustration {
    max-width: 200px;
    margin: 0 auto var(--space-6);
}

.error-illustration svg {
    width: 100%;
    height: auto;
}

.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.error-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.error-text {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}