/* CRM: public booking page */
:root {
  --accent: #1660e8;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --accent-mid: color-mix(in srgb, var(--accent) 22%, #fff);
  --ink: #14202e;
  --ink-2: #4a5768;
  --ink-3: #7b8796;
  --line: #e3e7ed;
  --bg: #f4f6f9;
  --red: #c4271b;
  --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; padding: 32px 16px; }
body.embedded { background: transparent; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text, var(--accent)); }
[hidden] { display: none !important; }

.bk { max-width: 1060px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: minmax(260px, 340px) 1fr; min-height: 560px; box-shadow: 0 1px 2px rgba(20, 32, 46, .04), 0 8px 28px rgba(20, 32, 46, .06); }
body.embedded .bk { box-shadow: none; }

/* Left: who, what, how long */
.bk-info { padding: 32px 28px; border-right: 1px solid var(--line); }
.bk-logo { display: block; max-width: 150px; max-height: 64px; width: auto; height: auto; margin-bottom: 26px; }
.bk-info h1 { font-size: 24px; line-height: 1.25; margin: 0 0 16px; font-weight: 650; letter-spacing: -.01em; }
.bk-meta { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; color: var(--ink-2); font-weight: 550; font-size: 15px; }
.bk-meta li { display: flex; gap: 10px; align-items: flex-start; }
.bk-meta svg { color: var(--ink-3); margin-top: 1px; }
.bk-when { color: var(--accent-text, var(--accent)); }
.bk-when svg { color: var(--accent-text, var(--accent)) !important; }
.bk-intro { font-size: 15px; color: var(--ink-2); }
.bk-intro p { margin: 0 0 12px; }
.bk-intro p:first-child { color: var(--ink); font-weight: 600; }

/* Right: steps */
.bk-main { padding: 32px 32px 28px; min-width: 0; position: relative; }
.bk-step { display: none; animation: bk-in .18s ease-out; }
.bk-step.on { display: block; }
@keyframes bk-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bk-main h2 { font-size: 20px; margin: 0 0 20px; font-weight: 650; }
.bk-back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--accent-text, var(--accent)); display: grid; place-items: center; cursor: pointer; margin-bottom: 14px; }
.bk-back:hover { background: var(--accent-soft); }

.bk-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.bk-picker.with-times { grid-template-columns: minmax(0, 1fr) 220px; }
.bk-month { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.bk-month b { min-width: 150px; text-align: center; font-weight: 600; }
.bk-nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--accent-text, var(--accent)); display: grid; place-items: center; cursor: pointer; }
.bk-nav:not(:disabled):hover { background: var(--accent-soft); }
.bk-nav:disabled { color: var(--line); cursor: default; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; justify-items: center; }
.bk-dow { margin-bottom: 6px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bk-day { width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); font-weight: 500; font-size: 15px; display: grid; place-items: center; position: relative; }
.bk-day.free { background: var(--accent-soft); color: var(--accent-text, var(--accent)); font-weight: 650; cursor: pointer; }
.bk-day.free:hover { background: var(--accent-mid); }
.bk-day.sel { background: var(--accent); color: var(--on-accent, #fff); }
.bk-day.today::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.bk-day.blank { visibility: hidden; }
.bk-grid.loading .bk-day { opacity: .45; }
.bk-none { text-align: center; margin: 18px 0 0; }

.bk-times-head { font-weight: 600; margin: 4px 0 14px; color: var(--ink-2); }
.bk-times-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.bk-time { display: flex; gap: 8px; }
.bk-time button { flex: 1; height: 48px; border-radius: 8px; border: 1px solid var(--accent-text, var(--accent)); background: #fff; color: var(--accent-text, var(--accent)); font-weight: 650; cursor: pointer; transition: flex .15s; }
.bk-time button:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.bk-time.sel .bk-t { background: #5d6875; border-color: #5d6875; color: #fff; }
.bk-time .bk-next { display: none; background: var(--accent); color: var(--on-accent, #fff); }
.bk-time.sel .bk-next { display: block; }

/* Details form */
.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.bk-field { grid-column: span 2; margin-bottom: 14px; min-width: 0; }
.bk-field.half { grid-column: span 1; }
.bk-field > label, .bk-field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; padding: 0; }
.bk-field i { color: var(--red); font-style: normal; }
.bk-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bk-field input:not([type=checkbox]):not([type=radio]), .bk-field select, .bk-field textarea {
  width: 100%; border: 1px solid #cfd6df; border-radius: 8px; padding: 11px 13px; background: #fff; font-size: 16px; min-height: 46px; }
.bk-field textarea { resize: vertical; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-mid); }
.bk-field.bad input, .bk-field.bad select, .bk-field.bad textarea { border-color: var(--red); }
.bk-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-choice { position: relative; cursor: pointer; }
.bk-choice input { position: absolute; opacity: 0; inset: 0; }
.bk-choice span { display: inline-block; padding: 9px 15px; border: 1px solid #cfd6df; border-radius: 999px; font-size: 15px; background: #fff; }
.bk-choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.bk-choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-mid); }
.bk-err { color: var(--red); font-size: 14px; margin: 6px 0 0; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.bk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; border: 0; background: var(--accent); color: var(--on-accent, #fff); font-weight: 650; cursor: pointer; text-decoration: none; }
.bk-btn:hover { filter: brightness(.94); }
.bk-btn:disabled { opacity: .6; cursor: wait; }
.bk-btn-ghost { background: #fff; color: var(--red); border: 1px solid var(--line); }
.bk-link { font-weight: 600; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 22px; }
.bk-muted { color: var(--ink-3); }
.bk-small { font-size: 13.5px; margin: 0; }
.bk-msg { margin-top: 16px; padding: 11px 14px; border-radius: 8px; background: #fdecea; color: var(--red); font-weight: 550; font-size: 15px; }
.bk-msg.ok { background: #e7f6ec; color: #1e7a46; }

.bk-tick { width: 56px; height: 56px; border-radius: 50%; background: #e7f6ec; color: #1e7a46; display: grid; place-items: center; margin-bottom: 14px; }
.bk-tick svg { width: 28px; height: 28px; stroke-width: 2.4; }
.bk-summary { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 18px 0 0; max-width: 460px; }
.bk-summary > div { background: #fff; padding: 12px 16px; display: flex; gap: 14px; }
.bk-summary span { color: var(--ink-3); width: 50px; flex: none; }

@media (max-width: 860px) {
  .bk-picker.with-times { grid-template-columns: 1fr; }
  .bk-times-list { max-height: none; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .bk-time.sel { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { padding: 12px; }
  body.embedded { padding: 0; }
  .bk { grid-template-columns: 1fr; min-height: 0; }
  .bk-info { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px 16px; }
  .bk-logo { max-height: 48px; margin-bottom: 16px; }
  .bk-info h1 { font-size: 21px; margin-bottom: 12px; }
  .bk-meta { margin-bottom: 12px; }
  .bk-main { padding: 22px 16px 22px; }
  .bk-day { width: 40px; height: 40px; font-size: 14.5px; }
  .bk-grid { gap: 4px; }
  .bk-fields { grid-template-columns: 1fr; }
  .bk-field.half { grid-column: span 2; }
  .bk-submit .bk-btn { width: 100%; }
}

.bk-logo-text { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
