/*
 * Booking form (redesign).
 *
 * Everything is scoped under .booking-v2 so it cannot leak into the purchased
 * Bootstrap template that styles the rest of the site. Headings use Chivo, which
 * the site already loads for its own headings; body text uses Inter.
 */

.booking-v2 {
  --bk-ink: #12303F;
  --bk-ink-2: #4A6B7A;
  --bk-ink-3: #8AA3AF;
  --bk-sky: #3AA3CC;
  --bk-sky-wash: #EDF6FA;
  --bk-yellow: #FFC300;
  --bk-paper: #FFFFFF;
  --bk-mist: #F4F8FA;
  --bk-rule: #DFE9EE;
  --bk-green: #1B7A5A;
  --bk-green-wash: #E8F4EF;
  --bk-red: #B3261E;
  --bk-red-wash: #FCEDEC;

  --bk-display: "Chivo", sans-serif;
  --bk-body: "Inter", "Noto Sans", sans-serif;

  font-family: var(--bk-body);
  color: var(--bk-ink);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  background: var(--bk-paper);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.booking-v2 *,
.booking-v2 *::before,
.booking-v2 *::after { box-sizing: border-box; }

.booking-v2 button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
.booking-v2 :focus-visible { outline: 2px solid var(--bk-sky); outline-offset: 2px; }

/* ---------- progress ---------- */

/*
 * Not sticky. The site's own header is position:sticky at top:0 with
 * z-index:999, so a sticky bar here just slides underneath it and the step
 * counter disappears the moment you scroll. Outbidding the site header would
 * hide the logo instead, which is worse.
 */
.booking-v2 .bk-top {
  background: var(--bk-paper);
  border-bottom: 1px solid var(--bk-rule);
}
.booking-v2 .bk-top-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem;
}
/* The property being booked, once it is known. Truncates rather than wrapping,
   so a long address cannot push the step counter off the edge. */
.booking-v2 .bk-context {
  font-family: var(--bk-display); font-weight: 700; font-size: .95rem;
  letter-spacing: -.02em; color: var(--bk-ink);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-right: 1rem;
}
.booking-v2 .bk-stepcount {
  font-size: .75rem; color: var(--bk-ink-3); font-weight: 500;
  flex-shrink: 0; margin-left: auto;
}
.booking-v2 .bk-track { height: 3px; background: var(--bk-rule); }
.booking-v2 .bk-track i {
  display: block; height: 100%; background: var(--bk-yellow); width: 0;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- steps ---------- */

.booking-v2 .bk-step { display: none; padding: 1.75rem 1.25rem 1.25rem; }
.booking-v2 .bk-step.is-on { display: block; animation: bk-in .28s ease both; }
@keyframes bk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.booking-v2 .bk-eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--bk-sky);
}
.booking-v2 .bk-step h2 {
  font-family: var(--bk-display); font-weight: 700; font-size: 1.6rem; line-height: 1.15;
  letter-spacing: -.02em; margin: .5rem 0 0; color: var(--bk-ink);
}
.booking-v2 .bk-sub { color: var(--bk-ink-2); margin-top: .5rem; font-size: .95rem; }
.booking-v2 .bk-hint {
  margin: .55rem 0 0; font-size: .82rem; line-height: 1.45; color: var(--bk-ink-3);
}

/* ---------- fields ---------- */

.booking-v2 .bk-field { margin-top: 1.15rem; }
.booking-v2 .bk-lab {
  display: block; font-size: .78rem; font-weight: 600;
  color: var(--bk-ink-2); margin-bottom: .4rem;
}
.booking-v2 .bk-inp {
  width: 100%; padding: .9rem 1rem; font: inherit; color: var(--bk-ink);
  background: var(--bk-paper); border: 1.5px solid var(--bk-rule); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.booking-v2 .bk-inp::placeholder { color: var(--bk-ink-3); }
.booking-v2 .bk-inp:focus {
  outline: none; border-color: var(--bk-sky); box-shadow: 0 0 0 3px var(--bk-sky-wash);
}
.booking-v2 .bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 420px) { .booking-v2 .bk-two { grid-template-columns: 1fr; } }

