/* ── Unified Booking Modal ──────────────────────────────────────── */

.bm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.bm-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Sheet */
.bm-sheet {
  width: 100%;
  max-width: 540px;
  background: #05030a;
  border: 1px solid rgba(178,120,255,.18);
  border-radius: 24px 24px 0 0;
  padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(60px);
  opacity: 0;
  transition: transform .32s cubic-bezier(.32,.72,0,1), opacity .25s;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.bm-sheet::-webkit-scrollbar { display: none; }
.bm-overlay.is-open .bm-sheet {
  transform: translateY(0);
  opacity: 1;
}

/* Handle */
.bm-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.15);
  margin: .85rem auto .1rem;
}

/* Header */
.bm-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bm-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(178,120,255,.35);
  flex-shrink: 0;
  background: rgba(178,120,255,.1);
}
.bm-header-label {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(178,120,255,.6);
  margin-bottom: .2rem;
}
.bm-header-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.bm-header-type {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin-top: .1rem;
}
.bm-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.bm-close:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Form */
.bm-form {
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.bm-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.bm-label {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(178,120,255,.55);
}
.bm-label span { color: rgba(178,120,255,.35); font-weight: 400; margin-left: .2rem; }
.bm-input,
.bm-textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .9rem;
  padding: .75rem 1rem;
  outline: none;
  transition: border-color .15s, background .15s;
  width: 100%;
  box-sizing: border-box;
}
.bm-input::placeholder,
.bm-textarea::placeholder { color: rgba(255,255,255,.22); }
.bm-input:focus,
.bm-textarea:focus {
  border-color: rgba(178,120,255,.45);
  background: rgba(178,120,255,.04);
}
.bm-input[type="date"],
.bm-input[type="time"] { color-scheme: dark; }
.bm-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}
.bm-char-count {
  font-size: .7rem;
  color: rgba(255,255,255,.25);
  text-align: right;
  margin-top: -.2rem;
}

/* Submit button */
.bm-submit {
  width: 100%;
  padding: .95rem;
  background: linear-gradient(135deg, #b278ff, #6d28d9);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 4px 24px rgba(178,120,255,.3);
  transition: opacity .15s, transform .12s, box-shadow .15s;
  margin-top: .25rem;
}
.bm-submit:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(178,120,255,.42); }
.bm-submit:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Error */
.bm-error {
  font-size: .8rem;
  color: #f87171;
  text-align: center;
  min-height: 1.2em;
  display: none;
}
.bm-error.is-visible { display: block; }

/* Success state */
.bm-success {
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: none;
}
.bm-success.is-visible { display: block; }
.bm-success__icon { font-size: 2.8rem; margin-bottom: 1rem; }
.bm-success__title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.bm-success__sub { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 1.5rem; }
.bm-success__close {
  padding: .65rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(178,120,255,.3);
  background: rgba(178,120,255,.08);
  color: #b278ff;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.bm-success__close:hover { background: rgba(178,120,255,.16); }

/* Desktop: centered modal */
@media (min-width: 600px) {
  .bm-overlay { align-items: center; padding: 1.5rem; }
  .bm-sheet { border-radius: 20px; }
}

@media (max-width: 480px) {
  .bm-header { padding: .85rem 1.1rem 1rem; }
  .bm-form { padding: 1rem 1.1rem; gap: .85rem; }
  .bm-row { grid-template-columns: 1fr; gap: .85rem; }
}
