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

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(8px, 2vh, 24px) clamp(8px, 2vw, 24px);
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(42, 25, 58, 0.72);
  backdrop-filter: blur(9px);
}

.booking-modal__dialog {
  isolation: isolate;
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - clamp(16px, 4vw, 48px)));
  max-width: 100%;
  max-height: none;
  overflow: visible;
  padding: clamp(20px, 3.6vh, 44px) clamp(18px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: clamp(28px, 3vw, 46px);
  background: #9f7ec6;
  box-shadow: 0 28px 80px rgba(48, 26, 69, 0.35);
  color: #fff;
}

.booking-modal__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 300 36px/1 Arial, sans-serif;
  transition: background-color 180ms ease, transform 180ms ease;
}

.booking-modal__close:hover,
.booking-modal__close:focus-visible {
  background: #ff969e;
  transform: rotate(6deg) scale(1.05);
  outline: none;
}

.booking-modal__eyebrow {
  margin: 0 58px clamp(6px, 1.1vh, 12px) 0;
  color: #ffd4d7;
  font-size: clamp(11px, min(1.1vw, 1.8vh), 14px);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.booking-modal h2 {
  max-width: 520px;
  margin: 0;
  font-family: "Oswald Local", "Arial Narrow", sans-serif;
  font-size: clamp(32px, min(5vw, 6vh), 58px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.booking-modal__intro {
  max-width: 540px;
  margin: clamp(7px, 1.5vh, 16px) 0 clamp(10px, 2vh, 22px);
  font-size: clamp(13px, min(1.35vw, 2vh), 17px);
  line-height: 1.4;
}

.booking-modal__form {
  display: grid;
  gap: clamp(7px, 1.25vh, 13px);
}

.booking-modal__form label {
  display: grid;
  gap: 4px;
}

.booking-modal__form label > span {
  padding-left: 18px;
  font-size: clamp(11px, min(1vw, 1.6vh), 13px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-modal__form input {
  width: 100%;
  min-height: clamp(46px, 7vh, 58px);
  padding: 0 22px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: clamp(15px, min(1.3vw, 2.1vh), 17px);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.booking-modal__form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.booking-modal__form input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
  outline: none;
}

.booking-modal__form button[type="submit"] {
  min-height: clamp(46px, 7vh, 58px);
  margin-top: 4px;
  padding: 9px 24px;
  border: 0;
  border-radius: 999px;
  background: #ff969e;
  color: #fff;
  font: 700 clamp(17px, 1.5vw, 21px)/1.1 "Trebuchet MS", Arial, sans-serif;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.booking-modal__form button[type="submit"]:hover,
.booking-modal__form button[type="submit"]:focus-visible {
  background: #ff828d;
  box-shadow: 0 12px 28px rgba(102, 55, 126, 0.22);
  transform: translateY(-2px);
  outline: none;
}

.booking-modal__form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.booking-modal__status {
  min-height: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

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

.booking-modal__status.is-success {
  color: #fff;
  font-weight: 700;
}

.booking-modal__status.is-error {
  color: #ffe4e8;
  font-weight: 700;
}

@media (max-width: 560px) {
  .booking-modal {
    place-items: center;
    padding: 8px;
  }

  .booking-modal__dialog {
    width: calc(100vw - 16px);
    max-height: none;
    overflow: visible;
    padding: clamp(18px, 3vh, 28px) clamp(16px, 5vw, 24px);
    border-radius: 28px;
  }

  .booking-modal__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 31px;
  }

  .booking-modal__eyebrow {
    margin-right: 46px;
    font-size: 11px;
  }

  .booking-modal h2 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .booking-modal__intro {
    margin: 7px 0 12px;
  }
}

@media (max-height: 560px) {
  .booking-modal__dialog {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .booking-modal__eyebrow {
    display: none;
  }

  .booking-modal h2 {
    padding-right: 48px;
    font-size: clamp(28px, min(7vw, 7.5vh), 38px);
  }

  .booking-modal__intro {
    margin: 5px 0 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  .booking-modal__form {
    gap: 6px;
  }

  .booking-modal__form label {
    gap: 2px;
  }

  .booking-modal__form input,
  .booking-modal__form button[type="submit"] {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-modal *,
  .booking-modal *::before,
  .booking-modal *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
