/* =============================================
   Booking Modal Styles
   ============================================= */

/* Overlay */
.booking-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.booking-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.booking-modal-overlay.active .booking-modal {
    transform: translateY(0) scale(1);
}

/* Scrollbar styling */
.booking-modal::-webkit-scrollbar {
    width: 6px;
}

.booking-modal::-webkit-scrollbar-track {
    background: transparent;
}

.booking-modal::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Modal Header */
.booking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 2;
}

.booking-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #128C7E;
}

.booking-modal-title i {
    font-size: 20px;
}

.booking-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.booking-modal-close:hover {
    background: #ff4444;
    color: #fff;
}

/* Modal Body */
.booking-modal-body {
    padding: 25px 30px 30px;
}

/* Modal Step Indicator adjustments */
.booking-modal-body .modal-steps {
    margin-bottom: 25px;
}

.booking-modal-body .modal-steps .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.booking-modal-body .modal-steps .step-line {
    width: 40px;
    margin: 0 10px;
}

/* Modal Form Inputs */
.modal-input {
    padding: 12px 18px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    background-color: #fafafa !important;
}

.modal-input:focus {
    border-color: #25D366 !important;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1) !important;
    background-color: #fff !important;
}

/* Modal select dropdown */
.booking-modal-body select.modal-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L.575 3.4l.85-.85L6 7.125l4.575-4.575.85.85z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 35px !important;
    cursor: pointer;
}

/* Phone prefix in modal */
.booking-modal-body .phone-input-group .phone-prefix {
    left: 15px;
    font-size: 14px;
}

.booking-modal-body .phone-input-group .form-control {
    padding-left: 50px !important;
}

/* Modal OTP inputs */
.booking-modal-body .otp-input {
    width: 48px;
    height: 52px;
    font-size: 22px;
    border-radius: 12px;
}

/* Modal confirmation */
.booking-modal-body .confirmation-details {
    padding: 20px;
    border-radius: 16px;
    max-width: 100%;
}

.booking-modal-body .confirmation-icon {
    width: 70px;
    height: 70px;
}

.booking-modal-body .confirmation-icon i {
    font-size: 32px;
}

.booking-modal-body .confirmation-title {
    font-size: 22px;
}

/* Modal btn-verify override */
.booking-modal-body .btn-verify {
    padding: 12px 35px;
    font-size: 15px;
    border-radius: 12px;
}

/* Prevent body scroll when modal is open */
body.modal-open-booking {
    overflow: hidden;
}

/* =============================================
   Mobile Responsive
   ============================================= */
@media (max-width: 767px) {
    .booking-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .booking-modal {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        max-width: 100%;
    }

    .booking-modal-header {
        padding: 15px 20px;
        border-radius: 20px 20px 0 0;
    }

    .booking-modal-body {
        padding: 20px;
    }

    .booking-modal-body .modal-steps {
        flex-direction: row;
        justify-content: center;
    }

    .booking-modal-body .modal-steps .step-label {
        display: none;
    }

    .booking-modal-body .modal-steps .step-line {
        width: 30px;
    }

    .booking-modal-body .otp-input {
        width: 40px;
        height: 45px;
        font-size: 18px;
    }

    .booking-modal-body .btn-verify {
        width: 100%;
    }
}