/* =============================================================================
   Car Zone Rental - Responsive CSS
   Mobile-first breakpoints: sm 576, md 768, lg 992, xl 1200
   ============================================================================= */

/* ─── Extra Small (< 576px) ────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    :root { --section-py: 3.5rem; }

    .hero-heading  { font-size: 2rem; }
    .hero-subtext  { font-size: 0.95rem; }
    .section-heading { font-size: 1.6rem; }

    .booking-form-card { padding: 1.3rem; border-radius: 1rem; }

    .hero-stats { gap: 1.5rem; }
    .stat-num   { font-size: 1.5rem; }

    .step-arrow { display: none; }

    .type-tab { font-size: 0.75rem; padding: 0.4rem 0.9rem; }

    .vehicle-card-img { height: 160px; }

    .footer-main { padding: 2.5rem 0; }

    .auth-card { padding: 1.5rem; }

    .testimonial-text { font-size: 1rem; }

    .back-to-top { bottom: 1rem; right: 1rem; }
}

/* ─── Small (576px – 767px) ────────────────────────────────────────────────── */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root { --section-py: 4rem; }

    .hero-heading { font-size: 2.4rem; }

    .booking-form-card { padding: 1.5rem; }

    .step-arrow { display: none; }
}

/* ─── Medium (768px – 991px) ───────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root { --section-py: 5rem; }

    .hero-heading { font-size: 2.8rem; }

    .cz-hero .hero-form-col { margin-top: 2rem; }

    .step-arrow { display: none; }

    .footer-main { padding: 3rem 0; }
}

/* ─── Large (992px – 1199px) ───────────────────────────────────────────────── */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-heading { font-size: 3rem; }
    .booking-form-card { padding: 1.8rem; }
}

/* ─── Extra Large (≥ 1200px) ───────────────────────────────────────────────── */
@media (min-width: 1200px) {
    .container { max-width: 1200px; }
}

/* ─── Navbar Collapse State ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .cz-navbar {
        background: rgba(15,23,42,0.97) !important;
        backdrop-filter: blur(20px);
    }

    #navbarMain {
        margin-top: 0.8rem;
        padding: 0.8rem 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .navbar-auth {
        padding: 0.8rem 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        margin-top: 0.5rem;
    }

    .cz-navbar .nav-link {
        padding: 0.7rem 0.5rem !important;
    }
}

/* ─── Hero: mobile stacking ─────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .cz-hero { padding-top: 80px; }
    .hero-text-col { text-align: center; }
    .hero-subtext   { margin: 0 auto 1.5rem; }
    .hero-stats     { justify-content: center; }
    .scroll-indicator { display: none; }
}

/* ─── Testimonials carousel controls ──────────────────────────────────────── */
@media (max-width: 575.98px) {
    .carousel-control-prev { left: -10px; }
    .carousel-control-next { right: -10px; }
}

/* ─── Print styles ─────────────────────────────────────────────────────────── */
@media print {
    .cz-navbar,
    .cz-footer,
    .back-to-top,
    .loading-overlay { display: none !important; }

    body { background: white !important; color: black !important; }
}

/* ─── Dark mode support ─────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* ─── Motion reduction ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Mobile Action Bar and Floating widgets ───────────────────────────────── */
/* Default (Desktop/Laptop) */
.cz-mobile-action-bar {
    display: none;
}

/* Mobile/Tablet (< 768px) */
@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .cz-float-whatsapp,
    .cz-float-call {
        display: none !important;
    }
    
    body {
        padding-bottom: 60px !important;
    }
    
    .cz-mobile-action-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 60px;
        z-index: 99999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
        background-color: #111827;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }
    
    .cz-mobile-action-bar .action-btn {
        width: 50% !important;
        flex: 0 0 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        color: #ffffff !important;
        transition: background-color 0.2s ease;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap;
    }
    
    .cz-mobile-action-bar .action-whatsapp {
        background-color: #25D366;
    }
    
    .cz-mobile-action-bar .action-whatsapp:hover {
        background-color: #20ba5a;
    }
    
    .cz-mobile-action-bar .action-call {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }
    
    .cz-mobile-action-bar .action-call:hover {
        opacity: 0.9;
    }
}
