/* ============================================================
   PRIME MOTORS — Global Stylesheet (v2 — Responsive Fixed)
   Consolidated from all pages (home, about, cars, details,
   reviews, contact, finance, test-drive)
   ============================================================ */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* ============================================================
   GLOBAL OVERFLOW SAFETY NET
   Prevents horizontal scroll caused by decorative blobs,
   negative margins, grid/flex children, long words, etc.
   ============================================================ */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip; /* modern browsers — safer than hidden */
}

/* Every element respects the parent width */
*,
*::before,
*::after {
    box-sizing: border-box;
    min-width: 0; /* critical for flex/grid children */
}

/* Media never overflows */
img,
video,
canvas,
svg,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Long URLs / long words don't break layout */
p, a, span, li, h1, h2, h3, h4, h5, h6, div {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Every <section> is a safe container for absolute children */
section {
    position: relative;
    max-width: 100%;
    overflow-x: clip;
}

/* ============================================================
   BASE
   ============================================================ */
* {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fafafa;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-50  { transition-delay: 0.05s; }
.delay-100 { transition-delay: 0.10s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.20s; }
.delay-250 { transition-delay: 0.25s; }
.delay-300 { transition-delay: 0.30s; }
.delay-350 { transition-delay: 0.35s; }
.delay-400 { transition-delay: 0.40s; }
.delay-500 { transition-delay: 0.50s; }
.delay-600 { transition-delay: 0.60s; }

/* ============================================================
   HOVER UTILITIES
   ============================================================ */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 40px -15px rgba(0, 0, 0, 0.15);
}

.card-img-zoom {
    overflow: hidden;
}

.card-img-zoom img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-img-zoom:hover img {
    transform: scale(1.08);
}

/* ============================================================
   NAV LINK
   ============================================================ */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================================
   PRIMARY BUTTON
   ============================================================ */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(220, 38, 38, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================================
   SCROLL PROGRESS + SCROLLBAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #f59e0b, #dc2626);
    z-index: 9999;
    transition: width 0.1s ease;
    border-radius: 0 3px 3px 0;
    max-width: 100vw;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* ============================================================
   TEXT / GRADIENTS
   ============================================================ */
.text-gradient {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-12px); }
}

.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.2); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    max-width: 100vw;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.6);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.7);
}

/* ============================================================
   STARS & BADGES
   ============================================================ */
