/* ============================================== */

/* ≤ 1200px */
@media (max-width: 1200px) {
    .bsd-popup {
        max-width: 860px;
    }
}

/* ≤ 992px (Tablet Landscape) */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        gap: 24px;
    }

    .search-card {
        width: 100%;
    }

    .bsd-popup-right h2 {
        font-size: 28px;
    }

    .offer-box {
        gap: 14px;
        padding: 18px;
    }

    .call-box a {
        font-size: 20px;
    }

    .floating-btn {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .carousel {
        grid-auto-columns: min(220px, 100%);
        gap: 14px;
    }

    .card-route .image {
        height: 140px;
    }

    .testimonials {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* ≤ 768px (Tablet Portrait) */
@media (max-width: 768px) {

    .bsd-popup {
        flex-direction: column;
    }

    .bsd-popup-left {
        display: none;
    }

    .bsd-popup-right {
        width: 100%;
        padding: 24px;
    }

    .offer-box {
        flex-direction: column;
        text-align: center;
    }

    .or-badge {
        order: 2;
        margin: 6px 0;
    }

    .features {
        flex-direction: column;
        gap: 10px;
    }

    .floating-btn {
        bottom: 14px;
        right: 14px;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid-page {
        grid-template-columns: 1fr;
    }

    .search-card {
        position: static;
        order: 0;
    }

    .page-content {
        order: 2;
    }

    .contact-info {
        width: 100%;
    }

    .floating-admin-btn {
        display: none;
    }

    .hero-right {
        align-self: center;
    }
}

/* ≤ 576px (Mobile) */
@media (max-width: 576px) {

    .topbar {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
        align-items: flex-start;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        height: 56px;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    h1.hero-heading {
        font-size: 26px;
    }

    h3.hero-subheading {
        font-size: 18px;
    }

    .trust-item {
        font-size: 12px;
        padding: 6px 10px;
    }

    .toggle button {
        padding: 6px 8px;
        font-size: 13px;
    }

    .counter {
        width: 100%;
        justify-content: space-between;
    }

    .counter input {
        width: 50px;
    }

    .call-now-hero-transparent {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .call-numbers {
        flex-direction: column;
        gap: 4px;
    }

    .bsd-popup {
        border-radius: var(--radius);
        height: 60%;
        max-width: 100%;
        margin-top: 30%;
    }

    .bsd-popup-overlay {
        align-items: stretch;
    }

    .bsd-popup-right h2 {
        font-size: 24px;
    }

    .sub-text {
        font-size: 14px;
    }

    .call-box a {
        font-size: 18px;
    }

    .coupon {
        padding: 8px 14px;
    }

    .passenger-row {
        flex-direction: column;
        /* Stack fields on mobile */
        gap: 10px;
    }

    .passenger-field {
        flex: 1 1 100%;
        min-width: auto;
    }

    .form-row .field {
        flex: 1 1 100%;
    }

    .carousel {
        grid-auto-columns: min(180px, 100%);
        gap: 12px;
    }

    .card-route .image {
        height: 120px;
    }

    .route-title {
        font-size: 14px;
    }

    .pill {
        font-size: 12px;
        padding: 5px 10px;
    }

    .testimonials {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .testimonial-message {
        font-size: 14px;
    }

    .testimonial-name {
        font-size: 14px;
    }

    header .topbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    /* Brand block */
    header .brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    header .brand img {
        max-width: 160px;
        height: auto;
    }

    header .tag {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Actions block */
    header .header-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    /* Phone block */
    header .phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 14px;
    }

    /* CTA button block */
    header .cta-btn {
        width: 50%;
        text-align: center;
        padding: 10px 14px;
        font-size: 14px;
    }

    #captcha-img,
    #captcha {
        width: 100% !important;
    }

    .captcha-row {
        display: block;
    }

    .captcha-img {
        margin-top: 10px;
    }

}

/* ≤ 360px (Small phones) */
@media (max-width: 425px) {


    .bsd-popup-right h2 {
        font-size: 22px;
    }

    .call-box a {
        font-size: 16px;
    }

    .floating-btn {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .call-now-hero {
        margin: 20px 20px 26px 0px;
    }

    .call-now-hero-transparent {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }

    .call-left {
        display: none;
        /* Hide pulse icon on very small screens */
    }

    .call-text {
        width: 100%;
    }

    .call-title {
        font-size: 14px;
        line-height: 1.3;
    }

    .call-numbers {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .number-separator {
        display: none;
        /* Remove | separator */
    }

    .call-number {
        font-size: 14px;
        white-space: nowrap;
    }

    .call-desc {
        font-size: 12px;
        line-height: 1.4;
    }

    header .cta-btn {
        width: 100%;
    }
}