/* Two-step public booking flow, layered on top of the BEXSYS theme. */
#book-appointment-wizard.bexsys-two-step #steps {
    width: auto !important;
    min-width: 92px;
}

#book-appointment-wizard.bexsys-two-step #step-1,
#book-appointment-wizard.bexsys-two-step #step-4,
#book-appointment-wizard.bexsys-two-step #wizard-frame-4,
#book-appointment-wizard.bexsys-two-step [hidden] {
    display: none !important;
}

#book-appointment-wizard.bexsys-two-step #bexsys-booking-progress {
    color: var(--bs-emphasis-color);
    background: color-mix(in srgb, var(--bs-primary) 8%, var(--bs-body-bg));
    border-bottom: 1px solid color-mix(in srgb, var(--bs-primary) 18%, transparent);
}

#book-appointment-wizard.bexsys-two-step .frame-container {
    min-height: 0 !important;
}

#book-appointment-wizard.bexsys-two-step .frame-title {
    color: var(--bs-emphasis-color) !important;
    margin-top: 0 !important;
}

#book-appointment-wizard.bexsys-two-step .frame-title:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--bs-primary) 45%, transparent);
    outline-offset: 5px;
    border-radius: var(--bs-border-radius);
}

#book-appointment-wizard.bexsys-two-step #wizard-frame-2 .frame-content,
#book-appointment-wizard.bexsys-two-step #wizard-frame-3 .frame-content,
#book-appointment-wizard.bexsys-two-step #wizard-frame-3 > .d-flex {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

#book-appointment-wizard.bexsys-two-step #bexsys-slot-summary {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.125rem;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 24%, var(--bs-border-color));
    border-radius: calc(var(--bs-border-radius) * 1.5);
    background: color-mix(in srgb, var(--bs-primary) 5%, var(--bs-body-bg));
}

#book-appointment-wizard.bexsys-two-step .bexsys-appointment-details {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#book-appointment-wizard.bexsys-two-step .bexsys-appointment-details > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
}

#book-appointment-wizard.bexsys-two-step .bexsys-appointment-details .fs-3 {
    grid-column: 1 / -1;
    font-size: 1.05rem !important;
}

#book-appointment-wizard.bexsys-two-step .bexsys-appointment-details .text-muted {
    display: none;
}

#book-appointment-wizard.bexsys-two-step #form-message:empty {
    display: none !important;
}

#book-appointment-wizard.bexsys-two-step .command-buttons {
    max-width: 760px;
    gap: 0.75rem;
}

#book-appointment-wizard.bexsys-two-step .bexsys-booking-form {
    margin-left: auto;
}

#book-appointment-wizard.bexsys-two-step #book-appointment-submit,
#book-appointment-wizard.bexsys-two-step #button-next-2,
#book-appointment-wizard.bexsys-two-step #button-back-3 {
    min-height: 44px;
    min-width: 150px;
}

#book-appointment-wizard.bexsys-two-step .is-invalid:focus {
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--bs-danger) 25%, transparent);
}

@media (max-width: 767.98px) {
    #book-appointment-wizard.bexsys-two-step #header {
        padding-bottom: 0.75rem !important;
    }

    #book-appointment-wizard.bexsys-two-step #steps {
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
    }

    #book-appointment-wizard.bexsys-two-step .wizard-frame {
        padding: 1rem !important;
    }

    #book-appointment-wizard.bexsys-two-step .frame-container {
        padding-top: 0.5rem !important;
    }

    #book-appointment-wizard.bexsys-two-step .bexsys-appointment-details > div {
        grid-template-columns: 1fr;
    }

    #book-appointment-wizard.bexsys-two-step .command-buttons,
    #book-appointment-wizard.bexsys-two-step .bexsys-booking-form,
    #book-appointment-wizard.bexsys-two-step #book-appointment-submit,
    #book-appointment-wizard.bexsys-two-step #button-next-2,
    #book-appointment-wizard.bexsys-two-step #button-back-3 {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #book-appointment-wizard.bexsys-two-step .bexsys-booking-form {
        margin-top: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #book-appointment-wizard.bexsys-two-step *,
    #book-appointment-wizard.bexsys-two-step *::before,
    #book-appointment-wizard.bexsys-two-step *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
