/* ==========================================================================
   Request a Quote page (get-quote.html) — prefix qt-
   ========================================================================== */

/* ---------- Hero ---------- */
.qt-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.qt-hero .page-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; }
.qt-hero .h1 { max-width: 17ch; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.qt-hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.qt-hero__points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .96rem; }
.qt-hero__points .icon { width: 20px; height: 20px; color: var(--green-600); }
.qt-hero__panel { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.qt-hero__stat { display: flex; align-items: center; gap: 14px; padding: 16px 20px; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.qt-hero__stat + .qt-hero__stat { border-top: 1px dashed var(--line); }
.qt-hero__stat strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 960px) {
  .qt-hero .page-hero__grid { grid-template-columns: 1fr; }
  .qt-hero__panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qt-hero__stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .qt-hero__stat + .qt-hero__stat { border-top: 0; border-left: 1px dashed var(--line); }
}
@media (max-width: 560px) {
  .qt-hero__panel { grid-template-columns: 1fr; }
  .qt-hero__stat { flex-direction: row; align-items: center; padding: 12px 16px; }
  .qt-hero__stat + .qt-hero__stat { border-left: 0; border-top: 1px dashed var(--line); }
  .qt-hero__stat strong { font-size: 1.1rem; }
}

/* ---------- Layout ---------- */
.qt-main { padding-top: clamp(40px, 5vw, 64px); }
.qt-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

/* ---------- Wizard card ---------- */
.qt-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-l); scroll-margin-top: calc(var(--header-h) + 16px); }
.qt-card__top { padding: 20px clamp(20px, 3.2vw, 36px) 0; background: var(--gray-50); border-bottom: 1px solid var(--line); border-radius: 20px 20px 0 0; }
.qt-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; }
.qt-card__meta .mono { color: var(--green-700); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }

