:root {
  --ink: #17332f;
  --muted: #61746f;
  --line: #dbe6e2;
  --paper: #ffffff;
  --soft: #edf6f3;
  --brand: #0c7868;
  --brand-dark: #075f53;
  --warning: #fff4dd;
  --warning-ink: #6d4912;
  --danger: #a12626;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f4f7f6;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1060px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 760; }
.mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  color: white; background: var(--brand); font-family: Georgia, serif; font-size: 22px;
}
.clinic { color: var(--muted); font-size: 14px; }
main { width: min(760px, calc(100% - 32px)); margin: 52px auto; }
.intro { text-align: center; margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .13em; color: var(--brand); font-size: 12px; font-weight: 800; }
h1 { margin: 0 auto; max-width: 650px; font-size: clamp(32px, 6vw, 50px); line-height: 1.04; letter-spacing: -.035em; }
.lead { color: var(--muted); font-size: 18px; }
.notice { display: flex; gap: 14px; padding: 18px; margin: 0 0 18px; background: var(--warning); color: var(--warning-ink); border-radius: 16px; }
.notice-icon { flex: 0 0 28px; height: 28px; display: grid; place-items: center; color: white; background: #d18417; border-radius: 50%; font-weight: 900; }
.notice p { margin: 4px 0 0; line-height: 1.5; font-size: 14px; }
.notice a { color: inherit; font-weight: 750; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 18px 50px #17332f12; }
.steps { display: flex; margin-bottom: 32px; }
.step { flex: 1; border-bottom: 3px solid var(--line); padding: 0 0 12px; color: #95a39f; font-weight: 800; }
.step em { font-style: normal; font-weight: 600; font-size: 13px; }
.step.active { color: var(--brand); border-color: var(--brand); }
h2 { margin: 0 0 8px; font-size: 25px; }
.muted { color: var(--muted); line-height: 1.5; }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
label { display: grid; gap: 7px; color: #324b46; font-size: 14px; font-weight: 680; }
input, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #b9cac5; border-radius: 11px; color: var(--ink);
  background: white; font: inherit; outline: 0; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #0c786821; }
textarea { resize: vertical; min-height: 120px; margin-bottom: 14px; }
button { font: inherit; cursor: pointer; }
.primary {
  width: 100%; border: 0; border-radius: 12px; padding: 14px 20px;
  background: var(--brand); color: white; font-weight: 800;
}
.primary:hover { background: var(--brand-dark); }
.primary:disabled { opacity: .55; cursor: wait; }
.slots { display: grid; gap: 18px; margin-top: 24px; }
.day h3 { margin: 0 0 9px; font-size: 16px; text-transform: capitalize; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.slot { border: 1px solid #a9c3bc; border-radius: 10px; padding: 11px; background: white; color: var(--brand-dark); font-weight: 750; }
.slot:hover, .slot:focus { background: var(--soft); border-color: var(--brand); }
.slot small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }
.back { border: 0; background: none; padding: 0; margin-bottom: 20px; color: var(--brand); font-weight: 750; }
.selection { margin: 18px 0; padding: 15px; border-radius: 12px; background: var(--soft); font-weight: 750; }
.confirmation { grid-template-columns: 22px 1fr; align-items: start; margin-bottom: 18px; font-weight: 560; line-height: 1.4; }
.confirmation input { margin-top: 2px; }
.error { color: var(--danger); background: #fff0f0; border-radius: 10px; padding: 11px; }
.waiting, .success { text-align: center; padding: 38px 10px; }
.spinner { width: 42px; height: 42px; display: inline-block; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.success-mark { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #dff6e9; color: #167347; font-size: 30px; font-weight: 900; }
.hidden { display: none !important; }
footer { width: min(760px, calc(100% - 32px)); margin: -28px auto 40px; text-align: center; color: var(--muted); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .topbar { padding: 0 16px; }.clinic { display: none; } main { margin-top: 28px; }
  .card { padding: 20px; border-radius: 18px; }.grid.two { grid-template-columns: 1fr; }
  .times { grid-template-columns: repeat(3, 1fr); }.step em { display: none; }
}
