/* Klinik Gigi — arah visual "Klinis Tenang":
   kertas sage pucat, kartu putih, serif tipis untuk judul, garis rambut 1px.
   Tanpa gradien, tanpa blob, tanpa bayangan blur besar. */
:root {
  --bg: #F5F9F7;
  --paper: #FFFFFF;
  --ink: #10231E;
  --ink-soft: #45605A;
  --line: #D5E2DC;
  --accent: #0E7C66;
  --accent-soft: #E4F0EB;
  --warn: #B3261E;
  --radius: 3px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.top-left { display: flex; align-items: center; gap: 14px; }

.demo-badge { color: var(--accent); font-weight: 600; letter-spacing: .08em; }

.brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 19px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.top-right { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--ink-soft); }

.top-wa {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(300px, .85fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 56px) 72px;
}

/* Kolom kiri — narasi */
.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  margin: 0 0 20px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
}

h1 em { color: var(--accent); font-style: italic; }

.lede {
  margin: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
}

.facts {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0 0 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts li {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
}

.facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }

.fact-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fact-label { font-size: 12px; color: var(--ink-soft); }

.promise h2 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.promise dl { margin: 0; display: grid; gap: 14px; }

.promise dl > div { display: grid; gap: 2px; }

.promise dt { font-weight: 600; font-size: 14.5px; }

.promise dd { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* Kolom tengah — formulir */
.booking {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
}

.booking-head h2 {
  margin: 0 0 6px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 26px;
}

.booking-head p { margin: 0 0 22px; font-size: 13.5px; color: var(--ink-soft); }

.form { display: flex; flex-direction: column; gap: 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Field */
.fld-label { color: var(--ink); }

.fld-input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FBFDFC;
  padding: 11px 12px;
  transition: border-color .15s ease, background .15s ease;
}

.fld-input:hover { border-color: #A9C4BA; }

.fld-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.fld-hint { color: var(--ink-soft); }

.fld-error { color: var(--warn); }

.fld.is-error .fld-input { border-color: var(--warn); background: #FDF4F3; }

.opt-check {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 14px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 18px;
  transition: background .15s ease, transform .1s ease;
}

.btn:hover { background: #0B6855; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.form-note { margin: -6px 0 0; font-size: 12.5px; color: var(--ink-soft); }

.alert {
  margin: 0 0 18px;
  padding: 11px 13px;
  border-left: 3px solid var(--warn);
  background: #FDF4F3;
  color: #7C1D17;
  font-size: 14px;
}

/* Kolom kanan — kartu janji */
.rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; }

.ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}

.ticket-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ticket-code {
  margin: 6px 0 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
}

.ticket-head {
  margin: 12px 0 16px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
}

.ticket-meta {
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.ticket-meta > div { display: flex; justify-content: space-between; gap: 12px; }

.ticket-meta dt { font-size: 12.5px; color: var(--ink-soft); }

.ticket-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  max-width: 62%;
}

.ticket-lines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }

.ticket-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.num { font-variant-numeric: tabular-nums; color: var(--ink); }

.ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ticket-total span { font-size: 12.5px; color: var(--ink-soft); }

.ticket-total strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.ticket-msg { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }

.ticket-again {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.ticket-empty { border-top-color: var(--line); }

.ticket-steps {
  list-style: none;
  counter-reset: step;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticket-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.ticket-steps li::before {
  content: counter(step);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

/* Riwayat */
.recent h2 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.recent li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.recent li:first-child { border-top: 1px solid var(--line); }

.recent-sum { font-size: 13.5px; }

.recent-meta { font-size: 12px; color: var(--ink-soft); }

.recent-empty, .recent-count { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 22px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.foot p { margin: 0; }

.foot-credit { color: var(--ink); font-weight: 600; }

/* Responsif */
@media (max-width: 1080px) {
  .shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .intro { grid-column: 1 / -1; }
  .rail { position: static; }
}

@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .facts { flex-wrap: wrap; gap: 12px; }
  .facts li { flex: 1 1 40%; }
  .facts li + li { border-left: 0; padding-left: 0; }
  .top-hours { display: none; }
  .lede { max-width: none; }
}
