/* Pagina publică de programări (/p/{slug}) — o deschide pacientul, de obicei de pe telefon. */
:root {
  --brand: #2a9d8f; --brand-dark: #1f776c; --brand-soft: #e6f4f2;
  --ink: #17212b; --ink-2: #44515e; --muted: #6f7c89; --line: #e2e7ec; --bg: #f4f6f8;
  --ok: #2e9e5b; --bad: #d64545; --bad-soft: #fbe8e8; --warn-soft: #fdf3dd;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); font-size: 16px; line-height: 1.5; }
a { color: var(--brand-dark); }
[x-cloak] { display: none !important; }
h1 { margin: 0; line-height: 1.2; }

.pb-wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 16px; }
.pb-demo { background: #17212b; color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }

.pb-head { background: #fff; border-bottom: 1px solid var(--line); border-top: 4px solid var(--brand); }
.pb-head .pb-wrap { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.pb-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; flex: none; }
.pb-id { flex: 1; min-width: 0; }
.pb-name { font-weight: 800; font-size: 18px; line-height: 1.2; }
.pb-sub { font-size: 13px; color: var(--muted); }
.pb-call { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; }
.pb-call svg { width: 17px; height: 17px; }

.pb-main { padding-top: 22px; padding-bottom: 28px; }
.pb-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.pb-lead { color: var(--muted); margin: 4px 0 18px; }

.pb-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }

/* pașii */
.pb-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(16, 24, 40, .05); overflow: hidden; }
.pb-step.open { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 4px 18px rgba(16, 24, 40, .08); }
.pb-step.wait { opacity: .55; }
.pb-step-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.pb-step.done .pb-step-head { cursor: pointer; }
.pb-n { width: 28px; height: 28px; border-radius: 99px; background: var(--bg); color: var(--ink-2); font-weight: 750; font-size: 14px; display: grid; place-items: center; flex: none; }
.pb-step.open .pb-n { background: var(--brand); color: #fff; }
.pb-step.done .pb-n { background: var(--brand-soft); color: var(--brand-dark); }
.pb-step-t { flex: 1; min-width: 0; font-weight: 750; font-size: 16px; }
.pb-pick { font-weight: 550; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-change { border: 0; background: none; color: var(--brand-dark); font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; padding: 6px; }
.pb-step-body { padding: 0 18px 18px; }

.pb-list { display: grid; gap: 8px; }
.pb-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 13px 14px; font: inherit; color: var(--ink); cursor: pointer; min-height: 56px; }
.pb-opt:hover { border-color: var(--brand); }
.pb-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pb-opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pb-opt-t { font-weight: 650; font-size: 15px; line-height: 1.3; }
.pb-opt-s { font-size: 13px; color: var(--muted); }
.pb-price { font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.pb-av { width: 40px; height: 40px; border-radius: 99px; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; background: var(--brand); }
.pb-av-any { background: var(--brand-soft); color: var(--brand-dark); font-size: 18px; }

.pb-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.pb-day { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 2px; cursor: pointer; font: inherit; color: var(--ink); line-height: 1.15; }
.pb-day:hover { border-color: var(--brand); }
.pb-day.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pb-day.on .pb-dow, .pb-day.on .pb-dmon { color: #fff; }
.pb-day.none:not(.on) { opacity: .45; }
.pb-dow { font-size: 12px; color: var(--muted); font-weight: 600; }
.pb-dnum { font-size: 19px; font-weight: 800; margin: 2px 0; }
.pb-dmon { font-size: 11px; color: var(--muted); }
.pb-more { margin-top: 10px; border: 0; background: none; color: var(--brand-dark); font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; padding: 4px 0; }
.pb-times { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.pb-slot { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 0; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.pb-slot:hover { border-color: var(--brand); }
.pb-slot.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* formular */
.pb-summary { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; display: grid; gap: 6px; }
.pb-summary > div { display: flex; gap: 12px; font-size: 14px; }
.pb-summary span { color: var(--muted); width: 82px; flex: none; }
.pb-summary b { font-weight: 650; min-width: 0; }
.pb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pb-field { margin-bottom: 14px; }
.pb-field label { display: block; font-size: 14px; font-weight: 650; color: var(--ink-2); margin-bottom: 5px; }
.pb-field input, .pb-field textarea { width: 100%; padding: 12px 13px; border: 1px solid #d3d9df; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.pb-field textarea { resize: vertical; min-height: 80px; }
.pb-field input:focus, .pb-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pb-field input.bad { border-color: var(--bad); }
.pb-hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pb-req { color: var(--bad); }
.pb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.pb-check.bad { border-color: var(--bad); background: var(--bad-soft); }
.pb-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.pb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.pb-btn svg { width: 19px; height: 19px; }
.pb-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.pb-btn-primary:hover { background: var(--brand-dark); }
.pb-btn-primary[disabled] { opacity: .6; cursor: not-allowed; }
.pb-btn-lg { padding: 15px 22px; font-size: 16px; }
.pb-btn-block { width: 100%; }

.pb-alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; background: var(--warn-soft); color: #7d570a; margin-bottom: 12px; }
.pb-alert-bad { background: var(--bad-soft); color: #9b2c2c; }

.pb-off { text-align: center; }
.pb-off h1 { font-size: 21px; margin-bottom: 8px; }
.pb-off .pb-btn { margin-top: 10px; }

.pb-done { text-align: center; }
.pb-done h1 { font-size: 24px; margin-bottom: 4px; }
.pb-ok { width: 64px; height: 64px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.pb-ok svg { width: 32px; height: 32px; }
.pb-summary-big { text-align: left; margin: 18px 0; padding: 14px 16px; }
.pb-summary-big > div { font-size: 15px; }

.pb-foot { text-align: center; font-size: 13px; color: var(--muted); padding-bottom: 28px; }
.pb-powered { font-size: 11.5px; margin-top: 6px; opacity: .8; }

.pb-muted { color: var(--muted); }
.pb-small { font-size: 13px; }
.pb-bold { font-weight: 700; }
.pb-center { text-align: center; }
.pb-mt { margin-top: 14px; } .pb-mt-s { margin-top: 8px; } .pb-mb { margin-bottom: 8px; }

@media (max-width: 560px) {
  .pb-call span { display: none; }
  .pb-call { padding: 10px; }
  .pb-name { font-size: 16px; }
  .pb-title { font-size: 22px; }
  .pb-main { padding-top: 16px; }
  .pb-step-head { padding: 14px; }
  .pb-step-body { padding: 0 14px 14px; }
  .pb-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pb-grid2 { grid-template-columns: 1fr; }
  .pb-card { padding: 22px 16px; }
}
