:root {
    /* Estima Colors (Red/White/Grey) */
    --primary-color: #E6332A;
    /* Lille Red */
    --primary-dark: #C41C14;
    --primary-light: #FFEBEE;
    --text-main: #1A1A1A;
    --text-secondary: #666666;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo .ia-accent {
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

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

.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 51, 42, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION - FINAL CLEAN VERSION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #E6332A 100%);
    padding: 100px 1.5rem;
    overflow: hidden;
    text-align: center;
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    color: white;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.hero-search-wrapper {
    position: relative;
    max-width: 720px;
    margin: 0 auto 3rem;
    z-index: 500;
    pointer-events: auto !important;
}

.hero-search-bar {
    background: white;
    height: 64px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    /* Balanced padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 501;
    pointer-events: auto !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 20px;
    margin: 0 1rem 0 1.2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#heroAddressInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #333;
    outline: none;
    padding: 0;
    margin: 0;
    height: 64px;
    /* Exact height of parent */
    line-height: 64px;
    /* Match height for vertical centering */
    width: 100%;
    text-align: left;
    font-family: inherit;
    pointer-events: auto !important;
    display: block;
}

.hero-search-bar:focus-within {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.hero-search-cta {
    background: var(--primary-color);
    color: white;
    border: none;
    height: 48px;
    /* Fixed height for the button inside the 64px bar */
    padding: 0 1.8rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-search-cta:hover {
    background: var(--primary-dark);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 51, 42, 0.4);
}

.hero-search-cta:active {
    transform: scale(0.98);
}

.hero-suggestions {
    position: absolute;
    top: calc(100% + 15px);
    left: 40px;
    right: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    display: none;
    text-align: left;
    border: 1px solid #eee;
    color: #333;
}

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}


.trust-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.trust-pill i {
    color: #FFCDD2;
}

.hero-ia-mention {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.hero-ia-mention i {
    color: #FFCDD2;
    font-size: 1rem;
}




/* --- Sections --- */
.section {
    padding: 5rem 1.5rem;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: #1A1A1A;
    color: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.separator {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* Timeline */
.steps-timeline {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #E5E7EB;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    background: var(--bg-light);
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Documents */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.check-list i {
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background: #111;
    color: white;
    padding: 4rem 1.5rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.white-logo {
    color: white !important;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* =========================================
   WIZARD MODAL STYLES (CRITICAL FIX) 
   ========================================= */

.wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wizard-modal.open {
    display: block;
    /* Use block for the wrapper */
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal-content-wrapper {
        width: 95%;
        max-width: 900px;
        height: 85vh;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-2xl);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    z-index: 2010;
    /* Above everything */
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-modal-btn:hover {
    background: #e0e0e0;
}

.app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Context for wizard steps */
}

.wizard-header {
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    /* Reduced */
    flex-shrink: 0;
}

.progress-wrapper {
    width: 150px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease;
}

.wizard-container {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
    background: white;
}

.step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.step.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}

.step-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.75rem;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-content::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.step-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    height: 80px;
}

@media (min-width: 768px) {
    .step-content {
        padding: 2.5rem;
    }

    .step-footer {
        padding: 1.5rem 2.5rem;
    }
}

/* WIZARD ELEMENTS STYLE */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.animate-text {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
    margin-bottom: 0.15rem;
    width: 100%;
}

.animate-up {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
    pointer-events: auto;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media(min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card-option {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.card-option:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(230, 51, 42, 0.12);
}

.card-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(230, 51, 42, 0.15);
    transform: scale(0.98);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.btn-next,
.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(230, 51, 42, 0.2);
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(230, 51, 42, 0.4);
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-back {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back:hover {
    background: #f8f8f8;
    border-color: #ccc;
    transform: translateX(-5px);
}

.btn-skip {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 1rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.btn-skip:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.step-footer-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

input,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    /* Reduced from 1rem */
}

/* Map Preview FIX */
.map-container-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    /* Even smaller for no-scroll */
    margin-top: 0.75rem;
    border-radius: 20px;
    background: #f0f0f0;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-preview {
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Mobile Fixes */
@media (max-width: 768px) {

    /* =========================================
       PREMIUM MOBILE OPTIMIZATIONS (FIXED)
       ========================================= */
    html,
    body {
        overflow-x: hidden !important;
        height: 100% !important;
        position: relative;
    }

    /* Navbar Mobile Cleanup */
    .navbar {
        padding: 0.5rem 0 !important;
    }

    .nav-links {
        display: none !important;
        /* Hide links on mobile for premium menu */
    }

    .nav-links.active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: white;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 2.5rem !important;
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    .nav-links.active a {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: var(--text-main) !important;
    }

    .nav-links.active .nav-cta {
        margin-top: 1rem;
        padding: 1rem 2.5rem !important;
    }

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

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

    .mobile-menu-btn {
        display: block !important;
        color: var(--primary-color);
        font-size: 1.5rem;
        z-index: 1001;
        /* Above mobile menu */
        position: relative;
    }

    /* PREMIUM COMPACT HERO */
    .hero-section {
        padding: 80px 1rem 40px !important;
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        background: linear-gradient(160deg, #1a1a1a 0%, #E6332A 100%) !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        letter-spacing: -0.5px !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 2.5rem !important;
        line-height: 1.5 !important;
        padding: 0 10px;
    }

    .hero-search-wrapper {
        max-width: 100% !important;
        margin: 0 auto 2.5rem !important;
    }

    .hero-search-bar {
        flex-direction: column !important;
        height: auto !important;
        padding: 12px !important;
        border-radius: 24px !important;
        gap: 10px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
    }

    .hero-search-bar .pin-icon {
        display: none !important;
    }

    #heroAddressInput {
        height: 50px !important;
        text-align: center !important;
        font-size: 1rem !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-search-cta {
        width: 100% !important;
        height: 54px !important;
        border-radius: 16px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
    }

    .hero-trust-badges {
        gap: 0.75rem !important;
    }

    .trust-pill {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
        background: rgba(255, 255, 255, 0.12) !important;
    }

    .hero-ia-mention {
        font-size: 0.75rem !important;
        margin-top: 1rem !important;
    }

    /* Address Suggestions Mobile Fix */
    .hero-suggestions {
        left: 12px !important;
        right: 12px !important;
        top: 65px !important;
        /* Right under the input on mobile */
        border-radius: 12px !important;
        max-height: 200px !important;
        overflow-y: auto !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
        display: none;
        position: absolute;
        background: white;
        z-index: 2100 !important;
    }

    /* HOME PAGE SECTIONS RESPONSIVE */

    /* Steps Timeline */
    .steps-timeline {
        flex-direction: column !important;
        gap: 2.5rem !important;
        padding: 0 1rem;
    }

    .steps-timeline::before {
        display: none !important;
    }

    .timeline-step {
        padding: 0 !important;
    }

    .step-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.5rem !important;
        margin: 0 auto 1rem !important;
    }

    /* Documents Section */
    .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .content-image-wrapper {
        order: -1;
        /* Image first on mobile */
        max-height: 220px !important;
        border-radius: 20px !important;
        margin-bottom: 1rem;
    }

    .check-list li {
        font-size: 1rem !important;
        gap: 1rem !important;
        align-items: flex-start !important;
        /* Better for multi-line text */
        text-align: left;
    }

    .check-list i {
        margin-top: 4px;
        /* Align icon with first line */
    }

    /* Tips Section */
    .tips-grid {
        gap: 3rem !important;
        margin-top: 2rem !important;
    }

    .tip-card {
        max-width: 100% !important;
    }

    .tip-card i {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.6rem !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .footer-col ul li {
        justify-content: center;
        display: flex;
    }

    /* WIZARD NO-SCROLL LAYOUT (dvh based) */
    .modal-content-wrapper {
        height: 100dvh !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
    }

    .app-container {
        height: 100% !important;
        width: 100% !important;
        max-width: 100vw !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
    }

    .wizard-header {
        height: 60px !important;
        padding: 0 1.25rem !important;
    }

    .wizard-header .logo {
        font-size: 1.2rem !important;
    }

    .progress-wrapper {
        width: 80px !important;
    }

    .wizard-container {
        flex: 1 !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .step {
        height: 100% !important;
        position: absolute !important;
        top: 0;
        left: 0;
        display: none;
    }

    .step.active {
        display: flex !important;
    }

    .step-content {
        padding: 1.25rem !important;
        flex: 1 !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .step-content h2 {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }

    .subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        color: var(--text-secondary);
    }

    /* Step 1: Map & Address */
    .address-confirm-box {
        margin-bottom: 1rem !important;
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
        border-radius: 12px !important;
    }

    .map-container-wrapper {
        height: 220px !important;
        flex-shrink: 0 !important;
        border-radius: 16px !important;
        margin: 0 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    /* Step 2: Cards Grid Premium */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .card-option {
        padding: 1rem 0.5rem !important;
        height: 110px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 20px !important;
        background: white !important;
        border: 1px solid #f0f0f0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .card-option.selected {
        border-color: var(--primary-color) !important;
        background: var(--primary-light) !important;
        box-shadow: 0 8px 20px rgba(230, 51, 42, 0.15) !important;
    }

    .card-icon {
        font-size: 2.2rem !important;
        margin-bottom: 0.25rem !important;
    }

    .card-option span {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
    }

    /* Step 3: Inputs & Counters - COMPLETE MOBILE REDESIGN */
    .form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .big-input {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }

    .big-input label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }

    .big-input input[type="number"] {
        font-size: 1.6rem !important;
        text-align: center !important;
        padding: 0.75rem !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .range-group {
        width: 100% !important;
        margin-top: 0.75rem !important;
    }

    /* CRITICAL: Single column layout for counters */
    .counters-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
        margin: 0 !important;
        align-items: center !important;
    }

    .counter-group {
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .counter-group label {
        margin: 0 !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    .counter-control {
        width: auto !important;
        max-width: 200px !important;
    }

    .modern-input-group {
        width: auto !important;
        max-width: 200px !important;
        height: 50px !important;
    }

    .modern-counter-input {
        width: 80px !important;
        min-width: 80px !important;
        font-size: 1.3rem !important;
        padding: 0.75rem 0.5rem !important;
    }

    .btn-counter {
        width: 50px !important;
        min-width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
    }

    /* Form group for Étage - same styling as counter-group */
    .form-group {
        width: 100% !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
        text-align: center !important;
    }

    /* Step Footer: Fixed Bottom */
    .step-footer {
        padding: 1.25rem !important;
        background: white !important;
        border-top: 1px solid #f0f0f0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
        gap: 10px !important;
    }

    .btn-back {
        width: 48px !important;
        height: 52px !important;
        border-radius: 14px !important;
        background: #f5f5f5 !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important;
    }

    .btn-back::before {
        content: "\f060";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.1rem;
        color: #333;
    }

    .btn-next,
    .btn-submit {
        flex: 1 !important;
        height: 52px !important;
        border-radius: 14px !important;
        font-size: 1rem !important;
        justify-content: center !important;
    }

    /* Result Section Mobile */
    .price-range-container {
        padding: 1.5rem !important;
        margin: 1.5rem 0 !important;
        border-radius: 24px !important;
    }

    .price-cards {
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin: 1rem 0 !important;
    }

    .price-card {
        min-width: 0 !important;
        width: 100% !important;
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }

    .price-card-value {
        font-size: 1.6rem !important;
    }

    .market-info .info-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.25rem !important;
        border-radius: 20px !important;
    }

    .market-info .info-text {
        text-align: center !important;
    }

    .info-value {
        font-size: 1.2rem !important;
    }

    .neighborhood-range {
        margin-top: 15px !important;
    }

    .sold-properties-section {
        margin-top: 2rem !important;
    }

    .sold-property-item {
        padding: 1rem !important;
        border-radius: 16px !important;
        margin-bottom: 0.75rem !important;
    }

    .sold-property-meta {
        font-size: 0.75rem !important;
        gap: 0.5rem !important;
    }

    .sold-property-price {
        font-size: 1.1rem !important;
    }

    .ai-analysis-report {
        padding: 1.25rem !important;
        border-radius: 20px !important;
    }
}



/* CONSEILS SECTION - REDESIGN (Small Circles / Discreet) */
.tips-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.tip-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: center;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.tip-card i {
    width: 80px;
    height: 80px;
    background: white;
    /* Icons in white circles */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tip-card:hover i {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(230, 51, 42, 0.3);
}

.tip-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: white;
    /* White text for dark section */
}

.tip-card p {
    color: rgba(255, 255, 255, 0.7);
    /* Light grey text */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modal Autocomplete Suggestions */
.modal-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
}

#modalAddressInput {
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
    background: #F9FAFB;
}

#modalAddressInput:focus {
    border-color: var(--primary-color);
    outline: none;
    background: white;
}

/* Form Layout Styles */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.big-input {
    width: 100%;
}

.big-input input[type="number"] {
    width: 100%;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.big-input input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
    background: #f9f9f9;
}

/* Form Group Styles */
.form-group {
    width: 100%;
    margin-bottom: 1rem;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.counters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.counter-group {
    width: 100%;
    text-align: center;
}

.counter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: center;
}

.counter-control {
    width: 100%;
}

/* Modern Counter Inputs */
.modern-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: visible;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    height: 48px;
    width: 100%;
    max-width: 200px;
}

.modern-counter-input {
    width: 70px;
    min-width: 70px;
    border: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    padding: 0.75rem 0.5rem;
    -moz-appearance: textfield;
    appearance: textfield;
    cursor: text;
    pointer-events: auto !important;
    /* Ensure input is clickable */
    outline: none;
    background: white;
    flex-shrink: 0;
    /* Firefox */
}

.modern-counter-input:focus {
    background: #f9f9f9;
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.modern-counter-input::-webkit-outer-spin-button,
.modern-counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-counter {
    background: #f0f0f0;
    border: none;
    width: 45px;
    min-width: 45px;
    height: 48px;
    font-size: 1.2rem;
    cursor: pointer !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text-main);
    font-weight: 700;
    pointer-events: auto !important;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    /* Make touch target bigger */
}


.btn-counter:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.btn-counter:active {
    transform: scale(0.95);
}

/* Range Slider Styling */
.range-group {
    margin-top: 1rem;
    width: 100%;
}

input[type="range"].modern-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, #e0e0e0 50%, #e0e0e0 100%);
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

input[type="range"].modern-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

input[type="range"].modern-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(230, 51, 42, 0.3);
}

input[type="range"].modern-range::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

input[type="range"].modern-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

input[type="range"].modern-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(230, 51, 42, 0.3);
}

input[type="range"].modern-range::-moz-range-thumb:active {
    transform: scale(0.95);
}

/* Hero CTA Button Style */
.hero-cta-container {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-primary-btn {
    background: var(--primary-color);
    color: white;
    padding: 1.25rem 3.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(230, 51, 42, 0.4);
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
}

.hero-primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(230, 51, 42, 0.5);
}

.hero-primary-btn:active {
    transform: translateY(-1px) scale(1);
}



/* --- Result & Loading Styles (RESTORED) --- */
.loading-container {
    text-align: center;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loading-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse 1.5s infinite;
}

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-progress-wrapper {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 2rem auto 1rem;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.2s linear;
}

.loading-steps {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.loading-step.active {
    opacity: 1;
    font-weight: 500;
}

.loading-step.completed {
    color: #27ae60;
    opacity: 1;
}

.loading-step.completed i {
    color: #27ae60;
}

/* --- Result Section --- */
.result-container {
    text-align: center;
    padding: 1rem 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #d4edda;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.price-range-container {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.price-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0 2.5rem;
    flex-wrap: wrap;
}

.price-card {
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    min-width: 180px;
}

.price-card.low {
    background: #FFF5F5;
    border: 1px solid #fed7d7;
}

.price-card.high {
    background: #F0FFF4;
    border: 1px solid #c6f6d5;
}

.price-card-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-card-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
}

/* Gauge Visual */
.gauge-visual {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.gauge-track {
    height: 10px;
    background: #edf2f7;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #fc8181 0%, #68d391 100%);
    width: 0%;
    border-radius: 10px;
    transition: width 1s ease-out;
}

.market-info {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.info-card {
    background: white;
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-text {
    text-align: left;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.info-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.sold-properties-section {
    text-align: left;
    margin-top: 3rem;
}

.sold-properties-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.sold-property-item {
    background: white;
    border: 1px solid #eee;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.sold-property-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

/* --- Radio Cards (Wizard) --- */
.radio-cards-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    cursor: pointer;
    min-width: 150px;
    margin-bottom: 0;
}

.radio-card input {
    display: none;
}

.radio-card .card-content {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.25rem;
    text-align: center;
    background: #F9FAFB;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 500;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-card:hover .card-content {
    border-color: #ccc;
    background: white;
    transform: translateY(-3px);
}

.radio-card input:checked+.card-content {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(230, 51, 42, 0.12);
    transform: scale(0.98);
}

/* --- Tags (Les Plus) --- */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tag-option {
    border: 1px solid var(--border-color);
    background: white;
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.tag-option:hover {
    background: #fdfdfd;
    border-color: #bdc3c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tag-option.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(230, 51, 42, 0.25);
    transform: scale(1.05);
}



.price-range-container {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.price-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0 2.5rem;
    flex-wrap: wrap;
}

.price-card {
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    min-width: 180px;
}

.price-card.low {
    background: #FFF5F5;
    border: 1px solid #fed7d7;
}

.price-card.high {
    background: #F0FFF4;
    border: 1px solid #c6f6d5;
}

.price-card-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-card-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
}

/* Gauge Visual */
.gauge-visual {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.gauge-track {
    height: 10px;
    background: #edf2f7;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #fc8181 0%, #68d391 100%);
    width: 0%;
    border-radius: 10px;
    transition: width 1s ease-out;
}

.sold-properties-section {
    text-align: left;
    margin-top: 3rem;
}

.sold-properties-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.sold-property-item {
    background: white;
    border: 1px solid #edf2f7;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sold-property-item:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sold-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sold-property-type {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.05rem;
}

.sold-property-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1rem;
}

.sold-property-price {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.25rem;
}

#soldPropertiesList {
    width: 100%;
}

/* Premium Modern Counters & Inputs */
.modern-input-group {
    display: flex;
    align-items: center;
    background: #fdfdfd;
    gap: 1.25rem;
    justify-content: center;
    margin: 0.5rem 0;
    padding: 0.4rem;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    width: fit-content;
    margin: 0 auto;
}

.btn-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    color: var(--text-main);
    font-size: 1.6rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.btn-counter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 51, 42, 0.1);
}

.modern-counter-input {
    width: 40px;
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modern-counter-input::-webkit-inner-spin-button,
.modern-counter-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Redesign for Surface & contact inputs */
.form-group.big-input input,
.contact-inputs input,
#floorInput {
    text-align: center;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    border-radius: 16px;
    border: 2px solid #f2f2f2;
    background: #fff;
    transition: all 0.3s ease;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.form-group.big-input input {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.form-group.big-input input:focus,
.contact-inputs input:focus,
#floorInput:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 10px 25px rgba(230, 51, 42, 0.08);
    outline: none;
    transform: translateY(-1px);
}

/* Surface Range Slider Premium */
.range-group {
    margin: 0.5rem 0;
    padding: 0 0.5rem;
}

.modern-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #f0f0f0;
    outline: none;
    margin: 1.25rem 0;
}

.modern-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(230, 51, 42, 0.3);
    border: 3px solid white;
    transition: all 0.2s;
}

.modern-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.ia-accent {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
}

.step-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.form-grid {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.counters-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

/* Details Step (Step 3) Special Refinement */
#step-3 h2 {
    font-size: 1.25rem !important;
    margin: 0.5rem 0 0.1rem;
}

#step-3 .subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
}

#step-3 .form-group label {
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.form-group.big-input {
    margin-bottom: 0.5rem;
    width: 100%;
}

.form-group.big-input input {
    height: 50px !important;
    padding: 0.5rem !important;
    font-size: 1.4rem !important;
    max-width: 250px;
    margin: 0 auto !important;
}

.modern-range {
    margin: 0.75rem 0 !important;
    height: 4px !important;
}

.modern-range::-webkit-slider-thumb {
    width: 20px !important;
    height: 20px !important;
}

.counters-row {
    margin-bottom: 0.5rem !important;
}

.counter-group label {
    margin-bottom: 0.1rem !important;
}

.modern-input-group {
    padding: 0.25rem !important;
    height: 44px;
}

/* Re-integrated Jauge de prix du quartier */
.neighborhood-range {
    margin: 1rem auto 0;
    width: 100%;
    max-width: 500px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.range-bar {
    height: 8px;
    background: linear-gradient(to right, #4CAF50 0%, #FFC107 50%, #F44336 100%);
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.range-indicator {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.range-title {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.sold-properties-section {
    display: block !important;
    margin-top: 3rem;
}

/* --- Photo Upload Styles --- */
.photo-upload-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    background: var(--bg-light);
    transition: all 0.2s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.upload-content p {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.upload-content span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
    z-index: 2;
}

.remove-photo:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.ai-badge {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(90deg, #FDF2F2 0%, #FFFBEB 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #92400E;
    border: 1px solid #FEF3C7;
}

.ai-badge i {
    color: #F59E0B;
    font-size: 1.1rem;
}

/* --- AI Analysis Report Styles --- */
.ai-analysis-report {
    background: linear-gradient(135deg, #FFF 0%, #F9FAFB 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
    box-shadow: var(--shadow-md);
}

.ai-report-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ai-report-header i {
    font-size: 1.25rem;
}

.ai-report-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

#aiSummaryText {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.ai-detected-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-feature-tag {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-feature-tag i {
    color: #FBBF24;
}

.result-actions {
    margin-top: 2.5rem;
}

.btn-download {
    background: #2D3748;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #1A202C;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Documents Section Image */
.content-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    max-height: 480px;
}

.section-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.content-image-wrapper:hover .section-img {
    transform: scale(1.05);
}

/* FIX: Ensure Result Section is compact and visible */
.result-container {
    padding-top: 0 !important;
    margin-top: 1rem !important;
    padding-bottom: 2rem;
    overflow: visible;
}

/* Improve Gauge Labels Visibility & Spacing */
#rangeMin,
#rangeMax {
    font-weight: 600;
    color: #718096;
    margin-top: 10px;
    display: inline-block;
    font-size: 0.85rem;
}

.result-header {
    margin-bottom: 1rem !important;
    /* Compact header */
}

/* Step 4: Caractéristiques - État Général and Les Plus styling */
.scrollable-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.75rem 0 0.5rem;
    text-align: center;
}

/* First section-title (État général) should have less top margin */
.scrollable-content .section-title:first-child {
    margin-top: 0;
}

/* Radio cards row centering */
.radio-cards-row {
    justify-content: center;
}

/* Modern select styling */
.modern-select {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1rem;
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #f9fafb;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-select:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
}

.step-content {
    justify-content: flex-start;
    padding-top: 0.5rem !important;
}

/* =========================================
   CHATBOT STYLES - MODERN CONVERSATIONAL UI
   ========================================= */

.chatbot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chatbot-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.chatbot-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.chatbot-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 90vh;
    max-height: 750px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    z-index: 2001;
}

@media (max-width: 520px) {
    .chatbot-container {
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .chatbot-messages {
        padding: 15px 15px 80px 15px;
        gap: 12px;
    }

    /* Ensure counter confirm button is always visible */
    .chat-counter-confirm {
        margin-top: 12px !important;
        margin-bottom: 10px !important;
    }

    /* Make chat options more compact */
    .chat-options {
        gap: 6px;
        margin-top: 8px;
        padding-bottom: 15px;
    }

    /* Reduce message bubble padding */
    .message-bubble {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* Reduce chat message gap */
    .chat-message {
        gap: 8px;
    }

    /* Smaller avatar on mobile */
    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

.close-chat-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-chat-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
}

/* Chatbot Header */
.chatbot-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c41c14 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chatbot-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chatbot-progress {
    margin-left: auto;
}

.progress-ring {
    position: relative;
    width: 45px;
    height: 45px;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
}

.progress-ring-fill {
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 700;
}

/* Messages Container */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* Message Bubbles */
.chat-message {
    display: flex;
    gap: 10px;
    max-width: 90%;
    animation: messageIn 0.3s ease-out;
}

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

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

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-message.user .message-avatar {
    background: #e5e7eb;
    color: #666;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-bubble {
    background: white;
    padding: 14px 18px;
    border-radius: 20px;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
}

.chat-message.user .message-bubble {
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    border-top-right-radius: 4px;
}

/* Option Buttons */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.chat-option-btn {
    padding: 10px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 100px;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-option-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.chat-option-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.chat-option-btn i {
    margin-right: 6px;
}

/* Multi-select options (for charm features) */
.chat-options.multi .chat-option-btn.selected {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Counter Input (for rooms/bedrooms) */
.chat-counter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.chat-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-counter-label {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.chat-counter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.chat-counter-value {
    width: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.chat-counter-confirm {
    margin-top: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-counter-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 14px 18px;
    background: white;
    border-radius: 20px;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}

/* Input Area */
.chatbot-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input-area input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 100px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input-area input:focus {
    border-color: var(--primary-color);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Contact Form */
.chatbot-contact-form {
    padding: 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.contact-form-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-inner input {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form-inner input:focus {
    border-color: var(--primary-color);
}

.chat-submit-btn {
    margin-top: 5px;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chat-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 51, 42, 0.3);
}

/* Result View */
.chatbot-result {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card {
    background: white;
    border-radius: 24px;
    padding: 30px 25px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: resultIn 0.5s ease-out;
}

@keyframes resultIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-header-chat {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.result-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.result-address {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.result-estimation {
    text-align: center;
    margin-bottom: 25px;
}

.estimation-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estimation-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.price-low,
.price-high {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.price-low {
    color: #f59e0b;
}

.price-high {
    color: #22c55e;
}

.price-separator {
    color: #ccc;
    font-weight: 300;
}

.result-gauge {
    margin: 25px 0;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.gauge-bar {
    height: 12px;
    background: linear-gradient(90deg, #fef3c7 0%, #d9f99d 50%, #bbf7d0 100%);
    border-radius: 6px;
    position: relative;
}

.gauge-fill-chat {
    height: 100%;
    background: var(--primary-color);
    border-radius: 6px;
    width: 0;
    transition: width 1s ease;
}

.gauge-marker {
    position: absolute;
    top: -8px;
    width: 4px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(230, 51, 42, 0.4);
    transition: left 1s ease;
}

.gauge-label-center {
    text-align: center;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.result-cta {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 16px;
}

.result-cta p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.cta-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-call-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 51, 42, 0.3);
}

.result-market-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.market-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Feedback Message */
.chat-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    font-size: 0.85rem;
    color: #1e40af;
    margin-top: 8px;
}

.chat-feedback i {
    color: #3b82f6;
}

.chat-feedback.warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.chat-feedback.warning i {
    color: #f59e0b;
}

/* =========================================
   INLINE INPUT FOR SURFACE (Chatbot)
   ========================================= */

.chat-inline-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    background: white;
    padding: 6px 8px;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    max-width: 200px;
}

.chat-inline-input:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(230, 51, 42, 0.15);
}

.chat-surface-inline {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
    outline: none;
    color: var(--text-main);
    font-weight: 600;
    min-width: 0;
    text-align: center;
    width: 80px;
    height: 40px;
    line-height: 40px;
}

.chat-surface-inline::placeholder {
    color: #999;
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
    line-height: 40px;
}

.chat-inline-submit {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-inline-submit:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-inline-submit:active {
    transform: scale(0.95);
}

/* =========================================
   MOBILE KEYBOARD HANDLING FOR CHATBOT
   ========================================= */

@media (max-width: 520px) {

    /* Ensure the chatbot container uses dynamic viewport height */
    .chatbot-container {
        height: 100dvh;
        max-height: 100dvh;
    }

    /* Messages container with safe scrolling */
    .chatbot-messages {
        flex: 1;
        min-height: 0;
        padding-bottom: 30px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Inline input styling for mobile */
    .chat-inline-input {
        padding: 6px;
        border-radius: 50px;
    }

    .chat-surface-inline {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 8px 12px;
    }

    .chat-inline-submit {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* Counter group mobile optimizations */
    .chat-counter-group {
        padding-bottom: 10px;
    }

    .chat-counter {
        padding: 8px 12px;
        gap: 8px;
    }

    .chat-counter-label {
        font-size: 0.85rem;
    }

    .chat-counter-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .chat-counter-value {
        width: 32px;
        font-size: 1rem;
    }

    /* Confirm button always visible and accessible */
    .chat-counter-confirm {
        width: 100%;
        padding: 14px 24px;
        margin-top: 15px;
        margin-bottom: 15px;
        font-size: 1rem;
        position: relative;
        z-index: 10;
    }

    /* Contact form mobile optimizations */
    .chatbot-contact-form {
        padding: 20px 20px 60px;
        /* Extra padding for mobile bottom bar */
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
        flex-shrink: 0;
        border-top: 1px solid #eee;
        background: white;
    }

    .contact-form-inner {
        gap: 6px;
    }

    .contact-form-inner input {
        padding: 8px 10px;
        font-size: 16px;
        border-radius: 8px;
    }

    .chat-submit-btn {
        padding: 10px;
        font-size: 0.85rem;
        margin-top: 8px;
        border-radius: 8px;
    }

    /* Make chatbot messages area smaller when form is shown */
    .chatbot-messages.form-visible {
        max-height: 35vh;
        overflow-y: auto;
    }

    /* Options buttons mobile */
    /* Options buttons mobile - Bigger touch targets */
    .chat-option-btn {
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 4px;
    }

    /* Result card mobile adjustments */
    .result-card {
        padding: 20px 18px;
    }

    .price-low,
    .price-high {
        font-size: 1.25rem;
    }

    .estimation-range {
        gap: 10px;
    }
}

/* Visual viewport handling for keyboard */
@supports (height: 100dvh) {
    .chatbot-modal.open .chatbot-container {
        height: 100dvh;
    }
}