.star-gold  { color: #f59e0b; }
.star-empty { color: #d1d5db; }

.badge-deal     { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.badge-owner    { background: linear-gradient(135deg, #059669, #047857); }
.badge-new      { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.badge-low      { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.badge-verified { background: linear-gradient(135deg, #059669, #047857); }

/* ============================================================
   STAT / VALUE / TEAM CARDS
   ============================================================ */
.stat-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.15);
}

.value-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px -15px rgba(220, 38, 38, 0.15);
    border-color: #fecaca;
}

.team-avatar {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.3);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #dc2626, #f59e0b, #dc2626);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 767px) {
    .timeline-line { left: 20px; }
    .timeline-dot  { left: 20px; }
}

/* ============================================================
   VENUS BADGE (women-owned)
   ============================================================ */
.venus-badge {
    background: linear-gradient(135deg, #7e22ce, #a855f7);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ============================================================
   RATING BARS + PROGRESS CIRCLE
   ============================================================ */
.rating-bar {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
}

.rating-bar-fill.active {
    width: var(--target-width);
}

.progress-circle {
    transform: rotate(-90deg);
}

.progress-circle circle {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   REVIEW / HELPFUL
   ============================================================ */
.review-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-ring {
    padding: 3px;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    border-radius: 50%;
}

.helpful-btn {
    transition: all 0.25s ease;
}

.helpful-btn:hover,
.helpful-btn.liked {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.star-input {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.star-input:hover {
    transform: scale(1.2);
}

.filter-chip {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-chip:hover {
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px -6px rgba(220, 38, 38, 0.5);
}

/* ============================================================
   CUSTOM CHECKBOX / RADIO PILL
   ============================================================ */
.custom-check {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.custom-check:checked {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #dc2626;
}

.custom-check:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 13px;
    font-weight: bold;
}

.radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

.radio-pill:hover {
    border-color: #fca5a5;
}

.radio-pill input {
    display: none;
}

.radio-pill .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.radio-pill input:checked ~ .dot {
    border-color: #dc2626;
}

.radio-pill input:checked ~ .dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.radio-pill input:checked ~ span {
    color: #dc2626;
}

.radio-pill:has(input:checked) {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fff);
}

/* ============================================================
   RANGE SLIDER
   ============================================================ */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}

.price-display {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-main {
    transition: opacity 0.4s ease;
}

.gallery-thumb {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumb.active {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.2);
}

.gallery-nav {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-container:hover .gallery-nav {
    opacity: 1;
}

.spec-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   TABS
   ============================================================ */
.tab-btn {
    position: relative;
    transition: all 0.25s ease;
}

.tab-btn.active {
    color: #dc2626;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border-radius: 2px;
}

/* ============================================================
   VIEW TOGGLE
   ============================================================ */
.view-btn {
    transition: all 0.25s ease;
}

.view-btn.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
    display: none;
}

.no-results.show {
    display: block;
}

/* ============================================================
   STICKY SIDEBARS
   ============================================================ */
@media (min-width: 1024px) {
    .sticky-sidebar {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .sticky-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .sticky-sidebar::-webkit-scrollbar-thumb {
        background: #e5e7eb;
        border-radius: 4px;
    }

    .sticky-review {
        position: sticky;
        top: 100px;
    }

    .sticky-detail {
        position: sticky;
        top: 100px;
    }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.form-label .req {
    color: #dc2626;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    outline: none;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    color: #111827;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
    transform: translateY(-2px);
}

.form-input:disabled {
    background: #f9fafb;
    color: #9ca3af;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

/* ============================================================
   FORM SECTIONS
   ============================================================ */
.form-section {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #fafafa, #fff);
    flex-wrap: wrap;
}

.form-section-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -6px rgba(220, 38, 38, 0.5);
}

.form-section-title {
    font-weight: 800;
    font-size: 16px;
    color: #111827;
    letter-spacing: -0.01em;
}

.form-section-sub {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ============================================================
   APP TYPE / VEHICLE OPTION CARDS
   ============================================================ */
.app-type-btn,
.vehicle-option {
    position: relative;
    padding: 20px 24px;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    width: 100%;
}

.app-type-btn:hover,
.vehicle-option:hover {
    border-color: #fca5a5;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -12px rgba(220, 38, 38, 0.15);
}

.app-type-btn.active,
.vehicle-option.active {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fff);
    box-shadow: 0 15px 35px -12px rgba(220, 38, 38, 0.25);
}

.check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.vehicle-option .check-circle {
    position: absolute;
    top: 16px;
    right: 16px;
}

.app-type-btn.active .check-circle,
.vehicle-option.active .check-circle {
    border-color: #dc2626;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.check-circle i {
    color: white;
    font-size: 11px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.app-type-btn.active .check-circle i,
.vehicle-option.active .check-circle i {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.step-dot.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(220, 38, 38, 0.5);
    transform: scale(1.1);
}

.step-dot.done {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #f3f4f6;
    border-radius: 2px;
    transition: background 0.4s ease;
    min-width: 20px;
}

.step-line.done {
    background: linear-gradient(90deg, #059669, #10b981);
}

/* ============================================================
   JOINT APPLICANT SECTION
   ============================================================ */
#jointSection {
    display: none;
}

#jointSection.visible {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TERMS BOX
   ============================================================ */
.terms-box {
    background: #fafafa;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 20px;
    max-height: 320px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.7;
    color: #6b7280;
}

.terms-box::-webkit-scrollbar {
    width: 6px;
}

.terms-box::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.terms-box h4 {
    font-size: 12px;
    font-weight: 800;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 16px;
    margin-bottom: 8px;
}

.terms-box h4:first-child {
    margin-top: 0;
}

.terms-box p {
    margin-bottom: 10px;
}

.terms-box ul {
    padding-left: 18px;
    margin-bottom: 10px;
    list-style-type: disc;
}

.terms-box li {
    margin-bottom: 4px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px -15px rgba(220, 38, 38, 0.15);
    border-color: #fecaca;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(-5deg);
}

.contact-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hours-row {
    transition: background 0.25s ease;
}

.hours-row:hover {
    background: #fef2f2;
}

.hours-row.today {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-left: 3px solid #dc2626;
}

.map-container {
    position: relative;
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #fecaca;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 12px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   SIDEBAR / TRUST
   ============================================================ */
.sidebar-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
    padding: 20px;
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.06);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.trust-item + .trust-item {
    border-top: 1px solid #f3f4f6;
}

.trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================================
   SECURE BADGE / REQ NOTE
   ============================================================ */
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
}

.req-note {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.req-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dc2626;
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.success-modal-content {
    background: #fff;
    border-radius: 28px;
    max-width: 520px;
    width: 100%;
    padding: 40px 32px;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   TEST DRIVE — DATE CARD / TIME SLOT / CALENDAR STRIP
   ============================================================ */
.date-card {
    padding: 14px 10px;
    border-radius: 16px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    min-width: 76px;
    flex-shrink: 0;
}

.date-card:hover:not(.disabled) {
    border-color: #fca5a5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -8px rgba(220, 38, 38, 0.15);
}

.date-card.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 25px -8px rgba(220, 38, 38, 0.5);
    transform: translateY(-3px);
}

.date-card.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f9fafb;
}

.time-slot {
    padding: 12px 8px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
}

.time-slot:hover:not(.disabled) {
    border-color: #fca5a5;
    transform: translateY(-2px);
    background: #fef2f2;
    color: #dc2626;
}

.time-slot.active {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px -6px rgba(220, 38, 38, 0.5);
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
    text-decoration: line-through;
}

.calendar-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.calendar-strip::-webkit-scrollbar {
    height: 4px;
}

.calendar-strip::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

.day-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.date-card.active .day-label {
    color: rgba(255, 255, 255, 0.8);
}

.day-number {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-top: 2px;
}

.date-card.active .day-number {
    color: white;
}

.month-label {
    font-size: 9px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}

.date-card.active .month-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   HIDDEN SECTION UTILITY
   ============================================================ */
.hidden-section {
    display: none;
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media screen and (max-width: 449px) {
    .top-head-btn {
        display: none !important;
    }
}

/* Reduce decorative blobs on very small screens */
@media screen and (max-width: 640px) {
    .blob-decor {
        display: none;
    }
}