/* Celestino Spa — Book Now overlay prototype (staging only).
   Skinned with the site's own design tokens (defined in the site stylesheet). */
.bk-backdrop {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(35, 31, 32, .58);
  display: flex; align-items: stretch; justify-content: center;
  opacity: 0; transition: opacity .22s ease;
}
.bk-backdrop.bk-show { opacity: 1; }
.bk-panel {
  background: var(--cream, #FBF7EC);
  color: var(--ink, #231F20);
  width: 100%; height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
  transform: translateY(14px); transition: transform .22s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.bk-backdrop.bk-show .bk-panel { transform: none; }
@media (min-width: 720px) {
  .bk-backdrop { align-items: center; padding: 24px; }
  .bk-panel { width: 580px; height: auto; max-height: 90vh; max-height: 90svh; border-radius: 16px; overflow: hidden; }
}
.bk-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line, #E3E0D2);
}
.bk-head-titles { flex: 1; min-width: 0; }
.bk-title {
  font-family: Erato, Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.15; color: var(--dark-olive, #2C311B); margin: 0;
}
.bk-stepmeta {
  margin: 4px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bronze, #CDA176);
}
.bk-close {
  appearance: none; border: 1px solid var(--line, #E3E0D2); background: #fff;
  width: 38px; height: 38px; border-radius: 50%; font-size: 20px; line-height: 1;
  color: var(--dark-olive, #2C311B); cursor: pointer; flex: none;
}
.bk-progress { height: 3px; background: var(--line, #E3E0D2); }
.bk-progress > i { display: block; height: 100%; background: var(--bronze, #CDA176); transition: width .25s ease; }
.bk-body { padding: 18px 20px 22px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.bk-h {
  font-family: Erato, Georgia, serif; font-weight: 400; font-size: 21px;
  color: var(--dark-olive, #2C311B); margin: 0 0 4px;
}
.bk-sub { margin: 0 0 16px; font-size: 14.5px; color: #5c5c5c; }
.bk-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line, #E3E0D2); background: var(--cream, #FBF7EC);
}
.bk-total { flex: 1; min-width: 0; }
.bk-btns { display: flex; gap: 12px; flex: none; }
/* Stacked footer (Bradley, Nov 17, 2026): while a discount breakdown
   shows, the price block takes a full-width row of its own and the
   buttons get their own row below, so the amounts never wrap
   mid-string at phone width. */
.bk-foot.bk-foot-stack { flex-direction: column; align-items: stretch; gap: 10px; }
.bk-foot.bk-foot-stack .bk-total { flex: none; width: 100%; }
.bk-foot.bk-foot-stack .bk-btns { width: 100%; }
.bk-foot.bk-foot-stack .bk-btns .bk-btn { flex: 1; }
.bk-total small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze, #CDA176); }
.bk-total b { font-family: Erato, Georgia, serif; font-size: 18px; font-weight: 400; color: var(--dark-olive, #2C311B); white-space: nowrap; }
/* Discount displays (Bradley, Nov 17, 2026): every discount line in the
   flow renders in the spa's red (#b02a20, the hotel-note red) so the
   guest instantly reads it as a deal; subtotal/total stay in ink. */
.bk-disc { color: #b02a20; }
.bk-disc-note { display: block; font-size: 12px; font-weight: 700; color: #b02a20; margin-top: 2px; white-space: nowrap; }
.bk-total-line { display: flex; align-items: baseline; gap: 7px; }
.bk-orig { color: #8a8578; font-size: 13.5px; white-space: nowrap; }
.bk-trow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; color: var(--ink, #231F20); padding: 1px 0; }
.bk-trow > :first-child { min-width: 0; }
.bk-trow > :last-child { white-space: nowrap; flex: none; }
.bk-trow.bk-disc { font-weight: 700; color: #b02a20; }
.bk-trow-total { border-top: 1px solid var(--line, #E3E0D2); margin-top: 3px; padding-top: 4px; }
.bk-trow-total span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze, #CDA176); }
.bk-trow-total b { font-family: Erato, Georgia, serif; font-size: 18px; font-weight: 400; color: var(--dark-olive, #2C311B); white-space: nowrap; }
.bk-sum-row.bk-disc-row .k, .bk-sum-row.bk-disc-row .v { color: #b02a20; }
/* Success-screen Add-to-calendar buttons (Nov 17, 2026) */
.bk-cal-btns { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 4px; }
.bk-cal-btn { text-align: center; text-decoration: none; }
.bk-btn {
  appearance: none; cursor: pointer; border-radius: 8px;
  font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 22px; border: 2px solid var(--dark-olive, #2C311B);
}
.bk-btn-gold { background: var(--gold, #F6DFA4); color: var(--dark-olive, #2C311B); }
.bk-btn-gold[disabled] { opacity: .45; cursor: default; }
.bk-btn-ghost { background: transparent; color: var(--dark-olive, #2C311B); border-color: var(--dark-olive, #2C311B); }
.bk-btn-ghost[disabled] { opacity: .35; cursor: default; }

/* Step 1 — calendar */
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bk-cal-title { font-family: Erato, Georgia, serif; font-size: 19px; color: var(--dark-olive, #2C311B); text-transform: capitalize; }
.bk-cal-nav {
  appearance: none; cursor: pointer; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line, #E3E0D2); background: #fff; font-size: 18px; color: var(--dark-olive, #2C311B);
}
.bk-cal-nav[disabled] { opacity: .3; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-cal-dow { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze, #CDA176); padding: 4px 0; }
.bk-day {
  appearance: none; cursor: pointer; border: 1px solid transparent; background: transparent;
  border-radius: 8px; padding: 10px 0; font: inherit; font-size: 15px; color: var(--ink, #231F20); text-align: center;
  position: relative;
}
.bk-day:hover { border-color: var(--line, #E3E0D2); }
.bk-day.bk-dis { opacity: .3; pointer-events: none; }
/* Unavailable day (probe found no bookable slot): an elegant light-red
   X across the cell, the number muted, the day not selectable. The X is
   a soft-rose SVG cross stretched to the cell so it runs corner to
   corner at any cell size. Past days never get it (bk-dis covers them);
   today and the selected day get it too when the probe finds them full. */
.bk-day.bk-x {
  color: #c2a099; cursor: default; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg stroke='%23cf9a90' stroke-width='3.5' stroke-linecap='round' opacity='.8'%3E%3Cline x1='11' y1='15' x2='89' y2='85'/%3E%3Cline x1='89' y1='15' x2='11' y2='85'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 100% 100%;
}
.bk-day.bk-x:hover { border-color: transparent; }
.bk-day.bk-sel { background: var(--dark-olive, #2C311B); color: var(--gold, #F6DFA4); font-weight: 700; }
.bk-day.bk-today { border-color: var(--bronze, #CDA176); }
.bk-today-tag { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze, #CDA176); margin-top: 1px; line-height: 1; }
.bk-day.bk-sel .bk-today-tag { color: var(--gold, #F6DFA4); }

/* Steps 2–4 — option rows & cards */
.bk-people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-person-card {
  appearance: none; cursor: pointer; text-align: center; font: inherit;
  border: 1.5px solid var(--line, #E3E0D2); border-radius: 12px; background: #fff; padding: 22px 10px;
}
.bk-person-card .bk-big { display: block; font-family: Erato, Georgia, serif; font-size: 34px; color: var(--dark-olive, #2C311B); line-height: 1; }
.bk-person-card .bk-lbl { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5c5c5c; }
.bk-person-card.bk-sel { border-color: var(--olive, #3F4727); background: #fff; box-shadow: inset 0 0 0 1px var(--olive, #3F4727); }
.bk-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  appearance: none; cursor: pointer; font: inherit;
  border: 1.5px solid var(--line, #E3E0D2); border-radius: 12px; background: #fff;
  padding: 13px 15px; margin-bottom: 10px;
}
.bk-opt.bk-sel { border-color: var(--olive, #3F4727); box-shadow: inset 0 0 0 1px var(--olive, #3F4727); }
.bk-opt .bk-radio {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--sage, #B2B5A8); position: relative;
}
.bk-opt.bk-sel .bk-radio { border-color: var(--olive, #3F4727); }
.bk-opt.bk-sel .bk-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--olive, #3F4727);
}
.bk-opt .bk-check {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--sage, #B2B5A8); color: #fff; font-size: 14px; line-height: 19px; text-align: center;
}
.bk-opt.bk-sel .bk-check { background: var(--olive, #3F4727); border-color: var(--olive, #3F4727); }
.bk-opt-main { flex: 1; min-width: 0; }
.bk-opt-name { display: block; font-size: 15.5px; color: var(--ink, #231F20); line-height: 1.3; }
.bk-opt-meta { display: block; font-size: 12.5px; color: #7a7a7a; margin-top: 2px; }
.bk-opt-price { flex: none; font-family: Erato, Georgia, serif; font-size: 17px; color: var(--dark-olive, #2C311B); white-space: nowrap; }
.bk-opt.bk-dis { opacity: .42; pointer-events: none; }
.bk-opt-ao { border-style: dashed; }
.bk-opt-ao .bk-opt-name { color: #000; font-style: italic; }
.bk-person-h {
  font-size: 19px; font-weight: 800; line-height: 1.2;
  background: #2C311B; color: #fff;
  margin: 24px -20px 14px; padding: 13px 20px;
}
.bk-person-h.p2 { background: #2C311B; color: #fff; font-style: italic; }
.bk-person-h:first-child { margin-top: 0; }
.bk-note { font-size: 13px; color: #7a7a7a; font-style: italic; margin: 4px 0 12px; }

/* Step 5 — time grid */
.bk-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bk-time {
  appearance: none; cursor: pointer; font: inherit; font-size: 14.5px;
  border: 1.5px solid var(--line, #E3E0D2); border-radius: 8px; background: #fff;
  padding: 11px 0; color: var(--ink, #231F20); text-align: center;
}
.bk-time.bk-sel { background: var(--dark-olive, #2C311B); color: var(--gold, #F6DFA4); border-color: var(--dark-olive, #2C311B); font-weight: 700; }
.bk-time.bk-taken { opacity: .35; text-decoration: line-through; pointer-events: none; }

/* Last-minute promo line (homepage hero, inside the CTA row directly
   under the Book Online button — Bradley, Nov 16 2026): plain italic
   text, NO box/pill. Unhidden by booking.js only while the dashboard
   reports the day armed and not killed. Deep terracotta-bronze (a
   deepened take on the site's --bronze) for contrast on the cream
   hero panel; flex-basis 100% so it takes its own line between the
   Book Online and WhatsApp buttons. */
.bk-promo-banner {
  flex: 0 0 100%; margin: 0;
  font-size: 15px; font-weight: 700; font-style: italic; letter-spacing: .01em;
  color: #9C4A1A;
}
.bk-promo-banner[hidden] { display: none; }

/* Step 6 — details form */
.bk-field { margin-bottom: 14px; }
.bk-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5c5c5c; margin-bottom: 6px; }
.bk-field input, .bk-field select {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px;
  padding: 12px 13px; border: 1px solid var(--line, #E3E0D2); border-radius: 8px; background: #fff; color: var(--ink, #231F20);
}
.bk-field input:focus, .bk-field select:focus { outline: 2px solid var(--bronze, #CDA176); outline-offset: 0; border-color: var(--bronze, #CDA176); }
.bk-phone { display: flex; gap: 8px; }
.bk-phone select { width: 108px; flex: none; }
.bk-phone input { flex: 1; }
.bk-err { color: #a33b2e; font-size: 13.5px; margin: 2px 0 10px; display: none; }
.bk-err.bk-show { display: block; }
/* Hotel-guest question: the label is a full sentence, so it escapes
   the uppercase field-label styling, and the checkbox escapes the
   full-width text-input styling. The note under it is red italics by
   Bradley's spec. */
.bk-field label.bk-hotel-check {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: 15px; font-weight: 600; letter-spacing: normal;
  text-transform: none; color: var(--ink, #231F20); margin-bottom: 0;
}
.bk-field .bk-hotel-check input {
  width: 19px; height: 19px; flex: none; margin: 0; padding: 0;
  accent-color: var(--dark-olive, #2C311B); cursor: pointer;
}
.bk-hotel-note { color: #b02a20; font-style: italic; font-size: 13.5px; line-height: 1.45; margin: 7px 0 0; }
.bk-partner-h { font-size: 15.5px; font-weight: 800; color: var(--ink, #231F20); margin: 0 0 4px; }
.bk-partner-note { font-size: 13.5px; color: var(--ink, #231F20); margin: 0 0 10px; }
.bk-partner-field .bk-hotel-note { margin: 2px 0 10px 27px; }
.bk-partner-field .bk-hotel-check { margin-top: 6px; }

/* Step 7 — summary & success */
.bk-sum { border: 1px solid var(--line, #E3E0D2); border-radius: 12px; background: #fff; padding: 6px 16px; }
.bk-sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line, #E3E0D2); font-size: 14.5px; }
.bk-sum-row:last-child { border-bottom: 0; }
.bk-sum-row .k { color: #7a7a7a; flex: 1 1 auto; min-width: 0; }
.bk-sum-row .v { text-align: right; color: var(--ink, #231F20); }
/* Price rows (subtotal / discount / total): the amount never wraps
   mid-string — it stays on one line and the label takes the room
   that is left. */
.bk-sum-row.bk-price .v { white-space: nowrap; flex: none; }
.bk-sum-row.bk-sum-total .v { font-family: Erato, Georgia, serif; font-size: 19px; color: var(--dark-olive, #2C311B); }
.bk-demo-note { font-size: 12.5px; color: #7a7a7a; text-align: center; margin: 14px 0 0; font-style: italic; }
/* Discount code on the Confirm step (Nov 17, 2026): a quiet optional
   block under the summary card — same field/button language as the
   rest of the flow, no new colors. */
.bk-code-toggle { margin: 14px 0 0; text-align: center; }
.bk-code-link { appearance: none; background: none; border: 0; padding: 4px; font: inherit; font-size: 13.5px; font-style: italic; color: #7a7a7a; text-decoration: underline; cursor: pointer; }
.bk-code { margin-top: 16px; margin-bottom: 0; }
.bk-code-row { display: flex; gap: 8px; }
.bk-code-row input { flex: 1; min-width: 0; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 13px; border: 1px solid var(--line, #E3E0D2); border-radius: 8px; background: #fff; color: var(--ink, #231F20); text-transform: uppercase; }
.bk-code-row input:focus { outline: 2px solid var(--bronze, #CDA176); outline-offset: 0; border-color: var(--bronze, #CDA176); }
.bk-code-row .bk-btn { flex: none; }
.bk-code-msg { margin: 8px 0 0; }
.bk-code-bad { color: #a33b2e; }
.bk-mail-line { font-size: 14px !important; font-weight: 600; color: var(--dark-olive, #2C311B) !important; }
.bk-mail-fail { color: #8a4b2a !important; }
.bk-success { text-align: center; padding: 26px 6px 8px; }
.bk-success .bk-tick {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--olive, #3F4727); color: var(--gold, #F6DFA4);
  font-size: 36px; line-height: 74px;
}
.bk-success h3 { font-family: Erato, Georgia, serif; font-style: italic; font-weight: 400; font-size: 27px; color: var(--dark-olive, #2C311B); margin: 0 0 8px; }
.bk-success p { margin: 0 auto 10px; max-width: 40ch; font-size: 15px; color: #5c5c5c; }
body.bk-locked { overflow: hidden; }
.bk-req-legend { font-size: 12px; color: #8A7A5F; margin-top: 2px; }
.bk-arrival { margin: 22px auto 0; max-width: 420px; padding: 18px 16px; background: #F3EDDC; border: 1px solid #E4DCC4; border-radius: 12px; }
.bk-arrival h4 { font-family: Erato, Georgia, serif; font-size: 19px; color: var(--dark-olive, #2C311B); margin: 0 0 6px; }
.bk-arrival p { font-size: 14px; color: #4C5540; margin: 0 auto 14px; }
.bk-arrival-btn { display: block; text-decoration: none; text-align: center; }
/* SIGN THE WAIVER is the success screen's primary action (Bradley,
   Nov 17, 2026): solid brand green, white bold text, full width —
   never the gold used by the calendar buttons. */
.bk-btn-green { background: var(--olive, #3F4727); color: #fff; border-color: var(--olive, #3F4727); }
.bk-pressure { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.bk-pill { border: 1px solid #CFC9B8; background: #FFFDF8; color: var(--dark-olive, #2C311B); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 14.5px; cursor: pointer; }
.bk-pill.bk-sel { background: var(--dark-olive, #2C311B); color: #fff; border-color: var(--dark-olive, #2C311B); }
.bk-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #CFC9B8; border-radius: 9px; font: inherit; font-size: 15px; background: #FFFDF8; resize: vertical; }
