:root {
    --primary: #0a192f;
    /* Deep Navy */
    --primary-light: #172a45;
    --secondary: #C5A059;
    /* Matte Gold */
    --secondary-hover: #AF8C46;
    --text-main: #e6f1ff;
    --text-muted: #8892b0;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.08);
    /* More opaque */
    --glass-border: rgba(255, 255, 255, 0.15);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --gradient-gold: linear-gradient(135deg, #C5A059 0%, #E0C078 50%, #C5A059 100%);
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.text-gold {
    color: var(--secondary);
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Header */
.header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 25, 47, 0.85);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text {
    font-family: var(--font-heading);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.phone-link {
    color: var(--secondary);
    font-weight: 600;
    border: 1px solid var(--secondary);
    padding: 8px 16px;
    border-radius: 5px;
}

.phone-link:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 180px;
    /* Header height + Trust Bar + space */
    position: relative;
    background: radial-gradient(circle at 50% 50%, #172a45 0%, #0a192f 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    background-image: url('assets/images/hero_background.png');
    /* Will link to generated image */
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--secondary);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    padding: 15px 35px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Shine effect removed for premium look */
.shine-effect {
    position: relative;
    overflow: hidden;
}

/* Simulator Card / Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.simulator-card {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.simulator-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.simulator-header h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.simulator-header p {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Form / Wizard */
.wizard-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 0 10px;
    position: relative;
}

.step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    min-width: 60px;
}

.step-item {
    width: 35px;
    height: 35px;
    background: var(--primary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Active Step */
.step-item.active {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    border-color: var(--secondary);
    transform: scale(1.1);
}

/* Completed Step */
.step-item.completed {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: all 0.3s;
}

.step-wrapper.active .step-label,
.step-wrapper.completed .step-label {
    color: var(--secondary);
    font-weight: 700;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 17px 5px 0 5px;
    /* Centers vertically with the 35px circle */
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

.step-line.active {
    background: var(--secondary);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

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

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

.form-step h4 {
    text-align: center;
    margin-bottom: 20px;
}

.step-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    margin-top: -10px;
}

/* Radio Cards (Step 1) */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.radio-card {
    cursor: pointer;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.card-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-content i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.radio-card input:checked+.card-content {
    border-color: var(--secondary);
    background: rgba(212, 175, 55, 0.05);
}

.radio-card input:checked+.card-content i {
    color: var(--secondary);
}

.radio-card:hover .card-content {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.07);
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

/* Range Slider */
.range-container {
    padding: 20px 0;
    text-align: center;
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: var(--primary-light);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-top: -10px;
    /* needed for some browsers */
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: var(--glass-border);
    border-radius: 5px;
}

.amount-display {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-top: 20px;
    font-weight: 700;
}

/* Form Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.btn-next,
.btn-submit {
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 25px;
    margin-left: auto;
    /* Push to right if alone */
}

.btn-prev {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 25px;
}

.btn-prev:hover {
    color: var(--white);
    border-color: var(--white);
}

/* Pulse removed */
.btn-submit.pulsing {
    /* animation: pulse 2s infinite; */
}

.privacy-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s;
}

.success-icon {
    font-size: 4rem;
    color: #4cd964;
    margin-bottom: 20px;
}

/* Sections */
.section {
    padding: 100px 0;
}

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

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light p,
.bg-light .feature-item {
    color: var(--primary);
}

.section-title h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title p {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.card {
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card h1,
.card h2,
.card h3,
.card h4 {
    color: var(--primary);
}

.value-card:hover {
    transform: translateY(-10px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary);
    /* Darker gold for light bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bg-light .icon-circle {
    color: #b8860b;
    /* Dark goldenrod for visibility on white */
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Styles */
.blog-image {
    background: #f0f4f8;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.blog-card .summary {
    font-size: 0.95rem;
    color: #222;
    font-weight: 500;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-text {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 10px;
}

.article-content p {
    font-size: 1.2rem;
    color: var(--text-main);
    /* White/Light Blue for dark background */
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content h3 {
    color: var(--secondary);
    /* Gold for headings on dark background */
    margin-top: 2rem;
    font-size: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.faq-question i {
    color: var(--secondary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust if content is very long */
    transition: max-height 0.5s ease-in-out;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: #020c1b;
    color: #a8b2d1;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    color: #a8b2d1;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--secondary);
}

/* Client Cases Section */
.case-card {
    border: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.case-image-header {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.case-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s;
}

.case-card:hover .case-image-header img {
    transform: scale(1.05);
}

/* Fallback for missing images */
.case-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #1a252f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--white);
    z-index: 2;
}

.case-profile h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: var(--white);
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.case-tag {
    font-size: 0.85rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.case-body {
    padding: 25px;
    color: var(--primary);
    background: #fff;
    flex-grow: 1;
}

.case-body p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    display: flex;
    gap: 10px;
}

.case-body p strong {
    color: var(--primary);
    min-width: 80px;
}

.case-body p:last-child {
    margin-bottom: 0;
}

.case-footer {
    padding: 20px 25px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.case-detail {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .case-image-header {
        height: 200px;
    }
}




/* Trust Bar */
.trust-bar {
    background: #050d1a;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
}

.trust-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 1;
}

.trust-item:hover {
    opacity: 1;
}

.trust-item img {
    height: 35px;
    filter: grayscale(100%) brightness(2);
    /* White logos */
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .trust-bar {
        padding: 10px 0;
        /* Reduce padding on mobile */
    }

    .trust-content {
        justify-content: flex-start;
        /* Align start for scrolling */
        overflow-x: auto;
        /* Enable horizontal scroll */
        flex-wrap: nowrap;
        /* Force single line */
        white-space: nowrap;
        gap: 25px;
        padding-bottom: 5px;
        /* Scrollbar adjustment */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
        padding-left: 20px;
        /* Initial padding */
        padding-right: 20px;
    }

    /* Hide scrollbar */
    .trust-content::-webkit-scrollbar {
        display: none;
    }

    .trust-item {
        flex: 0 0 auto;
        /* Prevent shrinking */
        font-size: 0.8rem;
    }

    .trust-item img {
        height: 25px;
        /* Smaller logos */
    }
}


/* Autocomplete */
.autocomplete-items {
    position: absolute;
    border: 1px solid var(--glass-border);
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 5px 5px;
    background: #172a45;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #172a45;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.9rem;
}

.autocomplete-items div:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.autocomplete-active {
    background-color: var(--secondary) !important;
    color: var(--primary) !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer p,
.footer a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

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

/* Responsive */
/* Tabs Navigation */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 20px;
        gap: 40px;
    }

    .hero h1 {
        font-size: 1.6rem;
        /* Reduced from 1.8rem */
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
    }

    .hero-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .hero-description {
        font-size: 0.95rem;
        /* Reduced from 1.1rem */
    }

    .nav {
        display: flex;
        gap: 10px;
    }

    .nav-link {
        display: none;
        /* Hide text links */
    }

    .phone-link {
        display: flex;
        font-size: 0.9rem;
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Mobile Tabs Scroll */
    .tabs-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Removed negative margins that caused overflow */
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        gap: 10px;
    }

    .tabs-container::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar */
    }

    .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.85rem;
        /* Slightly smaller text */
        padding: 8px 15px;
        /* Reduced padding */
    }
}

/* Trust Bar Logos Fix */
/* Trust Bar Logos Fix */
.trust-item img {
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    /* Slightly rounded, fitting the bar height better than a full pill which might be too tall */
    height: 32px;
    /* Increased slightly for better visibility */
    width: auto;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    filter: none;
    opacity: 1;
}

.trust-item span {
    vertical-align: middle;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #0a192f;
    border-top: 1px solid var(--secondary);
    color: white;
    padding: 20px;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 800px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cookie-accept:hover {
    background: white;
}

.btn-cookie-refuse {
    background: transparent;
    border: 1px solid #8892b0;
    color: #8892b0;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-refuse:hover {
    border-color: white;
    color: white;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Expert Section */
.expert-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.expert-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.expert-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #e6e6e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-align: center;
}

.expert-photo-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
}

.expert-photo-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
}

.expert-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Focus on face */
}

.expert-content {
    flex: 1;
    position: relative;
}

.expert-content blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--white);
    line-height: 1.6;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: -20px;
    left: -30px;
    z-index: -1;
}

.expert-sign h4 {
    margin: 0;
    color: var(--secondary);
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.expert-sign p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    /* Fix Glass Panel Padding on Mobile */
    .glass-panel {
        padding: 20px 10px;
        /* Minimal side padding */
    }

    .container {
        padding: 0 10px;
        /* Minimal side padding */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Stepper adjustments */
    .stepper {
        gap: 2px;
        /* Minimal gap */
        justify-content: space-between;
    }

    .step-wrapper {
        flex: 0 0 auto;
        /* Prevent growing too large */
    }

    .logo div {
        display: none;
        /* Hide 'Pole Hypothécaire' text to save space */
    }

    .step-circle {
        width: 22px;
        height: 22px;
        line-height: 20px;
        font-size: 0.75rem;
        border-width: 1px;
    }

    .step-label {
        font-size: 0.55rem;
        letter-spacing: 0;
        display: none;
        /* Hide labels on very small screens if needed, or keep very small */
    }

    .phone-link {
        font-size: 0.85rem;
        white-space: nowrap;
        padding: 6px 10px;
        margin-left: auto;
        /* Push to right */
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .case-image-header {
        height: 200px;
    }
}

/* Client Case Avatar */
.case-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Hide icon if avatar is present (optional cleanup) */
.case-header img+.case-icon {
    display: none;
}

/* Meeting Reassurance Section */
#rencontre {
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card.glass-hover {
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.card.glass-hover:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* Mini Reassurance (Under Form) */
.reassurance-mini {
    margin-top: 40px;
    text-align: center;
    padding: 25px;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    /* Ensure it fits on mobile */
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-sizing: border-box;
    /* Explicitly set box-sizing */
}

.reassurance-mini h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.reassurance-mini p {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 400;
}

.meeting-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.mini-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mini-item i {
    color: var(--secondary);
}

.mini-item span {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Visio Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

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

.modal-header h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-header p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
}