/* ==========================================================================
   Volkswagen Luxury Showroom Stylesheet - Light Premium Theme
   ========================================================================== */

/* 1. Design Tokens & Core Settings */
:root {
    --primary: #001e50;         /* Volkswagen Navy */
    --primary-light: #0d3880;
    --accent: #b2946c;          /* Premium Gold */
    --accent-dark: #8c7250;
    --bg-main: #f8fafc;         /* Soft Light Background */
    --bg-card: #ffffff;         /* Pure White Card Background */
    --bg-wash: #f1f5f9;         /* Very Light Grey-Blue */
    --text-main: #0f172a;       /* Dark Grey Text */
    --text-muted: #475569;      /* Muted Slate Text */
    --border: #e2e8f0;          /* Light Slate Border */
    --green: #10b981;
    --red: #ef4444;
    --font-sans: 'Inter', sans-serif;
}

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

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Helper Utilities & Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: var(--primary);
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* Glassmorphism panel helper - Adapted for light theme */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* 3. Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
}

.header-top {
    background: #001233;
    padding: 8px 0;
    font-size: 13px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.header-top-info {
    display: flex;
    gap: 20px;
}

.header-top-info span i {
    color: var(--accent);
    margin-right: 6px;
}

.header-main {
    padding: 15px 0;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.logo-text p {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

nav .nav-list {
    display: flex;
    gap: 30px;
}

nav .nav-list a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
}

nav .nav-list a:hover,
nav .nav-list li.active a {
    color: var(--primary);
}

nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav .nav-list a:hover::after,
nav .nav-list li.active a::after {
    width: 100%;
}

.btn-hotline {
    background-color: var(--red);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.btn-hotline:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* 4. Hero Banner Carousel */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    margin-top: 96px; /* Height of header top + main */
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay to keep text highly legible and focus on vehicle */
    background: linear-gradient(to right, rgba(0, 18, 51, 0.85) 30%, rgba(0, 18, 51, 0.3));
}

.slide-content {
    position: relative;
    z-index: 20;
    width: 100%;
    color: #ffffff;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #ffffff;
}

.slide-content p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 600px;
}

.slide-actions {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(178, 148, 108, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: rgba(0, 30, 80, 0.05);
}

.hero-slider .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-slider .btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}


/* Slider controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.slider-arrow-prev { left: 20px; }
.slider-arrow-next { right: 20px; }

/* 5. Showcase / Product Grid Section */
.vehicle-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

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

.vehicle-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.vehicle-card:hover {
    transform: translateY(-6px);
    border-color: rgba(178, 148, 108, 0.4);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.vehicle-img-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #f1f5f9;
    overflow: hidden;
}

.vehicle-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: auto;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-img {
    transform: translate(-50%, -50%) scale(1.05);
}

.vehicle-img.full-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vehicle-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
}

.vehicle-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vehicle-name a:hover {
    color: var(--accent);
}

.vehicle-tagline {
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.vehicle-specs {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 30, 80, 0.08);
    padding-top: 12px;
    margin-bottom: 20px;
}

.vehicle-specs span i {
    color: var(--accent);
    margin-right: 4px;
}

.vehicle-price-box {
    margin-bottom: 20px;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
}

/* Version List inside Card */
.vehicle-version-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px dashed rgba(0, 30, 80, 0.1);
    padding-top: 12px;
    margin-top: 10px;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    line-height: 1.4;
}

.version-name {
    color: var(--text-muted);
    font-weight: 600;
}

.version-price {
    color: var(--red);
    font-weight: 700;
}

/* Custom Vehicle Promo Section inside Card - Elegant & Minimal */
.vehicle-promo-section {
    border-top: 1px dashed var(--border);
    padding-top: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: left;
}

.vehicle-promo-title {
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.vehicle-promo-list {
    margin: 0;
    padding: 0;
    list-style-type: none; /* Hide standard bullets */
}

.vehicle-promo-list li {
    font-size: 12.5px;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.vehicle-promo-list li:last-child {
    margin-bottom: 0;
}

.vehicle-promo-list li::before {
    content: "\f058"; /* FontAwesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent); /* Elegant Gold Checkmark instead of Green */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12.5px;
}

.vehicle-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 6. Pricing Calculator Widget */
.calc-section {
    background-color: var(--bg-wash);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.calc-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    background-color: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 30, 80, 0.1);
}

.calc-results {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.results-header h3 {
    font-size: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.results-total {
    font-size: 32px;
    font-weight: 700;
    color: var(--red);
    margin-top: 5px;
}

.fee-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 8px;
}

.fee-item span:first-child {
    color: var(--text-muted);
}

.fee-item span:last-child {
    font-weight: 600;
    color: var(--text-main);
}

/* 7. Footer Area */
footer {
    background-color: #001233;
    border-top: 1px solid var(--border);
    color: #cbd5e1;
    font-size: 14px;
    padding-top: 60px;
}

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

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.footer-bottom {
    background-color: #000c24;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    text-align: center;
}

/* 8. Responsive Adjustments */
@media (max-width: 1024px) {
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .header-top { display: none; }
    header { top: 0; }
    .hero-slider { height: 60vh; margin-top: 80px; }
    .slide-content h2 { font-size: 32px; }
    .slide-content p { font-size: 15px; }
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-card);
        transition: left 0.3s ease;
        padding: 40px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    }
    nav.active { left: 0; }
    nav .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    .menu-toggle { display: block; }
    .btn-hotline { display: none; }
}

