.mega-form-page {
    font-family: var(--site-font-body, inherit);
    background: var(--site-color-background, #eef2f7);
    color: var(--site-color-text, #1c273a);
    margin: 0;
    padding: clamp(1rem, 1vw, 1rem);
    box-sizing: border-box
}

.mega-form-page main {
    max-width: 40rem;
    margin: auto
}

.mega-form {
    max-width: 36rem;
    width: 100%;
    box-sizing: border-box;
    margin-inline: auto
}

.mega-form__field {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem
}

.mega-form__label-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

.mega-form__field input::placeholder, .mega-form__field textarea::placeholder {
    color: var(--site-color-muted-text, #7a8799);
    opacity: 1
}

.mega-form__choices {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem
}

.mega-form__choices legend {
    padding: 0;
    margin-bottom: .15rem;
    font-size: .82rem;
    font-weight: 600
}

.mega-form__choices label, .mega-form__field--choices > label {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .7rem .9rem;
    border-radius: 1rem;
    background: #f4f7fb;
    cursor: pointer
}

.mega-form__choices input, .mega-form__field--choices > label input {
    width: 1.05rem;
    height: 1.05rem;
    min-height: 0;
    margin: 0;
    flex: 0 0 auto
}

.mega-slot-picker {
    display: grid;
    gap: .75rem
}

.mega-slot-picker__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem
}

.mega-slot-picker__nav button {
    width: auto;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: .35rem .7rem;
    border: 0;
    border-radius: 999px;
    background: #eef3f9;
    color: inherit;
    box-shadow: none
}

.mega-slot-picker__weekdays, .mega-slot-picker__grid {
    display: grid;
    grid-template-columns:repeat(7, minmax(0, 1fr));
    gap: .35rem
}

.mega-slot-picker__cell, .mega-slot-picker__weekday {
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
    font-size: .82rem
}

.mega-slot-picker__cell {
    border: 0;
    background: #f4f7fb;
    cursor: pointer
}

.mega-slot-picker__cell.is-full, .mega-slot-picker__chip.is-full {
    background: #eceff4;
    color: #8b96a8;
    text-decoration: line-through;
    cursor: not-allowed
}

.mega-slot-picker__cell.is-open, .mega-slot-picker__chip.is-open {
    background: #e7f6ff
}

.mega-slot-picker__cell.is-selected, .mega-slot-picker__chip.is-selected {
    background: #2f8fff;
    color: #fff
}

.mega-slot-picker__cell.is-today {
    outline: 2px solid #2f8fff;
    outline-offset: 1px
}

.mega-slot-picker__cell.is-current, .mega-slot-picker__chip.is-current {
    background: #fff4d6;
    color: #6a4b00;
    box-shadow: inset 0 0 0 2px #e0b84d
}

.mega-slot-picker__legend {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    font-size: .75rem;
    color: #4b5870
}

.mega-slot-picker__legend span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #f4f7fb
}

.mega-slot-picker__legend .is-open {
    background: #e7f6ff
}

.mega-slot-picker__legend .is-selected {
    background: #2f8fff;
    color: #fff
}

.mega-slot-picker__legend .is-current {
    background: #fff4d6
}

.mega-slot-picker__legend .is-full {
    background: #eceff4;
    text-decoration: line-through
}

.mega-slot-picker.is-loading {
    opacity: .65
}

.mega-booking-card {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 1.15rem;
    background: var(--site-color-header-background);
    box-shadow: 0 8px 24px rgba(28, 39, 58, .06)
}

.mega-booking-card__notice, .mega-booking-card__policy, .mega-booking-card__deadline, .mega-booking-card__reason, .mega-booking-card__muted, .mega-booking-card__current {
    margin: 0;
    line-height: 1.8
}

.mega-booking-card__notice {
    font-weight: 700
}

.mega-booking-card__meta {
    display: grid;
    gap: .55rem;
    margin: 0
}

.mega-booking-card__meta div {
    display: grid;
    grid-template-columns:8rem 1fr;
    gap: .5rem
}

.mega-booking-card__meta dt {
    color: #66758a;
    font-weight: 500
}

.mega-booking-card__meta dd {
    margin: 0
}

.mega-booking-card__link {
    color: #0b63c7
}

.mega-booking-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.mega-booking-card__cancel, .mega-form button.mega-booking-card__cancel {
    width: auto;
    background: #eef3f9;
    color: inherit;
    box-shadow: none
}

.mega-booking-card__error {
    color: #8e1818;
    margin: 0
}

.mega-booking-card__picker[hidden], .mega-booking-card__compare[hidden] {
    display: none !important
}

.mega-form button.mega-booking-card__toggle {
    width: auto;
    min-width: 12rem
}

.mega-slot-picker__times {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem
}

.mega-slot-picker__chip {
    width: auto;
    min-height: 2.2rem;
    padding: .35rem .8rem;
    border: 0;
    border-radius: 999px;
    background: #e7f6ff;
    box-shadow: none
}

.mega-form__field input:not([type=radio]):not([type=checkbox]), .mega-form__field textarea, .mega-form__field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.95rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(28, 39, 58, .08);
    border-radius: 1.15rem;
    background: #f4f7fb;
    color: inherit;
    font: inherit;
    box-shadow: inset 0 2px 6px rgba(28, 39, 58, .06)
}

