/* Accurate Instant Estimate
   Palette from Accurate-OS/references/brand.md -- do not invent colors.
     Accurate Blue #002360 | Light Blue #0064a2 | Blue Grey #a2a7c6
     Dark Yellow #ffcf00 | Yellow #fff100 | White Yellow #fff9ba
   Type: Roboto Condensed Bold for headlines, Roboto for body. */

:root {
  --blue: #002360;
  --blue-lt: #0064a2;
  --grey: #a2a7c6;
  --gold: #ffcf00;
  --gold-tint: #fff9ba;
  --ink: #002360;
  --body: #33384d;
  --line: #dfe2ee;
  --bg: #f6f7fb;
  --card: #ffffff;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 35, 96, .06), 0 8px 24px rgba(0, 35, 96, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3 {
  font-family: "Roboto Condensed", Roboto, sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }

p { margin: 0 0 1rem; }
a { color: var(--blue-lt); }

.pad { padding: clamp(1.25rem, 4vw, 2.25rem); }
.small { font-size: .875rem; }
.muted { color: #6b7189; }
.err { color: var(--err); }

/* ---------- chrome ---------- */
/* White header, like itsaccurate.com. The approved logo is navy-and-gold artwork -- on a navy bar it
   disappears, and recoloring or recreating the mark is not allowed by the brand rules. */
.hdr {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 2rem);
  background: #fff; border-bottom: 3px solid var(--gold);
}
.hdr__home { display: flex; }
.hdr__home img { height: 44px; width: auto; display: block; }
.hdr__tel {
  color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap;
  font-family: "Roboto Condensed", Roboto, sans-serif; font-size: 1.15rem;
}
.hdr__tel:hover { color: var(--blue-lt); }

.ftr {
  margin-top: auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  background: var(--blue); color: #cfd6e8;
  font-size: .8125rem;
}
.ftr p { margin: 0; }
.ftr__build { color: #7f8cb0; margin-top: .25rem; }

main { flex: 1 0 auto; }
.step { max-width: 1040px; margin: 0 auto; }

.eyebrow {
  font-family: "Roboto Condensed", Roboto, sans-serif;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--blue-lt); font-size: .8125rem; margin: 0 0 .35rem;
}
.lede { font-size: 1.0625rem; max-width: 62ch; }
.note { max-width: 72ch; color: #6b7189; }

.back {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--blue-lt); font: inherit; font-size: .9375rem;
  padding: .35rem 0; margin: 0 0 .75rem; min-height: 44px;
}
.back:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: "Roboto Condensed", Roboto, sans-serif; font-weight: 700; font-size: 1.05rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  min-height: 48px; transition: transform .05s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: var(--shadow); }
.btn--primary:hover { background: #ffdb3d; }
.btn--primary:disabled { background: var(--grey); color: #fff; cursor: default; }
.btn--ghost { background: transparent; color: var(--blue-lt); border-color: var(--grey); }
.btn--wide { width: 100%; }

/* ---------- step 1: system ---------- */
.choices { display: grid; gap: .875rem; max-width: 640px; margin-top: 1.5rem; }
.choice {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; font: inherit; box-shadow: var(--shadow);
}
.choice:hover { border-color: var(--blue-lt); }
.choice__title {
  display: block; font-family: "Roboto Condensed", Roboto, sans-serif;
  font-weight: 700; font-size: 1.3rem; color: var(--ink);
}
.choice__sub { display: block; color: #6b7189; font-size: .9375rem; margin-top: .2rem; }
.choice--quiet { background: transparent; box-shadow: none; border-style: dashed; }

/* ---------- step 2: size ---------- */
.sizes { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.size {
  cursor: pointer; font: inherit; font-weight: 500;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 999px;
  padding: .7rem 1.15rem; min-height: 48px;
}
.size:hover { border-color: var(--blue-lt); background: var(--gold-tint); }

.or { display: flex; align-items: center; gap: .75rem; color: #8d93a8; margin: 1.5rem 0; max-width: 520px; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.sqft { max-width: 520px; }
.sqft label { display: block; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.sqft__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.sqft__row input { flex: 1 1 150px; }

input, textarea {
  font: inherit; color: var(--body); background: #fff;
  border: 2px solid var(--line); border-radius: 10px;
  padding: .7rem .85rem; min-height: 48px; width: 100%;
}
input:focus, textarea:focus { outline: 3px solid var(--gold-tint); border-color: var(--blue-lt); }

/* ---------- step 3: cards ---------- */
.cards {
  display: grid; gap: 1rem; margin: 1.5rem 0;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.25rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card--featured { border-color: var(--gold); }
.card__flag {
  display: inline-block; align-self: flex-start;
  background: var(--gold); color: var(--ink); font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .6rem; border-radius: 999px; margin: 0 0 .6rem;
}
.card__tier { font-size: 1.5rem; margin-bottom: .15rem; }
.card__name { font-size: .9375rem; color: #4b5266; margin-bottom: .75rem; }
.card__bul { margin: 0 0 .9rem; padding-left: 1.1rem; color: #4b5266; font-size: .875rem; }
.card__bul li { margin-bottom: .2rem; }
.card__price {
  font-family: "Roboto Condensed", Roboto, sans-serif; font-weight: 700;
  font-size: 2.15rem; color: var(--ink); margin: 0; line-height: 1;
}
.card__price-sub { font-size: .8125rem; color: #6b7189; margin: .3rem 0 .75rem; }
.card__mo { font-size: .9375rem; margin: 0 0 .5rem; }
.card__warn {
  font-size: .8125rem; color: #7a5c00; background: var(--gold-tint);
  border-radius: 8px; padding: .5rem .65rem; margin: .25rem 0 .75rem;
}
.card__cta { margin-top: auto; width: 100%; text-align: center; }

/* ---------- step 4: lead ---------- */
.picked {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem;
  background: var(--gold-tint); border-radius: var(--radius);
  padding: .9rem 1.1rem; margin: 0 0 1.5rem;
}
.picked__tier { font-family: "Roboto Condensed", Roboto, sans-serif; font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.picked__name { color: #6b7189; font-size: .875rem; flex: 1 1 auto; }
.picked__price { font-family: "Roboto Condensed", Roboto, sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); }

form { max-width: 560px; }
form label { display: block; font-weight: 500; color: var(--ink); margin-bottom: .9rem; }
form label input, form label textarea { margin-top: .3rem; }
.row { display: grid; grid-template-columns: 2fr 1fr; gap: .75rem; }

.done .btn { margin-right: .5rem; margin-bottom: .5rem; }

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