/* 9. Dealership Promotion Box & Overview Styles */
.promo-box {
    border: 2px dashed var(--primary);
    padding: 35px;
    border-radius: 12px;
    background-color: var(--bg-card);
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.promo-tag {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.promo-title {
    color: var(--red);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.5px;
}

.promo-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center;
}

.promo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px auto;
    max-width: 650px;
}

.promo-list li {
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.promo-list li::before {
    content: "\f058"; /* FontAwesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--green);
    position: absolute;
    left: 0;
    top: 2px;
}

.promo-footer-text {
    font-size: 13px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 20px;
}

.promo-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.overview-wrap {
    margin-top: 40px;
}

.overview-tag {
    background-color: var(--red);
    color: #ffffff;
    padding: 6px 15px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.overview-heading {
    border-bottom: 2px solid var(--red);
    padding-bottom: 8px;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
}

.overview-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.overview-img-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.overview-img-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.overview-img-card img {
    width: 100%;
    height: auto;
    display: block;
}

.overview-img-caption {
    padding: 15px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
    background-color: var(--bg-wash);
}

/* 10. Floating Sticky Contact Sidebar */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.contact-item:hover {
    transform: scale(1.1);
}

.quote-btn {
    background-color: var(--primary);
}

.zalo-btn {
    background-color: #0068ff; /* Zalo Official Blue */
}

.phone-btn {
    background-color: var(--red);
}

/* Pulse animation for the phone icon */
.phone-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.4);
    z-index: -1;
    animation: phonePulseEffect 1.5s infinite ease-out;
}

@keyframes phonePulseEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Tooltip extending to the left */
.contact-tooltip {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: #001e50;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #001e50;
}

.contact-item:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* --- Quote Request Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-start; /* Aligns to top when modal height overflows viewport */
    justify-content: center;
    overflow-y: auto; /* Enable scrolling when modal is taller than screen */
    padding: 20px 10px; /* Padding for mobile viewports */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 850px; /* Wide modal card for 2 columns */
    padding: 0;
    margin: auto; /* Vertically centers when smaller than viewport, otherwise allows scrolling */
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

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

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--red);
    background-color: #ffe4e6;
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

/* Advisor Profile Block in Modal */
.advisor-profile {
    background-color: #f8fafc;
    border-right: 1px solid var(--border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advisor-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.advisor-name {
    font-size: 24px;
    font-weight: 800;
    color: #001e50;
    margin-bottom: 20px;
}

.advisor-gallery {
    margin-bottom: 15px;
}

.advisor-gallery-img-wrap {
    width: 100%;
    height: 380px; /* Taller height for portrait aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.advisor-gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%; /* Center on face / upper body */
}

.advisor-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.advisor-thumb {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.advisor-thumb:hover, .advisor-thumb.active {
    border-color: var(--accent);
}

.advisor-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

.advisor-phone {
    font-weight: 700;
    color: var(--red);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal Form Wrapper */
.modal-form-wrap {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.btn-submit-red {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 25px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-submit-red:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.btn-submit-red:active {
    transform: translateY(0);
}

.btn-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--red);
    color: #ffffff !important;
    border: 1px solid var(--red);
    border-radius: 8px;
    padding: 10px;
    font-weight: 700;
    font-size: 14px; /* Font size matches btn-primary */
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

.btn-red:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.25);
}

/* Dual Column Layout for bottom consultation section */
.advisor-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.btn-red-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    text-transform: uppercase;
}

.btn-red-form:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

/* Responsive modal & bottom section styles */
@media (max-width: 768px) {
    .modal-body-grid {
        grid-template-columns: 1fr;
    }
    .advisor-profile {
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .advisor-gallery-img-wrap {
        height: 240px; /* Reduce height on mobile to fit screen nicely */
    }
    .modal-form-wrap {
        padding: 24px;
    }
    .advisor-lead-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


