/* homepage v4: hero form, stats head, consult, process, coverage (owner: builder A2) */

/* ---------- Hero 3-step form (f5310f5b, a7401812) ---------- */
.hero.hero-v2 .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); gap: clamp(32px, 6vw, 112px); }
.hero.hero-v2 .hero-inquiry.hf4 { max-width: 480px; width: 100%; padding: 26px 28px 28px; border-radius: 4px; }
/* keep the form card clear of the fixed button stack (right 22px + 52px + 24px gap) on narrow desktops */
@media (min-width: 993px) {
  .hero.hero-v2 .hero-layout { padding-right: clamp(0px, calc(700px - 50vw), 78px); }
}
.hf4-form { color: var(--ms-black, #111); text-align: left; min-width: 0; }
.hf4-form *, .hf4-form *::before { box-sizing: border-box; }
.hf4-form [hidden] { display: none !important; }
.hf4-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.hf4-title { display: block; padding: 0; margin: 0 0 16px; font: 700 1.2rem/1.3 'Montserrat', sans-serif; color: var(--ms-black, #111); letter-spacing: -.01em; }

.hf4-progress { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.hf4-progress li { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 3px solid var(--ms-g200, #E4E4E4); font: 700 .78rem/1.2 'Montserrat', sans-serif; color: var(--ms-g500, #7A7A7A); transition: border-color .3s, color .3s; }
.hf4-progress li span { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .72rem; }
.hf4-progress li.is-current { color: var(--ms-red-ink, #C10013); border-color: var(--ms-red, #E90117); }
.hf4-progress li.is-current span { background: var(--ms-red, #E90117); border-color: var(--ms-red, #E90117); color: #fff; }
.hf4-progress li.is-done { color: var(--ms-black, #111); border-color: var(--ms-black, #111); }
.hf4-progress li.is-done span { background: var(--ms-black, #111); border-color: var(--ms-black, #111); color: #fff; }

.hf4-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hf4-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; background: #fff; border: 1px solid var(--ms-g200, #E4E4E4); border-radius: 4px; cursor: pointer; font: 600 .88rem/1.3 'Montserrat', sans-serif; color: var(--ms-black, #111); transition: border-color .25s, box-shadow .25s, background-color .25s; }
.hf4-card input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.hf4-card i { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; background: var(--ms-g100, #F2F2F2); color: var(--ms-black, #111); font-size: 1.25rem; transition: background-color .25s, color .25s; }
.hf4-card:hover { border-color: var(--ms-g300, #C9C9C9); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08); }
.hf4-card:has(input:checked) { border-color: var(--ms-red, #E90117); box-shadow: inset 0 0 0 1px var(--ms-red, #E90117); }
.hf4-card:has(input:checked) i { background: var(--ms-red, #E90117); color: #fff; }
.hf4-card:has(input:focus-visible) { outline: 3px solid var(--ms-red, #E90117); outline-offset: 2px; }
.hf4-error { margin: 10px 0 0 !important; font-size: .85rem !important; color: var(--ms-red-ink, #C10013) !important; font-weight: 600; }

.hf4-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hf4-wide { grid-column: 1 / -1; }
.hf4-fields .ms-field input, .hf4-fields .ms-field textarea { border-radius: 4px; }
.hf4-fields .ms-field textarea { min-height: 88px; }
.hf4-upload { position: relative; flex-direction: column; align-items: center; gap: 6px !important; padding: 18px 16px; background: var(--ms-g100, #F2F2F2); border: 1px dashed var(--ms-g300, #C9C9C9); border-radius: 4px; text-align: center; cursor: pointer; transition: border-color .25s; }
.hf4-upload:hover { border-color: var(--ms-black, #111); }
.hf4-upload i { font-size: 1.7rem; color: var(--ms-red, #E90117); }
.hf4-upload small { color: var(--ms-g700, #4A4A4A); font-weight: 400; font-size: .78rem; }
.hf4-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.hf4-upload:focus-within { outline: 3px solid var(--ms-red, #E90117); outline-offset: 2px; }
.hf4-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.hf4-thumbs:empty { display: none; }
.hf4-thumbs li { min-width: 0; display: grid; gap: 4px; font-size: .7rem; color: var(--ms-g700, #4A4A4A); }
.hf4-thumbs img, .hf4-thumbs i { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 1px solid var(--ms-g200, #E4E4E4); display: grid; place-items: center; background: var(--ms-g100, #F2F2F2); font-size: 1.8rem; color: var(--ms-red, #E90117); }
.hf4-thumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf4-form .ms-consent { margin-top: 16px; }

.hf4-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.hf4-actions .btn { position: static; width: auto; margin: 0; min-height: 48px; padding: 12px 20px; font-size: .88rem; line-height: 1.3; border-radius: 4px; }
.hf4-step[data-step="1"] .hf4-actions { justify-content: flex-end; }
.hf4-back { color: var(--ms-black, #111); background: #fff; border: 1px solid var(--ms-g300, #C9C9C9); }
.hf4-back:hover { border-color: var(--ms-black, #111); }
.hf4-status { margin: 4px 0 0 !important; padding: 16px 18px; border-left: 3px solid var(--ms-red, #E90117); border-radius: 4px; background: var(--ms-g100, #F2F2F2); font-size: .92rem !important; line-height: 1.6; color: var(--ms-black, #111) !important; }
.hf4-status:focus { outline: none; }

/* ---------- Stats head without the engineer paragraph (6fd2d023) ---------- */
.hv3-stats-head { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* ---------- Consult section (b60b5f21, 91700017) ---------- */
.hv4-consult { --hv4-body: 1rem; }
.hv4-consult-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.hv4-consult-head .section-subtitle { justify-content: center; }
.hv4-consult-head p { margin: 0; font-size: var(--hv4-body); color: var(--ms-g700); line-height: 1.7; }
.hv4-consult .hv3-offers { max-width: 1040px; margin: 0 auto; }
.hv4-consult .hv3-offer { grid-template-columns: 64px minmax(0, 1fr) 250px; }
.hv4-consult .hv3-offer-text p,
.hv4-consult .hv3-offer-text .hv3-offer-note,
.hv4-consult .hv3-offer-price small,
.hv4-consult .hv3-offer-price > span,
.hv4-consult .hv4-factors > p,
.hv4-consult .hv4-factor-grid li,
.hv4-consult .hv4-consult-note { font-size: var(--hv4-body) !important; line-height: 1.65; }
.hv4-consult .hv3-offer-price small, .hv4-consult .hv3-offer-price > span { color: var(--ms-g700); }

.hv4-factors.hv3-factors { max-width: 1040px; margin: 56px auto 0 !important; padding: 40px !important; background: var(--ms-g100) !important; border: 0 !important; border-radius: 4px !important; box-shadow: none !important; }
.hv4-factors h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--ms-black); }
.hv4-factors > p { margin: 0 0 28px; color: var(--ms-g700); max-width: 760px; }
.hv4-factor-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: hv4f; }
.hv4-factor-grid li { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; background: #fff; border: 1px solid var(--ms-g200); border-radius: 4px; color: var(--ms-black); transition: border-color .3s var(--ms-ease); }
.hv4-factor-grid li:hover { border-color: var(--ms-g300); }
.hv4-f-ico { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--ms-black); color: #fff; font-size: 1.3rem; transition: background-color .3s var(--ms-ease); }
.hv4-factor-grid li:hover .hv4-f-ico { background: var(--ms-red); }

.hv4-consult-foot { max-width: 760px; margin: 40px auto 0; display: grid; justify-items: center; gap: 24px; text-align: center; }
.hv4-consult-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--ms-g700); text-align: left; }
.hv4-consult-note i { color: var(--ms-red-ink); font-size: 1.2rem; margin-top: 3px; }
.hv4-consult-foot .btn { min-height: 52px; height: auto; }

/* ---------- Process timeline (87255331) ---------- */
.hv4-process { background: #fff; position: relative; }
.hv4-process-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.hv4-process-head p { margin: 0; font-size: 1.05rem; color: var(--ms-g700); }
.hv4-tl { --node: 64px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.hv4-tl::before, .hv4-tl::after { content: ''; position: absolute; top: calc(var(--node) / 2); left: 10%; right: 10%; height: 1px; background: var(--ms-g200); }
.hv4-tl::after { height: 2px; margin-top: -.5px; background: var(--ms-red); transform-origin: left center; transform: scaleX(0); transition: transform 2s var(--ms-ease) .2s; }
.hv4-tl.is-in::after { transform: none; }
.hv4-tl-step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.hv4-tl-node { display: grid; place-items: center; width: var(--node); height: var(--node); margin: 0 auto 24px; border-radius: 50%; background: #fff; border: 1px solid var(--ms-g200); color: var(--ms-black); font-size: 1.5rem; box-shadow: 0 0 0 8px #fff; transition: background-color .5s var(--ms-ease), border-color .5s var(--ms-ease), color .5s var(--ms-ease); transition-delay: calc(.2s + var(--i) * .4s); }
.hv4-tl.is-in .hv4-tl-node { border-color: var(--ms-red); color: var(--ms-red-ink); }
.hv4-tl-step:hover .hv4-tl-node { background: var(--ms-red); border-color: var(--ms-red); color: #fff; transition-delay: 0s; }
.hv4-tl-step h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--ms-black); }
.hv4-tl-step p { margin: 0 auto; max-width: 220px; font-size: .98rem; line-height: 1.6; color: var(--ms-g700); }

/* ---------- Coverage (84375893, 44b4c8d4, 0b5e5497) ---------- */
.hv3-coverage .cov-grid { grid-template-columns: minmax(0, 4.8fr) minmax(0, 7.2fr); }
.hv3-coverage .cov-map svg { width: min(100%, 526px); margin: 0 auto; } /* 30% smaller than the 752px v3 map at 1280 */
.hv3-coverage .hv3-map-trace { stroke-dasharray: 280 720; }
.hv3-coverage .hv3-map-trace.is-2 { display: none; }

@media (max-width: 1100px) {
  .hv4-tl { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 560px; margin: 0 auto; }
  .hv4-tl::before, .hv4-tl::after { top: 0; bottom: 0; left: calc(var(--node) / 2); right: auto; width: 1px; height: auto; }
  .hv4-tl::after { width: 2px; transform: scaleY(0); transform-origin: center top; }
  .hv4-tl.is-in::after { transform: none; }
  .hv4-tl-step { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 20px; text-align: left; padding: 0 0 28px; }
  .hv4-tl-node { grid-row: span 2; margin: 0; }
  .hv4-tl-step h3 { align-self: end; margin-top: 8px; }
  .hv4-tl-step p { margin: 0; max-width: none; }
  .hv4-factor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .hero.hero-v2 .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero.hero-v2 .hero-inquiry.hf4 { max-width: 100%; }
  .hv3-coverage .cov-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hf4-cards, .hf4-fields, .hv4-factor-grid { grid-template-columns: minmax(0, 1fr); }
  .hf4-progress li { font-size: 0; gap: 0; justify-content: center; }
  .hv4-consult .hv3-offer { grid-template-columns: 56px minmax(0, 1fr); }
  .hv4-factors.hv3-factors { padding: 24px !important; }
  .hv3-coverage .cov-map svg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hv4-tl::after { transform: none !important; transition: none !important; }
  .hv4-tl-node, .hv4-factor-grid li, .hf4-card, .hf4-progress li { transition: none !important; }
  .hv4-tl .hv4-tl-node { border-color: var(--ms-red); color: var(--ms-red-ink); }
}
