/* =========================================================
   SELF. STUDIOS NYC — ACUITY BOOKING MODAL
========================================================= */

html.self-booking-open,
body.self-booking-open {
    overflow: hidden !important;
}

.self-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.self-booking-modal.is-open {
    display: flex;
}

.self-booking-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 24, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.self-booking-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 96vw);
    height: min(900px, 92vh);
    overflow: hidden;
    background: #F4F0E8;
    border: 1px solid rgba(184, 165, 140, 0.65);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
}

.self-booking-modal__topbar {
    min-height: 84px;
    padding: 16px 20px 16px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    background: #18202B;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.self-booking-modal__brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.self-booking-modal__logo {
    display: block;
    width: auto;
    height: 46px;
    max-width: 190px;
    object-fit: contain;
    object-position: left center;
}

.self-booking-modal__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    white-space: nowrap;
}

.self-booking-modal__heading span {
    color: rgba(255,255,255,0.52);
}

.self-booking-modal__heading strong {
    color: #B8A58C;
}

.self-booking-modal__close {
    justify-self: end;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 0;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.self-booking-modal__close:hover,
.self-booking-modal__close:focus-visible {
    background: rgba(255,255,255,0.08);
    border-color: #B8A58C;
    outline: none;
}

.self-booking-modal__frame-wrap {
    position: relative;
    height: calc(100% - 84px);
    overflow: hidden;
    background: #FFFFFF;
}

.self-booking-modal__frame {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #FFFFFF;
    opacity: 0;
    transition: opacity .2s ease;
}

.self-booking-modal.is-loaded .self-booking-modal__frame {
    opacity: 1;
}

.self-booking-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #F4F0E8;
    color: #18202B;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.self-booking-modal.is-loaded .self-booking-modal__loading {
    display: none;
}

@media (max-width: 760px) {
    .self-booking-modal {
        padding: 0;
    }

    .self-booking-modal__dialog {
        width: 100vw;
        height: 100dvh;
        max-width: none;
        border: 0;
        box-shadow: none;
    }

    .self-booking-modal__topbar {
        min-height: 70px;
        padding: 12px 14px 12px 16px;
        grid-template-columns: 1fr auto;
    }

    .self-booking-modal__logo {
        height: 38px;
        max-width: 160px;
    }

    .self-booking-modal__heading {
        display: none;
    }

    .self-booking-modal__close {
        width: 42px;
        height: 42px;
    }

    .self-booking-modal__frame-wrap {
        height: calc(100dvh - 70px);
    }
}