/* ---------- chips ---------- */

.booking-v2 .bk-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.booking-v2 .bk-chip {
  padding: .65rem 1rem; border: 1.5px solid var(--bk-rule); border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--bk-ink-2);
  background: var(--bk-paper); transition: all .15s;
}
.booking-v2 .bk-chip[aria-pressed="true"] {
  background: var(--bk-ink); border-color: var(--bk-ink); color: #fff;
}

/* ---------- services ---------- */

.booking-v2 .bk-group { margin-top: 1.5rem; }
.booking-v2 .bk-group > h3 {
  font-family: var(--bk-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--bk-ink-3); margin: 0 0 .7rem;
}
/* The package deal, above the service list. Quiet enough not to be mistaken
   for a service, loud enough to be read before anything is tapped. */
.booking-v2 .bk-deal {
  margin: -.3rem 0 .85rem; font-size: .87rem; line-height: 1.45;
  color: var(--bk-green); background: var(--bk-green-wash);
  border: 1.5px solid #BFE3D5; border-radius: 10px; padding: .6rem .8rem;
}
.booking-v2 .bk-deal b { font-weight: 700; }

.booking-v2 .bk-svc {
  border: 1.5px solid var(--bk-rule); border-radius: 12px;
  background: var(--bk-paper); margin-bottom: .6rem; transition: border-color .16s;
}
.booking-v2 .bk-svc.is-on { border-color: var(--bk-ink); background: var(--bk-sky-wash); }
.booking-v2 .bk-svc-head {
  width: 100%; text-align: left; display: grid;
  grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: start;
  padding: 1rem 1.05rem;
}
.booking-v2 .bk-svc-name {
  font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: .45rem;
}
.booking-v2 .bk-svc-why {
  grid-column: 1; font-size: .85rem; color: var(--bk-ink-2); line-height: 1.45;
}
.booking-v2 .bk-svc-price { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.booking-v2 .bk-svc-price small {
  display: block; font-weight: 400; font-size: .72rem; color: var(--bk-ink-3); text-align: right;
}
.booking-v2 .bk-tick {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--bk-rule);
  display: grid; place-items: center; flex-shrink: 0;
}
.booking-v2 .bk-svc.is-on .bk-tick { background: var(--bk-ink); border-color: var(--bk-ink); }
.booking-v2 .bk-tick svg { opacity: 0; transition: opacity .12s; }
.booking-v2 .bk-svc.is-on .bk-tick svg { opacity: 1; }

/* Categories that open a choice get a chevron instead, so the two kinds of card
   are told apart before they are tapped. */
.booking-v2 .bk-chev {
  width: 18px; height: 18px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--bk-ink-3); transition: transform .18s, color .18s;
}
.booking-v2 .bk-svc.is-open .bk-chev { transform: rotate(180deg); }
.booking-v2 .bk-svc.is-on .bk-chev { color: var(--bk-ink); }

/* options within a category that offers a choice */
.booking-v2 .bk-options { display: none; padding: 0 1.05rem 1rem; }
.booking-v2 .bk-svc.is-open .bk-options { display: block; }
.booking-v2 .bk-opt {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  padding: .7rem .85rem; margin-top: .4rem;
  border: 1.5px solid var(--bk-rule); border-radius: 9px; background: var(--bk-paper);
  font-size: .9rem; transition: all .15s;
}
.booking-v2 .bk-opt[aria-checked="true"] { border-color: var(--bk-ink); background: var(--bk-paper); }
.booking-v2 .bk-opt .bk-radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--bk-rule); flex-shrink: 0; position: relative;
}
.booking-v2 .bk-opt[aria-checked="true"] .bk-radio { border-color: var(--bk-ink); border-width: 5px; }
.booking-v2 .bk-opt-name { flex: 1; }
.booking-v2 .bk-opt-price { font-weight: 600; white-space: nowrap; }

