/* Shared BookingModal — Mach 5 */
.m5-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.m5-booking-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.m5-booking-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    padding: 0;
}

.m5-booking-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(90vh, 900px);
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 212, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.m5-booking-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.m5-booking-modal__title {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #f0f0f5;
    margin: 0;
}

.m5-booking-modal__close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1e1e2a;
    color: #f0f0f5;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.m5-booking-modal__close:hover {
    background: #16161f;
    border-color: rgba(0, 212, 255, 0.4);
    color: #00d4ff;
}

.m5-booking-modal__close:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

.m5-booking-modal__body {
    position: relative;
    flex: 1;
    min-height: 520px;
    background: #fff;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.m5-booking-modal__spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.m5-booking-modal__spinner.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.m5-booking-modal__spinner-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    animation: m5-booking-spin 0.8s linear infinite;
}

@keyframes m5-booking-spin {
    to { transform: rotate(360deg); }
}

.m5-booking-modal__iframe {
    width: 100%;
    height: 100%;
    min-height: 640px;
    border: 0;
    display: block;
    background: #fff;
}

body.m5-booking-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .m5-booking-modal {
        padding: 0;
        align-items: stretch;
    }

    .m5-booking-modal__dialog {
        width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .m5-booking-modal__header {
        padding: 12px 14px;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .m5-booking-modal__close {
        width: 44px;
        height: 44px;
    }

    .m5-booking-modal__body {
        min-height: 0;
    }

    .m5-booking-modal__iframe {
        min-height: calc(100vh - 68px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .m5-booking-modal,
    .m5-booking-modal__spinner,
    .m5-booking-modal__spinner-ring {
        animation: none !important;
        transition: none !important;
    }
}