.mega-form__field input[readonly] {
    opacity: .9;
    cursor: default;
    background: #e8eef6
}

.mega-form__field label {
    display: block;
    color: inherit;
    font-size: .82rem
}

.mega-form__field textarea {
    min-height: 8rem;
    resize: vertical
}

.mega-form button, .mega-form .mega-component__button {
    width: 100%;
    background: linear-gradient(231deg, #ffffff3d 0%, #00000059 100%);
    color: #062033;
    border: 0;
    border-radius: 999px;
    padding: .8rem 1.5rem;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(47, 143, 255, .28)
}

.mega-form .mega-slot-picker__nav button, .mega-form button.mega-slot-picker__nav button {
    width: auto;
    min-width: 2.4rem;
    padding: .35rem .7rem;
    box-shadow: none
}

.mega-form button.mega-slot-picker__cell {
    width: 100%;
    min-height: 2.4rem;
    padding: 0;
    margin: 0;
    border-radius: .8rem;
    box-shadow: none;
    background: #f4f7fb;
    color: inherit
}

.mega-form button.mega-slot-picker__cell.is-past, .mega-form button.mega-slot-picker__cell.is-closed, .mega-form button.mega-slot-picker__cell.is-empty {
    background: transparent;
    color: #9aa7b8;
    box-shadow: none
}

.mega-form .mega-slot-picker__times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem
}

.mega-form .mega-slot-picker__times-label, .mega-form .mega-slot-picker__empty {
    flex: 1 0 100%;
    margin: 0;
    font-size: .82rem
}

.mega-form button.mega-slot-picker__chip {
    width: auto !important;
    flex: 0 0 auto;
    min-width: 4.4rem;
    min-height: 2.15rem;
    margin: 0;
    padding: .35rem .7rem;
    border-radius: 999px;
    box-shadow: none;
    background: #e7f6ff;
    color: inherit;
    font-size: .85rem;
    font-weight: 600
}

.mega-form__errors, .mega-form__notice, .mega-form__login {
    padding: .75rem;
    margin-bottom: 1rem;
    border-radius: 1rem
}

.mega-form__errors {
    background: #fce8e8;
    color: #8e1818
}

.mega-form__notice {
    background: #e8f6eb;
    color: #166534
}

.mega-form__login {
    background: #eef5ff;
    color: #16365c;
    display: grid;
    gap: .85rem
}

.mega-form__login p {
    margin: 0;
    line-height: 1.7
}

.mega-form__identity {
    display: grid;
    gap: .75rem;
    margin-bottom: 1.15rem;
    padding: .9rem 1rem;
    border-radius: 1.15rem;
    background: #eef5ff
}

.mega-form__identity-note {
    margin: 0;
    line-height: 1.7;
    font-size: .9rem
}

.mega-form__otp {
    display: grid;
    gap: .65rem
}

.mega-form__otp-send {
    width: 100%;
    min-height: 2.7rem;
    border: 0;
    border-radius: 999px;
    background: #d7ecff;
    color: #16365c;
    font: inherit;
    font-weight: 600;
    cursor: pointer
}

.mega-form__otp-status {
    margin: 0;
    font-size: .82rem;
    min-height: 1.2em
}

.mega-form__otp-status.is-error {
    color: #8e1818
}

.mega-form__otp-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

body.mega-otp-modal-open {
    overflow: hidden
}

.mega-form__otp-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(4, 12, 28, .62);
    box-sizing: border-box
}

.mega-form__otp-modal.is-open {
    display: flex
}

.mega-form__otp-modal[hidden] {
    display: none !important
}

