/* Multi-Step Estimate Form Template — 3thingsMedia */
:root {
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
img { max-width: 100%; display: block; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { height: 36px; width: auto; }
.phone { font-weight: 700; font-size: 15px; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.phone svg { width: 16px; height: 16px; }

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 9%, #fff) 0%, #fff 60%); padding: 32px 0 56px; overflow: hidden; }
.hero--img { background-size: cover; background-position: center; color: #fff; }
.hero--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 23, 42, .85), rgba(15, 23, 42, .45)); }
.hero--img .lead, .hero--img .rating__text { color: rgba(255, 255, 255, .85); }
@media (min-width: 960px) { .hero { padding: 64px 0 88px; } }
.hero__grid { position: relative; display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 480px; gap: 56px; align-items: center; } }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-dark); background: color-mix(in srgb, var(--brand) 12%, #fff); padding: 5px 10px; border-radius: 999px; margin: 0 0 14px; }
h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 0 0 14px; }
h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 0 0 12px; }
h2:focus, h3:focus { outline: none; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.ticks svg { width: 22px; height: 22px; flex-shrink: 0; color: #fff; background: #16a34a; border-radius: 50%; padding: 4px; }
.rating { display: flex; align-items: center; gap: 10px; }
.rating__score { font-size: 22px; font-weight: 800; }
.rating__stars { color: #f59e0b; letter-spacing: 1px; }
.rating__text { font-size: 14px; color: var(--muted); }
@media (max-width: 959px) { .hero__copy .ticks, .hero__copy .rating { display: none; } }

/* Form card */
.form { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(15, 23, 42, .12); overflow: hidden; scroll-margin-top: 80px; }
.form__head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.form__title { font-size: 18px; font-weight: 800; margin: 0; }
.form__note { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.form__bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.form__track { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.form__fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .35s ease; }
.form__count { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.form__body { padding: 20px 22px 22px; min-height: 300px; }
.step { animation: in .3s ease both; }
@keyframes in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }
.step h3 { font-size: 20px; line-height: 1.25; margin: 0 0 4px; }
.step .help { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.opts { display: grid; gap: 9px; margin-top: 14px; }
.opts--2 { grid-template-columns: 1fr 1fr; }
.opt { appearance: none; cursor: pointer; font: inherit; text-align: left; width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s; }
.opt:hover { border-color: color-mix(in srgb, var(--brand) 50%, #fff); background: color-mix(in srgb, var(--brand) 4%, #fff); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.opt:focus-visible, .btn:focus-visible, .back:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.opt__icon { font-size: 20px; width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px; }
.opt__label { flex: 1; }
.opt__box { width: 20px; height: 20px; flex-shrink: 0; border: 2px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; }
.opt__box svg { width: 13px; height: 13px; opacity: 0; }
.opt[aria-checked="true"] .opt__box { background: var(--brand); border-color: var(--brand); }
.opt[aria-checked="true"] .opt__box svg { opacity: 1; }
.field { margin-top: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; transition: border-color .15s; }
.field input:focus { outline: none; border-color: var(--brand); }
.field input[aria-invalid="true"] { border-color: #dc2626; }
.err { color: #dc2626; font-size: 13px; margin: 5px 0 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.back { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--brand); border-radius: 10px; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 30%, transparent); transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn svg { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn--lg { font-size: 17px; padding: 16px 28px; }
.consent { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 10px; border-top: 1px solid var(--line); background: var(--bg); margin: 0; }
.secure svg { width: 13px; height: 13px; }

/* Done */
.done { text-align: center; padding: 10px 0; }
.done__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; }
.done__icon svg { width: 32px; height: 32px; }
.done p { color: var(--muted); margin: 0 0 18px; }
.done ol { text-align: left; list-style: none; counter-reset: n; padding: 0; margin: 0 auto; max-width: 320px; display: grid; gap: 10px; }
.done li { counter-increment: n; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.done li::before { content: counter(n); width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Badges */
.badges { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.badges ul { list-style: none; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.badges li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #334155; }
.badges svg { width: 18px; height: 18px; color: var(--brand); }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 88px 0; } }
.section--tint { background: var(--bg); }
.center { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.how li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.how h3 { font-size: 17px; margin: 0 0 4px; }
.how p { color: var(--muted); margin: 0; font-size: 15px; }
.reviews { display: grid; gap: 16px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: #f59e0b; }
.review p { margin: 0; }
.review footer { margin-top: auto; font-size: 14px; }
.review footer span { display: block; color: var(--muted); }
.final { background: var(--brand); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .85); margin: 0 0 24px; font-size: 18px; }
.final .btn { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.final .btn:hover { background: #f1f5f9; }

/* Footer */
.foot { padding: 28px 0 36px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
