:root {
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #d5d9e0;
  --brand: #0b6e6e;
  --brand-ink: #ffffff;
  --error: #b42318;
  --bg: #f6f7f9;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.demo-banner {
  background: #fff4d6;
  color: #6b4e00;
  text-align: center;
  font-size: 14px;
  padding: 6px 16px;
}

.site-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px max(16px, calc((100% - 640px) / 2));
  background: var(--brand);
  color: var(--brand-ink);
}
.brand { color: inherit; font-weight: 700; font-size: 20px; text-decoration: none; }
.tag { opacity: 0.8; font-size: 14px; }

main {
  max-width: 640px;
  margin: 24px auto 64px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 680px) { main { margin: 0; border-radius: 0; border-width: 0 0 1px; } }

h1 { margin: 0 0 16px; font-size: 26px; }
.progress { margin: 0 0 4px; color: var(--muted); font-size: 14px; }

.row { margin: 0 0 20px; padding: 0; border: 0; }
.row > label, legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid #9aa3b2;
  border-radius: 6px;
  background: #fff;
}
input:focus, select:focus, button:focus { outline: 3px solid #f2b600; outline-offset: 1px; }

.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.choice input { width: 18px; height: 18px; }
.check .choice { align-items: flex-start; }
.check .choice input { margin-top: 3px; }

.has-error { border-left: 4px solid var(--error); padding-left: 12px; }
.error-message { color: var(--error); font-weight: 600; margin: 0 0 6px; }
.error-summary { border: 3px solid var(--error); padding: 12px 16px; margin-bottom: 20px; border-radius: 6px; }
.error-summary h2 { margin: 0 0 8px; font-size: 18px; }
.error-summary a { color: var(--error); }

.lookup { display: flex; align-items: center; gap: 12px; margin: -8px 0 20px; flex-wrap: wrap; }
.lookup-status { color: var(--muted); font-size: 14px; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.back { color: var(--brand); }
button { font: inherit; border-radius: 6px; padding: 10px 18px; cursor: pointer; }
button.primary { background: var(--brand); color: var(--brand-ink); border: 0; font-weight: 600; margin-left: auto; }
button.secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }

.quote { border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.price { font-size: 34px; font-weight: 700; margin: 0; }
.price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.ref { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }
.admin { display: flex; gap: 12px; }
.admin button.primary { margin-left: 0; }