.mega-form__otp-modal-card {
    width: min(22.5rem, 100%);
    padding: 1.4rem 1.25rem 1.15rem;
    border-radius: 1.35rem;
    background: #fff;
    color: #16365c;
    box-shadow: 0 24px 60px rgba(8, 16, 32, .35);
    text-align: center;
    box-sizing: border-box
}

.mega-form__otp-modal-title {
    margin: 0 0 .55rem;
    font-size: 1.2rem
}

.mega-form__otp-modal-copy {
    margin: 0 0 .35rem;
    line-height: 1.7;
    font-size: .92rem
}

.mega-form__otp-boxes, .mega-form__otp-modal .otp-boxes-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 1.4rem 0 1.1rem;
    direction: ltr
}

.mega-form__otp-boxes .otp-box, .mega-form__otp-modal .otp-box {
    box-sizing: border-box;
    flex: 0 0 3.25rem;
    width: 3.25rem !important;
    min-width: 3.25rem;
    max-width: 3.25rem;
    height: 3.6rem !important;
    min-height: 3.6rem !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(28, 39, 58, .14);
    border-radius: .7rem;
    background: #f4f7fb;
    color: inherit;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 3.6rem;
    box-shadow: none
}

.mega-form__otp-actions, .mega-form__otp-modal .buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: .45rem;
    margin: 0 0 .85rem
}

.mega-form__otp-actions > button, .mega-form__otp-modal .buttons > button {
    flex: 1 1 0;
    width: auto !important;
    max-width: none;
    min-height: 2.7rem;
    margin: 0 !important;
    border: 0;
    border-radius: 999px;
    padding: .8rem 1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer
}

.mega-form__otp-modal .mega-component__button, .mega-form__otp-modal button.mega-form__otp-resend {
    background: linear-gradient(180deg, #6ec8ff, #2f8fff);
    color: #062033;
    box-shadow: 0 8px 20px rgba(47, 143, 255, .28)
}

.mega-form button.mega-form__otp-resend {
    background: #d7ecff;
    color: #16365c;
    box-shadow: none
}

.mega-form button.mega-form__otp-edit, .mega-form__otp-modal button.mega-form__otp-edit {
    display: inline;
    width: auto !important;
    min-height: auto;
    margin: 0 auto;
    padding: .35rem;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    box-shadow: none;
    border: 0
}

@media (max-width: 480px) {
    .mega-form__otp-boxes, .mega-form__otp-modal .otp-boxes-container {
        gap: 7px
    }

    .mega-form__otp-boxes .otp-box, .mega-form__otp-modal .otp-box {
        flex-basis: 2.9rem;
        width: 2.9rem !important;
        min-width: 2.9rem;
        max-width: 2.9rem;
        height: 3.25rem !important;
        min-height: 3.25rem !important;
        font-size: 1.2rem;
        line-height: 3.25rem
    }

    .mega-booking-card__meta div {
        grid-template-columns:1fr
    }

    .mega-form, .mega-form-page {
        overflow-x: hidden
    }
}

.mega-form__auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: .15rem
}

.mega-form__auth-switch button {
    width: auto;
    min-height: auto;
    padding: .2rem .15rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    box-shadow: none
}

.mega-form__auth-switch button[aria-pressed="true"] {
    font-weight: 700;
    text-decoration: none
}

.mega-form__honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

.mega-form__progress {
    display: flex;
    gap: .45rem;
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    overflow-x: auto
}

.mega-form__progress li {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    min-width: 4.4rem;
    text-align: center;
    font-size: .78rem;
    color: var(--site-color-muted-text, #7a8799)
}

.mega-form__progress span {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e8eef6;
    color: inherit;
    font-weight: 700
}

.mega-form__progress .is-current,
.mega-form__progress .is-done {
    color: inherit;
    font-weight: 600
}

.mega-form__progress .is-current span {
    background: #2f8fff;
    color: #fff
}

.mega-form__progress .is-done span {
    background: #1aa37a;
    color: #fff
}

.mega-form__step-heading {
    margin: 0 0 .85rem;
    font-size: 1.05rem;
    font-weight: 700
}

.mega-form__wizard-nav {
    display: flex;
    gap: .75rem;
    margin-top: .35rem
}

.mega-form .mega-form__wizard-nav button {
    width: auto;
    flex: 1 1 0
}

.mega-form button.mega-form__wizard-btn--ghost {
    background: #e8eef6;
    box-shadow: none
}

@media (prefers-reduced-motion: reduce) {
    .mega-form, .mega-form__field input, .mega-form button {
        transition: none
    }
}
