/* Dark slate page, white rounded cards, indigo accents and buttons, Inter type. */
:root {
  --black: #111827;
  --ink: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --field-border: #d1d5db;
  --copper: #3b82f6;          /* icon circles, rules, selected state */
  --copper-ink: #1d4ed8;      /* accent text on white (readable) */
  --copper-pale: #eff6ff;
  --phone: #93c5fd;           /* "Or Call" number */
  --blue: #2563eb;            /* teal */
  --blue-btn: #2563eb;        /* button fill, deep enough for white text */
  --blue-btn-hover: #1d4ed8;
  --error: #b42318;
  --error-bg: #fef3f2;
  --radius: 16px;
  --field-radius: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--blue-btn); }
.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--black); padding-top: env(safe-area-inset-top, 0px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.brand img { display: block; width: 56px; height: auto; }
.call { color: var(--phone); text-decoration: none; font-weight: 500; font-size: 1rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.call .call-label { color: var(--phone); font-weight: 400; }
.call strong { font-weight: 600; }
.call svg { display: none; width: 18px; height: 18px; }
.call:hover strong { text-decoration: underline; }

/* Hero */
.hero { background: var(--black); color: #fff; padding: 28px 0 0; text-align: center; }
.hero-kicker { margin: 0 0 10px; color: var(--copper); font-weight: 500; font-size: 1rem; letter-spacing: 0.04em; }
.hero h1 {
  margin: 0 0 14px; color: #fff;
  font-size: clamp(2.2rem, 7vw, 3.75rem); line-height: 1; font-weight: 500;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.hero-sub { margin: 0 auto 8px; font-size: 1.1875rem; max-width: 46ch; color: #fff; }
.hero-meta { margin: 6px 0 0; color: var(--copper); font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-meta[hidden] { display: none; }

/* Tabs */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; text-align: left; }
.tab {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 62px; padding: 12px 20px;
  border: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: #3b3631; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(196, 149, 95, 0.55);
  font: inherit; font-weight: 500; font-size: 1.125rem; text-transform: uppercase; letter-spacing: 0.01em;
  cursor: pointer; border-top: 4px solid transparent;
}
.tab:hover { background: #4a433c; box-shadow: inset 0 0 0 1.5px var(--copper); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); border-top-color: var(--copper); box-shadow: none; }
.tab:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.badge { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.03em; }
.badge.req { background: var(--copper); color: #111; }
.tab:not([aria-selected="true"]) .badge.req { background: #fff; color: #111; }
.badge.opt-badge { background: var(--copper); color: #111; box-shadow: none; }
.tab[aria-selected="true"] .badge.opt-badge { background: transparent; color: var(--copper-ink); box-shadow: inset 0 0 0 1.5px var(--copper); }
.tab.is-signed .badge, .tab.is-signed:not([aria-selected="true"]) .badge.req { background: #e7f6ec; color: #17663a; box-shadow: none; }

/* Card */
main.wrap { margin-bottom: 56px; }
.panel { background: #fff; border-radius: 0 0 var(--radius) var(--radius); padding: 32px 34px 30px; }
.panel[hidden] { display: none; }
.js .step[hidden] { display: none; }

.form-head { margin: 0 0 24px; }
.form-head[hidden] { display: none; }
.form-lede { margin: 0 auto 10px; max-width: 62ch; text-align: center; }
.time-pill-row { margin: 0 0 20px; text-align: center; }
.time-pill {
  display: inline-block; padding: 3px 14px; border-radius: 999px;
  background: var(--copper-pale); color: var(--copper-ink); box-shadow: inset 0 0 0 1.5px var(--copper);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
}
.muted { color: var(--muted); }
.progress { display: flex; gap: 6px; }
.seg[hidden] { display: none; }
.seg { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.seg.is-done { background: var(--copper); }
.seg.is-now { background: var(--blue); }
.progress-label { margin: 10px 0 0; color: var(--ink); font-weight: 500; font-size: 0.9375rem; min-height: 1.5em; }

.step-title { margin: 0 0 6px; color: var(--copper-ink); font-size: 1.75rem; line-height: 1.15; font-weight: 600; }
.step-title:focus { outline: none; }
.step > section:first-of-type { margin-top: 18px; }
section { margin: 0 0 8px; }
section + section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
section[hidden] { display: none; }
h3 { margin: 0 0 14px; color: var(--ink); font-size: 1.25rem; font-weight: 600; }

/* Fields */
.field { margin: 0 0 22px; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field[hidden] { display: none; }
label, legend, .label { display: block; color: var(--ink); font-weight: 500; margin: 0 0 7px; padding: 0; }
.optional { color: var(--muted); font-weight: 400; }
.hint { margin: -3px 0 8px; color: var(--muted); font-size: 0.9375rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; min-height: 52px; padding: 11px 14px;
  border: 1.5px solid var(--field-border); border-radius: var(--field-radius);
  background: #fff; color: var(--ink); font: inherit;
  transition: border-color 0.15s;
}
input[type=text]:hover, input[type=email]:hover, input[type=tel]:hover, select:hover, textarea:hover { border-color: #8f8880; }
textarea { min-height: 100px; resize: vertical; }
textarea::placeholder { font-style: italic; color: #8a847d; opacity: 1; }
input[readonly] { background: #f4f2ef; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235, 0.3); }
button:focus-visible, a:focus-visible, .opt:focus-within, .ack:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.job { max-width: 300px; }

/* "Fill this in for me" lookup */
.lookup { margin: 18px 0 6px; padding: 18px 18px 14px; border-radius: var(--field-radius); background: var(--copper-pale); border-left: 4px solid var(--copper); }
.lookup-title { margin: 0 0 4px; color: var(--ink); font-weight: 600; font-size: 1.125rem; }
.lookup .hint { margin: 0 0 12px; }
.lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 12px; align-items: end; }
.lookup-row label { font-size: 0.9375rem; margin-bottom: 5px; }
.lookup-btn { min-height: 52px; padding: 0 20px; }
.lookup-btn:disabled { opacity: 0.7; cursor: progress; }
.lookup-ts { margin-top: 10px; }
.lookup-ts:empty { display: none; }
.lookup-status { margin: 10px 0 0; color: #17663a; font-weight: 500; font-size: 0.9375rem; }
.lookup-status.is-bad { color: var(--error); }
.lookup-status:empty { display: none; }

/* Choices */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.options.stack { grid-template-columns: 1fr; }
.opt, .ack {
  position: relative; display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 14px 16px; min-height: 54px;
  border: 1.5px solid var(--line); border-radius: var(--field-radius);
  background: #fff; color: var(--ink); font-weight: 500; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.opt:hover, .ack:hover { border-color: #c9c1b8; }
.opt:has(input:checked), .ack:has(input:checked) { border-color: var(--copper); background: var(--copper-pale); }
.ack { align-items: flex-start; font-weight: 400; color: var(--text); }
.acks { display: grid; gap: 10px; }
.opt input, .ack input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt::before, .ack::before { content: ""; flex: none; width: 22px; height: 22px; border: 2px solid #a59d94; background: #fff center / 14px no-repeat; }
.opt::before { border-radius: 50%; }
.ack::before { border-radius: 5px; margin-top: 2px; }
.opt:has(input:checked)::before { border: 7px solid var(--copper-ink); }
.ack:has(input:checked)::before {
  border-color: var(--copper-ink); background-color: var(--copper-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.para { margin: 0 0 16px; max-width: 64ch; }
.info { margin: 0 0 12px; }
.subhead { margin: 20px 0 8px; color: var(--ink); font-weight: 600; }
.callout { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--field-radius); background: var(--copper-pale); border-left: 4px solid var(--copper); color: #5a3d1e; font-size: 0.9375rem; }
.callout[hidden] { display: none; }
.callout.reassure { margin-top: -10px; padding: 10px 14px; background: #e7f6ec; border-left-color: #2e9d5b; color: #17663a; font-weight: 500; }

/* A section that needs to stand out (clear access on install day) */
.important-box { padding: 16px 16px 2px; border-radius: var(--field-radius); background: var(--copper-pale); box-shadow: inset 0 0 0 2px var(--copper); }
.important-label { margin: 0 0 10px; color: var(--copper-ink); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.important-box .ack { background: #fff; color: var(--ink); font-weight: 500; }
.important-box .field[hidden] { display: none; }
.important-box .opt { background: #fff; }
.important-box .opt:has(input:checked), .important-box .ack:has(input:checked) { background: #fff; border-color: var(--copper-ink); box-shadow: inset 0 0 0 1px var(--copper-ink); }
.terms { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 64ch; }
.terms li { position: relative; padding-left: 24px; }
.terms li::before { content: ""; position: absolute; left: 4px; top: 0.66em; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }

/* Signature */
.sign { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.pad { position: relative; height: 160px; border: 1.5px dashed var(--field-border); border-radius: var(--field-radius); background: #fcfbf9; touch-action: none; }
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.pad::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 32px; border-bottom: 2px solid var(--copper); pointer-events: none; }
.pad-x { position: absolute; left: 24px; bottom: 36px; color: var(--copper); font-size: 1.4rem; line-height: 1; pointer-events: none; }
.pad-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 6px; }
.text-btn { background: none; border: 0; padding: 8px 0; color: var(--blue-btn); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; min-height: 44px; }
.text-btn:hover { text-decoration: underline; }
.date { margin: 0 0 18px; color: var(--ink); font-weight: 500; }
.consent { font-size: 0.9375rem; }
.cf-turnstile { margin: 4px 0 0; }

/* Errors */
.has-error input[type=text], .has-error input[type=email], .has-error input[type=tel], .has-error select, .has-error textarea, .has-error .pad, .has-error .opt, .has-error .ack:not(:has(input:checked)) { border-color: var(--error); }
.error { margin: 7px 0 0; color: var(--error); font-weight: 500; font-size: 0.9375rem; }
.error-summary { margin: 0 0 24px; padding: 16px 18px; border-radius: var(--field-radius); background: var(--error-bg); border: 1.5px solid #f4b8b0; }
.error-summary:focus { outline: none; }
.error-summary-title { margin: 0 0 6px; color: var(--error); font-weight: 600; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); }

/* Buttons: square, uppercase, Acme blue, like the website */
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.nav [hidden] { display: none; }
.primary, .secondary {
  min-height: 54px; padding: 0 28px; border-radius: 2px;
  font: inherit; font-size: 1.125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; cursor: pointer;
}
.primary { margin-left: auto; border: 0; background: var(--blue-btn); color: #fff; }
.primary:hover { background: var(--blue-btn-hover); }
.primary:disabled { opacity: 0.7; cursor: progress; }
.secondary { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); }
.secondary:hover { background: #f4f2ef; }
.status { margin: 14px 0 0; color: var(--error); font-weight: 500; text-align: right; }
.status:empty { display: none; }

/* Done: copper circle, like the icons on the website */
.done { text-align: center; padding: 16px 0 6px; }
.done:focus { outline: none; }
.done-icon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: var(--copper); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 7px #fff, 0 0 0 9px var(--copper-pale); }
.done-icon svg { width: 48px; height: 48px; }
.done h2 { margin: 0 0 10px; color: var(--copper-ink); font-size: 2rem; font-weight: 600; }
.done p { max-width: 46ch; margin: 0 auto 10px; }
.done-help { color: var(--muted); font-size: 0.9375rem; }
.next-up { margin: 26px auto 6px; padding: 22px; max-width: 470px; border-radius: var(--field-radius); background: var(--copper-pale); }
.next-up[hidden] { display: none; }
.next-up p { margin: 0 auto 14px; }
.next-up .primary, .next-up .secondary { margin: 0 auto; }

/* Footer: like the website */
.site-footer { background: var(--black); color: #d1d5db; font-size: 0.9375rem; padding: 40px 0 calc(30px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #222; }
.footer-top { text-align: center; margin-bottom: 26px; }
.footer-top img { width: 200px; height: auto; }
.footer-tagline { margin: 12px 0 0; color: #fff; font-size: 1.25rem; font-weight: 500; }
.footer-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; }
.footer-row h2 { margin: 0 0 6px; color: var(--copper); font-size: 0.9375rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-row p { margin: 0; line-height: 1.55; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid #222; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #a8a8a8; font-size: 0.875rem; }
.footer-legal a { color: #d1d5db; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (min-width: 641px) {
  .step[data-step="0"] > section { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .step[data-step="0"] > section > .field { min-width: 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .header-row { min-height: 72px; }
  .brand img { width: 44px; }
  .call .call-label, .call strong { display: none; }
  .call svg { display: block; color: var(--phone); }
  .call { padding: 10px; border: 1.5px solid #333; border-radius: 999px; }
  .hero { padding-top: 14px; }
  .tabs { gap: 6px; }
  .tab { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 10px 12px; font-size: 0.9375rem; }
  .badge { font-size: 0.6875rem; padding: 2px 8px; }
  .panel { padding: 24px 18px 22px; }
  .step-title { font-size: 1.45rem; }
  .primary, .secondary { flex: 1; padding: 0 16px; font-size: 1rem; }
  .primary { margin-left: 0; }
  .lookup { padding: 16px 14px 12px; }
  .lookup-row { grid-template-columns: 1fr 1fr; }
  .lookup-contact { grid-column: 1 / -1; }
  .lookup-btn { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
