/* Booking form. All rules are scoped under .bk so they do not clash with the site's CSS.
   Change the two colours below to match the site. */
.bk {
  --bk-accent: #1f5eff;
  --bk-ok: #12805c;
  --bk-err: #c62828;
  --bk-line: #d7dbe3;
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1b1f27;
}
.bk * { box-sizing: border-box; }
.bk-title { font-size: 1.75rem; margin: 0 0 1rem; }
.bk fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.bk legend { font-weight: 600; font-size: 1.05rem; margin-bottom: .5rem; }
.bk-row { margin-bottom: .75rem; }
.bk-2, .bk-3 { display: grid; gap: .75rem; }
.bk-2 { grid-template-columns: 1fr 1fr; }
.bk-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) { .bk-2, .bk-3 { grid-template-columns: 1fr; } }

.bk label { display: block; font-size: .9rem; font-weight: 500; }
.bk input, .bk select, .bk textarea {
  display: block; width: 100%; margin-top: .25rem; padding: .65rem .75rem;
  font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--bk-line); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.bk input:focus, .bk select:focus, .bk textarea:focus {
  outline: none; border-color: var(--bk-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bk-accent) 20%, transparent);
}
.bk .is-invalid { border-color: var(--bk-err); }
.bk .is-valid { border-color: var(--bk-ok); }

.bk-muted { color: #6b7280; font-weight: 400; }
.bk-err { color: var(--bk-err); font-size: .875rem; margin: .25rem 0 0; min-height: 0; }
.bk-err:empty { display: none; }

.bk-addr { font-size: .875rem; margin: 0; min-height: 1.3em; }
.bk-addr.ok { color: var(--bk-ok); }
.bk-addr.bad { color: var(--bk-err); }
.bk-addr.checking { color: #6b7280; }
.bk-addr button {
  font: inherit; color: var(--bk-accent); background: none; border: 0; padding: 0;
  text-decoration: underline; cursor: pointer;
}

.bk-slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.bk-slot {
  padding: .5rem .9rem; font: inherit; font-size: .95rem; cursor: pointer;
  background: #fff; border: 1px solid var(--bk-line); border-radius: 999px;
}
.bk-slot:hover { border-color: var(--bk-accent); }
.bk-slot[aria-checked="true"] { background: var(--bk-accent); border-color: var(--bk-accent); color: #fff; }

.bk-file {
  position: relative; display: flex !important; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.25rem; text-align: center; cursor: pointer;
  border: 2px dashed var(--bk-line); border-radius: 10px; color: #4b5563;
}
.bk-file.drag, .bk-file:hover { border-color: var(--bk-accent); }
.bk-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.bk-file img { max-height: 160px; max-width: 100%; border-radius: 6px; }

.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bk-btn {
  width: 100%; padding: .85rem; font: inherit; font-weight: 600; color: #fff; cursor: pointer;
  background: var(--bk-accent); border: 0; border-radius: 8px;
}
.bk-btn:disabled { opacity: .6; cursor: progress; }
.bk-legal { font-size: .75rem; color: #6b7280; margin-top: .75rem; }
.bk-legal a { color: inherit; }

.bk-success {
  padding: 1rem 1.25rem; margin-bottom: 1.25rem; border-radius: 10px;
  background: color-mix(in srgb, var(--bk-ok) 10%, #fff); border: 1px solid var(--bk-ok); color: #0b4d37;
}
/* Hide the floating reCAPTCHA badge (allowed because the legal text above is shown) */
.grecaptcha-badge { visibility: hidden; }
