/* Styles for the instant quote page (/quote/). */
.iq [hidden], .iq-result[hidden] { display: none !important; }
.iq { max-width: 860px; margin: 0 auto; scroll-margin-top: 90px; }
.iq-form { max-width: none; }
.iq-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.iq-hint { font-size: 0.85rem; color: var(--color-muted); margin: 0.75rem 0 1rem; }
.iq-q { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.5rem; text-align: center; }

/* progress */
.iq-dots { list-style: none; display: flex; justify-content: center; gap: 0.5rem 1.5rem; flex-wrap: wrap; padding: 0; margin: 0 0 2.5rem; font-size: 0.85rem; font-weight: 600; color: var(--color-muted); }
.iq-dots li { display: flex; align-items: center; gap: 0.5rem; }
.iq-dots span { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--color-border); background: #fff; color: var(--color-muted); transition: all 0.25s; }
.iq-dots .is-current { color: var(--color-text); }
.iq-dots .is-current span { border-color: var(--color-accent); background: var(--color-accent); color: #fff; transform: scale(1.12); }
.iq-dots .is-done span { border-color: var(--color-accent); color: var(--color-accent); }

.iq-step { animation: iq-in 0.35s ease both; }
@keyframes iq-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* step 1: big building-type buttons */
.iq-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.iq-type { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.75rem 1rem 1.5rem; background: #fff; border: 2px solid var(--color-border); border-radius: var(--radius-lg); cursor: pointer; font: inherit; color: var(--color-text); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.iq-type svg { width: 100%; max-width: 190px; height: auto; fill: none; stroke: var(--color-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.iq-type svg path { stroke-dasharray: 600; stroke-dashoffset: 0; }
.iq-type:hover, .iq-type:focus-visible, .iq-type.is-picked { transform: translateY(-6px); border-color: var(--color-accent); box-shadow: 0 14px 34px rgba(44, 127, 245, 0.2); background: var(--color-surface); outline: none; }
.iq-type:hover svg, .iq-type:focus-visible svg, .iq-type.is-picked svg { stroke: var(--color-accent); }
.iq-type:hover svg path { animation: iq-draw 0.9s ease both; }
@keyframes iq-draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.iq-type-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.5rem; }
.iq-type-sub { font-size: 0.85rem; color: var(--color-muted); text-align: center; }

/* step 2: address, aerial, sq ft */
.iq-chip { display: table; margin: 0 auto 0.75rem; padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent-dark); font-size: 0.8rem; font-weight: 700; }
.iq-addr { position: relative; }
.iq-form .iq-addr input { font-size: 1.1rem; padding: 0.9rem 1rem; }
.iq-suggest { list-style: none; margin: 0.25rem 0 0; padding: 0.3rem; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: 0 14px 34px rgba(10, 31, 61, 0.16); }
.iq-suggest li { padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.95rem; color: var(--color-text); }
.iq-suggest li:hover, .iq-suggest li.is-active { background: var(--color-surface-blue); }
.iq-link { background: none; border: 0; padding: 0; margin: 0.4rem 0 1rem; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--color-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.iq-link:hover { color: var(--color-accent-dark); }
.iq-aerial { margin: 0.5rem 0 1.5rem; animation: iq-in 0.4s ease both; }
.iq-aerial-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-dark); aspect-ratio: 640 / 400; box-shadow: 0 10px 30px rgba(10, 31, 61, 0.18); }
.iq-aerial-frame img, .iq-aerial-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.iq-aerial-frame img { object-fit: cover; }
.iq-outline { fill: rgba(44, 127, 245, 0.28); stroke: #fff; stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; animation: iq-pulse 1.8s ease-in-out infinite; }
.iq-pin { fill: #2C7FF5; stroke: #fff; stroke-width: 3; }
@keyframes iq-pulse { 50% { fill: rgba(44, 127, 245, 0.45); } }
.iq-aerial figcaption { font-size: 0.9rem; font-weight: 600; margin-top: 0.6rem; color: var(--color-text); }
.iq-help { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.iq-help-title { font-weight: 800; margin-bottom: 0.6rem; }
.iq-help p { font-size: 0.95rem; margin: 0 0 0.75rem; }
.iq-help-sub { margin-top: 1rem !important; }
.iq-est-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.iq-form .iq-est-row label { margin: 0; }
.iq-form .iq-est-row input { width: 5rem; }
.iq-lookup { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.iq-lookup a { display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--color-accent); border-radius: 999px; font-size: 0.85rem; font-weight: 600; text-decoration: none; background: #fff; }
.iq-lookup a:hover { background: var(--color-accent); color: #fff; }
.iq-lookup a::after { content: " \2197"; }

.iq-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.iq-back { background: none; border: 0; font: inherit; font-weight: 600; color: var(--color-muted); cursor: pointer; padding: 0.5rem 0; }
.iq-back:hover { color: var(--color-text); }

/* step 3: scopes and running total */
.iq-form .iq-choice { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.75rem; font-weight: 500; cursor: pointer; }
.iq-form .iq-choice input { width: 1.1rem; height: 1.1rem; margin: 0; padding: 0; flex: none; accent-color: var(--color-accent); }
.iq-form .iq-scope { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0.85rem 1rem; transition: border-color 0.15s, background 0.15s; }
.iq-form .iq-scope:hover { border-color: var(--color-accent); }
.iq-form .iq-scope:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-soft); }
.iq-scopes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.iq-running { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); background: var(--color-bg-dark); color: #fff; position: sticky; bottom: 0.75rem; box-shadow: 0 10px 30px rgba(10, 31, 61, 0.3); }
.iq-running-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted-on-dark); font-weight: 700; }
.iq-running-note { font-size: 0.85rem; color: var(--color-muted-on-dark); }
.iq-running-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.iq-running.is-bump .iq-running-num { animation: iq-bump 0.3s ease; }
@keyframes iq-bump { 40% { transform: scale(1.1); color: var(--color-accent-light); } }
@media (prefers-reduced-motion: reduce) { .iq-step, .iq-aerial, .iq-outline, .iq-type:hover svg path, .iq-running.is-bump .iq-running-num { animation: none; } }
.iq-scope small { display: block; color: var(--color-muted); font-weight: 400; font-size: 0.8rem; }
.iq-count { margin: -0.25rem 0 0.9rem 1.7rem; }
.iq-count label { font-size: 0.8rem; margin: 0 0 0.2rem; }
.iq-form .iq-count input { width: 6rem; }
.iq-error { background: #FDECEC; color: #8A1C1C; border: 1px solid #F3B4B4; border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.iq-fine { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.75rem; }

.iq-result { max-width: 860px; margin: 3rem auto 0; }
.iq-result-title { margin-bottom: 1rem; }
.iq-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.iq-status { font-size: 0.95rem; color: var(--color-muted); margin-top: 1rem; }

/* The quote sheet is always a white page with dark ink, on screen and on paper. */
.iq-sheet { background: #fff; color: #0A1F3D; border: 1px solid #D5DCE6; border-left: 14px solid #2C7FF5; border-radius: 4px; padding: 2rem; font-size: 0.9rem; line-height: 1.45; box-shadow: 0 8px 30px rgba(10, 31, 61, 0.12); }
.iq-sheet p { color: #0A1F3D; font-size: 0.85rem; margin: 0 0 0.35rem; }
.iq-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1rem; border-bottom: 1px solid #0A1F3D; padding-bottom: 1rem; margin-bottom: 1.25rem; }
.iq-brand { text-align: center; }
.iq-brand-top { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1; }
.iq-brand-bottom { font-size: 0.7rem; letter-spacing: 0.4em; margin-top: 0.25rem; }
.iq-word { text-align: right; color: #D32F2F; font-size: 1.5rem; font-weight: 500; letter-spacing: 0.02em; }
.iq-kv { display: flex; gap: 1rem; justify-content: space-between; }
.iq-dates .iq-kv { justify-content: flex-start; }
.iq-dates .iq-k { min-width: 3rem; }
.iq-k { color: #44546A; }
.iq-v { font-weight: 600; text-align: right; }
.iq-h { font-weight: 700; margin-bottom: 0.2rem; }
.iq-h-gap { margin-top: 0.75rem; }
.iq-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.iq-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 2rem; margin-bottom: 1rem; }
.iq-table-wrap { overflow-x: auto; }
.iq-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.iq-table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.04em; border-bottom: 2px solid #0A1F3D; padding: 0.45rem 0.5rem; white-space: nowrap; color: #0A1F3D; background: none; }
.iq-table td { border-bottom: 1px solid #E5E9F0; padding: 0.5rem; vertical-align: top; color: #0A1F3D; background: none; }
.iq-table th:last-child, .iq-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.iq-table td:nth-child(4), .iq-table td:nth-child(5), .iq-table th:nth-child(4), .iq-table th:nth-child(5) { text-align: right; }
.iq-bottom { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; margin: 1.25rem 0; align-items: start; }
.iq-est .iq-kv { justify-content: flex-start; }
.iq-big { margin-top: 1rem; }
.iq-big-num { font-size: 1.9rem; font-weight: 800; color: #2C7FF5; line-height: 1.1; }
.iq-totals .iq-kv { padding: 0.3rem 0; border-bottom: 1px solid #E5E9F0; }
.iq-totals .iq-k { font-weight: 700; color: #0A1F3D; font-size: 0.8rem; letter-spacing: 0.03em; }
.iq-due { text-align: right; font-size: 0.72rem; letter-spacing: 0.06em; color: #44546A; margin-top: 0.2rem; }
.iq-terms { margin-top: 0.5rem; }
.iq-sign { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin: 2.5rem 0 1rem; }
.iq-line { border-top: 1px solid #0A1F3D; padding-top: 0.3rem; font-size: 0.75rem; color: #44546A; }
.iq-sheet .iq-thanks { font-weight: 600; margin-top: 0.75rem; }

@media (max-width: 640px) {
  .iq-row-3, .iq-scopes, .iq-parties, .iq-facts, .iq-bottom, .iq-types { grid-template-columns: 1fr; }
  .iq-type { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 1rem; gap: 0 1rem; }
  .iq-type svg { max-width: 90px; flex: none; }
  .iq-dots { font-size: 0; gap: 0.75rem; }
  .iq-dots span { font-size: 0.85rem; }
  .iq-sheet { padding: 1.25rem 1rem; border-left-width: 8px; }
  .iq-top { grid-template-columns: 1fr; text-align: left; }
  .iq-brand, .iq-word { text-align: left; }
}

/* Printing: only the quote sheet goes on the page. */
@media print {
  .site-header, .site-footer, .mobile-cta-bar, .hero, .iq-no-print, .iq-actions, .iq-status, .iq-result-title { display: none !important; }
  body, main { background: #fff !important; }
  section { padding: 0 !important; }
  .container { max-width: none; padding: 0; }
  .iq-result { margin: 0; max-width: none; }
  .iq-sheet { box-shadow: none; border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0; font-size: 10.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 12mm; }
}
