/* =============================================================================
   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;
    }
}
