/* ───────────── Booking Modal ───────────── */

.bm-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity 350ms ease;
}
.bm-scrim.open { opacity: 1; pointer-events: auto; }

.bm-shell {
  position: fixed; inset: 24px; z-index: 81;
  background: #0f0d0b;
  border: 1px solid rgba(244,237,227,0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(40px) scale(0.985);
  pointer-events: none;
  transition: opacity 480ms cubic-bezier(0.22,0.61,0.36,1), transform 480ms cubic-bezier(0.22,0.61,0.36,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  max-height: calc(100vh - 48px);
}
.bm-shell.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
@media (max-width: 768px) { .bm-shell { inset: 0; border-radius: 0; max-height: 100vh; } }

/* Header */
.bm-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 22px 32px 18px;
  border-bottom: 1px solid rgba(244,237,227,0.08);
  background: linear-gradient(180deg, rgba(200,154,60,0.04), rgba(200,154,60,0));
  flex-shrink: 0;
}
.bm-eyebrow {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244,237,227,0.55);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.bm-eyebrow-mt { margin-top: 22px; }
.bm-rule { width: 24px; height: 1px; background: #c89a3c; }
.bm-title {
  font-family: 'Gambarino', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.02em; color: #f4ede3; line-height: 1;
}
.bm-head-actions { display: flex; align-items: center; gap: 14px; }
.bm-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(244,237,227,0.04); border: 1px solid rgba(244,237,227,0.10);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,237,227,0.7);
}
.bm-pulse { width: 7px; height: 7px; border-radius: 999px; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: bm-pulse 1.8s ease-in-out infinite; }
@keyframes bm-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.bm-close {
  width: 38px; height: 38px; border-radius: 999px;
  background: rgba(244,237,227,0.06); border: 1px solid rgba(244,237,227,0.10);
  color: #f4ede3; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 200ms ease;
}
.bm-close:hover { background: rgba(244,237,227,0.12); }

/* Grid layout */
.bm-grid {
  display: grid; grid-template-columns: 1.05fr 1.15fr 0.95fr;
  flex: 1; overflow: hidden;
}
@media (max-width: 1080px) { .bm-grid { grid-template-columns: 1fr; overflow-y: auto; } }

.bm-col {
  padding: 28px 32px; border-right: 1px solid rgba(244,237,227,0.06);
  overflow-y: auto; position: relative; background: transparent;
}
.bm-col:last-child { border-right: none; background: rgba(200,154,60,0.025); }
@media (max-width: 1080px) {
  .bm-col { border-right: none; border-bottom: 1px solid rgba(244,237,227,0.06); overflow-y: visible; }
}

.bm-col::-webkit-scrollbar { width: 6px; }
.bm-col::-webkit-scrollbar-thumb { background: rgba(244,237,227,0.12); border-radius: 999px; }

.bm-step-watermark {
  position: absolute; top: 18px; right: 26px;
  font-family: 'Gambarino', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 96px; line-height: 1; letter-spacing: -0.04em;
  color: rgba(244,237,227,0.04); pointer-events: none; user-select: none;
}

.bm-h {
  font-family: 'Gambarino', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.02em; color: #f4ede3;
  line-height: 1; margin: 0 0 24px;
}

/* Calendar */
.bm-cal-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.bm-cal-month {
  font-family: 'Clash Display', 'Satoshi', sans-serif; font-weight: 600;
  font-size: 16px; letter-spacing: -0.02em; color: #f4ede3;
}
.bm-cal-nav { display: flex; gap: 6px; }
.bm-cal-nav button {
  width: 32px; height: 32px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(244,237,227,0.18);
  color: #f4ede3; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 180ms ease, border-color 180ms ease;
}
.bm-cal-nav button:hover:not(:disabled) { background: rgba(244,237,227,0.06); border-color: rgba(244,237,227,0.35); }
.bm-cal-nav button:disabled { opacity: 0.25; cursor: not-allowed; }
.bm-cal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,237,227,0.4);
  padding-bottom: 10px; border-bottom: 1px solid rgba(244,237,227,0.06); margin-bottom: 10px;
}
.bm-cal-dow > div { text-align: center; padding: 4px 0; }

