/**
 * Booking Modal Styles
 *
 * @package TerryArthur
 * @since 1.0.0
 */

/* Modal container */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.booking-modal.active {
    display: flex;
}

/* Overlay */
.booking-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

/* Modal content */
.booking-modal-content {
    position: relative;
    background: #202124;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Close button */
.booking-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #f9fafb;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.booking-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Modal body */
.booking-modal-body {
    padding: 3rem 2rem 2rem;
}

.booking-modal-body h2 {
    color: #f9fafb;
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-align: center;
}

.booking-modal-description {
    color: #d1d5db;
    text-align: center;
    margin: 0 0 2rem 0;
    font-size: 1.125rem;
}

/* Google Calendar container */
#google-calendar-container {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

#google-calendar-container iframe {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .booking-modal-body {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .booking-modal-body h2 {
        font-size: 1.5rem;
    }

    .booking-modal-description {
        font-size: 1rem;
    }

    #google-calendar-container iframe {
        height: 500px;
    }
}

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

.booking-modal-content::-webkit-scrollbar-track {
    background: #1f2937;
}

.booking-modal-content::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

.booking-modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Booking Confirmation Modal */
.booking-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
}

.booking-confirmation.active {
    display: flex;
}

.booking-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.booking-confirmation-content {
    position: relative;
    background: #202124;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.booking-confirmation-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #f9fafb;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.booking-confirmation-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.booking-confirmation-body {
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.booking-confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
    font-weight: bold;
}

.booking-confirmation-body h2 {
    color: #f9fafb;
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.booking-confirmation-body p {
    color: #d1d5db;
    font-size: 1.125rem;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.booking-confirmation-body ul {
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto;
    padding-left: 1.5rem;
    color: #d1d5db;
    font-size: 1rem;
}

.booking-confirmation-body ul li {
    margin-bottom: 0.5rem;
}

.booking-confirmation-note {
    font-weight: 500;
    color: #f9fafb !important;
    margin-top: 1.5rem !important;
}

@media (max-width: 768px) {
    .booking-confirmation-content {
        width: 95%;
    }

    .booking-confirmation-body {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .booking-confirmation-body h2 {
        font-size: 1.5rem;
    }

    .booking-confirmation-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}