﻿/* All design tokens now come from design-tokens.css */

/* Override Bootstrap .container constraints on landing page */
.container.landing-page {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

html, body {
    height: auto;
    min-height: 100%;
    width: 100%;
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text, #2E3530);
    background-color: var(--background, #F5F3F0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Remove fixed background attachment if it exists */
    /* background-attachment: fixed; */
    margin: 0;
    padding: 0;
}

/* Create a container for the parallax background */
.parallax-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/css/AgentSeekerBG.PNG');
    background-size: cover;
    background-position: center 50%;
    z-index: -1;
}

/* Make app-container scrollable with proper spacing */
.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Create a spacer element to force scrolling */
.content-spacer {
    height: 100vh; /* At least one viewport height */
}

/* Update main content to allow for scrolling */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1.25rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Below-the-fold content section */
.below-fold-section {
    width: 100%;
    position: relative;
    z-index: 5;
}

/* How it works */
/* How it works — side-by-side with card preview */
.how-section-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
}

.how-it-works {
    flex-shrink: 0;
    background: rgba(26, 31, 28, 0.32);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl, 28px);
    padding: 2rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Specular highlight */
.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.4) 70%,
        transparent);
    pointer-events: none;
}

.how-label {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(240, 237, 234, 0.4);
    margin-bottom: 1.25rem;
    text-align: center;
}

