/* Linta Roofing roof quiz. Brand: black + Linta yellow, Work Sans headings + Inter body (same as lintaroofing.com).
   The quiz is the page: one centered, dominant card between a slim top bar and a slim footer. */
:root {
  --yellow: #ffdb00;
  --black: #000;
  --ink: #111;
  --muted: #4a4a4a;   /* 8.9:1 on white */
  --line: #8a8a8a;    /* 3.5:1 on white, control borders */
  --soft: #f4f4f1;
  --error: #b00020;   /* 7.3:1 on white */
  --head: "Work Sans", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.55 var(--body); color: var(--ink); background: var(--soft); display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.top :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.top { background: var(--black); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; }
.logo img { width: 126px; height: auto; }
.call { background: var(--yellow); color: var(--black); font: 700 15px/1 var(--head); text-decoration: none; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 22px; white-space: nowrap; }

/* Quiz is the focal point: fills the space between bars, centered both axes. */
main { flex: 1; display: flex; padding: 20px 12px; }
.quiz { background: #fff; width: min(720px, 100%); margin: auto; padding: 24px 20px 28px; border-radius: 20px; box-shadow: 0 12px 44px rgba(0, 0, 0, .16); position: relative; scroll-margin-top: 12px; }
.quiz-offer { text-align: center; font: 700 17px/1.35 var(--head); margin-bottom: 14px; }
.quiz-offer strong { background: var(--yellow); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.quiz-offer .fine { display: block; font: 400 13px/1.3 var(--body); color: var(--muted); margin-top: 5px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; }
.count { font: 700 14px/1 var(--head); color: var(--muted); margin-left: auto; }
.back { font: 600 15px/1 var(--body); color: var(--ink); background: none; border: 0; min-height: 44px; padding: 0 12px 0 4px; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; border-radius: 8px; }
.bar { height: 8px; background: #e4e4e0; border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.bar span { display: block; height: 100%; width: 11%; background: var(--yellow); border-right: 2px solid var(--black); transition: width .3s ease; }
.step h2 { font-size: clamp(24px, 6vw, 34px); font-weight: 800; margin-bottom: 18px; outline: none; }
.step h3 { font-size: 21px; margin: 22px 0 6px; }
.soft { font-weight: 600; color: var(--muted); font-size: .72em; white-space: nowrap; }
.sub { color: var(--muted); margin-bottom: 14px; }
.step.in { animation: stepin .26s ease both; }
@keyframes stepin { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.opts { display: grid; gap: 12px; }
.opts.photos { grid-template-columns: 1fr 1fr; }
.opts.photos .row { grid-column: 1 / -1; }
.opt { font: 600 18px/1.3 var(--body); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 0; cursor: pointer; text-align: left; overflow: hidden; transition: border-color .15s, background-color .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.opt > span { display: block; padding: 14px 16px; }
.opt.row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; }
.opt.row > span { padding: 0; }
.opt.row svg { width: 30px; height: 30px; }
.opt.row b { font: 800 18px/1 var(--head); background: var(--soft); border-radius: 8px; min-width: 66px; padding: 12px 6px; text-align: center; }
@media (hover: hover) { .opt:hover { border-color: var(--black); } } /* touch screens keep :hover on the next question's card */
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"] { border-color: var(--black); background: var(--yellow); box-shadow: inset 0 0 0 2px var(--black); } /* thick border: yellow on white alone is 1.4:1 */
.opt[aria-pressed="true"] b { background: #fff; }

label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
input { font: 400 18px/1.2 var(--body); color: var(--ink); width: 100%; min-height: 56px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
input:focus-visible { outline-offset: 1px; border-color: var(--black); }
input[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: 15px; font-weight: 600; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two label { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { font: 700 19px/1.2 var(--head); color: var(--black); background: var(--yellow); border: 2px solid var(--black); border-radius: 30px; min-height: 60px; padding: 14px 30px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #ffe53d; }
.btn[disabled] { opacity: .6; cursor: progress; }
.quiz .btn { width: 100%; margin-top: 20px; }
.consent { font-size: 13px; color: var(--muted); margin-top: 12px; }
.notice { font-size: 14px; border: 2px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
#book-frame iframe { width: 100%; height: 720px; border: 0; }

.foot { background: var(--black); color: #fff; padding: 18px 0 22px; font-size: 13px; }
.foot .wrap { display: grid; gap: 6px; text-align: center; }
.foot a { display: inline-block; padding: 8px 4px; margin: 0 -4px; }

@media (min-width: 760px) {
  .top { padding: 10px 28px; }
  .logo img { width: 146px; }
  main { padding: 32px 20px; }
  .quiz { padding: 32px 36px 36px; }
  .quiz-offer { font-size: 19px; }
}
.call-label { margin-right: .3em; }
@media (max-width: 420px) { .call-label { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step.in { animation: none; }
  .bar span, .opt { transition: none; }
  .opt:active { transform: none; }
}