/* ---------- nudge ---------- */

.booking-v2 .bk-nudge {
  display: none; margin-top: 1rem; padding: .95rem 1.05rem; border-radius: 12px;
  background: var(--bk-green-wash); border: 1.5px solid #BFE3D5;
}
.booking-v2 .bk-nudge.is-on { display: block; animation: bk-in .3s ease both; }
.booking-v2 .bk-nudge b { font-weight: 600; color: var(--bk-green); }
.booking-v2 .bk-nudge p { font-size: .87rem; color: var(--bk-ink-2); margin: .2rem 0 0; }
.booking-v2 .bk-nudge button {
  margin-top: .6rem; font-size: .85rem; font-weight: 600; color: var(--bk-green);
  border-bottom: 2px solid #BFE3D5; padding-bottom: 1px;
}

/* ---------- showcase pitch ---------- */

.booking-v2 .bk-pitch {
  background: var(--bk-ink); color: #fff; border-radius: 14px;
  padding: 1.4rem 1.25rem; margin-top: 1.25rem;
}
.booking-v2 .bk-pitch .bk-tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--bk-yellow);
}
.booking-v2 .bk-pitch h3 {
  font-family: var(--bk-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2;
  letter-spacing: -.02em; margin: .55rem 0 0; color: #fff;
}
.booking-v2 .bk-pitch p { font-size: .9rem; color: #B9CFDA; margin-top: .7rem; line-height: 1.55; }
.booking-v2 .bk-shot {
  display: block; width: 100%; height: auto; margin-top: 1rem;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.18);
}
.booking-v2 .bk-pitch ul { list-style: none; margin: .9rem 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.booking-v2 .bk-pitch li {
  font-size: .87rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: 1.4rem 1fr; color: #DCE8EE;
}
.booking-v2 .bk-pitch li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bk-yellow); margin-top: .5rem;
}
.booking-v2 .bk-pitch a.bk-demo {
  display: inline-block; margin-top: 1rem; color: #fff; font-size: .88rem; font-weight: 600;
  border-bottom: 2px solid var(--bk-yellow); padding-bottom: 2px; text-decoration: none;
}
.booking-v2 .bk-pick { display: grid; gap: .6rem; margin-top: 1rem; }
.booking-v2 .bk-pick button {
  padding: 1rem; border-radius: 12px; border: 1.5px solid var(--bk-rule);
  font-weight: 600; font-size: .95rem; background: var(--bk-paper); transition: all .16s;
}
.booking-v2 .bk-pick .bk-add[aria-pressed="true"] { background: var(--bk-ink); border-color: var(--bk-ink); color: #fff; }
.booking-v2 .bk-pick .bk-skip[aria-pressed="true"] { background: var(--bk-mist); border-color: var(--bk-ink-3); color: var(--bk-ink-2); }

/* ---------- review ---------- */

.booking-v2 .bk-card {
  border: 1.5px solid var(--bk-rule); border-radius: 14px; padding: 1.25rem; margin-top: 1.25rem;
}
.booking-v2 .bk-addr {
  font-family: var(--bk-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
}
.booking-v2 .bk-when { font-size: .87rem; color: var(--bk-ink-2); margin-top: .2rem; }
.booking-v2 .bk-lines { margin-top: 1.1rem; border-top: 1px solid var(--bk-rule); }
.booking-v2 .bk-line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-bottom: 1px solid var(--bk-rule); font-size: .92rem;
}
.booking-v2 .bk-line span:last-child { font-weight: 500; white-space: nowrap; }
.booking-v2 .bk-line-members { color: var(--bk-ink-3); font-size: .82rem; }
.booking-v2 .bk-tot {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: .9rem; font-family: var(--bk-display); font-weight: 700;
}
.booking-v2 .bk-tot .bk-n { font-size: 1.5rem; letter-spacing: -.02em; }
.booking-v2 .bk-saved {
  margin-top: .75rem; padding: .6rem .85rem; border-radius: 9px;
  background: var(--bk-green-wash); color: var(--bk-green); font-size: .85rem; font-weight: 600;
}
.booking-v2 .bk-fine { font-size: .78rem; color: var(--bk-ink-3); margin-top: .9rem; line-height: 1.5; }
.booking-v2 .bk-second {
  margin-top: 1rem; padding: 1rem 1.05rem;
  border: 1.5px dashed var(--bk-rule); border-radius: 12px;
}
.booking-v2 .bk-second p { font-size: .88rem; color: var(--bk-ink-2); margin: 0; }
.booking-v2 .bk-second button {
  margin-top: .55rem; font-size: .88rem; font-weight: 600;
  color: var(--bk-sky); border-bottom: 2px solid var(--bk-sky-wash); padding-bottom: 1px;
}

/* ---------- messages ---------- */

.booking-v2 .bk-msg {
  display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .88rem;
}
.booking-v2 .bk-msg.is-on { display: block; }
.booking-v2 .bk-msg-error { background: var(--bk-red-wash); color: var(--bk-red); border: 1.5px solid #F3C9C5; }
.booking-v2 .bk-msg-info { background: var(--bk-sky-wash); color: var(--bk-ink-2); border: 1.5px solid #CDE6F1; }

/* ---------- done ---------- */

.booking-v2 .bk-done { text-align: center; padding: 3rem 1.25rem; }
.booking-v2 .bk-ring {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bk-green-wash);
  display: grid; place-items: center; margin: 0 auto 1.1rem;
}

/* ---------- bottom bar ---------- */

/*
 * The site's floating scroll-to-top button is fixed at bottom:30px right:30px
 * with z-index:999. On a narrow screen the form fills the width, so the button
 * lands on top of the Next button and swallows the tap. The stepper scrolls to
 * the top on every step change, so it has nothing to do here anyway.
 */
.booking-page #scrollUp { display: none !important; }

/*
 * The action row sits at the foot of the form, not pinned to the viewport.
 * Pinned, it stretched the full width of the window on desktop — a white band
 * across the whole screen for a 560px form, cutting the card in half.
 */
.booking-v2 .bk-bar {
  background: var(--bk-paper);
  border-top: 1px solid var(--bk-rule);
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
}
.booking-v2 .bk-bar-in {
  display: flex; align-items: center; gap: .6rem;
}
.booking-v2 .bk-money { flex: 1; min-width: 0; }
.booking-v2 .bk-amt {
  font-family: var(--bk-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -.02em; line-height: 1.1;
}
/*
 * Kept to one line. When this wraps, the bar grows taller than the padding the
 * form reserves for it and starts covering the bottom of the step.
 */
.booking-v2 .bk-lbl {
  font-size: .72rem; color: var(--bk-ink-3); margin-top: .1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.booking-v2 .bk-lbl.is-saving { color: var(--bk-green); font-weight: 600; }
.booking-v2 .bk-btn {
  padding: .9rem 1.5rem; border-radius: 10px; background: var(--bk-ink); color: #fff;
  font-weight: 600; font-size: .95rem; transition: background .15s;
}
.booking-v2 .bk-btn:hover { background: #0B222E; }
.booking-v2 .bk-btn[disabled] { opacity: .35; cursor: default; }

/* Back reads as a button too, but a quieter one — it should never compete with
   the action that moves the booking forward. */
.booking-v2 .bk-btn-ghost {
  background: var(--bk-mist); color: var(--bk-ink-2);
  border: 1.5px solid var(--bk-rule); padding: calc(.9rem - 1.5px) .95rem;
}
.booking-v2 .bk-btn-ghost:hover {
  background: var(--bk-sky-wash); border-color: var(--bk-sky); color: var(--bk-ink);
}

@media (prefers-reduced-motion: reduce) {
  .booking-v2 *, .booking-v2 *::before, .booking-v2 *::after {
    animation: none !important; transition: none !important;
  }
}
