:root {
  --red: #d4171f;
  --red-dark: #b01218;
  --ink: #212529;
  --muted: #5c636a;
  --line: #dee2e6;
  --bg: #f7f7f8;
  --card: #ffffff;
  --ok: #0f7b3b;
  --warn: #8a5a00;
  --warn-bg: #fff6e0;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(18, 18, 18, 0.08);
  --font: "Jost", "Open Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  font-size: 16px;
  min-height: 100%;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 16px;
}
.logo {
  height: 48px;
  width: auto;
  display: block;
}
.phone {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.phone:hover { text-decoration: underline; }

h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--muted); }
.lede { font-size: 1.02rem; }

.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.bar {
  flex: 1;
  height: 6px;
  background: #e9ecef;
  border-radius: 99px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 0.25s ease;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}

.choices {
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) {
  .choices.services { grid-template-columns: 1fr 1fr; }
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.choice:hover { border-color: #bbb; }
.choice:has(input:checked), .choice.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 23, 31, 0.12);
}
.choice input { margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.choice strong { display: block; color: var(--ink); }
.choice span.desc { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

.field { margin-bottom: 14px; }
.field label, .label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.95rem;
}
.help { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 23, 31, 0.12);
}
textarea { min-height: 80px; resize: vertical; }
.row {
  display: grid;
  gap: 12px;
}
@media (min-width: 520px) {
  .row.two { grid-template-columns: 1fr 1fr; }
  .row.three { grid-template-columns: 1fr 1fr 1fr; }
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg label {
  margin: 0;
  font-weight: 600;
  text-align: center;
  padding: 10px 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}
.seg label:has(input:checked) {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212, 23, 31, 0.12);
  color: var(--red);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 650;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--red-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #f3f3f4; }

.alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.alert-error { background: #fdecec; color: #8a1515; }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-ok { background: #e8f6ee; color: var(--ok); }

.price-hero {
  text-align: center;
  padding: 8px 0 16px;
}
.price-hero .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.price-hero .tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  background: #f1f3f5;
  border-radius: 99px;
  padding: 4px 10px;
}

.lines { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.lines th, .lines td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td.amt, .lines th.amt { text-align: right; white-space: nowrap; }
.lines .muted { color: var(--muted); font-size: 0.8rem; }
.totals { margin-top: 8px; }
.totals .grand { font-size: 1.15rem; font-weight: 700; }

.source {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.source-jobber { background: #e8f6ee; color: var(--ok); }
.source-chad { background: #e7f0fb; color: #1d4f91; }
.source-placeholder { background: #fff1cc; color: #7a5b00; }

.min-note {
  margin: 12px auto 0;
  max-width: 36rem;
  background: #fff8e8;
  border: 1px solid #e6d2a6;
  color: #5c4a16;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.disclaimer {
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff8f8;
  border: 1px solid #f0c9cb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
  line-height: 1.45;
}
.disclaimer h3 { font-size: 1rem; margin-bottom: 8px; color: var(--red); }
.disclaimer p { color: #3a3a3a; }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 20px;
}

@media (max-width: 419px) {
  .logo { height: 40px; }
  h1 { font-size: 1.35rem; }
  .price-hero .amount { font-size: 1.7rem; }
  .topbar { align-items: flex-start; }
}

/* Shown only when JS detects a Cloudflare quick-tunnel hostname. Harmless in production. */
#fs-preview-banner {
  background: #7a1d1d;
  color: #fff;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 7px 12px;
  line-height: 1.3;
}
body.has-preview-banner { padding-top: 0; }