.bm-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.bm-cell {
  position: relative; aspect-ratio: 1/1;
  background: transparent; border: 1px solid transparent;
  color: #f4ede3; font-family: 'Clash Display', sans-serif; font-size: 13.5px; font-weight: 500;
  border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.bm-cell:hover:not(.off):not(.sel) { background: rgba(244,237,227,0.07); border-color: rgba(244,237,227,0.14); }
.bm-cell.sel {
  background: #c89a3c; color: #0a0807; border-color: #c89a3c;
  box-shadow: 0 6px 16px rgba(200,154,60,0.35);
  transform: scale(1.06);
}
.bm-cell.off { color: rgba(244,237,227,0.18); cursor: not-allowed; }
.bm-cell.today { border-color: rgba(200,154,60,0.4); }
.bm-cell.empty { background: transparent; cursor: default; border: none; }

.bm-cell-dot {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 999px;
}
.bm-cell-dot.full { background: #ef4444; }
.bm-cell-dot.today { background: #c89a3c; }

.bm-legend {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(244,237,227,0.06);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,237,227,0.5);
}
.bm-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.lg-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.lg-dot.sel { background: #c89a3c; }
.lg-dot.ok { background: rgba(244,237,227,0.5); }
.lg-dot.full { background: #ef4444; }
.lg-dot.off { background: rgba(244,237,227,0.18); }

/* Time slots */
.bm-time-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px;
}
.bm-time {
  padding: 14px 18px; border-radius: 10px;
  background: transparent; border: 1px solid rgba(244,237,227,0.16);
  color: #f4ede3; font-family: 'Clash Display', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  cursor: pointer; transition: all 200ms ease; text-align: center;
}
.bm-time:hover:not(:disabled):not(.sel) { background: rgba(244,237,227,0.05); border-color: rgba(244,237,227,0.3); }
.bm-time.sel { background: #c89a3c; color: #0a0807; border-color: #c89a3c; box-shadow: 0 8px 22px rgba(200,154,60,0.35); }
.bm-time.busy { color: rgba(244,237,227,0.25); border-color: rgba(244,237,227,0.06); cursor: not-allowed; text-decoration: line-through; }
.bm-time:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tags */
.bm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-tag {
  padding: 10px 16px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(244,237,227,0.18);
  color: rgba(244,237,227,0.8); font-size: 11.5px; letter-spacing: 0.06em;
  cursor: pointer; transition: all 200ms ease;
}
.bm-tag:hover:not(.sel) { background: rgba(244,237,227,0.05); }
.bm-tag.sel {
  background: rgba(200,154,60,0.14); border-color: #c89a3c; color: #f4ede3;
}

/* Fields */
.bm-fields { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }
.bm-field { display: flex; flex-direction: column; gap: 7px; }
.bm-field-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,237,227,0.55);
}
.bm-input {
  background: transparent; border: none; border-bottom: 1px solid rgba(244,237,227,0.18);
  padding: 9px 0; font-family: inherit; font-size: 14px; color: #f4ede3; outline: none;
  transition: border-color 200ms ease;
  resize: vertical;
}
.bm-input::placeholder { color: rgba(244,237,227,0.32); font-size: 13px; }
.bm-input:focus { border-bottom-color: #c89a3c; }

/* Summary */
.bm-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(244,237,227,0.06);
}
.bm-row-k {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,237,227,0.50);
  flex-shrink: 0;
}
.bm-row-v {
  font-family: 'Gambarino', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 16px; color: #f4ede3; text-align: right;
}
.bm-comp { color: #c89a3c; font-style: italic; }

.bm-note {
  margin: 22px 0 18px; font-size: 13px; line-height: 1.6;
  color: rgba(244,237,227,0.65); font-family: 'Gambarino', Georgia, serif; font-style: italic; font-weight: 400;
  padding-left: 14px; border-left: 1px solid rgba(200,154,60,0.4);
}

.bm-error {
  padding: 12px 14px; border-radius: 8px; margin-bottom: 14px;
  background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.35);
  color: #f4ede3; font-size: 13px;
}

.bm-cta {
  width: 100%; padding: 18px 22px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #d8a843, #c89a3c 60%, #a47620);
  color: #0a0807;
  font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: transform 250ms ease, box-shadow 250ms ease, opacity 200ms ease;
  box-shadow: 0 12px 28px rgba(200,154,60,0.28);
}
.bm-cta:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(200,154,60,0.36); }
.bm-cta:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

.bm-call {
  display: block; text-align: center; margin-top: 12px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,237,227,0.55);
}
.bm-call:hover { color: #f4ede3; }

/* Success state */
.bm-success {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px; text-align: center; gap: 0;
}
.bm-check {
  width: 80px; height: 80px; border-radius: 999px;
  background: linear-gradient(135deg, #d8a843, #c89a3c, #a47620);
  color: #0a0807;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
  box-shadow: 0 18px 44px rgba(200,154,60,0.4);
  animation: bm-pop 600ms cubic-bezier(0.22,0.61,0.36,1) both;
}
@keyframes bm-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.bm-success-title {
  font-family: 'Gambarino', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(38px, 5vw, 64px); color: #f4ede3; letter-spacing: -0.02em;
  margin: 16px 0 18px; line-height: 1;
}
.bm-success-body { font-size: 15px; color: rgba(244,237,227,0.75); line-height: 1.65; margin: 0 0 28px; max-width: 480px; }
.bm-success-body strong { color: #f4ede3; font-weight: 600; }
.bm-success-ref {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(200,154,60,0.85);
  padding: 10px 18px; border: 1px solid rgba(200,154,60,0.4); border-radius: 999px;
  margin-bottom: 36px;
}
.bm-success .bm-cta { max-width: 240px; }

@media (max-width: 768px) {
  .bm-head { padding: 16px 20px 14px; }
  .bm-col { padding: 22px 20px; }
  .bm-time-grid { grid-template-columns: 1fr 1fr; }
  .bm-step-watermark { font-size: 64px; top: 14px; right: 18px; }
  .bm-head-actions .bm-pill { display: none; }
}
