#bookingModal, #bookingModal * {
    box-sizing: border-box;
}

#bookingModal {
    padding: 12px;
}

#bookingModal .modal-content {
    background: #fff;
    width: 95%;
    max-width: 420px;
    border-radius: 16px;
    padding: 22px 20px 18px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    direction: rtl;
}

#bookingModal .close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

#bookingModal h3 {
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #222;
}

#bookingModal .info-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 9px 11px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
    color: #222;
}

#bookingModal input,
#bookingModal select {
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 7px;
    margin-bottom: 7px;
    text-align: right;
    background: #fff;
    color: #222;
}

#bookingModal button[type="submit"] {
    width: 100%;
    padding: 11px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

#bookingModal .error-message {
    color: #c00;
    font-size: 12px;
    margin-top: -3px;
    margin-bottom: 7px;
    display: none;
}

.flatpickr-calendar {
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: system-ui, -apple-system, sans-serif;
}

.flatpickr-day {
    border-radius: 6px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.flatpickr-day:hover {
    background: #e0e7ff;
}

@media (max-width: 480px) {
    #bookingModal {
        padding: 8px;
    }
    #bookingModal .modal-content {
        padding: 16px 14px 14px;
        max-width: 95%;
        max-height: 92vh;
    }
    #bookingModal h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }
    #bookingModal .info-box {
        padding: 8px 10px;
        font-size: 12.5px;
        margin-bottom: 8px;
    }
    #bookingModal input,
    #bookingModal select {
        padding: 7px 9px;
        font-size: 15px;
        margin-bottom: 6px;
    }
    #bookingModal button[type="submit"] {
        padding: 10px;
        font-size: 15.5px;
    }
}

@media (max-height: 550px) {
    #bookingModal .modal-content {
        max-height: 95vh;
        padding: 14px 12px 12px;
    }
    #bookingModal h3 {
        margin-bottom: 6px;
        font-size: 16px;
    }
}