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

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

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 26, 52, 0.72);
    backdrop-filter: blur(5px);
}

.booking-modal-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1120px, 100%);
    height: min(720px, calc(100vh - 36px));
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(201, 169, 97, 0.72);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(7, 26, 52, 0.32);
}

.booking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    padding: 13px 18px 13px 22px;
    color: #fff;
    background: linear-gradient(115deg, #0b2b52 0%, #154b7d 72%, #b9913f 145%);
}

.booking-modal-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #e4c87d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.booking-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.2;
}

.booking-modal-close {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    font: 300 29px/1 sans-serif;
    cursor: pointer;
}

.booking-modal-close:hover,
.booking-modal-close:focus-visible {
    color: #0b2b52;
    background: #e4c87d;
    outline: none;
}

.booking-modal-body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #f5f8fc;
}

.booking-step {
    display: none;
    max-width: 980px;
    min-height: 100%;
    margin: 0 auto;
    padding: 28px;
}

.booking-step.booking-step-active {
    display: block;
}

.booking-step-heading,
.booking-step-heading > div:first-child {
    display: flex;
    align-items: center;
}

.booking-step-heading {
    justify-content: space-between;
    gap: 18px;
}

.booking-step-heading > div:first-child {
    gap: 10px;
}

.booking-step-heading h3,
.booking-success h3 {
    margin: 0;
    color: #0b2b52;
    font-size: 21px;
}

.booking-step-number {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    color: #0b2b52;
    background: #e4c87d;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
}

.booking-step-copy {
    margin: 9px 0 22px 39px;
    color: #5a6d84;
    font-size: 13px;
}

.booking-duration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 20px 39px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d5e0ec;
    border-radius: 11px;
}

.booking-duration-label {
    color: #455c75;
    font-size: 12px;
    font-weight: 800;
}

.booking-duration-options {
    display: flex;
    gap: 8px;
}

.booking-duration-option {
    min-height: 36px;
    padding: 7px 16px;
    color: #123d69;
    background: #f3f7fb;
    border: 1px solid #c9d7e7;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.booking-duration-option:hover,
.booking-duration-option:focus-visible {
    border-color: #b9913f;
    outline: none;
}

.booking-duration-option.is-active {
    color: #fff;
    background: #123d69;
    border-color: #123d69;
    box-shadow: 0 3px 10px rgba(18, 61, 105, 0.18);
}

.booking-week-nav {
    display: flex;
    gap: 7px;
}

.booking-week-nav button,
.booking-back {
    min-height: 34px;
    padding: 6px 12px;
    color: #123d69;
    background: #fff;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    font-weight: 750;
    cursor: pointer;
}

.booking-week-nav button {
    width: 38px;
    padding: 0;
    font-size: 25px;
}

.booking-week-nav button:hover,
.booking-back:hover {
    border-color: #b9913f;
}

.booking-status {
    padding: 32px;
    color: #536b85;
    text-align: center;
    background: #fff;
    border: 1px solid #dce5ef;
    border-radius: 12px;
}

.booking-fallback-text {
  margin: 0;
}

.booking-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: .8rem 1.15rem;
  border-radius: .55rem;
  background: #123f6d;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.booking-fallback-link:hover,
.booking-fallback-link:focus-visible {
  background: #0b2f55;
  color: #fff;
}

.booking-status:empty {
    display: none;
}

.booking-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.booking-day {
    min-width: 0;
    padding: 13px 9px;
    background: #fff;
    border: 1px solid #d5e0ec;
    border-radius: 12px;
}

.booking-day-head {
    padding-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #edf1f6;
}

.booking-day-name {
    display: block;
    color: #64778e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.booking-day-date {
    display: block;
    margin-top: 3px;
    color: #0b2b52;
    font-size: 15px;
    font-weight: 850;
}

.booking-slot-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.booking-slot {
    width: 100%;
    min-height: 34px;
    padding: 6px;
    color: #123d69;
    background: #f3f7fb;
    border: 1px solid #c9d7e7;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.booking-slot:hover,
.booking-slot:focus-visible {
    color: #fff;
    background: #123d69;
    border-color: #123d69;
    outline: none;
}

.booking-day-empty {
    display: block;
    padding: 15px 2px;
    color: #9aa8b7;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}

.booking-selection {
    margin: 18px 0;
    padding: 12px 15px;
    color: #123d69;
    background: #fff9e9;
    border: 1px solid #e4c87d;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.booking-form-grid label > span {
    display: block;
    margin-bottom: 5px;
    color: #455c75;
    font-size: 11px;
    font-weight: 800;
}

.booking-form-grid input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: #152238;
    background: #fff;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    font: inherit;
}

.booking-form-grid input:focus {
    border-color: #b9913f;
    outline: 2px solid rgba(185, 145, 63, 0.18);
}

.booking-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 17px 0;
    color: #5a6d84;
    font-size: 12px;
    line-height: 1.45;
}

.booking-privacy input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.booking-privacy a {
    color: #174f82;
}

.booking-honeypot {
    position: absolute;
    left: -10000px;
}

.booking-error {
    margin-bottom: 13px;
    padding: 10px 12px;
    color: #942f2f;
    background: #fff0f0;
    border: 1px solid #efc2c2;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.booking-submit {
    min-height: 42px;
    padding: 10px 18px;
    color: #fff;
    background: #0b2b52;
    border: 1px solid #0b2b52;
    border-radius: 8px;
    font-weight: 850;
    cursor: pointer;
}

.booking-submit:hover,
.booking-submit:focus-visible {
    color: #0b2b52;
    background: #e4c87d;
    border-color: #e4c87d;
    outline: none;
}

.booking-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.booking-success {
    padding-top: 70px;
    text-align: center;
}

.booking-success-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    place-items: center;
    color: #fff;
    background: #20845f;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 900;
}

.booking-success p {
    color: #5a6d84;
}

.booking-success .booking-selection {
    max-width: 470px;
    margin: 20px auto;
}

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

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

    .booking-modal-panel {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .booking-modal-header {
        min-height: 64px;
        padding: 10px 12px 10px 16px;
    }

    .booking-step {
        padding: 18px 14px 28px;
    }

    .booking-days {
        grid-template-columns: 1fr;
    }

    .booking-form-grid {
        grid-template-columns: 1fr;
    }

    .booking-step-copy {
        margin-left: 0;
    }

    .booking-duration {
        align-items: flex-start;
        flex-direction: column;
        margin-left: 0;
    }

    .booking-duration-options {
        width: 100%;
    }

    .booking-duration-option {
        flex: 1;
    }
}
