/* Booking widget. Everything is scoped to .bk so it can live inside the main site
   or on its own page (booking.html). */
.bk {
  --bk-paper: #fffaf4;
  --bk-cream: #f4eee6;
  --bk-cream-2: #efe5d9;
  --bk-blush: #f6d3d8;
  --bk-blush-2: #fbe7e1;
  --bk-terra: #b4485c;
  --bk-terra-d: #943a4b;
  --bk-ink: #2e1a13;
  --bk-maroon: #4a1424;
  --bk-muted: #5f4a40;
  --bk-line: #e8dccf;
  --bk-ok: #2f7d55;
  --bk-err: #b8321f;
  --bk-r: 14px;
  --bk-serif: 'Playfair Display', Georgia, serif;
  --bk-sans: 'Inter', system-ui, sans-serif;
  --bk-shadow: 0 1px 2px rgba(74, 20, 36, .04), 0 14px 36px -18px rgba(74, 20, 36, .22);
  font-family: var(--bk-sans);
  color: var(--bk-ink);
  font-size: 15px;
  line-height: 1.5;
}
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk button, .bk input, .bk textarea { font: inherit; color: inherit; }
.bk button { cursor: pointer; }
.bk :focus-visible { outline: 2px solid var(--bk-terra); outline-offset: 2px; border-radius: 8px; }
.bk [hidden] { display: none !important; }

