/* Instant estimate flow — house rules: radius ≤6px, no pills,
   subtle hover shadows. */

.iq-page { padding: 3rem 0 4rem; }
.iq-header { margin-bottom: 1.75rem; }
.iq-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: #64748b; margin-bottom: .35rem; }
.iq-title { font-size: 1.9rem; font-weight: 700; color: #0f172a; line-height: 1.15; margin-bottom: .5rem; }
.iq-lead { color: #334155; max-width: 46rem; }

.iq-progress { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.iq-progress li { flex: 1; text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; padding: .4rem .2rem; border-bottom: 3px solid #e2e8f0; }
.iq-progress li.is-active { color: #0f172a; border-bottom-color: #0f172a; font-weight: 600; }
.iq-progress li.is-done { color: #475569; border-bottom-color: #94a3b8; }

.iq-step { margin-top: 1.5rem; }
.iq-step-heading { font-size: 1.15rem; font-weight: 600; color: #0f172a; margin-bottom: .75rem; }
.iq-label { font-weight: 600; color: #0f172a; display: block; margin-bottom: .4rem; }
.iq-input { width: 100%; padding: .65rem .75rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; background: #fff; }
.iq-input:focus { outline: 2px solid #0f172a; outline-offset: 0; border-color: #0f172a; }
.iq-address-row { display: flex; gap: .5rem; }
.iq-address-box { position: relative; flex: 1; }
.iq-address-box .iq-input { width: 100%; }

/* Address typeahead (Mapbox Search Box, wind-zone-explorer pattern) */
/* Portaled to <body> by JS (escapes the modal's overflow clipping); the JS
   pins position/top/left/width/z-index inline to the input's coordinates.
   The class still defaults to absolute so a stale script can never push the
   list into layout flow (which grows the modal). */
.iq-suggestions { position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  z-index: 1200; margin: 0;
  padding: 4px 0; list-style: none; background: #fff; border: 1px solid #cbd5e1;
  border-radius: 6px; box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
  display: none; max-height: 320px; overflow-y: auto; }
.iq-suggestions.is-open { display: block; }
.iq-suggestion { display: flex; flex-direction: column; padding: 8px 14px; cursor: pointer;
  border-bottom: 1px solid rgba(15, 23, 42, .04); }
.iq-suggestion:last-child { border-bottom: 0; }
.iq-suggestion:hover, .iq-suggestion.is-active { background: #f1f5f9; }
.iq-suggestion-label { font-size: .95rem; color: #0f172a; font-weight: 600; }
.iq-suggestion-sub { font-size: .8rem; color: #64748b; }
.iq-btn { border-radius: 6px; white-space: nowrap; }
.iq-btn-wide { width: 100%; margin-top: 1rem; }
.iq-btn-ghost { border: 1px solid #cbd5e1; border-radius: 6px; background: none; color: #475569; padding: .4rem .9rem; }
.iq-hint { font-size: .88rem; color: #64748b; margin-top: .6rem; }
.iq-privacy, .iq-fineprint { font-size: .8rem; color: #94a3b8; margin-top: .75rem; }

.iq-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 575px) { .iq-grid-2 { grid-template-columns: 1fr; } }
.iq-field { display: block; font-size: .88rem; font-weight: 600; color: #334155; margin-bottom: .5rem; }
.iq-field .iq-input { margin-top: .3rem; font-weight: 400; }
.iq-check { display: block; font-size: .9rem; color: #334155; margin: .5rem 0; }

.iq-card { border: 1px solid #e2e8f0; border-radius: 6px; padding: 1rem 1.25rem; background: #fff; }
.iq-card-address { font-weight: 600; color: #0f172a; margin-bottom: .6rem; }
.iq-props { margin: 0; }
.iq-prop { display: flex; justify-content: space-between; padding: .45rem 0; border-top: 1px solid #f1f5f9; }
.iq-prop dt { color: #64748b; font-weight: 400; }
.iq-prop dd { margin: 0; color: #0f172a; font-weight: 600; }
.iq-edit { border: none; background: none; color: #64748b; cursor: pointer; margin-left: .4rem; }
.iq-edit:hover { color: #0f172a; }
.iq-windzone { margin: .75rem 0 0; padding-top: .6rem; border-top: 1px solid #f1f5f9; font-size: .9rem; color: #334155; }
.iq-condo-note { margin: .6rem 0 0; font-size: .88rem; color: #92400e; }

.iq-opening { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.iq-opening-label { flex: 1 1 12rem; color: #0f172a; }
.iq-stepper { display: inline-flex; align-items: center; gap: .4rem; }
.iq-stepper button { width: 2rem; height: 2rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.iq-stepper button:hover { box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.iq-count { min-width: 1.6rem; text-align: center; font-weight: 700; color: #0f172a; }
.iq-sizes { display: inline-flex; gap: .25rem; }
.iq-size { width: 1.9rem; height: 1.9rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; font-size: .8rem; cursor: pointer; color: #64748b; }
.iq-size.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.iq-total { margin-top: .8rem; font-weight: 600; color: #334155; }

.iq-recap p { margin: 0 0 .3rem; color: #334155; }
.iq-recap p:last-child { margin-bottom: 0; font-weight: 600; color: #166534; }
.iq-recap .iq-classd { color: #92400e; font-weight: 600; }
.iq-gate-ask { font-weight: 600; color: #0f172a; margin: 1rem 0 .6rem; }
.iq-windows { border: none; padding: 0; margin: .75rem 0 0; }
.iq-windows legend { font-size: .88rem; font-weight: 600; color: #334155; padding: 0; margin-bottom: .4rem; }
.iq-opt { font-weight: 400; color: #94a3b8; }
.iq-chiprow { display: flex; gap: .4rem; flex-wrap: wrap; }
.iq-chip { border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; padding: .35rem .7rem; font-size: .85rem; color: #334155; cursor: pointer; }
.iq-chip.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.iq-chip.is-full { background: #f1f5f9; color: #cbd5e1; cursor: default; }

.iq-result { text-align: center; padding: 1.5rem 1.25rem; }
.iq-band { font-size: 1.7rem; font-weight: 700; color: #0f172a; margin-bottom: .2rem; }
.iq-band-side { color: #64748b; margin-bottom: 1rem; }
.iq-tiers { border-top: 1px solid #f1f5f9; margin-top: .5rem; }
.iq-tier { display: flex; justify-content: space-between; padding: .45rem .25rem; border-bottom: 1px solid #f1f5f9; font-size: .95rem; color: #334155; }
.iq-tier span:last-child { font-weight: 600; color: #0f172a; }
.iq-permit { margin: .9rem 0 .2rem; font-size: .92rem; color: #334155; }
.iq-payment { font-weight: 600; color: #0f172a; margin: .3rem 0 0; }
.iq-widen-note { font-size: .85rem; color: #92400e; margin: .6rem 0 0; }
.iq-disclaimer { font-size: .88rem; color: #64748b; margin-top: .9rem; }
.iq-explainer { font-size: .85rem; color: #94a3b8; margin-top: 1rem; }

.iq-next { margin-top: 1rem; }
.iq-confirm-line { font-weight: 600; color: #166534; margin-bottom: .75rem; }
.iq-next-heading { font-weight: 600; color: #0f172a; margin: .75rem 0 .4rem; }
.iq-next-steps { margin: 0; padding-left: 1.2rem; color: #334155; }
.iq-next-steps li { margin-bottom: .25rem; }

.iq-scheduler { border-top: 1px solid #f1f5f9; margin-top: .75rem; padding-top: .75rem; }
.iq-sched-heading { font-weight: 600; color: #0f172a; margin-bottom: .5rem; }
.iq-sched-day { display: flex; align-items: center; gap: .4rem; margin-bottom: .45rem; flex-wrap: wrap; }
.iq-sched-date { min-width: 6.5rem; font-size: .88rem; color: #334155; font-weight: 600; }

.iq-breakdown { margin-top: 1rem; }
.iq-breakdown summary { cursor: pointer; font-weight: 600; color: #0f172a; }
.iq-item { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid #f1f5f9; font-size: .92rem; color: #334155; }

.iq-error { margin-top: 1rem; padding: .75rem 1rem; border: 1px solid #fecaca; border-radius: 6px; background: #fef2f2; color: #991b1b; font-size: .92rem; }

/* Parcel/location acknowledgment map (Mapbox Static Images, one <img>) */
.iq-map { margin: -1rem -1.25rem .9rem; border-bottom: 1px solid #e2e8f0; overflow: hidden; border-radius: 6px 6px 0 0; }
.iq-map img { display: block; width: 100%; height: 140px; object-fit: cover; }

/* Opening-type icons */
.iq-opening-icon { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; opacity: .85; }

/* Modal context (Magnific popup, house pattern) */
.iq-modal { max-width: 640px; margin: 2rem auto; background: #fff; border-radius: 6px; position: relative; }
.iq-modal-body { padding: 1.5rem 1.75rem 2rem; max-height: 86vh; overflow-y: auto; }
.iq-modal-title { font-size: 1.4rem; font-weight: 700; color: #0f172a; margin-bottom: .25rem; }
.iq-modal-lead { margin-bottom: .75rem; }
@media (max-width: 640px) { .iq-modal { margin: 0 auto; } .iq-modal-body { padding: 1rem 1rem 1.5rem; } }

/* Post-lead embed (thank-you page) — the wrapper supplies its own heading */
.iq-postlead .iq-progress { margin-top: .25rem; }

/* How-it-works strip (step 1): icon tiles + connectors — rounded squares per
   house rules (no circles/pills), quiet slate palette. */
.iq-how { display: flex; align-items: flex-start; justify-content: center; gap: .35rem;
  margin-top: 1.4rem; padding: .25rem 0; }
.iq-how-stage { display: flex; flex-direction: column; align-items: center; gap: .35rem;
  min-width: 3.6rem; }
.iq-how-tile { width: 38px; height: 38px; display: flex; align-items: center;
  justify-content: center; border: 1px solid #dbe3ec; border-radius: 6px;
  background: #f6f8fb; color: #475569; }
.iq-how-tile svg { width: 21px; height: 21px; }
.iq-how-label { font-size: .72rem; letter-spacing: .02em; color: #64748b; }
.iq-how-link { flex: 0 1 2.6rem; height: 2px; margin-top: 18px;
  background: linear-gradient(90deg, #dbe3ec 0%, #cbd5e1 50%, #dbe3ec 100%); }
.iq-how-stage:first-child .iq-how-tile { color: #0f172a; border-color: #94a3b8; }
@media (max-width: 420px) { .iq-how-link { flex-basis: 1.2rem; } .iq-how-stage { min-width: 3.1rem; } }

/* Completed progress tabs are back-navigation (locked on the estimate step) */
.iq-progress li.is-done { cursor: pointer; }
.iq-progress li.is-done:hover { color: #0f172a; border-bottom-color: #475569; }
