/* ==============================================================
   Mobile Sticky Bottom CTA Bar & Get a Quote Modal
   ============================================================== */

.mobile-sticky-cta {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99990;
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: #ffffff;
        border-top: 1px solid #e5eaf0;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-sticky-cta__btn {
        height: 46px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 10px;
        text-decoration: none !important;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-sticky-cta__btn:active {
        transform: scale(0.98);
    }

    .mobile-sticky-cta__btn--outline {
        flex: 1 1 0;
        min-width: 0;
        background-color: #ffffff;
        border: 1.5px solid #d5dce4;
        color: #0f172a !important;
    }

    .mobile-sticky-cta__btn--outline:hover,
    .mobile-sticky-cta__btn--outline:focus {
        background-color: #f8fafc;
        border-color: #b8c4d0;
        color: #0f172a !important;
        outline: none;
    }

    .mobile-sticky-cta__btn--primary {
        flex: 1.25 1 0;
        min-width: 0;
        background-color: #00529b;
        border: 1.5px solid #00529b;
        color: #ffffff !important;
        padding: 0 12px;
    }

    .mobile-sticky-cta__btn--primary:hover,
    .mobile-sticky-cta__btn--primary:focus {
        background-color: #003f7a;
        border-color: #003f7a;
        color: #ffffff !important;
        outline: none;
    }

    .mobile-sticky-cta__icon {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }

    /* Prevent overlap with floating WhatsApp pulse button, scroll-to-top, and footer */
    .btn-whatsapp-pulse {
        display: none !important;
    }

    #totop {
        bottom: 82px !important;
        right: 16px !important;
    }

    body {
        padding-bottom: 68px;
    }
}

/* Quote Modal z-index above fixed sticky header (99999) & mobile bar (99990) */
.modal-backdrop {
    z-index: 100000 !important;
}

#quoteModal {
    z-index: 100005 !important;
}

#quoteModal .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

#quoteModal .modal-header {
    background-color: #00529b;
    color: #ffffff;
    border-bottom: none;
    padding: 16px 20px;
}

#quoteModal .modal-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

#quoteModal .modal-header .close {
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 0;
    opacity: 0.9;
    text-shadow: none;
    font-size: 26px;
    line-height: 1;
    padding: 4px 8px;
    margin: -4px -8px -4px auto;
}

#quoteModal .modal-header .close:hover {
    opacity: 1;
}

#quoteModal .modal-body {
    padding: 20px;
}

#quoteModal .quote-modal-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 16px;
}

#quoteModal .form-group {
    margin-bottom: 12px;
}

#quoteModal .form-control {
    height: 42px;
    padding: 8px 12px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #d5dce4;
    font-size: 14px;
    color: #0f172a;
}

#quoteModal .form-control:focus {
    border-color: #00529b;
    box-shadow: 0 0 0 0.15rem rgba(0, 82, 155, 0.15);
}

#quoteModal .quote-modal-recaptcha {
    margin: 12px 0 14px;
    overflow-x: auto;
}

#quoteModal .quote-modal-submit {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    background-color: #00529b;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#quoteModal .quote-modal-submit:hover {
    background-color: #003f7a;
}

@media (max-width: 380px) {
    #quoteModal .quote-modal-recaptcha .g-recaptcha {
        transform: scale(0.86);
        transform-origin: left center;
    }
}