/* stepper */
.bk .steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 6px; flex-wrap: wrap; }
.bk .steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--bk-muted); padding: 6px 14px 6px 6px; border-radius: 99px; cursor: default; transition: background .25s, color .25s; }
.bk .steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; background: var(--bk-paper); border: 1px solid var(--bk-line); transition: background .25s, color .25s, border-color .25s; }
.bk .steps li.is-active { background: var(--bk-paper); color: var(--bk-ink); box-shadow: var(--bk-shadow); }
.bk .steps li.is-active span { background: var(--bk-terra); border-color: var(--bk-terra); color: #fff; }
.bk .steps li.is-done { cursor: pointer; }
.bk .steps li.is-done span { background: var(--bk-blush); border-color: var(--bk-blush); color: var(--bk-terra-d); }

/* layout */
.bk .layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.bk .layout > * { min-width: 0; }
.bk .card { background: var(--bk-paper); border: 1px solid var(--bk-line); border-radius: 22px; box-shadow: var(--bk-shadow); }
.bk form.card { padding: 28px; }
.bk fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bk .step { display: none; }
.bk .step.is-active { display: block; animation: bk-rise .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes bk-rise { from { opacity: 0; transform: translateY(10px); } }
.bk legend { font-family: var(--bk-serif); font-size: 26px; font-weight: 400; color: var(--bk-ink); padding: 0; line-height: 1.15; }
.bk .hint { color: var(--bk-muted); font-size: 13.5px; margin: 6px 0 20px; }

/* services */
.bk .svc-group + .svc-group { margin-top: 20px; }
.bk .svc-group h3 { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bk-terra); }
.bk .svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk .svc { position: relative; display: flex; gap: 12px; align-items: center; padding: 13px 15px; border: 1.5px solid var(--bk-line); border-radius: var(--bk-r); cursor: pointer; background: #fff; transition: border-color .2s, background .2s; }
.bk .svc:hover { border-color: var(--bk-blush); }
.bk .svc input { position: absolute; opacity: 0; pointer-events: none; }
.bk .svc .box { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; border: 1.5px solid #d9c6b8; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.bk .svc .box svg { width: 13px; height: 13px; opacity: 0; transition: opacity .15s; }
.bk .svc input:checked ~ .box { background: var(--bk-terra); border-color: var(--bk-terra); }
.bk .svc input:checked ~ .box svg { opacity: 1; }
.bk .svc:has(input:checked) { border-color: var(--bk-terra); background: var(--bk-blush-2); }
.bk .svc input:focus-visible ~ .box { outline: 2px solid var(--bk-terra); outline-offset: 2px; }
.bk .svc .txt { flex: 1; min-width: 0; }
.bk .svc b { display: block; font-size: 14.5px; font-weight: 600; }
.bk .svc small { display: block; font-size: 12px; color: var(--bk-muted); margin-top: 1px; }
.bk .svc .price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.bk .svc .tag { position: absolute; top: -9px; right: 12px; background: var(--bk-maroon); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; }

.bk .ext-options { margin-top: 20px; padding: 18px; border-radius: var(--bk-r); background: var(--bk-cream); }
.bk .ext-options h3 { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; }
.bk .opt-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bk .opt-row + .opt-row { margin-top: 12px; }
.bk .opt-label { font-size: 12.5px; font-weight: 600; color: var(--bk-muted); width: 54px; }

/* chips */
.bk .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk .chips label { cursor: pointer; }
.bk .chips input { position: absolute; opacity: 0; pointer-events: none; }
.bk .chips span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 99px; border: 1.5px solid var(--bk-line); background: #fff; font-size: 13.5px; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.bk .chips input:checked + span { border-color: var(--bk-ink); background: var(--bk-ink); color: #fff; }
.bk .chips input:focus-visible + span { outline: 2px solid var(--bk-terra); outline-offset: 2px; }

/* dates */
.bk .dates-wrap { display: flex; align-items: center; gap: 6px; }
.bk .scroll-btn { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--bk-line); background: #fff; font-size: 20px; line-height: 1; }
.bk .dates { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px; flex: 1; }
.bk .dates::-webkit-scrollbar { display: none; }
.bk .date { flex: 0 0 64px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; border: 1.5px solid var(--bk-line); background: #fff; transition: border-color .2s, background .2s, color .2s; }
.bk .date small { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-muted); }
.bk .date b { font-family: var(--bk-serif); font-size: 21px; font-weight: 500; line-height: 1.1; }
.bk .date span { font-size: 10.5px; font-weight: 500; color: var(--bk-muted); }
.bk .date:hover { border-color: var(--bk-blush); }
.bk .date[aria-checked=true] { background: var(--bk-ink); border-color: var(--bk-ink); color: #fff; }
.bk .date[aria-checked=true] small, .bk .date[aria-checked=true] span { color: rgba(255, 255, 255, .72); }
.bk .date:disabled { opacity: .4; cursor: not-allowed; }

.bk .slots-head { margin: 20px 0 10px; font-size: 12.5px; font-weight: 600; color: var(--bk-muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bk .slots-head .legend { display: inline-flex; gap: 14px; }
.bk .slots-head .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bk .slot-group + .slot-group { margin-top: 14px; }
.bk .slot-group h4 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bk-terra); }
.bk .slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk .slot { padding: 10px 0; border-radius: 12px; border: 1.5px solid var(--bk-line); background: #fff; font-size: 13.5px; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.bk .slot:hover:not(:disabled) { border-color: var(--bk-terra); }
.bk .slot[aria-checked=true] { background: var(--bk-terra); border-color: var(--bk-terra); color: #fff; }
.bk .slot:disabled { background: repeating-linear-gradient(-45deg, #f4ede6, #f4ede6 4px, #faf6f1 4px, #faf6f1 8px); color: #c4b2a6; text-decoration: line-through; cursor: not-allowed; }
.bk .slots .loading, .bk .slots .none { padding: 22px; text-align: center; color: var(--bk-muted); font-size: 13.5px; border: 1.5px dashed var(--bk-line); border-radius: var(--bk-r); }

/* fields */
.bk .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bk .field { display: grid; gap: 6px; align-content: start; }
.bk .full { grid-column: 1 / -1; }
.bk .field label, .bk .field .label { font-size: 13px; font-weight: 600; }
.bk .field label small { font-weight: 400; color: var(--bk-muted); }
.bk .field input, .bk .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--bk-line); background: #fff; font-size: 15px; transition: border-color .2s; }
.bk .field textarea { resize: vertical; }
.bk .field input:focus, .bk .field textarea:focus { outline: none; border-color: var(--bk-terra); }
.bk .field.invalid input { border-color: var(--bk-err); }
.bk .phone { display: flex; align-items: stretch; }
.bk .phone span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--bk-line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--bk-cream); font-weight: 600; font-size: 14px; }
.bk .phone input { border-radius: 0 12px 12px 0; }
.bk .check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.bk .check input { width: 18px; height: 18px; accent-color: var(--bk-terra); }
.bk .err { margin: 0; color: var(--bk-err); font-size: 12.5px; font-weight: 600; }
.bk .err:empty { display: none; }
.bk .step > .err { margin-top: 14px; }

.bk .ic-wa, .bk .ic-mail { display: inline-block; width: 16px; height: 16px; background: currentColor; flex-shrink: 0; }
.bk .ic-wa { -webkit-mask: var(--ic-wa) center / contain no-repeat; mask: var(--ic-wa) center / contain no-repeat; }
.bk .ic-mail { -webkit-mask: var(--ic-mail) center / contain no-repeat; mask: var(--ic-mail) center / contain no-repeat; }
.bk { --ic-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2.1 1-2.4c.3-.3.6-.3.8-.3h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.5c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.1.5.1.6-.1l.9-1.1c.2-.3.4-.2.6-.1l2 1c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E"); --ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }

/* review */
.bk .review { border: 1.5px solid var(--bk-line); border-radius: var(--bk-r); overflow: hidden; background: #fff; }
.bk .review .row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; font-size: 14px; }
.bk .review .row + .row { border-top: 1px solid var(--bk-line); }
.bk .review .row span { color: var(--bk-muted); flex-shrink: 0; }
.bk .review .row b { text-align: right; font-weight: 600; }
.bk .review .row.total { background: var(--bk-blush-2); }
.bk .review .row.total b { font-size: 16.5px; }
.bk .review .edit { border: 0; background: none; color: var(--bk-terra-d); font-weight: 600; font-size: 12.5px; padding: 0; margin-left: 8px; text-decoration: underline; }
.bk .policy { margin-top: 16px; font-size: 13px; color: var(--bk-muted); background: var(--bk-cream); border-radius: var(--bk-r); padding: 14px 18px; }
.bk .policy b { color: var(--bk-ink); }
.bk .policy ul { margin: 6px 0 0; padding-left: 18px; }
.bk .policy li + li { margin-top: 3px; }

/* buttons */
.bk .bk-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--bk-line); }
.bk .bk-nav #next { margin-left: auto; }
.bk .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 26px; border-radius: 99px; border: 1.5px solid transparent; font-weight: 600; font-size: 14.5px; letter-spacing: .02em; text-decoration: none; transition: background .2s, border-color .2s, transform .15s; }
.bk .btn:active { transform: scale(.98); }
.bk .btn.primary { background: var(--bk-terra); color: #fff; }
.bk .btn.primary:hover { background: var(--bk-terra-d); }
.bk .btn.primary[disabled] { opacity: .65; cursor: progress; }
.bk .btn.ghost { background: #fff; border-color: var(--bk-line); color: var(--bk-ink); }
.bk .btn.ghost:hover { border-color: var(--bk-terra); }
.bk .btn.wa { background: #25d366; color: #fff; }
.bk .btn.wa:hover { background: #1fb457; }
.bk .btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: bk-spin .7s linear infinite; }
@keyframes bk-spin { to { transform: rotate(360deg); } }
.bk .link { border: 0; background: none; color: var(--bk-terra-d); font-weight: 600; text-decoration: underline; margin-top: 18px; }

/* summary */
.bk .summary { position: sticky; top: 96px; padding: 22px; }
.bk .summary h2 { margin: 0 0 14px; font-family: var(--bk-serif); font-size: 24px; font-weight: 400; }
.bk .sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bk .sum-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.bk .sum-list li span:last-child { white-space: nowrap; }
.bk .sum-list .empty { color: var(--bk-muted); }
.bk .sum-meta { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--bk-line); display: grid; gap: 8px; font-size: 13.5px; }
.bk .sum-meta div { display: flex; justify-content: space-between; gap: 12px; }
.bk .sum-meta dt { color: var(--bk-muted); }
.bk .sum-meta dd { margin: 0; font-weight: 600; text-align: right; }
.bk .sum-total { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bk-blush-2); display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13.5px; }
.bk .sum-total b { font-family: var(--bk-serif); font-size: 24px; font-weight: 500; }
.bk .sum-addr { margin: 14px 0 0; font-size: 12px; color: var(--bk-muted); }

/* done */
.bk .done { max-width: 620px; margin: 0 auto; padding: 38px 30px; text-align: center; outline: none; }
.bk .tick svg { width: 72px; height: 72px; margin: 0 auto 14px; display: block; }
.bk .tick circle { fill: var(--bk-blush-2); stroke: var(--bk-terra); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: bk-draw .6s ease-out forwards; }
.bk .tick path { fill: none; stroke: var(--bk-terra); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: bk-draw .4s .45s ease-out forwards; }
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
.bk .done .kicker { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bk-terra); }
.bk .done h2 { font-family: var(--bk-serif); font-size: 32px; font-weight: 400; margin: 8px 0 0; line-height: 1.1; }
.bk .done-id { margin: 8px 0 22px; color: var(--bk-muted); font-size: 14px; }
.bk .done-id b { color: var(--bk-ink); letter-spacing: .04em; }
.bk .review.compact { text-align: left; }
.bk .done-status { margin: 16px 0 0; font-size: 13.5px; color: var(--bk-muted); }
.bk .done-status b { color: var(--bk-ok); }
.bk .done-actions { display: grid; gap: 10px; margin-top: 22px; }

/* mobile bar: shown only while the booking area is on screen (.bk.in-view) */
.bk .mobile-bar { display: none; }

@media (max-width: 900px) {
  .bk .layout { grid-template-columns: minmax(0, 1fr); }
  .bk .summary { display: none; }
  .bk form.card { padding: 22px 18px; border-radius: 20px; }
  .bk .bk-nav { display: none; }
  .bk .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bk-paper); border-top: 1px solid var(--bk-line); box-shadow: 0 -10px 30px -18px rgba(74, 20, 36, .35); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .bk.in-view .mobile-bar { transform: none; }
  .bk.is-done .mobile-bar { display: none; }
  .bk .mobile-bar > div { flex: 1; min-width: 0; }
  .bk .mobile-bar small { display: block; font-size: 10.5px; font-weight: 600; color: var(--bk-muted); letter-spacing: .08em; text-transform: uppercase; }
  .bk .mobile-bar b { font-family: var(--bk-serif); font-size: 21px; font-weight: 500; margin-right: 8px; }
  .bk .mobile-bar #mb-meta { display: block; font-size: 12px; color: var(--bk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk .mobile-bar .btn { min-width: 124px; flex-shrink: 0; }
  .bk .mobile-bar .back { min-width: 0; width: 50px; padding: 0; font-size: 22px; }
}
@media (max-width: 600px) {
  .bk .steps li { font-size: 0; padding: 4px; gap: 0; }
  .bk .steps li.is-active { font-size: 12.5px; padding: 4px 12px 4px 4px; gap: 6px; }
  .bk .svc-grid, .bk .fields { grid-template-columns: 1fr; }
  .bk legend { font-size: 22px; }
  .bk .scroll-btn { display: none; }
  .bk .done { padding: 30px 18px; }
  .bk .done h2 { font-size: 26px; }
  .bk .review .row { flex-direction: column; gap: 2px; }
  .bk .review .row b { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .bk *, .bk *::before, .bk *::after { animation: none !important; transition: none !important; }
  .bk .tick circle, .bk .tick path { stroke-dashoffset: 0; }
}
