/* Public booking page (/booking). Paper look, light only (it is often embedded
   in a business's own website): warm off-white, teal accent, pill buttons,
   serif headings, as on the podniklo.com landing page. */

:root {
  --font: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Charter', 'Palatino Linotype', Palatino, Georgia, serif;
  --bg: #f7f4ef; --surface: #fffdf9; --surface-2: #f3eee6;
  --border: #e9e2d6; --border-strong: #d9cfbf;
  --text: #2a2420; --text-2: #574c42; --text-3: #85776a;
  --accent: #0f766e; --accent-hover: #115e59; --accent-text: #fff;
  --accent-soft: #e2f3f0; --accent-soft-text: #115e59; --focus: #14b8a6;
  --sky: #dcefeb; --ink: #1f2b2a;
  --ok: #3f7d20; --ok-soft: #eaf4dd; --warn: #a35c00; --warn-soft: #fcefd7; --danger: #b4322a; --danger-soft: #fbe5e1;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow-sm: 0 1px 0 rgba(68, 54, 38, .04), 0 2px 8px -2px rgba(68, 54, 38, .08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.muted { color: var(--text-3); font-weight: 400; }
.bk-wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* Header */
.bk-hero { position: relative; background: linear-gradient(180deg, var(--sky), var(--bg)); padding: 40px 0 64px; }
.bk-eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.bk-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--ink); letter-spacing: -.015em; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--text-2); font-size: .9rem; }
.bk-rating { font-weight: 600; text-decoration: none; color: #a35c00; }
.bk-rating:hover { text-decoration: underline; }
.bk-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; fill: var(--bg); }

/* Demo notice (page opened without a business) */
.bk-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--warn-soft); color: #6b3d00; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; font-size: .93rem; }
.bk-demo .bk-btn { min-height: 40px; padding: .45rem 1.1rem; border-color: #a35c00; color: #6b3d00; background: var(--surface); }
.bk-demo .bk-btn:hover { background: #fff7e8; }

/* Steps */
.bk-main { padding-bottom: 32px; margin-top: -18px; position: relative; }
.bk-step { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 16px; }
.bk-step h2 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 16px; }
.bk-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: .95rem; flex: none; }

.bk-services { display: grid; gap: 10px; }
.svc { position: relative; display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; }
.svc:hover { border-color: var(--border-strong); }
.svc input, .chip input, .day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svc-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.svc-body { flex: 1; min-width: 0; }
.svc-body b { display: block; font-weight: 600; }
.svc-body small { color: var(--text-3); font-size: .87rem; }
.svc-price { font-weight: 700; white-space: nowrap; }
.svc:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.svc:has(input:checked) .svc-dot { border-color: var(--accent); background: radial-gradient(var(--accent) 0 45%, transparent 50%); }
.svc:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: inline-block; padding: .5rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--bg); font-size: .95rem; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-text); font-weight: 600; }
.chip input:focus-visible + span, .day input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Two rows of seven days; the columns shrink to fit, so nothing scrolls. */
.bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { position: relative; cursor: pointer; min-width: 0; }
.day span { display: grid; place-items: center; padding: 8px 0; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--bg); line-height: 1.2; }
.day small { font-size: .75rem; color: var(--text-3); text-transform: capitalize; }
.day b { font-size: 1.15rem; line-height: 1.25; }
.day:hover span { border-color: var(--accent); }
.day input:checked + span { background: var(--ink); border-color: var(--ink); color: #fffdf9; }
.day input:checked + span small { color: #d9cfbf; }
.bk-other { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .9rem; color: var(--text-2); }
.bk-other input { width: auto; min-height: 38px; padding: .35rem .6rem; }

.bk-times { border: 0; margin: 20px 0 0; padding: 0; }
.bk-times legend { padding: 0; font-weight: 600; margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots > span { grid-column: 1 / -1; }
.slot { font: inherit; font-weight: 600; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
#waitlist-offer { margin-top: 12px; }

/* Fields */
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-field { margin-bottom: 12px; min-width: 0; }
.bk-field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
input { width: 100%; font: inherit; font-size: .97rem; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; min-height: 46px; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Confirm */
.bk-confirm { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px 24px; position: sticky; bottom: 12px; display: grid; gap: 12px; }
.bk-summary { font-weight: 600; color: var(--text-2); }
.bk-summary:empty { display: none; }
.bk-summary b { color: var(--text); }
.msg { padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .93rem; }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.err, .slots .err { background: var(--danger-soft); color: var(--danger); }
.slots .err { padding: .5rem .8rem; border-radius: var(--radius-sm); }

.bk-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.bk-btn-primary { background: var(--accent); color: var(--accent-text); width: 100%; font-size: 1.02rem; }
.bk-btn-primary:hover { background: var(--accent-hover); }
.bk-btn-primary:disabled { background: var(--border-strong); color: var(--surface); cursor: not-allowed; }
.bk-btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.bk-btn-outline:hover { background: var(--accent-soft); }
.bk-btn-link { background: none; color: var(--accent); padding-inline: .6rem; }
.bk-btn-link:hover { text-decoration: underline; }

/* Done */
.bk-done { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 36px 28px; text-align: center; }
.bk-done:focus { outline: none; }
.bk-done-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; }
.bk-done.pending .bk-done-ico { background: var(--warn-soft); color: var(--warn); }
.bk-done h2 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 10px; }
.bk-done p { color: var(--text-2); max-width: 30em; margin: 0 auto 22px; }
.bk-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.bk-done-actions .bk-btn-primary { width: auto; }

.bk-foot { text-align: center; padding: 8px 0 28px; font-size: .82rem; }
.bk-foot a { color: var(--text-3); text-decoration: none; }
.bk-foot a:hover { color: var(--accent); }

/* Embedded in a business's website: no big header, tighter spacing. */
body.embed { background: transparent; }
body.embed .bk-hero { background: none; padding: 12px 0 8px; }
body.embed .bk-curve { display: none; }
body.embed .bk-hero h1 { font-size: 1.5rem; }
body.embed .bk-main { margin-top: 0; }
body.embed .bk-wrap { padding: 0 8px; }
body.embed .bk-confirm { position: static; }

@media (max-width: 560px) {
  .bk-days { gap: 4px; }
  .day span { padding: 6px 0; border-radius: 8px; }
  .day small { font-size: .68rem; }
  .day b { font-size: 1rem; }
  .bk-wrap { padding: 0 16px; }
  .bk-step { padding: 18px 16px; }
  .bk-row { grid-template-columns: 1fr; gap: 0; }
  .bk-confirm { padding: 16px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Marketing choice + privacy notice (GDPR Art. 13) under "Your details". */
.bk-check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; margin: 4px 0 8px; cursor: pointer; }
.bk-check input { margin-top: 3px; flex: none; }
.bk-privacy { font-size: .8rem; line-height: 1.45; margin: 0; }
.bk-privacy a { color: inherit; text-decoration: underline; }

/* Days with no free time: still selectable (to join the waitlist), but quiet. */
.day.full span { opacity: .45; border-style: dashed; }
.err-text { color: #b91c1c; margin-top: .4rem; font-size: .85rem; }
.d-block { display: block; }
