/* 
 * Delhi Car Rental - Responsive Overrides
 */

/* Extra Large Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 73.125rem;
    }
}

/* Medium & Small Laptops (61.9375rem and down) */
@media (max-width: 991px) {
    .nav-link::after {
        display: none;
    }
    
    .navbar-nav {
        background-color: #ffffff;
        border-radius: 0.5rem;
        padding: 1rem;
        box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.05);
        margin-top: 1rem;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid var(--color-border);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }

    /* Navbar Brand Overrides on Mobile/Tablet */
    .navbar-brand .brand-logo {
        width: 2.4rem !important;
        height: 2.4rem !important;
    }

    .brand-text span.fw-bold {
        font-size: 1.15rem !important;
    }

    .brand-text span.text-muted {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
    }

    .navbar {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

    /* Custom Toggler Button */
    .navbar-toggler {
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 0 !important;
        background-color: var(--color-primary-light) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(237, 96, 16, 0.2) !important;
        transition: all 0.25s ease !important;
    }

    .navbar-toggler:active {
        transform: scale(0.95) !important;
    }

    .navbar-toggler-icon {
        background-image: none !important;
        width: 16px !important;
        height: 2px !important;
        background-color: var(--color-primary) !important;
        display: block !important;
    }

    .navbar-toggler::before,
    .navbar-toggler::after {
        content: '' !important;
        display: block !important;
        width: 16px !important;
        height: 2px !important;
        background-color: var(--color-primary) !important;
    }

    /* Hero Split Layout Overrides */
    .hero-new-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-left-content {
        text-align: center;
    }

    .outline-bg-text {
        font-size: 4rem;
        top: 1.25rem;
    }

    .orange-u-shape-backdrop {
        display: none;
    }

    .hero-car-slider {
        height: 28rem;
        margin-top: 2rem;
    }

    .hero-visual-wrapper {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .hero-car-card {
        width: 90%;
        max-width: 26rem;
        margin: 0 auto;
    }

    .hero-foreground-car {
        height: auto;
        max-height: none;
        width: 100%;
        object-fit: contain;
    }

    .min-h-lg-500 {
        min-height: auto;
    }
}

/* Tablets (47.9375rem and down) */
@media (max-width: 767px) {
    body {
        font-size: 0.9rem !important;
    }

    h1, .h1 { font-size: 1.8rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    h3, .h3 { font-size: 1.3rem !important; }
    h4, .h4 { font-size: 1.1rem !important; }
    h5, .h5 { font-size: 0.95rem !important; }
    h6, .h6 { font-size: 0.85rem !important; }

    .display-6 {
        font-size: 1.6rem !important;
    }

    .fs-1 { font-size: 1.75rem !important; }
    .fs-2 { font-size: 1.5rem !important; }
    .fs-3 { font-size: 1.3rem !important; }
    .fs-4 { font-size: 1.15rem !important; }
    .fs-5 { font-size: 1rem !important; }
    .fs-6 { font-size: 0.88rem !important; }
    .fs-7 { font-size: 0.8rem !important; }
    .fs-8 { font-size: 0.72rem !important; }

    .py-6 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .heading-line {
        width: 3.125rem;
    }

    .benefits-section .stat-card {
        padding: 2rem 1.5rem !important;
    }

    /* Hero Tablet Overrides */
    .hero-new-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1rem !important;
    }

    .hero-new-section h1 {
        font-size: 1.75rem !important;
    }

    .hero-new-section h2 {
        font-size: 1.85rem !important;
    }

    /* Booking Tabs Segmented Control */
    .booking-tabs-container {
        background-color: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding: 4px !important;
        border-radius: 10px !important;
        display: flex !important;
        gap: 4px !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .btn-booking-tab {
        flex: 1 1 0 !important;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.75) !important;
        border: none !important;
        padding: 0.55rem 0.25rem !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        transition: all 0.25s ease !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn-booking-tab.active {
        background-color: #ffffff !important;
        color: var(--color-primary) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    /* Booking Form Box Card */
    .booking-form-box {
        padding: 1.15rem !important;
        border-radius: 12px !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
    }

    /* Reduce vertical & horizontal layout gaps inside form */
    .booking-form-box .row.g-3 {
        --bs-gutter-y: 0.75rem !important;
        --bs-gutter-x: 0.50rem !important;
    }

    .booking-form-box label {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        color: #495057 !important;
        margin-bottom: 0.2rem !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .booking-form-box .form-control,
    .booking-form-box .form-select {
        height: 2.65rem !important;
        font-size: 0.76rem !important;
        padding: 0.3rem 0.65rem !important;
        border: 1.5px solid #eaeaea !important;
        border-radius: 8px !important;
        background-color: #fcfcfc !important;
        color: #2b2b2b !important;
        font-weight: 500 !important;
        transition: all 0.2s ease-in-out !important;
        box-shadow: none !important;
    }

    .booking-form-box .form-control:focus,
    .booking-form-box .form-select:focus {
        border-color: var(--color-primary) !important;
        background-color: #ffffff !important;
        box-shadow: 0 0 0 3px rgba(237, 96, 16, 0.15) !important;
    }

    /* Booking Button CTA */
    .booking-form-box .btn-black-find {
        background: linear-gradient(135deg, var(--color-primary), #d5530b) !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 0.65rem 1.5rem !important;
        height: 2.75rem !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        box-shadow: 0 6px 20px rgba(237, 96, 16, 0.3) !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        transition: all 0.3s ease !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .booking-form-box .btn-black-find:hover,
    .booking-form-box .btn-black-find:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(237, 96, 16, 0.4) !important;
    }

    /* Floating buttons sizing overrides */
    .floating-whatsapp {
        display: none !important;
    }
    
    .floating-back-to-top {
        width: 44px !important;
        height: 44px !important;
        font-size: 16px !important;
        bottom: 15px !important;
        right: 15px !important;
    }

    .outline-bg-text {
        font-size: 3rem;
        top: 0.625rem;
    }

    .hero-car-slider {
        height: 26rem;
    }

    .hero-car-card {
        width: 92%;
        max-width: 24rem;
        margin: 0 auto;
    }

    .achv-title {
        font-size: 1.6rem !important;
    }

    .achv-number {
        font-size: 1.5rem !important;
    }

    .achv-label {
        font-size: 0.78rem !important;
    }

    /* Testimonials Mobile Scale down */
    .gr-name {
        font-size: 0.88rem !important;
    }

    .gr-designation {
        font-size: 0.68rem !important;
    }

    .gr-text {
        font-size: 0.82rem !important;
    }

    .gr-tag {
        font-size: 0.68rem !important;
    }

    /* FAQ Section Mobile Overrides */
    .faq-btn {
        padding: 0.9rem 1rem !important;
        gap: 0.75rem !important;
    }

    .faq-icon-wrap {
        width: 2.1rem !important;
        height: 2.1rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }

    .faq-question {
        font-size: 0.88rem !important;
    }

    .faq-answer {
        padding: 0.75rem 1rem 1rem 1rem !important;
        font-size: 0.82rem !important;
    }

    .faq-cta-panel {
        padding: 1.5rem 1.25rem !important;
    }

    .faq-btn-group {
        flex-direction: row !important;
        gap: 0.5rem !important;
    }

    .faq-cta-btn {
        flex: 1 1 0 !important;
        font-size: 0.85rem !important;
        padding: 0.55rem 0.5rem !important;
        white-space: nowrap !important;
    }
}

/* Extra Small Mobile (35.9375rem and down) */
@media (max-width: 575px) {
    body {
        font-size: 0.86rem !important;
    }

    h1, .h1 { font-size: 1.6rem !important; }
    h2, .h2 { font-size: 1.35rem !important; }
    h3, .h3 { font-size: 1.2rem !important; }
    h4, .h4 { font-size: 1.05rem !important; }
    h5, .h5 { font-size: 0.9rem !important; }
    h6, .h6 { font-size: 0.8rem !important; }

    .display-6 {
        font-size: 1.4rem !important;
    }

    .fs-1 { font-size: 1.5rem !important; }
    .fs-2 { font-size: 1.35rem !important; }
    .fs-3 { font-size: 1.2rem !important; }
    .fs-4 { font-size: 1.05rem !important; }
    .fs-5 { font-size: 0.92rem !important; }
    .fs-6 { font-size: 0.82rem !important; }
    .fs-7 { font-size: 0.75rem !important; }
    .fs-8 { font-size: 0.68rem !important; }

    .stat-card, .fleet-card, .package-card {
        margin-bottom: 0.9375rem;
    }

    /* Hero Tiny Mobile Overrides */
    .hero-new-section {
        padding-top: 1rem !important;
        padding-bottom: 0.5rem !important;
    }

    .booking-outer-wrapper {
        padding: 0px !important;
        border: none;
        background: transparent;
    }

    .outline-bg-text {
        font-size: 2.2rem;
    }

    .hero-car-slider {
        height: 24rem;
    }

    .hero-car-card {
        width: 94%;
        max-width: 22rem;
        margin: 0 auto;
    }

    .fleet-specs span {
        font-size: 0.75rem;
        padding-right: 0.25rem;
    }

    .achv-title {
        font-size: 1.35rem !important;
    }

    .achv-number {
        font-size: 1.25rem !important;
    }

    .achv-label {
        font-size: 0.72rem !important;
    }

    .booking-form-box label {
        font-size: 0.65rem !important;
    }

    .booking-form-box .form-control,
    .booking-form-box .form-select {
        height: 2.5rem !important;
        font-size: 0.74rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    .booking-form-box .btn-black-find {
        height: 2.5rem !important;
        font-size: 0.76rem !important;
    }

    /* FAQ Section Extra Small Mobile Overrides */
    .faq-btn {
        padding: 0.8rem 0.85rem !important;
        gap: 0.6rem !important;
    }

    .faq-icon-wrap {
        width: 1.9rem !important;
        height: 1.9rem !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }

    .faq-question {
        font-size: 0.82rem !important;
    }

    .faq-answer {
        padding: 0.65rem 0.85rem 0.85rem 0.85rem !important;
        font-size: 0.78rem !important;
    }

    .faq-cta-panel {
        padding: 1.25rem 1rem !important;
    }

    .faq-btn-group {
        flex-direction: row !important;
        gap: 0.4rem !important;
    }

    .faq-cta-btn {
        flex: 1 1 0 !important;
        font-size: 0.8rem !important;
        padding: 0.5rem 0.4rem !important;
        white-space: nowrap !important;
    }
}
