/* ============================================================
   BOOKING FLOW — Palette B
   Values copied from this site's own style.css, which design.md names as the
   tuned reference build for palette B. Nothing here invents a colour, radius
   or type rule — inventing them is what produces the "uniform rounded corners"
   AI-slop tell and the cheap-tells listed in design.md.
   ============================================================ */

/* ---- RTL number isolation --------------------------------------------------
   Hebrew is RTL, and the bidi algorithm reorders runs of digits and colons.
   Without this, "10:20" and "09/08/2026" render scrambled. Confirmed gotcha
   from the Nirit build. Applies to every time, date and phone on this page. */
.ltr-num {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* Top padding replaces the inline margin the h1 used to carry, now that the
   site's real header sits above this. The header is `position: sticky`, so it
   occupies its own space and nothing here slides underneath it. */
.booking-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 52px 18px 72px;
}

@media (max-width: 760px) {
  .booking-wrap { padding-top: 32px; }
}

/* Translucent surface, not an opaque box — design.md's rule 6: one page-wide
   light should pass through everything. */
.booking-card {
  background: linear-gradient(180deg, rgba(16, 31, 66, 0.72) 0%, rgba(12, 24, 52, 0.72) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 30px;
  position: relative;
  overflow: hidden;
}
/* Hairline of light along the top edge — "lit surfaces, not flat boxes". */
.booking-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 199, 149, 0.45), transparent);
}

/* ---- progress ------------------------------------------------------------ */
.bk-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.bk-progress span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--border);
  transition: background 300ms var(--ease);
}
.bk-progress span.done { background: var(--accent-grad); }

.bk-back {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 2px;
  margin-bottom: 6px;
}
.bk-back:hover { color: var(--accent); }

.bk-step-title {
  font-family: "Frank Ruhl Libre", Heebo, Georgia, serif;
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 28px);
  margin: 2px 0 4px;
  text-align: center;
}
.bk-step-sub {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  margin: 0 0 20px;
}

/* ---- option rows (services, times) --------------------------------------- */
.bk-list { display: grid; gap: 10px; }

.bk-option {
  width: 100%;
  text-align: right;
  background: rgba(8, 19, 44, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease),
              transform 200ms var(--ease);
}
.bk-option:hover { border-color: var(--border-hi); transform: translateY(-1px); }
.bk-option[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.bk-option-name { font-weight: 600; }
.bk-option-meta { color: var(--dim); font-size: 14px; }

/* Price uses the gradient — design.md: the accent is never one flat colour. */
.bk-price {
  background: var(--accent-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 15px;
}

/* ---- calendar ------------------------------------------------------------ */
.bk-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bk-cal-title { font-weight: 700; font-size: 17px; }
.bk-cal-nav {
  background: rgba(8, 19, 44, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  /* 44px, not 36px: below that these are genuinely hard to hit with a thumb,
     and this is the only control on the page that was under the guideline
     (measured at 390px on 2026-08-09). Every other target already passed. */
  width: 44px; height: 44px;
  font-size: 18px; line-height: 1;
  cursor: pointer;
}
.bk-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.bk-cal-nav:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }

/* dir=rtl on the page makes column 1 land on the RIGHT, so א is rightmost —
   matching the reference and every Hebrew calendar. */
.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.bk-dow {
  font-size: 13px;
  color: var(--dim);
  padding: 6px 0;
  font-weight: 600;
}
.bk-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}
.bk-day.is-open { background: rgba(224, 199, 149, 0.10); }
.bk-day.is-open:hover { border-color: var(--accent); }
.bk-day.is-closed { color: var(--dim); opacity: 0.35; cursor: not-allowed; }
.bk-day.is-today { border-color: var(--accent); }
.bk-day.is-selected { background: var(--accent-grad); color: #0a1420; font-weight: 700; }
.bk-day.is-empty { visibility: hidden; }

.bk-legend {
  margin-top: 14px;
  font-size: 13px;
  color: var(--dim);
  text-align: center;
}

/* ---- time grid ----------------------------------------------------------- */
.bk-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.bk-time {
  padding: 11px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(8, 19, 44, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.bk-time:hover { border-color: var(--accent); }
.bk-time.is-selected { background: var(--accent-grad); color: #0a1420; font-weight: 700; }

/* ---- form ---------------------------------------------------------------- */
.bk-summary {
  background: rgba(8, 19, 44, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 2;
}
.bk-summary dt { color: var(--dim); font-size: 13px; }
.bk-summary dd { margin: 0 0 8px; font-weight: 600; }
.bk-summary dd:last-child { margin-bottom: 0; }

.bk-field { margin-bottom: 14px; }
.bk-field label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.bk-field input {
  width: 100%;
  background: rgba(4, 10, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
}
.bk-field input:focus {
  outline: none;
  border-color: var(--accent);
}
.bk-field input::placeholder { color: var(--dim); }
.bk-error {
  color: #ffb4a8;
  font-size: 14px;
  margin: 6px 0 0;
  min-height: 1px;
}

.bk-submit { width: 100%; margin-top: 6px; }

/* ---- confirmation -------------------------------------------------------- */
.bk-done { text-align: center; padding: 8px 0 4px; }
.bk-done-mark {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  color: #0a1420; font-size: 28px; font-weight: 700;
}

/* ---- fake-data banner. Delete with the test values. ---------------------- */
.bk-testdata {
  border: 1px dashed var(--accent-deep);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--accent-light);
  background: rgba(224, 199, 149, 0.06);
  text-align: center;
}

@media (max-width: 480px) {
  .booking-card { padding: 20px 15px 24px; }
  .bk-times { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}
