/* Shared layout for the short quote and optional energy scan. */
.quote-page [hidden] { display: none !important; }
.quote-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.quote-hero { padding-block: 28px 22px; text-align: center; }
.quote-hero h1 {
  max-width: 21ch;
  margin: 0 auto;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.02;
  text-wrap: balance;
}
.quote-hero .lead { max-width: 54ch; margin: 16px auto 0; font-size: 17px; line-height: 1.5; }
.quote-page .scan-card { padding: clamp(20px, 3vw, 36px); }
.quote-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.quote-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 14px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.quote-progress li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.quote-progress li[aria-current="step"] { background: var(--green); color: white; }
.quote-progress .is-done { background: rgba(182, 215, 42, .2); color: var(--green); }
.quote-page .scan-step h2, .quote-preview h2 { margin: 0 0 14px; font-size: clamp(28px, 3.5vw, 36px); line-height: 1.08; }
.quote-explanation { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.quote-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote-product { position: relative; min-width: 0; }
.quote-product input, .quote-page .scan-option input[type="radio"], .quote-page .scan-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  top: 50%;
  left: 8px;
}
.quote-product label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  height: 100%;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.quote-product label > svg { width: 28px; height: 28px; flex: 0 0 28px; color: var(--green-3); }
.quote-product strong { display: block; font-size: 16px; }
.quote-product small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.quote-check {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  height: 20px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: transparent;
}
.quote-product input:checked + label { border-color: var(--green-3); background: #edf5e4; }
.quote-product input:checked + label .quote-check { background: var(--green); color: white; border-color: var(--green); }
.quote-product label:hover { border-color: var(--green-3); }
.quote-product-advice { grid-column: 1 / -1; }
.quote-product-advice label { min-height: 76px; }
.quote-page .scan-options, .quote-page .scan-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote-page .scan-option label { padding: 16px 12px; min-height: 100px; gap: 8px; }
.quote-page .scan-option svg { width: 30px; height: 30px; }
.quote-page .scan-nav { margin-top: 22px; flex-wrap: wrap; }
.quote-first-nav { justify-content: flex-end; }
.quote-reassurance { color: var(--muted); font-size: 12px; }
.quote-page .scan-nav-next, .quote-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  height: auto;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  background: #ec7e00;
  color: #fff;
  font: 700 15px "IBM Plex Sans", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(236, 126, 0, .16);
}
.quote-page .scan-nav-next:hover, .quote-submit:hover { background: #c96700; color: white; }
.quote-secondary { display: inline-block; padding-block: 12px; margin-top: 8px; color: var(--green); font-size: 14px; text-underline-offset: 4px; }
.quote-selection { margin-block: 18px; padding: 18px; border-left: 3px solid var(--green-2); border-radius: 0 10px 10px 0; background: var(--surface-2); }
.quote-selection p { margin: 0 0 8px; white-space: pre-line; line-height: 1.5; }
.quote-selection .eyebrow { font-size: 11px; }
.quote-edit { padding: 6px 0; background: none; border: 0; color: var(--green); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quote-page .field { margin: 0; }
.quote-page .field-grid { margin-top: 20px; gap: 16px; }
.quote-page .field label span { font-weight: 400; color: var(--muted); }
.quote-page .field textarea { min-height: 90px; }
.quote-page .form-note { line-height: 1.5; }
.quote-page .quote-error { color: #a02216; font-size: 14px; line-height: 1.45; margin: 10px 0 0; }
.quote-page input[aria-invalid="true"] { border-color: #a02216; }
.quote-unknown { display: flex; align-items: center; gap: 10px; padding-block: 16px; min-height: 48px; cursor: pointer; }
.quote-unknown input { width: 20px; height: 20px; accent-color: var(--green); }
.quote-preview > p { color: var(--muted); }
.quote-preview dl { margin-block: 24px; }
.quote-preview dt { font-weight: 700; font-size: 14px; margin-top: 18px; }
.quote-preview dd { margin: 5px 0 0; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.quote-page a:focus-visible, .quote-page button:focus-visible, .quote-page h2:focus-visible,
.quote-product input:focus-visible + label, .quote-page .scan-option input:focus-visible + label {
  outline: 3px solid var(--green-3);
  outline-offset: 3px;
}
.quote-page h2 { scroll-margin-top: 100px; }
@media (max-width: 560px) {
  .quote-hero { padding-block: 20px 18px; }
  .quote-hero .lead { font-size: 15px; margin-top: 10px; }
  .quote-products { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .quote-product label, .quote-product-advice label { min-height: 62px; padding: 10px 12px; gap: 10px; }
  .quote-product small { margin-top: 2px; font-size: 12px; }
  .quote-page .field-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-first-nav .scan-nav-next, .quote-submit { width: 100%; }
  .quote-reassurance { width: 100%; text-align: center; order: 1; }
  .quote-progress { gap: 6px; }
  .quote-progress li { font-size: 12px; padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-page *, .quote-page *::before, .quote-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