.flow-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.flow-step-v {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flow-num {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(240, 237, 234, 0.5);
    text-shadow:
        2px 3px 0 rgba(0, 0, 0, 0.08),
        1px 1px 0 rgba(255, 255, 255, 0.1);
}

.flow-text {
    text-align: left;
}

.flow-text h3 {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    color: #F0EDEA;
    margin-bottom: 0.15rem;
}

.flow-text p {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(240, 237, 234, 0.5);
}

.flow-line {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin-left: 20px;
}

/* Preview cards — fanned stack */
.preview-cards {
    position: relative;
    width: 360px;
    height: 520px;
    flex-shrink: 0;
    animation: cardStackFloat 6s ease-in-out infinite;
}

/* Gentle continuous float on the whole stack */
@keyframes cardStackFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.preview-card {
    position: absolute;
    width: 310px;
    background: rgba(26, 31, 28, 0.45);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease;
    /* Start hidden for entrance animation */
    opacity: 0;
    transform: translateY(60px) rotate(0deg) scale(0.85);
}

/* Entrance: staggered card deal */
.preview-cards.in-view .preview-card-back {
    animation: cardDealBack 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.preview-cards.in-view .preview-card-mid {
    animation: cardDealMid 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
.preview-cards.in-view .preview-card-front {
    animation: cardDealFront 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes cardDealBack {
    0% {
        opacity: 0;
        transform: translateY(60px) rotate(8deg) scale(0.8);
    }
    100% {
        opacity: 0.45;
        transform: rotate(-5deg) scale(0.9);
    }
}

@keyframes cardDealMid {
    0% {
        opacity: 0;
        transform: translateY(50px) rotate(5deg) scale(0.85);
    }
    100% {
        opacity: 0.65;
        transform: rotate(-1.5deg) scale(0.95);
    }
}

@keyframes cardDealFront {
    0% {
        opacity: 0;
        transform: translateY(40px) rotate(3deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: rotate(1.5deg) scale(1);
    }
}

.preview-card-back {
    top: 0;
    left: 0;
    z-index: 1;
}

.preview-card-mid {
    top: 16px;
    left: 18px;
    z-index: 2;
}

.preview-card-front {
    top: 32px;
    left: 36px;
    z-index: 3;
}

/* Hover: fan out with spring-like motion */
.preview-cards:hover .preview-card-back {
    transform: rotate(-9deg) scale(0.88) translateX(-14px);
    opacity: 0.45;
}

.preview-cards:hover .preview-card-mid {
    transform: rotate(-3deg) scale(0.93);
    opacity: 0.65;
}

.preview-cards:hover .preview-card-front {
    transform: rotate(0deg) translateX(6px);
    box-shadow:
        0 14px 48px rgba(0, 0, 0, 0.22),
        0 0 60px rgba(195, 160, 95, 0.06);
}

/* Card internals */
.pc-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.pc-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.pc-logo-highlight {
    background: rgba(195, 160, 95, 0.15);
    border-color: rgba(195, 160, 95, 0.3);
}

.pc-agent-info {
    flex: 1;
    min-width: 0;
}

.pc-name {
    display: block;
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: #F0EDEA;
    margin-bottom: 0.1rem;
}

.pc-reviews {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.7rem;
    color: #FFD54F;
}

.pc-review-count {
    color: rgba(240, 237, 234, 0.4);
    font-size: 0.6rem;
}

/* Score badge */
.pc-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}

.pc-score-num {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.pc-score-label {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.35rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
    line-height: 1;
    margin-top: 2px;
}

.pc-score-high {
    background: rgba(76, 175, 80, 0.18);
    border: 1px solid rgba(76, 175, 80, 0.35);
    color: #81C784;
}

.pc-score-good {
    background: rgba(195, 160, 95, 0.18);
    border: 1px solid rgba(195, 160, 95, 0.35);
    color: var(--primary, #C3A05F);
}

.pc-score-avg {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #FFB74D;
}

.pc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pc-stat {
    text-align: center;
}

.pc-stat-val {
    display: block;
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: #F0EDEA;
}

.pc-stat-label {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.6rem;
    font-weight: 300;
    color: rgba(240, 237, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Spider chart */
.pc-radar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

.pc-radar-title {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.6rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(240, 237, 234, 0.35);
    margin-bottom: 0.25rem;
}

/* Radar chart draw-in animation */
.pc-radar svg polygon[fill*="195,160,95"] {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    fill-opacity: 0;
    transition: fill-opacity 0.6s ease 1.6s;
}

.preview-cards.in-view .pc-radar svg polygon[fill*="195,160,95"] {
    animation: radarDraw 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

@keyframes radarDraw {
    0% {
        stroke-dashoffset: 400;
        fill-opacity: 0;
    }
    60% {
        stroke-dashoffset: 0;
        fill-opacity: 0;
    }
    100% {
        stroke-dashoffset: 0;
        fill-opacity: 1;
    }
}

/* Radar data dots — pop in after polygon draws */
.pc-radar svg circle {
    transform-origin: center;
    transform: scale(0);
    opacity: 0;
}

.preview-cards.in-view .pc-radar svg circle {
    animation: dotPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.preview-cards.in-view .pc-radar svg circle:nth-of-type(1) { animation-delay: 2.0s; }
.preview-cards.in-view .pc-radar svg circle:nth-of-type(2) { animation-delay: 2.1s; }
.preview-cards.in-view .pc-radar svg circle:nth-of-type(3) { animation-delay: 2.2s; }
.preview-cards.in-view .pc-radar svg circle:nth-of-type(4) { animation-delay: 2.3s; }
.preview-cards.in-view .pc-radar svg circle:nth-of-type(5) { animation-delay: 2.4s; }

@keyframes dotPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Gold shimmer sweep across stat values */
.pc-stat-val {
    position: relative;
    overflow: hidden;
}

.pc-stat-val::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(195, 160, 95, 0.25),
        transparent
    );
    pointer-events: none;
}

.preview-cards.in-view .preview-card-front .pc-stat-val::after {
    animation: shimmerSweep 0.8s ease 1.4s forwards;
}

@keyframes shimmerSweep {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* Tags — staggered slide in from left */
.pc-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pc-tag {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(240, 237, 234, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-cards.in-view .pc-tag:nth-child(1) {
    animation: tagSlide 0.45s cubic-bezier(0.22, 1, 0.36, 1) 2.0s forwards;
}
.preview-cards.in-view .pc-tag:nth-child(2) {
    animation: tagSlide 0.45s cubic-bezier(0.22, 1, 0.36, 1) 2.15s forwards;
}
.preview-cards.in-view .pc-tag:nth-child(3) {
    animation: tagSlide 0.45s cubic-bezier(0.22, 1, 0.36, 1) 2.3s forwards;
}

@keyframes tagSlide {
    0% {
        opacity: 0;
        transform: translateX(-12px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section dividers */
.section-divider {
    padding: 1rem 0;
    text-align: center;
}


/* Glass window — just the frame, no frost here */
.glass-window {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 36px;
    margin: 0 1.5rem 2rem;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

/* Rooftop SVG sits at top of window as decorative crown */
.window-rooftop {
    display: block;
    width: 100%;
    height: 40px;
    position: relative;
    z-index: 1;
    background: rgba(26, 31, 28, 0.25);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
}

/* Why AgentSeeker — frosted upper portion of window */
/* ============================================
   Why Section — Editorial Pillar Cards
   ============================================ */

.why-section {
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(26, 31, 28, 0.25);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    overflow: hidden;
}

.why-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: #F0EDEA;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.why-title em {
    font-style: italic;
    color: var(--primary, #C3A05F);
}

/* Wave container */
.why-wave {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 0 1rem;
}

/* Gold thread — horizontal connector line behind the cards */
.wave-thread {
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(195, 160, 95, 0.2) 10%,
        rgba(195, 160, 95, 0.45) 30%,
        var(--primary, #C3A05F) 50%,
        rgba(195, 160, 95, 0.45) 70%,
        rgba(195, 160, 95, 0.2) 90%,
        transparent
    );
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

/* Pulsing glow on the thread */
.wave-thread::after {
    content: '';
    position: absolute;
    inset: -2px 0;
    background: inherit;
    filter: blur(6px);
    opacity: 0.4;
    animation: threadPulse 4s ease-in-out infinite;
}

@keyframes threadPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.55; }
}

/* Each benefit node */
.wave-node {
    position: relative;
    z-index: 1;
    text-align: left;
    flex-shrink: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.45s ease;
    background: rgba(26, 31, 28, 0.35);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    /* Stagger the vertical position for visual rhythm */
    margin-top: calc(var(--node-index, 0) % 2 * 28px);
}

/* Large watermark number */
.node-watermark {
    position: absolute;
    top: -0.15rem;
    right: 0.5rem;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1;
    color: rgba(195, 160, 95, 0.1);
    pointer-events: none;
    transition: color 0.5s ease;
    z-index: 0;
    user-select: none;
}

.wave-node:hover .node-watermark {
    color: rgba(195, 160, 95, 0.18);
}

/* Gold accent bar — left edge, grows on hover */
.node-accent {
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 30%;
    background: linear-gradient(180deg,
        transparent,
        var(--primary, #C3A05F) 30%,
        var(--primary, #C3A05F) 70%,
        transparent
    );
    transform: translateY(-50%);
    border-radius: 0 2px 2px 0;
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease;
    opacity: 0.5;
}

.wave-node:hover .node-accent {
    height: 65%;
    opacity: 1;
}

/* Icon — gold-tinted glass circle */
.node-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(195, 160, 95, 0.08);
    border: 1px solid rgba(195, 160, 95, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary, #C3A05F);
    transition: background 0.4s ease,
                border-color 0.4s ease,
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
}

.wave-node:hover .node-icon {
    background: rgba(195, 160, 95, 0.15);
    border-color: rgba(195, 160, 95, 0.35);
    transform: translateY(-2px);
}

.wave-node h3 {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.82rem;
    font-weight: 500;
    color: #F0EDEA;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.wave-node p {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(240, 237, 234, 0.7);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Hover state — lift with gold glow */
.wave-node:hover {
    transform: translateY(-6px);
    border-color: rgba(195, 160, 95, 0.2);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(195, 160, 95, 0.08),
        0 8px 30px rgba(195, 160, 95, 0.06);
}

.wave-node:hover h3 {
    color: var(--primary, #C3A05F);
}

.wave-node:hover p {
    color: rgba(240, 237, 234, 0.85);
}

/* CTA section */
/* Window opening — clear hole, bg image shows through */
.window-opening {
    padding: 2rem 2rem 2.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-section {
    background: rgba(26, 31, 28, 0.3);
    backdrop-filter: blur(26px) saturate(1.6);
    -webkit-backdrop-filter: blur(26px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl, 28px);
    box-shadow:
        0 8px 40px rgba(26, 31, 28, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 6%;
        right: 6%;
        height: 1px;
        background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.45) 30%,
            rgba(255, 255, 255, 0.45) 70%,
            transparent);
        pointer-events: none;
    }

.cta-section h2 {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    color: #F0EDEA;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.cta-section p {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(240, 237, 234, 0.6);
    margin-bottom: 1.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 28px;
    background: rgba(195, 158, 95, 0.35);
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    border: 1px solid rgba(235, 205, 145, 0.6);
    color: #F0EDEA;
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow:
        0 6px 28px rgba(185, 145, 75, 0.25),
        inset 0 0 0 0.5px rgba(255, 215, 140, 0.35);
    position: relative;
    overflow: hidden;
}

    .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 1px;
        background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.95) 20%,
            rgba(255, 255, 255, 0.95) 80%,
            transparent);
        pointer-events: none;
    }

    .cta-button::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(
            105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.08) 30%,
            rgba(255, 220, 180, 0.12) 38%,
            rgba(200, 180, 255, 0.1) 46%,
            rgba(180, 220, 255, 0.1) 54%,
            rgba(255, 255, 255, 0.08) 62%,
            transparent 72%
        );
        pointer-events: none;
        transition: none;
    }

    .cta-button:hover::after {
        animation: glassGlare 0.6s ease-out forwards;
    }

    .cta-button:hover {
        background: rgba(195, 158, 95, 0.48);
        border-color: rgba(235, 205, 145, 0.8);
        box-shadow: 0 6px 32px rgba(185, 145, 75, 0.35),
            inset 0 0 0 0.5px rgba(255, 215, 140, 0.45);
    }

/* Responsive below-fold */
@media (max-width: 768px) {
    .how-section-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .preview-cards {
        width: 300px;
        height: 460px;
        margin: 0 auto;
    }

    .preview-card {
        width: 270px;
    }

    .why-wave {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .wave-thread {
        display: none;
    }

    .wave-node {
        margin-top: 0;
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .node-watermark {
        font-size: 4rem;
    }

    .window-rooftop {
        display: none;
    }

    .glass-window {
        margin: 0 0.75rem 1.5rem;
        border-radius: 24px;
        padding: 0 1rem 1.5rem;
    }

    .wave-node:hover {
        transform: translateY(-4px);
    }

    .node-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .node-icon svg {
        width: 18px;
        height: 18px;
    }

    .how-it-works,
    .why-section {
        padding: 2.5rem 1.25rem;
    }
}


/* Main Content - reduced padding */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1.25rem;
    text-align: center;
}

/* ── Hero entrance: "Glass Materialisation" ── */
@keyframes heroTitleReveal {
    from {
        opacity: 0;
        filter: blur(3px);
        transform: scale(1.025);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes heroGlassCondense {
    from {
        opacity: 0;
        backdrop-filter: blur(0) saturate(1);
        -webkit-backdrop-filter: blur(0) saturate(1);
        border-color: rgba(255, 255, 255, 0);
        box-shadow: 0 0 0 rgba(26, 31, 28, 0);
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(26px) saturate(1.6);
        -webkit-backdrop-filter: blur(26px) saturate(1.6);
        border-color: rgba(255, 255, 255, 0.25);
        box-shadow: var(--shadow, 0 8px 40px rgba(26, 31, 28, 0.07));
        transform: scale(1);
    }
}

@keyframes heroButtonWarm {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 400;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    animation: heroTitleReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Search Input - more compact */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px; /* Reduced from 450px */
    margin: 0 auto;
    z-index: 10;
}

.search-container {
    position: relative;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center top;
    background: var(--glass-card, rgba(255, 255, 255, 0.18));
    backdrop-filter: blur(26px) saturate(1.6);
    -webkit-backdrop-filter: blur(26px) saturate(1.6);
    border-radius: var(--radius-pill, 50px);
    box-shadow: var(--shadow, 0 8px 40px rgba(26, 31, 28, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: heroGlassCondense 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

    .search-container.expanded {
        margin-top: 1rem;
        max-width: 360px;
        border-radius: var(--radius-xl, 28px);
    }

.search-input-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.search-input {
    width: 100%;
    height: 3rem;
    padding: 0 1.25rem;
    background: transparent;
    border: none;
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.95rem;
    font-weight: var(--font-weight-light, 300);
    color: var(--text, #2E3530);
    transition: all 0.3s ease-in-out;
    outline: none;
}

    .search-input::placeholder {
        color: rgba(46, 53, 48, 0.55);
        font-weight: var(--font-weight-light, 300);
    }

    .search-input:focus {
        box-shadow: none;
    }

.postcode-overlay {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-lighter);
    transition: var(--transition);
}

.search-button {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: rgba(195, 158, 95, 0.35);
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    color: #1E1608;
    border: 1px solid rgba(235, 205, 145, 0.6);
    box-shadow:
        0 4px 22px rgba(185, 145, 75, 0.2),
        inset 0 0 0 0.5px rgba(255, 215, 140, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    animation: heroButtonWarm 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) 0.9s both;
}

    /* Specular highlight */
    .search-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 15%;
        right: 15%;
        height: 1px;
        background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.95) 20%,
            rgba(255, 255, 255, 0.95) 80%,
            transparent);
        pointer-events: none;
    }

    /* Prismatic glare sweep */
    .search-button::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(
            105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.1) 35%,
            rgba(200, 180, 255, 0.12) 50%,
            rgba(180, 220, 255, 0.1) 65%,
            transparent 80%
        );
        pointer-events: none;
        transition: none;
    }

    .search-button:hover::after {
        animation: glassGlare 0.6s ease-out forwards;
    }

    .search-button:hover {
        background: rgba(195, 158, 95, 0.48);
        border-color: rgba(235, 205, 145, 0.8);
        box-shadow: 0 4px 28px rgba(185, 145, 75, 0.3),
            inset 0 0 0 0.5px rgba(255, 215, 140, 0.4);
    }

.search-icon {
    width: 1rem; /* Reduced from 1.1rem */
    height: 1rem; /* Reduced from 1.1rem */
}

/* Expanded search content */
.search-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.2s ease, opacity 1.0s ease;
    transform-origin: top center;
}

.search-container.expanded .search-content {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: expandSearchBar 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.search-content-inner {
    padding: 1rem; /* Reduced from 1.25rem */
    max-height: 60vh; /* Reduced from 70vh */
    overflow-y: auto;
    scrollbar-width: thin;
}

    /* Style the scrollbar to make it more subtle */
    .search-content-inner::-webkit-scrollbar {
        width: 5px; /* Reduced from 6px */
    }

    .search-content-inner::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05);
        border-radius: 10px;
    }

    .search-content-inner::-webkit-scrollbar-thumb {
        background: rgba(195, 160, 95, 0.25);
        border-radius: 10px;
    }

/* Progress bar - smaller */
.progress-container {
    width: 100%;
    height: 3px; /* Reduced from 4px */
    background: rgba(229, 231, 235, 0.5);
    border-radius: 10px;
    margin-bottom: 0.75rem; /* Reduced from 1.25rem */
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #C3A05F), var(--secondary, #A0BAD2));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-text {
    font-size: 0.7rem;
    color: var(--text-light, #8A9890);
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: var(--font-body, 'Outfit', sans-serif);
}

/* Question steps */
.question-step {
    display: none !important;
    animation: fadeIn 0.3s ease-in-out;
}

    .question-step.active {
        display: block !important;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--text, #2E3530);
}

/* Form elements - compact */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm, 14px);
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.85rem;
}

    .radio-option:hover {
        background: rgba(195, 160, 95, 0.08);
    }

    .radio-option input[type="radio"] {
        margin-right: 0.5rem;
        accent-color: var(--primary, #C3A05F);
        width: 0.9rem;
        height: 0.9rem;
    }

/* Range slider */
.range-container {
    margin: 0.75rem 0;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
    margin-bottom: 0.4rem;
}

    .range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--primary, #C3A05F);
        cursor: pointer;
        border: 2px solid white;
        box-shadow: 0 2px 8px rgba(195, 160, 95, 0.3);
        transition: all 0.2s ease;
    }

        .range-slider::-webkit-slider-thumb:hover {
            background: var(--primary-dark, #8A7040);
            transform: scale(1.1);
        }

.range-value {
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium, 500);
    color: var(--primary, #C3A05F);
    text-align: center;
    margin-bottom: 0.4rem;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Glass button base — colour as tint, not fill */
.btn {
    padding: 9px 22px;
    border-radius: 50px;
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
}

    /* Specular highlight — top edge */
    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        right: 8%;
        height: 1px;
        background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.95) 20%,
            rgba(255, 255, 255, 0.95) 80%,
            transparent);
        pointer-events: none;
    }

    /* Prismatic glare sweep — sits idle off-screen, sweeps on hover */
    .btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(
            105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.08) 30%,
            rgba(255, 220, 180, 0.12) 38%,
            rgba(200, 180, 255, 0.1) 46%,
            rgba(180, 220, 255, 0.1) 54%,
            rgba(255, 255, 255, 0.08) 62%,
            transparent 72%
        );
        pointer-events: none;
        transition: none;
    }

    .btn:hover::after {
        animation: glassGlare 0.6s ease-out forwards;
    }

    .btn:active {
        opacity: 0.85;
    }

@keyframes glassGlare {
    0%   { left: -60%; }
    100% { left: 120%; }
}

/* Champagne warm primary — rgba 0.35 tint */
.btn-primary {
    background: rgba(195, 158, 95, 0.35);
    border: 1px solid rgba(235, 205, 145, 0.6);
    color: #1E1608;
    box-shadow:
        0 6px 28px rgba(185, 145, 75, 0.25),
        inset 0 0 0 0.5px rgba(255, 215, 140, 0.35);
}

    .btn-primary:hover {
        background: rgba(195, 158, 95, 0.48);
        border-color: rgba(235, 205, 145, 0.8);
        box-shadow: 0 6px 32px rgba(185, 145, 75, 0.35),
            inset 0 0 0 0.5px rgba(255, 215, 140, 0.45);
    }

/* Ghost — pure white tint */
.btn-outline {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #1A1F1C;
    box-shadow:
        0 4px 20px rgba(26, 31, 28, 0.06),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.3);
}

    .btn-outline:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.7);
        box-shadow: 0 4px 24px rgba(26, 31, 28, 0.1),
            inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
    }

.btn-block {
    width: auto;
    min-width: 160px;
    margin: 0 auto;
}

/* Select input - more compact */
.select-container {
    margin-bottom: 1rem;
    position: relative;
}

.select-input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-body, 'Outfit', sans-serif);
    color: var(--text, #2E3530);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    box-shadow:
        0 4px 20px rgba(26, 31, 28, 0.06),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23887755' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

    .select-input:hover {
        background-color: rgba(255, 255, 255, 0.28);
        border-color: rgba(255, 255, 255, 0.7);
    }

    .select-input:focus {
        border-color: rgba(235, 205, 145, 0.6);
        outline: none;
        box-shadow:
            0 4px 24px rgba(185, 145, 75, 0.15),
            inset 0 0 0 0.5px rgba(255, 215, 140, 0.3);
    }

/* Custom glass dropdown */
.glass-select {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-body, 'Outfit', sans-serif);
    color: var(--text, #2E3530);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    box-shadow:
        0 4px 20px rgba(26, 31, 28, 0.06),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    user-select: none;
}

    .glass-select:hover {
        background: rgba(255, 255, 255, 0.28);
        border-color: rgba(255, 255, 255, 0.7);
    }

    .glass-select.open {
        border-color: rgba(235, 205, 145, 0.6);
        border-radius: 18px 18px 4px 4px;
        box-shadow:
            0 4px 24px rgba(185, 145, 75, 0.15),
            inset 0 0 0 0.5px rgba(255, 215, 140, 0.3);
    }

.glass-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.glass-select-arrow {
    flex-shrink: 0;
    color: rgba(136, 119, 85, 0.7);
    transition: transform 0.3s ease;
}

    .glass-select.open .glass-select-arrow {
        transform: rotate(180deg);
    }

.glass-select-dropdown {
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(26px) saturate(1.6);
    -webkit-backdrop-filter: blur(26px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    box-shadow:
        0 4px 16px rgba(26, 31, 28, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow-y: auto;
    max-height: 240px;
    scrollbar-width: thin;
    animation: dropdownFadeIn 0.15s ease-out;
}

    .glass-select-dropdown::-webkit-scrollbar {
        width: 4px;
    }

    .glass-select-dropdown::-webkit-scrollbar-track {
        background: transparent;
    }

    .glass-select-dropdown::-webkit-scrollbar-thumb {
        background: rgba(195, 160, 95, 0.25);
        border-radius: 10px;
    }

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-select-option {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-family: var(--font-body, 'Outfit', sans-serif);
    color: var(--text, #2E3530);
    cursor: pointer;
    transition: background 0.15s ease;
}

    .glass-select-option:hover {
        background: rgba(195, 160, 95, 0.12);
    }

    .glass-select-option.selected {
        background: rgba(195, 160, 95, 0.18);
        font-weight: 500;
    }

    .glass-select-option + .glass-select-option {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

/* Text input */
.text-input {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm, 14px);
    font-family: var(--font-body, 'Outfit', sans-serif);
    font-size: 0.85rem;
    color: var(--text, #2E3530);
    background: white;
    transition: all 0.2s ease;
}

    .text-input:focus {
        border-color: var(--primary, #C3A05F);
        outline: none;
        box-shadow: 0 0 0 2px rgba(195, 160, 95, 0.12);
    }

/* Status message */
.status-message {
    margin-top: 1.25rem; /* Reduced from 1.5rem */
    padding: 0.65rem 1.25rem; /* Reduced from 0.75rem 1.5rem */
    border-radius: var(--radius);
    background: var(--glass-dark, rgba(26, 31, 28, 0.42));
    color: white;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.5s ease-out;
    max-width: 450px; /* Reduced from 500px */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset any existing footer styles */
.footer {
    all: initial;
    box-sizing: border-box;
    font-family: var(--font-body, 'Outfit', sans-serif);
    /* Hidden footer styling */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(245, 243, 240, 0.95) !important;
    padding: 0.5rem !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    transform: translateY(100%) !important; /* Fully hidden initially */
    transition: transform 0.3s ease !important;
    z-index: 9999 !important; /* Very high z-index to ensure it's on top */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Hover detection area */
.footer-hover-area {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 20px !important;
    background: rgba(195, 160, 95, 0.08) !important;
    z-index: 9998 !important;
    cursor: pointer !important;
}

    .footer-hover-area::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: rgba(195, 160, 95, 0.2);
    }

    /* Show footer on hover - we'll also make it activate a bit faster */
    .footer-hover-area:hover + .footer,
    .footer:hover {
        transform: translateY(0) !important;
        transition: transform 0.2s ease-out !important; /* Slightly faster transition when appearing */
    }

/* Footer content styling */
.footer-title {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
    color: var(--text) !important;
}

.footer p {
    margin: 0.25rem 0 !important;
    font-size: 0.75rem !important;
    color: var(--text-light) !important;
}

.footer .btn {
    display: inline-block !important;
    margin: 0.25rem auto !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    background: var(--secondary) !important; /* Updated to Warm Sunset Gold */
    color: white !important;
    border: none !important;
    border-radius: 0.375rem !important;
    cursor: pointer !important;
}

.footer-links {
    display: flex !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-top: 0.25rem !important;
}

.footer-link {
    color: var(--accent-dark) !important; /* Updated to Deep Ocean Blue */
    text-decoration: none !important;
    font-size: 0.75rem !important;
}

/* When moving away from the footer, make it disappear more slowly */
.footer {
    transition: transform 0.4s ease !important;
}

/* Enhanced responsive adjustments */
@media (max-width: 1366px) {
    /* For laptops and smaller desktop displays */
    .search-wrapper {
        max-width: 370px;
    }

    .search-container.expanded {
        max-width: 350px;
    }

    .search-content-inner {
        padding: 0.875rem;
    }
}
/* Header styles moved to navbar.css */

/*STYLE / ANIM CODE FOR INFO TEXT ON PAGE BELOW SEARCH BAR*/

/* Feature boxes styling */
.feature-boxes {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 5;
    pointer-events: none; /* Allow clicks to pass through to elements below */
}

.feature-box {
    width: 340px;
    max-width: 40%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .feature-box.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

    .feature-box.left {
        transition-delay: 0.2s;
        align-self: flex-start;
    }

    .feature-box.right {
        transition-delay: 0.5s;
        align-self: flex-end;
    }

    .feature-box.hide {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        transition: all 0.6s ease-out;
    }

.feature-content {
    background: var(--glass-dark, rgba(26, 31, 28, 0.55));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto; /* Re-enable pointer events for the content */
}

.feature-icon {
    background: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
}

.feature-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .feature-boxes {
        padding: 0 3%;
    }

    .feature-box {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .feature-boxes {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        bottom: 4%;
        padding: 0;
    }

    .feature-box {
        width: 90%;
        max-width: 350px;
    }

        .feature-box.left,
        .feature-box.right {
            align-self: center;
        }

    .feature-content {
        padding: 1.2rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }

    .feature-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .feature-content p {
        font-size: 0.8rem;
    }
}

/* For very small screens, hide the feature boxes completely when modal is expanded */
@media (max-height: 720px) {
    .search-container.expanded ~ .feature-boxes,
    .search-container.expanded + .feature-boxes,
    .search-wrapper + .feature-boxes {
        display: none;
    }
}

.hero-elements {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 18vh;
}

/* Specific settings for 1080p displays */
@media (max-height: 1080px) {
    .search-wrapper {
        max-width: 360px;
    }

    .search-container.expanded {
        max-width: 340px;
    }

    .search-content-inner {
        max-height: 55vh;
        padding: 0.875rem;
    }

    .question-title {
        margin-bottom: 0.75rem;
    }

    .radio-group,
    .select-container {
        margin-bottom: 0.75rem;
    }

    .range-container {
        margin: 0.75rem 0;
    }

    .button-group {
        margin-top: 0.75rem;
    }

    .radio-option {
        padding: 0.5rem;
    }

    .btn {
        padding: 0.55rem 1rem;
    }
}

@media (max-width: 1024px) {
    /* For tablets and smaller displays */
    .search-wrapper {
        max-width: 340px;
    }

    .search-container.expanded {
        max-width: 330px;
    }

    .search-content-inner {
        padding: 0.875rem;
    }

    .question-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* For mobile devices */
    .search-wrapper {
        max-width: 90%;
    }

    .search-container.expanded {
        max-width: 90%;
        padding: 0;
    }

    .button-group {
        flex-direction: column;
    }

    .search-content-inner {
        padding: 0.875rem 0.75rem;
    }

    .title {
        font-size: 1.5rem;
    }


    /* Make the modal even more compact on very small screens */
    .radio-option, .select-input, .text-input {
        padding: 0.55rem;
    }

    .btn {
        padding: 0.6rem 0.875rem;
    }
}

/* Ultra-compact view for shorter screens */
@media (max-height: 800px) {
    .search-content-inner {
        max-height: 70vh;
        padding: 0.75rem;
    }

    .progress-container {
        margin-bottom: 0.5rem;
    }

    .progress-text {
        margin-bottom: 0.625rem;
    }

    .radio-group,
    .select-container {
        margin-bottom: 0.5rem;
    }

    .range-container {
        margin: 0.5rem 0;
    }

    .button-group {
        margin-top: 0.625rem;
    }

    .question-title {
        margin-bottom: 0.625rem;
    }
}

@keyframes expandSearchBar {
    0% {
        transform: scaleY(0.7);
    }

    100% {
        transform: scaleY(1);
    }
}

/* Old nav styles removed - now in navbar.css */

.Card {
    width: 100%;
    height: 100%;
    background-color: none;
}

/* Account Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.account-modal {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-modal h2 {
    color: var(--accent-dark);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.account-modal p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.account-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

    .account-message.success {
        background-color: rgba(40, 167, 69, 0.1);
        color: #28a745;
        border: 1px solid rgba(40, 167, 69, 0.2);
    }

    .account-message.error {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
        border: 1px solid rgba(220, 53, 69, 0.2);
    }

/* ── Accessibility: disable hero entrance animations ── */
@media (prefers-reduced-motion: reduce) {
    .title,
    .search-container,
    .search-button {
        animation: none !important;
    }
}
