/* Styled to match homeoptionsllc.net: deep green + orange, Playfair Display headings, system sans body. */
:root {
  --brand: #f97316;          /* buttons / highlights (site orange) */
  --brand-dark: #ea6c0a;
  --accent: #14532d;         /* deep green */
  --accent-2: #166534;
  --accent-soft: #f0fdf4;
  --accent-line: #dcfce7;
  --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #e5e7eb; --soft: #f9fafb;
  --r: 6px; --rl: 12px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: transparent; }
body { font: 16px/1.55 var(--sans); color: var(--ink); padding: 8px; }
.rq { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--rl); overflow: hidden; box-shadow: var(--shadow); }

/* top trust bar – mirrors the site's green utility bar */
.rq-topbar { background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; padding: 9px 24px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.rq-topbar span::before { content: "✓"; color: #4ade80; margin-right: 6px; font-weight: 800; }
.rq-topbar:empty { display: none; }
.rq-body { padding: 26px 32px 30px; }

/* header */
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rq-logo { max-height: 46px; max-width: 220px; display: block; }
.wordmark { font: 700 1.1rem/1.1 var(--serif); color: var(--accent); }
.head-phone { font-weight: 800; color: var(--accent); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.head-phone::before { content: "☎ "; color: var(--brand); }
h1 { font: 700 2.05rem/1.15 var(--serif); letter-spacing: -.02em; margin: 0 0 8px; color: var(--ink); }
h1 em { font-style: normal; color: var(--brand); }
h2 { font: 700 1.45rem/1.2 var(--serif); letter-spacing: -.01em; margin: 0 0 4px; }
.lede { color: var(--ink-2); margin: 0 0 20px; max-width: 58ch; }
.muted { color: var(--muted); margin: 0 0 16px; }

/* compact mode (embedded under a page that already has a headline) */
.rq-compact .rq-head .brand, .rq-compact .rq-head h1, .rq-compact .rq-head .lede { display: none; }
.rq-compact .rq-body { padding-top: 22px; }

/* step indicator */
.rq-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 26px; counter-reset: s; }
.rq-steps li { counter-increment: s; font-size: .76rem; font-weight: 600; color: var(--muted); padding-top: 9px; border-top: 4px solid var(--line); transition: border-color .25s, color .25s; }
.rq-steps li::before { content: counter(s) ". "; }
.rq-steps li.done { border-color: var(--accent-2); color: var(--accent-2); }
.rq-steps li.now { border-color: var(--brand); color: var(--ink); }

.step { display: none; animation: fade .25s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* form controls */
.lbl { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid #d1d5db; border-radius: var(--r); margin-top: 6px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-line); }
.addr { position: relative; display: flex; gap: 10px; margin-top: 6px; }
.addr input { margin: 0; padding-left: 40px; font-size: 1.02rem; flex: 1; min-height: 52px; }
.addr .pin { position: absolute; left: 12px; top: 15px; width: 22px; height: 22px; color: var(--accent-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 2px solid transparent; border-radius: var(--r); padding: 13px 22px; font: 700 1rem/1 var(--sans); cursor: pointer; text-decoration: none; box-shadow: 0 2px 8px rgba(249,115,22,.3); transition: background .2s, transform .1s; min-height: 50px; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: #fff; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.wide { width: 100%; margin-top: 10px; }
.btn.grow { flex: 1; }
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.err { color: #b91c1c; font-size: .9rem; min-height: 1.2em; margin: 6px 0 0; font-weight: 500; }

/* how it works */
.how { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how li { display: flex; gap: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--rl); padding: 14px; font-size: .84rem; color: var(--ink-2); }
.how b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.how strong { display: block; color: var(--ink); font-size: .9rem; }

/* loading */
.loading { text-align: center; padding: 30px 0 20px; }
.spinner { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid var(--accent-line); border-top-color: var(--accent-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* roof confirm */
.roof-img { border-radius: var(--rl); overflow: hidden; background: var(--soft); aspect-ratio: 16/10; border: 1px solid var(--line); }
.roof-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stats div { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--rl); padding: 12px; text-align: center; }
.stats b { display: block; font: 700 1.5rem/1.2 var(--serif); color: var(--accent); }
.stats span { color: var(--muted); font-size: .8rem; }

/* question controls */
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-weight: 700; font-size: .95rem; margin-bottom: 10px; color: var(--ink); }
.cards { display: grid; gap: 10px; }
.cards label { margin: 0; cursor: pointer; position: relative; }
.cards input, .pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cards .card { display: block; border: 2px solid var(--line); border-radius: var(--rl); padding: 14px 16px 14px 46px; transition: border-color .15s, background .15s; position: relative; }
.cards .card::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d1d5db; background: #fff; }
.cards .card b { display: block; font-size: 1rem; }
.cards .card small { color: var(--muted); font-size: .85rem; }
.cards input:checked + .card { border-color: var(--accent-2); background: var(--accent-soft); }
.cards input:checked + .card::before { border-color: var(--accent-2); background: radial-gradient(var(--accent-2) 45%, #fff 50%); }
.cards input:focus-visible + .card, .pills input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-line); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { margin: 0; position: relative; }
.pills span { display: inline-block; padding: 9px 20px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.pills input:checked + span { border-color: var(--accent-2); background: var(--accent-2); color: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 4px 0 8px; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent-2); flex: none; }
.check.small { font-size: .76rem; color: var(--muted); font-weight: 400; line-height: 1.45; }
.hp { position: absolute; left: -9999px; }

/* contact */
.ready { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ready svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--accent-2); color: #fff; }
.privacy { text-align: center; font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* result */
.r-note { margin: 12px 0 0; padding: 12px 14px; background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid var(--brand); border-radius: var(--r); font-size: .88rem; color: var(--ink-2); line-height: 1.55; }
.price-card { background: var(--accent); color: #fff; border-radius: var(--rl); padding: 22px 24px; position: relative; overflow: hidden; }
.price-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.05); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; color: #bbf7d0; margin: 0; font-weight: 700; }
.price { font: 700 2.6rem/1.1 var(--serif); letter-spacing: -.02em; margin: 6px 0; }
.monthly { font-weight: 700; color: #fdba74; margin: 0 0 6px; }
.detail { color: #dcfce7; font-size: .88rem; margin: 0; }
.lines { width: 100%; border-collapse: collapse; margin: 14px 0 4px; font-size: .9rem; }
.lines td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.lines td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.compare { display: grid; gap: 8px; margin: 18px 0 6px; }
.compare h3 { font: 700 1.05rem var(--serif); margin: 0 0 2px; }
.compare .opt { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); font-size: .95rem; }
.compare .opt.sel { border-color: var(--accent-2); background: var(--accent-soft); }
.compare .opt span:last-child { font-weight: 700; white-space: nowrap; color: var(--accent); }
.call { text-align: center; color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
.call a { color: var(--accent); font-weight: 800; }
.disclaimer { font-size: .76rem; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.payload { margin-top: 16px; border: 1px dashed #fdba74; background: #fff7ed; border-radius: var(--r); padding: 10px 12px; font-size: .82rem; }
.payload summary { cursor: pointer; font-weight: 700; color: #9a3412; }
.payload pre { white-space: pre-wrap; word-break: break-word; font-size: .74rem; max-height: 320px; overflow: auto; margin: 8px 0 0; }
.demo { margin: 0; padding: 10px 24px; background: #fff7ed; border-top: 1px solid #fed7aa; font-size: .8rem; color: #9a3412; }

@media (max-width: 600px) {
  body { padding: 0; }
  .rq { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .rq-body { padding: 20px 16px 24px; }
  .rq-topbar { padding: 8px 16px; }
  h1 { font-size: 1.65rem; }
  .addr { flex-direction: column; }
  .addr .btn { width: 100%; }
  .two, .how { grid-template-columns: 1fr; gap: 0 14px; }
  .how { gap: 8px; }
  .price { font-size: 2.1rem; }
  .head-phone { display: none; }
}
