/*
   Booking modal — the parts added for the two-step signup.
   The base .bm-* rules already live in each page's stylesheet; this only
   covers the code step, the success step and inline field errors, so it is
   loaded on every page alongside them.
*/

.bm-step[hidden] {
  display: none;
}

.bm-lede {
  text-align: center;
  font-size: 15px;
  line-height: 2;
  color: #6b6a68;
  margin-bottom: 26px;
}
.bm-lede strong {
  color: #1e1b19;
  font-weight: 600;
  unicode-bidi: isolate;
}

.bm-code {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.5em;
  padding-inline-start: 16px;
  font-variant-numeric: tabular-nums;
}

.bm-error {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.7;
  color: #c0442c;
}
.bm-error.is-visible {
  display: block;
}
.bm-input.is-invalid {
  border-color: #c0442c;
}
.bm-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(192, 68, 44, 0.12);
}

.bm-msg.is-error {
  color: #c0442c;
}

.bm-sep {
  margin-inline: 6px;
  color: #b3aeaa;
}

/* the button keeps its width while the request is in flight */
.bm-submit.is-busy {
  color: transparent;
  position: relative;
  pointer-events: none;
}
.bm-submit.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bm-spin 0.7s linear infinite;
}
@keyframes bm-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bm-submit.is-busy::after {
    animation-duration: 2.4s;
  }
}

/* Turnstile

   The widget is rendered at size: flexible, so it fills this container and
   lines up with the inputs above it instead of sitting at its own fixed
   300px. Cloudflare will not go narrower than that, hence the min-width —
   below it the iframe would overflow the modal on small phones. */
.bm-turnstile-field {
  margin-bottom: 18px;
}
.bm-turnstile {
  min-width: 0;
  /* the widget's own frame is LTR whatever the page direction is */
  direction: ltr;
}
.bm-turnstile iframe {
  max-width: 100%;
}
.bm-turnstile-error {
  text-align: center;
}

@media (max-width: 360px) {
  /* Narrower than the widget's floor: let it scroll rather than clip. */
  .bm-turnstile {
    overflow-x: auto;
  }
}

/* success */
.bm-done {
  text-align: center;
  padding: 10px 0 22px;
}
.bm-tick {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #f1ede9;
  color: #a47865;
}
.bm-done .bm-lede {
  margin-bottom: 0;
}
