
/* Booking Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    /* Enable vertical scrolling for the modal backdrop */
}

.modal.show {
    display: flex;
    align-items: flex-start;
    /* Change from center to flex-start for better scrolling */
    justify-content: center;
    opacity: 1;
    padding: 20px 0;
    /* Add padding to prevent modal from touching screen edges */
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #1f1f1f 100%);
    border: 2px solid #333;
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    max-height: calc(100vh - 40px);
    /* Limit height to viewport minus padding */
    margin: auto;
    /* Center the modal */
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4aa, #00b894, #00d4aa);
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    /* Make header sticky */
    top: 0;
    background: linear-gradient(145deg, #1a1a1a 0%, #1f1f1f 100%);
    z-index: 10;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #00d4aa;
    background-color: rgba(0, 212, 170, 0.1);
    transform: scale(1.1);
}

.booking-form {
    padding: 30px;
    max-height: calc(100vh - 200px);
    /* Limit form height */
    overflow-y: auto;
    /* Enable scrolling for form content */
    scrollbar-width: thin;
    /* For Firefox */
    scrollbar-color: #00d4aa #333;
    /* For Firefox */
}
/* Custom scrollbar for webkit browsers */
.booking-form::-webkit-scrollbar {
    width: 6px;
}

.booking-form::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.booking-form::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 3px;
}

.booking-form::-webkit-scrollbar-thumb:hover {
    background: #00b894;
}