/* Progress indicator */
.qt-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding-bottom: 16px; counter-reset: none; }
.qt-progress__item { position: relative; min-width: 0; }
.qt-progress__item + .qt-progress__item::before { content: ""; position: absolute; left: calc(-50% + 26px); right: calc(50% + 26px); top: 18px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.qt-progress__item.is-done + .qt-progress__item::before, .qt-progress__item.is-current::before { background: var(--green-500); }
.qt-progress__btn { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0 2px; text-align: center; border-radius: 10px; }
.qt-progress__btn:disabled { cursor: default; }
.qt-progress__num { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; color: var(--muted); font-family: var(--font-mono); font-size: .86rem; transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.qt-progress__num .icon { display: none; width: 18px; height: 18px; stroke-width: 2.6; }
.qt-progress__label { font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: var(--muted); line-height: 1.2; }
.qt-progress__item.is-current .qt-progress__num { border-color: var(--green-600); background: var(--green-600); color: #fff; box-shadow: 0 0 0 5px var(--green-tint); }
.qt-progress__item.is-current .qt-progress__label { color: var(--ink); }
.qt-progress__item.is-done .qt-progress__num { border-color: var(--green-600); background: var(--green-tint); color: var(--green-700); }
.qt-progress__item.is-done .qt-progress__num > span { display: none; }
.qt-progress__item.is-done .qt-progress__num .icon { display: block; }
.qt-progress__item.is-done .qt-progress__label { color: var(--green-700); }
.qt-progress__btn:not(:disabled):hover .qt-progress__label { color: var(--green-700); }
.qt-progress__bar { position: relative; height: 4px; margin: 0 calc(clamp(20px, 3.2vw, 36px) * -1); background: var(--line); overflow: hidden; }
.qt-progress__bar span { position: absolute; inset: 0; background: var(--green-600); transform: scaleX(.25); transform-origin: 0 50%; transition: transform .45s var(--ease); }

/* Hide wizard-only UI until quote.js is ready (no-JS → one long form) */
.qt-card:not(.is-ready) .qt-card__meta .mono,
.qt-card:not(.is-ready) .qt-progress,
.qt-card:not(.is-ready) .qt-progress__bar,
.qt-card:not(.is-ready) [data-qt-next],
.qt-card:not(.is-ready) [data-qt-back],
.qt-card:not(.is-ready) .qt-review,
.qt-card:not(.is-ready) .qt-review__edit,
.qt-card:not(.is-ready) .qt-step__kicker { display: none !important; }
.qt-card:not(.is-ready) .qt-step + .qt-step { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Form + steps */
.qt-form { padding: clamp(22px, 3.2vw, 36px); }
.qt-form [hidden] { display: none !important; }
.qt-step:focus-within { outline: none; }
.qt-step__head { max-width: 62ch; }
.qt-step__kicker { display: block; color: var(--green-600); font-size: .76rem; letter-spacing: .12em; }
.qt-step__title { margin-top: 8px; outline: none; scroll-margin-top: calc(var(--header-h) + 24px); }
.qt-step__title:focus-visible { outline: 3px solid var(--green-500); outline-offset: 4px; border-radius: 4px; }
.qt-step__lead { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.qt-step__body { display: grid; gap: 24px; margin-top: 26px; }
.qt-step > .qt-fieldset { margin-top: 24px; }
.qt-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qt-fieldset > legend { padding: 0; margin-bottom: 10px; }
.qt-fieldset .field__error { margin-top: 8px; }

.qt-preselect { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border-radius: var(--radius); background: var(--green-tint); color: var(--green-700); font-size: .9rem; font-weight: 600; line-height: 1.45; }
.qt-preselect .icon { width: 18px; height: 18px; }

/* Selectable cards (radio) */
.qt-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qt-prop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.qt-choice { position: relative; display: block; cursor: pointer; }
.qt-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.qt-choice__box { position: relative; display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 44px 14px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--ease); }
.qt-choice__box--alt { border-style: dashed; background: var(--gray-50); }
.qt-choice__text { min-width: 0; }
.qt-choice__text strong, .qt-choice__box > strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); line-height: 1.25; }
.qt-choice__text small { display: block; margin-top: 3px; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.qt-choice__tick { position: absolute; right: 14px; top: 50%; display: grid; place-items: center; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; color: #fff; transition: background .2s, border-color .2s; }
.qt-choice__tick .icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transition: opacity .2s; }
.qt-choice:hover .qt-choice__box { border-color: var(--green-500); }
.qt-choice input:checked + .qt-choice__box { border-color: var(--green-600); background: #f3fbf6; box-shadow: 0 0 0 3px rgba(14, 140, 69, .12); }
.qt-choice input:checked + .qt-choice__box .qt-choice__tick { background: var(--green-600); border-color: var(--green-600); }
.qt-choice input:checked + .qt-choice__box .qt-choice__tick .icon { opacity: 1; }
.qt-choice input:checked + .qt-choice__box .icon-badge { background: var(--green-600); color: #fff; }
.qt-choice input:focus-visible + .qt-choice__box { outline: 3px solid var(--green-500); outline-offset: 2px; }
.qt-choice--stack .qt-choice__box { flex-direction: column; justify-content: center; gap: 10px; padding: 18px 10px 16px; text-align: center; }
.qt-choice--stack .qt-choice__box > strong { font-size: .94rem; }
.qt-choice--stack .qt-choice__tick { top: 10px; right: 10px; margin-top: 0; width: 20px; height: 20px; }
.field.is-invalid .qt-choice__box { border-color: #e29b9b; }
.field.is-invalid .opt span { border-color: #e29b9b; }

/* Unit stepper */
.qt-stepper { display: inline-flex; align-items: stretch; width: max-content; max-width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.qt-stepper:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(14, 140, 69, .14); }
.qt-stepper button { display: grid; place-items: center; width: 52px; color: var(--green-600); background: var(--gray-50); transition: background .2s; }
.qt-stepper button:hover { background: var(--green-tint); }
.qt-stepper button:focus-visible { outline-offset: -3px; }
.qt-stepper .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.qt-stepper .input { width: 84px; min-height: 50px; border: 0; border-radius: 0; text-align: center; font-family: var(--font-mono); font-size: 1.05rem; -moz-appearance: textfield; }
.qt-stepper .input:focus { box-shadow: none; }
.qt-stepper .input::-webkit-outer-spin-button, .qt-stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field.is-invalid .qt-stepper { border-color: #d64545; }

/* Notes */
.qt-alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--green-tint); color: var(--green-700); font-size: .9rem; line-height: 1.5; }
.qt-alert .icon { width: 18px; height: 18px; margin-top: 2px; }
.qt-alert strong { color: var(--ink); }
.qt-alert a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.qt-counter { align-self: flex-end; font-variant-numeric: tabular-nums; }
.qt-tip { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px dashed var(--green-500); border-radius: 12px; background: var(--gray-50); font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
.qt-tip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green-tint); color: var(--green-600); flex: none; }
.qt-tip__icon .icon { width: 22px; height: 22px; }
.qt-tip strong { color: var(--ink); }
.qt-tip a { color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Review */
.qt-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qt-review__group { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--gray-50); }
.qt-review__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.qt-review__head h3 { font-size: 1.02rem; }
.qt-review__edit { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: .84rem; font-weight: 700; color: var(--green-700); transition: background .2s; }
.qt-review__edit:hover { background: var(--green-tint); }
.qt-review__edit .icon { width: 15px; height: 15px; }
.qt-review__edit--inline { margin-top: 8px; margin-left: -10px; }
.qt-review dl { margin: 0; }
.qt-review dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.qt-review dl > div:last-child { border-bottom: 0; }
.qt-review dt { color: var(--muted); }
.qt-review dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.qt-review dd.is-empty { color: var(--muted); font-weight: 400; }
.qt-promise { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 16px; border-radius: 12px; background: var(--ice); font-size: .9rem; font-weight: 600; color: var(--ink); }
.qt-promise li { display: inline-flex; align-items: center; gap: 8px; }
.qt-promise .icon { width: 18px; height: 18px; color: var(--green-600); }

.qt-check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; font-weight: 400 !important; color: var(--ink-2) !important; line-height: 1.5; cursor: pointer; }
.qt-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-600); cursor: pointer; }
.qt-check a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.qt-consent.is-invalid .qt-check input { outline: 2px solid #d64545; outline-offset: 2px; }

/* Wizard nav */
.qt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.qt-nav [hidden] { display: none !important; }
.qt-nav__next { margin-left: auto; }
.qt-nav [aria-busy="true"] { opacity: .75; cursor: progress; }

/* ---------- Aside ---------- */
.qt-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.qt-aside .card { padding: 24px; }
.qt-aside h2 { margin-bottom: 14px; }
.qt-next__list { display: grid; gap: 14px; }
.qt-next__list li { display: flex; gap: 14px; align-items: flex-start; }
.qt-next__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--green-tint); color: var(--green-700); font-size: .78rem; }
.qt-next__list strong { display: block; font-family: var(--font-head); color: var(--ink); line-height: 1.3; }
.qt-next__list span:not(.qt-next__num) { display: block; }
.qt-next__list strong + span { margin-top: 3px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.qt-offer { position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius-l); background: var(--navy-900); color: var(--muted-dark); isolation: isolate; }
.qt-offer::after { content: ""; position: absolute; right: -30%; top: -50%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(43, 214, 123, .2), transparent 65%); z-index: -1; }
.qt-offer__big { margin: 14px 0 8px; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; line-height: 1.2; color: #fff; }
.qt-offer p:last-child { font-size: .92rem; }
.qt-offer a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.qt-trust .check-list { font-size: .92rem; gap: 10px; }
.qt-talk { display: grid; gap: 14px; }
.qt-talk h2 { margin-bottom: 0; }
.qt-talk .call-cta { padding: 12px 14px; border-radius: 12px; background: var(--gray-50); }

@media (max-width: 1100px) {
  .qt-layout { grid-template-columns: 1fr; }
  .qt-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .qt-prop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qt-review { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .qt-svc-grid { grid-template-columns: 1fr; }
  .qt-aside { grid-template-columns: 1fr; }
  .qt-card { border-radius: 16px; }
  .qt-card__top { border-radius: 16px 16px 0 0; }
  .qt-progress__label { font-size: .74rem; }
  .qt-nav { position: sticky; bottom: 68px; z-index: 5; margin-inline: calc(clamp(22px, 3.2vw, 36px) * -1); margin-bottom: calc(clamp(22px, 3.2vw, 36px) * -1); padding: 12px clamp(22px, 3.2vw, 36px); background: rgba(255, 255, 255, .97); border-radius: 0 0 16px 16px; backdrop-filter: blur(6px); }
  .qt-nav .btn { min-height: 50px; }
  .qt-nav__next { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .qt-progress__label { font-size: .68rem; letter-spacing: -.01em; }
  .qt-progress__num { width: 32px; height: 32px; }
  .qt-progress__item + .qt-progress__item::before { top: 16px; left: calc(-50% + 22px); right: calc(50% + 22px); }
  .qt-review dl > div { grid-template-columns: 1fr; gap: 2px; }
  .qt-nav .btn--outline { padding: 0 14px; }
}

/* ---------- What affects your quote (navy) ---------- */
.qt-factors { overflow: hidden; isolation: isolate; }
.qt-factors::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.qt-factor { display: flex; flex-direction: column; }
.qt-factor h3 { margin-top: 18px; }
.qt-factor p { margin-top: 8px; font-size: .94rem; }
.qt-factor a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.qt-factor a:hover { color: #fff; }

/* ---------- FAQ ---------- */
.qt-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.qt-faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.qt-faq__intro .lead { margin-top: 16px; }
.qt-faq__links { display: grid; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.qt-faq .acc-panel__inner a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .qt-faq__grid { grid-template-columns: 1fr; } .qt-faq__intro { position: static; } }

/* ---------- Closing CTA ---------- */
.qt-final__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; padding: clamp(22px, 3.4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.qt-final__copy p { margin-top: 6px; }
@media (max-width: 960px) { .qt-final__card { grid-template-columns: auto minmax(0, 1fr); } .qt-final__card .btn-row { grid-column: 1 / -1; } }
@media (max-width: 520px) { .qt-final__card { grid-template-columns: 1fr; } .qt-final__card .btn { flex: 1 1 100%; } }
