/* Solar load assessment page. Shared tokens, header and footer come from pages.css and landing-header.css. */
:root { --amber: #FDB022; --orange-dark: #D94810; }
.assess-page { background: var(--mist); padding: 128px 0 72px; }
.assess-page .intro { max-width: 620px; margin-bottom: 26px; }
.assess-page h1 { font-family: var(--display); color: var(--navy); font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.15; margin: 0; }
.assess-page h1 .accent { color: var(--orange); }
.assess-page .intro p { color: var(--muted); margin: 10px 0 0; }
.la h3 { font-family: var(--display); color: var(--navy); margin: 0; }
.la p { margin: 0; }
.la ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.la-step.on { animation: rise .35s cubic-bezier(.2,.7,.2,1); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 13px; padding: 14px 22px; border-radius: 4px; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-wa { background: #25D366; color: var(--white); }
.btn-wa:hover { background: #1DA851; }
.btn-outline { background: var(--white); color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn .ico { font-size: 16px; }
.btn .ico.wa { font-size: 24px; }
.la .btn:focus-visible, .la input:focus-visible, .la select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.tag { display: inline-block; background: var(--orange); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .08em; padding: 6px 14px; border-radius: 3px; }

/* Assessment panel: its steps are tabs */
.la { color: var(--ink); background: var(--white); border-radius: 6px; box-shadow: 0 18px 50px rgba(11,42,64,.12); scroll-margin-top: 84px; }
.la-head { background: var(--navy); color: var(--white); padding: 6px 26px 0; border-radius: 6px 6px 0 0; }
.la-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.la-tabs button { width: 100%; height: 100%; text-align: left; background: transparent; border: 0; border-bottom: 3px solid rgba(255,255,255,.16); padding: 14px 2px 12px; font-family: var(--display); font-size: 12px; font-weight: 600; color: #8FA3B4; cursor: pointer; transition: color .2s, border-color .2s; }
.la-tabs button:hover { color: var(--white); }
.la-tabs button.done { color: #D5DEE6; border-bottom-color: rgba(242,101,34,.55); }
.la-tabs button[aria-selected="true"] { color: var(--white); border-bottom-color: var(--orange); }
.la-tabs button:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.la-tabs .n { display: inline-block; margin-right: 4px; }
.la-body { padding: 26px; }
.la-step { display: none; }
.la-step.on { display: block; }
.la-step h3 { font-size: 20px; font-weight: 800; }
.la-step > p.hint { color: var(--muted); margin: 6px 0 20px; font-size: 15px; }
/* sticks to the bottom of the screen while the panel is in view, so Next is always reachable on a phone */
.la-foot { position: -webkit-sticky; position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 26px; border-top: 1px solid var(--line); background: var(--mist); flex-wrap: wrap; border-radius: 0 0 6px 6px; }
.la-live { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--navy); }
.la-live b { color: var(--orange); font-weight: 800; }
.la-nav { display: flex; gap: 10px; margin-left: auto; }
/* lives in the footer, beside the Next button, so it is always in view on a phone */
.la-error { flex: 0 0 100%; color: #B42318; font-size: 14px; font-weight: 600; background: #FEF3F2; border: 1px solid #FDA29B; border-radius: 4px; padding: 9px 12px; }
.la-error:empty { display: none; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
/* longhands, not inset: Safari before iOS 14.1 ignores inset and the radio shrank to a dot */
.choice input { position: absolute; opacity: 0; top: 0; left: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label, .choice .face { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--white); transition: border-color .15s, background .15s; }
.choice .ico { font-size: 28px; color: var(--orange); }
.choice strong { display: block; font-family: var(--display); font-size: 15px; color: var(--navy); }
.choice strong + span { font-size: 13px; color: var(--muted); }
.choice input:checked + .face { border-color: var(--orange); background: #FFF4EE; }
.choice input:focus-visible + .face { outline: 3px solid var(--amber); outline-offset: 2px; }

.appl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.appl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 4px; }
.appl.has { border-color: var(--orange); background: #FFF4EE; }
.appl .name { font-weight: 700; font-size: 14px; color: var(--navy); }
.appl .watts { font-size: 12px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 30px; height: 30px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-weight: 800; font-size: 16px; line-height: 1; }
.stepper button:hover { border-color: var(--orange); color: var(--orange); }
.stepper output { width: 26px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 14px; }
.custom-add { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); align-items: end; }

.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--navy); }
.field input, .field select { width: 100%; padding: 12px 12px; border: 1.5px solid var(--line); border-radius: 4px; font: inherit; color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus { border-color: var(--orange); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-grid .full { grid-column: 1 / -1; }

.hours { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.hours th { font-family: var(--display); font-size: 12px; text-align: left; color: var(--muted); padding: 0 8px 8px 0; font-weight: 600; }
.hours td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hours td:first-child { font-weight: 700; color: var(--navy); }
.hours input { width: 84px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 4px; font: inherit; }

.result-pkg { background: var(--navy); color: var(--white); padding: 22px; border-radius: 4px; }
.result-pkg h3 { color: var(--white); font-size: 26px; margin-top: 12px; }
.result-pkg .price { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 5vw, 32px); line-height: 1.15; color: var(--orange); margin-top: 2px; }
.result-pkg p { color: #D5DEE6; font-size: 14px; margin-top: 8px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.metric { border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.metric span { display: block; font-size: 12px; color: var(--muted); }
.metric b { font-family: var(--display); font-size: 18px; color: var(--navy); font-weight: 800; }
.result-list { font-size: 14px; color: var(--muted); columns: 2; column-gap: 24px; margin-bottom: 14px; }
.result-list li { break-inside: avoid; padding: 2px 0; }
.result-note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--amber); padding-left: 12px; }
.result-next { margin-top: 14px; padding: 12px 14px; background: #FFF4EE; border: 1px solid #F9C9B3; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--navy); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

@media (max-width: 640px) {
  .assess-page { padding: 104px 0 48px; }
  /* phones: only the open tab shows its name, the others shrink to their number */
  .la-head { padding: 4px 14px 0; }
  .la-tabs { display: flex; gap: 4px; }
  .la-tabs button { flex: 0 0 34px; text-align: center; }
  .la-tabs button[aria-selected="true"] { flex: 1 1 auto; text-align: left; padding-left: 6px; }
  .la-tabs button:not([aria-selected="true"]) .t { display: none; }
  .la-body { padding: 22px 16px; }
  .choice-grid, .appl-list, .field-grid { grid-template-columns: 1fr; }
  .custom-add { grid-template-columns: 1fr 1fr; }
  .custom-add .btn { grid-column: 1 / -1; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .result-list { columns: 1; }
  /* iPhones zoom the page into any input under 16px */
  .hours input { font-size: 16px; }
  .la-foot { padding: 14px 16px; }
  .la-nav { width: 100%; }
  .la-nav .btn { flex: 0 1 auto; min-width: 0; padding-inline: 10px; gap: 6px; white-space: normal; }
  .la-nav #laNext { flex-grow: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .la-step.on { animation: none; }
}
