:root{
  --blue:#2563eb; --blue-dark:#1d4ed8; --teal:#0d9488; --ink:#0f172a; --slate:#475569;
  --muted:#64748b; --line:#e2e8f0; --bg:#f8fafc; --card:#ffffff; --ok:#059669; --danger:#dc2626;
  --radius:14px; --shadow:0 1px 3px rgba(15,23,42,.06),0 8px 24px rgba(15,23,42,.06);
}
*{box-sizing:border-box}
body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);background:var(--bg);line-height:1.5}
a{color:var(--blue);text-decoration:none}
.container{max-width:960px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px;color:var(--ink)}
.brand .logo{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,var(--blue),var(--teal));
  display:grid;place-items:center;color:#fff}
.nav a{color:var(--slate);font-weight:500;font-size:14px;margin-left:18px}
.nav a:hover{color:var(--blue)}

/* Hero */
.hero{background:linear-gradient(160deg,#eff6ff,#ecfeff);border-bottom:1px solid var(--line)}
.hero .container{padding:48px 20px}
.hero h1{font-size:34px;margin:0 0 10px;letter-spacing:-.02em}
.hero p{font-size:17px;color:var(--slate);max-width:560px;margin:0}
.pill{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);
  border-radius:999px;padding:5px 12px;font-size:13px;color:var(--teal);font-weight:600;margin-bottom:16px}

/* Card / wizard */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.booking{margin:-28px auto 48px;position:relative}
.steps{display:flex;gap:6px;padding:16px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.step{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);font-weight:600}
.step .dot{width:22px;height:22px;border-radius:50%;background:#e2e8f0;color:#64748b;display:grid;place-items:center;font-size:12px}
.step.active{color:var(--blue)} .step.active .dot{background:var(--blue);color:#fff}
.step.done .dot{background:var(--ok);color:#fff}
.step .sep{width:18px;height:1px;background:var(--line)}
.panel{padding:24px 20px}
.panel h2{margin:0 0 4px;font-size:20px}
.panel .sub{color:var(--muted);font-size:14px;margin:0 0 18px}

/* Service / dentist cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.choice{border:1.5px solid var(--line);border-radius:12px;padding:16px;cursor:pointer;transition:.15s;background:#fff}
.choice:hover{border-color:#bfdbfe;transform:translateY(-1px)}
.choice.sel{border-color:var(--blue);background:#eff6ff}
.choice h3{margin:0 0 4px;font-size:15px}
.choice .meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:13px}
.choice .dur{color:var(--muted)} .choice .price{font-weight:700;color:var(--ink)}
.choice p{margin:0;font-size:13px;color:var(--slate)}
.avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;font-size:15px;flex:0 0 auto}
.choice.dentist{display:flex;align-items:center;gap:12px}

/* Slots */
.slot-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
input[type=date],select,input[type=text],input[type=email],input[type=tel],textarea{
  font:inherit;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);width:100%}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue)}
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.slot{padding:9px 0;text-align:center;border:1.5px solid var(--line);border-radius:9px;background:#fff;cursor:pointer;font-weight:600;font-size:14px}
.slot:hover{border-color:var(--blue)} .slot.sel{background:var(--blue);border-color:var(--blue);color:#fff}
.empty{color:var(--muted);font-size:14px;padding:16px 0}

/* Forms + buttons */
.field{margin-bottom:14px} .field label{display:block;font-size:13px;font-weight:600;margin-bottom:5px;color:var(--slate)}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.actions{display:flex;justify-content:space-between;margin-top:22px;gap:10px}
.btn{border:none;border-radius:10px;padding:11px 18px;font:inherit;font-weight:600;cursor:pointer}
.btn.primary{background:var(--blue);color:#fff} .btn.primary:hover{background:var(--blue-dark)}
.btn.primary:disabled{background:#cbd5e1;cursor:not-allowed}
.btn.ghost{background:#fff;border:1.5px solid var(--line);color:var(--slate)}
.btn.ghost:hover{border-color:var(--muted)}
.summary{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:16px;font-size:14px;margin-bottom:8px}
.summary div{display:flex;justify-content:space-between;padding:5px 0}
.summary .k{color:var(--muted)} .summary .v{font-weight:600}
.notice{padding:10px 14px;border-radius:10px;font-size:14px;margin-top:12px}
.notice.err{background:#fef2f2;color:var(--danger);border:1px solid #fecaca}
.confirm{text-align:center;padding:20px}
.confirm .tick{width:64px;height:64px;border-radius:50%;background:#ecfdf5;color:var(--ok);display:grid;place-items:center;margin:0 auto 16px}
.footer{color:var(--muted);font-size:13px;text-align:center;padding:28px 0 40px}
.hidden{display:none}
@media(max-width:520px){.row{grid-template-columns:1fr}.hero h1{font-size:27px}}

/* ---------- Staff calendar ---------- */
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0}
.toolbar .spacer{flex:1}
.toolbar .today-label{font-size:18px;font-weight:700}
.iconbtn{width:36px;height:36px;border:1.5px solid var(--line);background:#fff;border-radius:9px;cursor:pointer;font-size:16px}
.iconbtn:hover{border-color:var(--blue)}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--slate);margin-bottom:10px}
.legend .lg{display:flex;align-items:center;gap:6px}
.legend .sw{width:12px;height:12px;border-radius:3px}
.cal{display:grid;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.cal .colhead{padding:10px;text-align:center;font-weight:600;font-size:14px;border-bottom:1px solid var(--line);border-left:1px solid var(--line);background:#f8fafc}
.cal .colhead.gutterhead{border-left:none}
.cal .colhead .who{display:flex;align-items:center;justify-content:center;gap:8px}
.grid-body{position:relative;display:grid}
.gutter{border-right:1px solid var(--line)}
.hourline{height:56px;border-bottom:1px dashed #eef2f7;position:relative}
.gutter .hourline span{position:absolute;top:-8px;right:6px;font-size:11px;color:var(--muted)}
.daycol{position:relative;border-left:1px solid var(--line)}
.appt{position:absolute;left:3px;right:3px;border-radius:8px;padding:5px 7px;color:#fff;font-size:12px;
  overflow:hidden;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.15)}
.appt b{display:block;font-size:12px;font-weight:700;line-height:1.2}
.appt small{opacity:.9;font-size:11px}
.appt:hover{filter:brightness(1.06)}
.blk{position:absolute;left:3px;right:3px;border-radius:6px;font-size:11px;color:#64748b;padding:3px 6px;
  background:repeating-linear-gradient(45deg,#f1f5f9,#f1f5f9 6px,#e2e8f0 6px,#e2e8f0 12px);border:1px solid #e2e8f0}
/* Modal */
.backdrop{position:fixed;inset:0;background:rgba(15,23,42,.4);display:grid;place-items:center;z-index:50;padding:20px}
.modal{background:#fff;border-radius:14px;max-width:440px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.modal header{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.modal header h3{margin:0;font-size:17px}
.modal .body{padding:20px}
.modal .body .field{margin-bottom:14px}
.modal footer{padding:16px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}
.tag{display:inline-block;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:#eff6ff;color:var(--blue)}
.link-danger{background:none;border:none;color:var(--danger);font-weight:600;cursor:pointer;font:inherit}
