/* DRS Expo – guided estimator. Mobile-first, one question per screen. */
:root {
  --ink: #12263a;
  --muted: #5d6f82;
  --line: #dfe6ee;
  --bg: #f3f7fb;
  --card: #ffffff;
  --blue: #0b5aa6;
  --blue-d: #084680;
  --blue-soft: #e8f1fb;
  --green: #2f9e44;
  --green-soft: #e8f6ec;
  --amber: #f59f00;
  --danger: #c92a2a;
  --r: 14px;
}

body { background: var(--bg); color: var(--ink); margin: 0; font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Bengali", "Nirmala UI", "Kalpurush", Roboto, "Helvetica Neue", Arial, sans-serif; }
.container { max-width: 100%; padding: 0; }
main.pb-3 { padding-bottom: 0 !important; }

.wz { max-width: 560px; margin: 0 auto; padding: 12px 16px 24px; min-height: 100vh; display: flex; flex-direction: column; }
.wz [hidden] { display: none !important; }

/* header */
.wz-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 10px; }
.wz-head img { height: 34px; width: auto; }
.wz-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; border-left: 1px solid var(--line); padding-left: 12px; }
.wz-head-text strong { font-size: .95rem; }
.wz-head-text span { font-size: .75rem; color: var(--muted); }

/* progress */
.wz-nav { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.wz-back { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: .95rem; padding: 4px 8px 4px 0; cursor: pointer; }
.wz-count { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.wz-progress { height: 6px; background: #dbe5ef; border-radius: 99px; overflow: hidden; margin: 2px 0 14px; }
.wz-progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 99px; transition: width .35s ease; }

.wz-alert { background: #fff4e5; border: 1px solid #ffd8a8; color: #8a4b00; padding: 8px 12px; border-radius: 10px; font-size: .85rem; margin-bottom: 10px; }

/* stage + step */
.wz-stage { flex: 1; }
.wz-step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px 18px; box-shadow: 0 6px 24px rgba(18, 38, 58, .06); animation: wzIn .28s ease both; }
@keyframes wzIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.wz.back .wz-step { animation-name: wzInBack; }
@keyframes wzInBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wz-step, .wz.back .wz-step { animation: none; } .wz-progress > div { transition: none; } }

.wz-q { font-size: 1.4rem; line-height: 1.25; font-weight: 750; margin: 0 0 4px; letter-spacing: -.01em; }
.wz-q.center, .wz-hint.center { text-align: center; }
.wz-hint { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.wz-sub { font-size: .82rem; font-weight: 650; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .04em; display: flex; gap: 6px; align-items: baseline; }
.wz-sub b { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.muted { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
small.muted { display: block; margin-top: 8px; font-size: .75rem; }

/* big input */
.wz-big { display: flex; align-items: baseline; gap: 8px; border: 2px solid var(--line); border-radius: var(--r); padding: 10px 16px; background: #fbfdff; transition: border-color .15s, box-shadow .15s; }
.wz-big:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 90, 166, .12); }
.wz-big input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 2.2rem; font-weight: 750; color: var(--ink); width: 100%; padding: 0; -moz-appearance: textfield; }
.wz-big input::-webkit-outer-spin-button, .wz-big input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wz-big input::placeholder { color: #b8c4d1; }
.wz-big span { color: var(--muted); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.wz-big .pre { font-size: 1.6rem; color: var(--ink); }

/* chips */
.wz-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0 4px; }
.wz-chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 2px; font-size: .85rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.wz-chips button:hover { border-color: var(--blue); }
.wz-chips button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.wz-link { background: none; border: 0; padding: 8px 0; color: var(--blue); font-size: .85rem; font-weight: 600; cursor: pointer; text-align: left; }
.wz-dims { display: flex; align-items: flex-end; gap: 8px; margin: 2px 0 4px; }
.wz-dims label { flex: 1; display: flex; flex-direction: column; font-size: .75rem; color: var(--muted); font-weight: 600; gap: 4px; }
.wz-dims input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 1rem; width: 100%; }
.wz-dims i { padding-bottom: 10px; font-style: normal; color: var(--muted); }

/* segmented choice */
.wz-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wz-seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 6px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 1px; color: var(--ink); }
.wz-seg button b { font-size: .88rem; }
.wz-seg button small { font-size: .72rem; color: var(--muted); }
.wz-seg button.on { border-color: var(--blue); background: var(--blue-soft); }
.wz-seg button.on b { color: var(--blue-d); }
.wz-seg.tight button { padding: 8px 4px; }

/* live line + CTA */
.wz-live { margin: 14px 0 12px; background: var(--green-soft); color: #1e6b30; border-radius: 10px; padding: 9px 12px; font-size: .88rem; font-weight: 600; min-height: 20px; }
.wz-live.idle { background: #f1f5f9; color: var(--muted); font-weight: 500; }
.wz-next { width: 100%; border: 0; border-radius: 14px; padding: 14px 16px; font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--blue); cursor: pointer; transition: transform .08s, background .15s; }
.wz-next:hover:not(:disabled) { background: var(--blue-d); }
.wz-next:active:not(:disabled) { transform: scale(.985); }
.wz-next:disabled { background: #c5d1de; cursor: not-allowed; }
.wz-next.ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); margin-top: 14px; }
.wz button:focus-visible, .wz input:focus-visible, .wz select:focus-visible, .wz summary:focus-visible { outline: 3px solid rgba(11, 90, 166, .35); outline-offset: 2px; }

/* row + stepper */
.wz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.wz-row strong { display: block; font-size: .92rem; }
.wz-row small { color: var(--muted); font-size: .75rem; }
.wz-stepper { display: inline-flex; align-items: center; gap: 4px; }
.wz-stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--blue); font-weight: 700; }
.wz-stepper button:hover { border-color: var(--blue); }
.wz-stepper output { min-width: 34px; text-align: center; font-weight: 750; font-size: 1.1rem; }
.wz-stepper em { font-style: normal; color: var(--muted); font-size: .8rem; margin: 0 6px 0 0; }
.wz-stepper.sm button { width: 32px; height: 32px; font-size: 1.1rem; }
.wz-stepper.sm output { min-width: 26px; font-size: 1rem; }

/* choice cards */
.wz-cards { display: grid; gap: 10px; }
.wz-cards.two { grid-template-columns: 1fr 1fr; }
.wz-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 14px; cursor: pointer; transition: border-color .15s, transform .08s, background .15s; color: var(--ink); }
.wz-card:hover { border-color: var(--blue); background: var(--blue-soft); }
.wz-card:active { transform: scale(.985); }
.wz-card.on { border-color: var(--blue); background: var(--blue-soft); }
.wz-card-ic { font-size: 1.6rem; line-height: 1; }
.wz-card-t { font-weight: 700; font-size: 1rem; }
.wz-card small { color: var(--muted); font-size: .78rem; }
#goalCards .wz-card { flex-direction: row; align-items: center; gap: 12px; }

/* appliances */
.wz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
.wz-app { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; }
.wz-app.has { border-color: var(--green); background: #f6fcf7; }
.wz-app-ic { font-size: 1.4rem; width: 32px; text-align: center; }
.wz-app-main { flex: 1; min-width: 0; }
.wz-app-main b { display: block; font-size: .92rem; }
.wz-app-main small { color: var(--muted); font-size: .74rem; }
.wz-edit { background: none; border: 0; color: var(--blue); font-size: .74rem; font-weight: 600; cursor: pointer; padding: 0 0 0 4px; text-decoration: underline; }
.wz-app-edit { display: flex; gap: 8px; margin-top: 6px; }
.wz-app-edit label { font-size: .72rem; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.wz-app-edit input { border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; font-size: .9rem; width: 100%; }

/* result */
.wz-recap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wz-recap button { border: 1px solid var(--line); background: #f8fafc; border-radius: 99px; padding: 4px 10px; font-size: .76rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.wz-recap button:hover { border-color: var(--blue); color: var(--blue); }
.wz-hero { background: linear-gradient(135deg, var(--blue) 0%, #0e7bb8 60%, #2f9e44 140%); color: #fff; border-radius: 16px; padding: 16px 18px; }
.wz-hero-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-weight: 700; }
.wz-hero h1 { font-size: 1.25rem; margin: 4px 0 8px; font-weight: 750; line-height: 1.25; }
.wz-price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.wz-price-note { font-size: .74rem; opacity: .85; margin-top: 2px; }
.wz-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.wz-tiles > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 1px; }
.wz-tiles b { font-size: 1.02rem; font-weight: 750; word-break: break-word; }
.wz-tiles small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.wz-tiles em { font-style: normal; font-size: .72rem; color: var(--green); font-weight: 600; }
.wz-facts { font-size: .84rem; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }

.wz-acc { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.wz-acc summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: .93rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.wz-acc summary::-webkit-details-marker { display: none; }
.wz-acc summary::after { content: "+"; font-size: 1.2rem; color: var(--blue); font-weight: 700; }
.wz-acc[open] summary::after { content: "\2212"; }
.wz-acc-body { padding: 0 14px 14px; }
.wz-emi-out { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; background: var(--green-soft); border-radius: 10px; padding: 10px 12px; }
.wz-emi-out small { display: block; color: #2b6b3a; font-size: .72rem; }
.wz-emi-out b { font-size: 1.4rem; color: #1e6b30; font-weight: 800; }
.wz-emi-out div:last-child { text-align: right; font-weight: 700; }
input[type=range] { width: 100%; accent-color: var(--blue); }

.wz-flow { display: flex; align-items: stretch; justify-content: space-between; gap: 4px; }
.wz-flow .node { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 2px; font-size: .72rem; line-height: 1.25; }
.wz-flow .node span { display: block; font-size: 1.4rem; }
.wz-flow .node b { display: block; font-size: .78rem; }
.wz-flow .arr { align-self: center; color: var(--blue); font-weight: 700; }

/* form */
.wz-field { display: block; margin-bottom: 12px; }
.wz-field > span { display: block; font-size: .8rem; font-weight: 650; margin-bottom: 4px; color: var(--muted); }
.wz-field > span i { color: var(--danger); font-style: normal; }
.wz-field > span em { font-style: normal; font-weight: 400; }
.wz-field input, .wz-field select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 12px; font-size: 1rem; background: #fff; color: var(--ink); }
.wz-field input:focus, .wz-field select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(11, 90, 166, .12); }
.wz-field.bad input, .wz-field.bad select { border-color: var(--danger); }
.wz-field .err { color: var(--danger); font-size: .75rem; margin-top: 3px; display: block; }

/* done */
.wz-done-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.8rem; display: grid; place-items: center; margin: 4px auto 10px; }
.wz-das { display: grid; gap: 8px; max-height: 38vh; overflow-y: auto; }
.wz-das .da { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.wz-das .da b { font-size: .95rem; }
.wz-das .da-p { color: var(--muted); font-size: .85rem; }
.wz-das .da-call { align-self: flex-start; margin-top: 4px; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 99px; }
.wz-das .empty { text-align: center; color: var(--muted); font-size: .88rem; padding: 10px; }

.wz-foot { text-align: center; color: var(--muted); font-size: .7rem; margin-top: 16px; }

/* wider screens (tablet / kiosk): a little more breathing room */
@media (min-width: 768px) {
  .wz { padding-top: 24px; }
  .wz-q { font-size: 1.6rem; }
  .wz-step { padding: 26px 26px 22px; }
}
@media (max-width: 380px) {
  .wz-cards.two { grid-template-columns: 1fr; }
  .wz-seg { gap: 6px; }
}

/* ───────── language switch ───────── */
.wz-lang { display: inline-flex; border: 1.5px solid var(--blue); border-radius: 99px; overflow: hidden; flex-shrink: 0; }
.wz-lang button { border: 0; background: #fff; color: var(--blue); font-weight: 700; font-size: .82rem; padding: 6px 12px; cursor: pointer; }
.wz-lang button.on { background: var(--blue); color: #fff; }

/* ───────── optional details (kept out of the way) ───────── */
.wz-opt { margin-top: 12px; }
.wz-opt > summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .85rem; list-style: none; padding: 6px 0; }
.wz-opt > summary::-webkit-details-marker { display: none; }
.wz-opt > summary::before { content: "+ "; }
.wz-opt[open] > summary::before { content: "\2212  "; }
.wz-need { margin: 12px 0; background: #f1f5f9; color: var(--muted); border-radius: 10px; padding: 9px 12px; font-size: .85rem; }

/* ───────── RESULTS ARE LOUD, INPUTS ARE QUIET ─────────
   Everything that is an answer (live bar, hero, tiles, EMI) is filled with colour and large type.
   Everything that is a question stays white / outlined. */
.wz-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: linear-gradient(100deg, var(--blue-d), var(--blue) 55%, #1f8f55); color: #fff; box-shadow: 0 -8px 24px rgba(8, 70, 128, .35); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); animation: barUp .3s ease both; }
@keyframes barUp { from { transform: translateY(100%); } to { transform: none; } }
.wz-bar-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz-bar small { display: block; font-size: .72rem; opacity: .85; text-transform: uppercase; letter-spacing: .05em; font-weight: 650; min-height: 1em; }
.wz-bar b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.wz-bar .aux { text-align: right; }
.wz-bar .aux b { font-size: 1rem; font-weight: 700; background: rgba(255, 255, 255, .18); border-radius: 99px; padding: 4px 12px; display: inline-block; }
body.has-bar .wz { padding-bottom: 96px; }

.wz-result { background: transparent; border: 0; box-shadow: none; padding: 0; }
.wz-hero { padding: 22px 20px; box-shadow: 0 10px 28px rgba(11, 90, 166, .35); }
.wz-hero h1 { font-size: 1.3rem; }
.wz-price { font-size: 2.6rem; }
.wz-tiles > div { border: 0; padding: 12px 8px; }
.wz-tiles .t-solar { background: #fff3d6; } .wz-tiles .t-solar b { color: #8a5a00; }
.wz-tiles .t-batt  { background: var(--green-soft); } .wz-tiles .t-batt b { color: #1e6b30; }
.wz-tiles .t-inv   { background: var(--blue-soft); } .wz-tiles .t-inv b { color: var(--blue-d); }
.wz-tiles b { font-size: 1.15rem; margin-top: 2px; }
.wz-emi { background: var(--green); border-radius: 16px; padding: 14px 16px; color: #fff; margin: 0 0 10px; box-shadow: 0 8px 20px rgba(47, 158, 68, .3); }
.wz-emi .wz-emi-out { background: transparent; padding: 0; }
.wz-emi .wz-emi-out small { color: rgba(255, 255, 255, .9); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.wz-emi .wz-emi-out b { color: #fff; font-size: 2rem; }
.wz-emi .wz-emi-out div:last-child { color: #fff; }
.wz-emi .wz-opt > summary { color: #fff; opacity: .95; }
.wz-emi .wz-sub, .wz-emi .wz-sub b, .wz-emi .muted { color: #fff; }
.wz-emi .wz-seg button { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .5); color: #fff; }
.wz-emi .wz-seg button.on { background: #fff; color: var(--green); }
.wz-emi .wz-seg button.on b { color: #1e6b30; }
.wz-emi input[type=range] { accent-color: #fff; }
.wz-facts { padding: 0 2px; }
.wz-result .wz-next { margin-top: 4px; padding: 16px; font-size: 1.1rem; background: var(--blue); box-shadow: 0 6px 16px rgba(11, 90, 166, .3); }
.wz-result .wz-opt { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-top: 12px; }
.wz-flow { margin: 6px 0 10px; }
.wz-recap-wrap { margin-top: 16px; padding: 12px; background: #fff; border: 1px dashed var(--line); border-radius: 12px; }
.wz-recap-wrap > small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 650; margin-bottom: 6px; }
.wz-recap { margin: 0; }
.wz-recap button { background: #fff; color: var(--muted); font-weight: 500; }

/* fixes */
.wz-big input:focus-visible { outline: 0; }
.wz-result .wz-emi .wz-opt { background: transparent; border: 0; padding: 0; margin-top: 8px; border-radius: 0; }
.wz-emi .wz-opt > summary::before { content: "\270E  "; }
.wz-emi .wz-opt[open] > summary::before { content: "\2212  "; }

/* roof-clearness options: 2x2 with a one-line plain-language explanation */
.wz-seg.opts { grid-template-columns: repeat(3, 1fr); }
.wz-seg.opts button { text-align: center; align-items: center; justify-content: center; gap: 2px; padding: 12px 6px; min-height: 52px; }
.wz-seg.opts b { font-size: .92rem; }
.wz-seg.opts b .pc { font-style: normal; font-weight: 600; font-size: .72rem; color: var(--muted); background: #eef3f8; border-radius: 99px; padding: 1px 7px; margin-left: 2px; white-space: nowrap; }
.wz-seg.opts button.on .pc { background: #fff; color: var(--blue-d); }
.wz-seg.opts small { font-size: .74rem; line-height: 1.3; }
.wz-seg + .wz-next { margin-top: 16px; }

/* ═══════════ header controls, partner pill, settings ═══════════ */
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
.wz-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.05rem; cursor: pointer; line-height: 1; }
.wz-ic:hover, .wz-ic[aria-expanded="true"] { border-color: var(--blue); background: var(--blue-soft); }
.wz-head { gap: 10px; }
@media (max-width: 430px) { .wz-head-text span { display: none; } .wz-head img { height: 30px; } }
.wz-pill { margin-left: 8px; border: 1.5px solid var(--green); background: var(--green-soft); color: #1e6b30; font-weight: 700; font-size: .8rem; border-radius: 99px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.wz-pill:hover { background: #d6efdd; }

.wz-pop { position: fixed; top: 58px; right: 12px; width: min(330px, calc(100vw - 24px)); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 16px 40px rgba(18, 38, 58, .25); }
.wz-pop h2 { font-size: 1rem; margin: 0 0 2px; }
.wz-views { display: grid; gap: 8px; }
.wz-views button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.wz-views button small { color: var(--muted); font-size: .76rem; }
.wz-views button.on { border-color: var(--blue); background: var(--blue-soft); }
.wz-views button.on b::after { content: " \2713"; color: var(--blue); }
.wz-next.sm { padding: 10px 12px; font-size: .9rem; margin-top: 12px; border-radius: 12px; }

/* ═══════════ partner finder (sheet + inline) ═══════════ */
.pf-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; margin-bottom: 6px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pf-chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.pf-chips button:hover { border-color: var(--blue); }
.pf-chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pf select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; font-size: 1rem; background: #fff; color: var(--ink); margin-bottom: 10px; }
.pf select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(11, 90, 166, .12); }
.pf .wz-das .empty { background: #f1f5f9; border-radius: 10px; }

.wz-sheet { position: fixed; inset: 0; z-index: 70; }
.wz-sheet-bd { position: absolute; inset: 0; background: rgba(10, 25, 41, .55); animation: fade .2s ease both; }
.wz-sheet-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; animation: sheetUp .28s ease both; }
.wz-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.wz-sheet-h h2 { font-size: 1.2rem; margin: 0; font-weight: 750; }
.wz-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #eef3f8; font-size: 1rem; cursor: pointer; }
.wz-sheet .wz-das { max-height: 40vh; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 700px) { .wz-sheet-box { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 22px; animation: fade .2s ease both; } }
@media (prefers-reduced-motion: reduce) { .wz-sheet-box, .wz-sheet-bd, .wz-bar { animation: none; } }

/* ═══════════ SINGLE-PAGE DESIGN ═══════════ */
.wz-jump, .wz-glance { display: none; }
.mode-scroll .wz-jump { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.mode-scroll .wz-jump::-webkit-scrollbar { display: none; }
.wz-jump button { flex-shrink: 0; border: 1.5px solid var(--line); background: #fff; color: var(--muted); border-radius: 99px; padding: 5px 13px; font-size: .8rem; font-weight: 650; cursor: pointer; }
.wz-jump button.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* glance strip: the live answer, pinned to the top of the phone screen */
.mode-scroll .wz-glance { display: block; position: sticky; top: 0; z-index: 15; margin: 0 -16px 12px; padding: 10px 16px; color: #fff; cursor: pointer; background: linear-gradient(100deg, var(--blue-d), var(--blue) 55%, #1f8f55); box-shadow: 0 6px 18px rgba(8, 70, 128, .35); }
.g-cells { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 8px; }
.g-cells > div { min-width: 0; }
.g-cells small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; font-weight: 650; }
.g-cells b { display: block; font-size: 1.1rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
.g-cells em { display: block; font-style: normal; font-size: .68rem; opacity: .9; }
.g-pend { font-size: .85rem; font-weight: 600; padding: 4px 0; opacity: .95; }
.is-loading .g-cells b, .is-loading .wz-hero, .is-loading .wz-tiles, .is-loading .wz-emi { opacity: .55; transition: opacity .2s; }

.mode-scroll .wz-nav, .mode-scroll .wz-progress, .mode-scroll [data-next], .mode-scroll .wz-recap-wrap { display: none !important; }
.mode-scroll .wz-stage { display: flex; flex-direction: column; gap: 12px; }
.wz-col-in, .wz-col-out { display: contents; }
.mode-scroll .wz-col-in > .wz-step[data-step="roof"] { order: 10; }
.mode-scroll .wz-col-in > .wz-step[data-step="bill"] { order: 30; }
.mode-scroll .wz-col-in > .wz-step[data-step="goal"] { order: 20; }
.mode-scroll .wz-col-in > .wz-step[data-step="backup"] { order: 40; }
.mode-scroll .wz-col-in > .wz-step[data-step="appliances"] { order: 50; }
.mode-scroll .wz-col-out > .wz-step { order: 60; }
.mode-scroll .wz-col-in > .wz-step[data-step="partners"] { order: 70; }
.mode-scroll .wz-col-in > .wz-step[data-step="save"] { order: 80; }
.mode-scroll .wz-col-in > .wz-step[data-step="done"] { order: 90; }

.mode-scroll .wz-step { animation: none; padding: 16px 16px 14px; scroll-margin-top: 84px; }
.mode-scroll .wz-result { padding: 0; }
.mode-scroll .wz-q { font-size: 1.15rem; }
.mode-scroll .wz-hint { margin-bottom: 12px; }
.mode-scroll .wz-big input { font-size: 1.8rem; }
.mode-scroll .wz-list { max-height: none; }
.mode-scroll .wz-das { max-height: none; }
.mode-scroll #daList { display: none; }          /* partners are already listed in their own section above */
.mode-scroll .wz-hero { padding: 18px; }
.mode-scroll .wz-price { font-size: 2.2rem; }

/* tablets / kiosk landscape: inputs on the left, result always visible on the right */
@media (min-width: 900px) {
  .wz.mode-scroll { max-width: 1080px; }
  .mode-scroll .wz-glance { display: none; }
  .mode-scroll .wz-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); gap: 18px; align-items: start; }
  .mode-scroll .wz-col-in { display: flex; flex-direction: column; gap: 12px; }
  .mode-scroll .wz-col-out { display: block; position: sticky; top: 12px; }
  .mode-scroll .wz-step { scroll-margin-top: 16px; }
}

.wz, .wz *, .wz-sheet *, .wz-pop *, .wz-bar * { box-sizing: border-box; }

/* ═══════════ progressive single page: reveal + "result just changed" feedback ═══════════ */
@keyframes revealIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.mode-scroll .wz-step.reveal { animation: revealIn .45s ease both; }
@keyframes bump { 0% { transform: scale(1); filter: brightness(1); } 35% { transform: scale(1.025); filter: brightness(1.18); } 100% { transform: scale(1); filter: brightness(1); } }
.wz-hero.bump, .wz-glance.bump { animation: bump .6s ease; }
.wz-basis { display: inline-block; margin: 6px 0 0; font-size: .72rem; font-weight: 650; background: rgba(255, 255, 255, .2); border-radius: 99px; padding: 3px 10px; }
.mode-wizard .wz-basis { display: none; }
@media (prefers-reduced-motion: reduce) { .mode-scroll .wz-step.reveal, .wz-hero.bump, .wz-glance.bump { animation: none; } }

/* ═══════════ consent boxes: one tick to bring the next question in ═══════════ */
.wz-consent { display: none; }
.mode-scroll .wz-consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; background: #fff; border: 2px dashed #a9c2dc; border-radius: 16px; padding: 14px 16px; font-weight: 650; font-size: .95rem; line-height: 1.4; color: var(--ink); scroll-margin-top: 84px; transition: border-color .15s, background .15s; }
.mode-scroll .wz-consent:hover { border-color: var(--blue); }
.wz-consent input { width: 24px; height: 24px; flex-shrink: 0; margin: 0; accent-color: var(--green); cursor: pointer; }
.mode-scroll .wz-consent:has(input:checked) { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.mode-scroll .wz-consent[data-consent="bill"] { order: 25; }
.mode-scroll .wz-consent[data-consent="goal"] { order: 15; }
.mode-scroll .wz-consent[data-consent="backup"] { order: 35; }
.mode-scroll .wz-consent[data-consent="partners"] { order: 65; }
.mode-scroll .wz-consent[data-consent="save"] { order: 75; }
.wz-consent:focus-within { outline: 3px solid rgba(11, 90, 166, .35); outline-offset: 2px; }


/* ── v8 additions ── */
.wz-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.wz-tools-r { display: inline-flex; align-items: center; gap: 8px; }
.wz-tabs { display: flex; background: #eef3f8; border-radius: 12px; padding: 3px; gap: 3px; margin: 0 0 12px; }
.wz-tabs button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 8px 6px; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; }
.wz-tabs button.on { background: #fff; color: var(--blue-d); box-shadow: 0 1px 4px rgba(18, 38, 58, .15); }
.wz-dims input { font-size: 1.1rem; }
.wz-dim-out { margin: 6px 0 0; font-weight: 700; color: var(--blue-d); min-height: 1.2em; }
.seg-custom { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 6px; display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 52px; cursor: text; }
.seg-custom.on { border-color: var(--blue); background: var(--blue-soft); }
.seg-custom input { width: 100%; min-width: 0; border: 0; background: transparent; font-weight: 700; font-size: .95rem; text-align: right; outline: 0; color: var(--ink); }
.seg-custom span { font-weight: 700; color: var(--muted); }
.wz-chips.c4 { grid-template-columns: repeat(4, 1fr); }
.wz-dpamt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .85rem; }
.dp-in { display: inline-flex; align-items: center; background: #fff; color: var(--ink); border-radius: 10px; padding: 4px 8px; gap: 4px; }
.dp-in i { font-style: normal; font-weight: 700; }
.dp-in input { width: 110px; border: 0; outline: 0; font-weight: 700; font-size: 1rem; text-align: right; }
.pf-dist { margin: 4px 0 10px; }
.pf-dist select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; background: #fff; }
.pf[data-nolist] .js-da-list { display: none; }
.mode-scroll #toSave { display: none; }

/* typing cell: warm tint + dashed border + pencil so it reads as "type here" */
.seg-custom { border: 2px dashed #e0a400; background: #fff8e1; }
.seg-custom::before { content: "\270E"; color: #b37a00; font-size: 1rem; margin-right: 2px; }
.seg-custom input { color: #7a5200; }
.seg-custom input::placeholder { color: #b37a00; font-weight: 600; }
.seg-custom:focus-within, .seg-custom.on { border-style: solid; border-color: #e0a400; background: #fff3c4; }

.wz-tools { justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
.wz-tools .wz-lang button { padding: 6px 10px; font-size: .8rem; white-space: nowrap; }

.wz-diagram { display: block; width: 100%; height: auto; border-radius: 10px; margin: 8px 0 4px; }

/* diagram: never wider than the page, whatever the image size */
.wz-col-in, .wz-col-out, .wz-result, .wz-result .wz-opt, .wz-opt { min-width: 0; max-width: 100%; }
.wz-opt { overflow: hidden; }
.wz-diagram { max-width: 100%; width: 100%; height: auto; object-fit: contain; }

/* diagram: small preview in the card, full size on tap (so a big picture can never break the page) */
.wz-diagram { max-height: 200px; object-fit: contain; background: #fff; cursor: zoom-in; }
.wz-lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10, 25, 40, .88); display: flex; align-items: center; justify-content: center; padding: 12px; cursor: zoom-out; }
.wz-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; background: #fff; }
.wz-emi-na { display: block; margin-bottom: 6px; font-size: .8rem; opacity: .95; }
@media (min-width: 900px) { .mode-scroll .wz-col-out { max-height: calc(100vh - 24px); overflow-y: auto; } }

/* v10: live bar floats at the same width as the cards above it */
.wz-bar { box-sizing: border-box; left: 16px; right: 16px; width: auto; max-width: 528px; margin: 0 auto; bottom: 12px; border-radius: 16px; padding: 10px 16px; }
.wz-bar-in { max-width: none; }
/* v10: solar / battery / inverter are the headline of the result */
.wz-result .wz-tiles { margin: 0 0 10px; gap: 8px; }
.wz-result .wz-tiles > div { padding: 14px 6px; border-radius: 14px; box-shadow: 0 4px 14px rgba(18, 38, 58, .12); border: 2px solid rgba(0, 0, 0, .06); }
.wz-result .wz-tiles small { font-size: .78rem; font-weight: 700; }
.wz-result .wz-tiles b { font-size: 1.35rem; font-weight: 800; }
.wz-lightbox video { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.wz-res-title { font-size: 1.15rem; font-weight: 800; color: var(--blue-d); margin: 2px 2px 10px; }

/* v10.4: solar / battery / inverter are the headline, price is secondary */
.wz-result .wz-tiles b { font-size: 1.9rem; line-height: 1.15; }
.wz-result .wz-tiles small { font-size: .85rem; }
.wz-result .wz-price, .mode-scroll .wz-result .wz-price { font-size: 1.5rem; }
.wz-result .wz-hero { padding: 14px 18px; }
.wz-result .wz-hero h1 { font-size: 1.05rem; margin-bottom: 4px; }
/* diagram video fills the whole screen when opened */
.wz-lightbox { padding: 0; }
.wz-lightbox video { width: 100vw; height: 100vh; max-width: none; max-height: none; object-fit: contain; border-radius: 0; background: #000; }
.wz-result .wz-tiles b { font-size: 1.6rem; word-break: normal; overflow-wrap: break-word; hyphens: none; }
.wz-result .wz-tiles .t-inv b { font-size: 1.25rem; }

/* v11: roof type, optional custom %, inline result above Continue, "add more" items */
.wz-seg.rt { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.wz-seg.rt button { flex-direction: row; justify-content: center; align-items: center; gap: 8px; padding: 12px 8px; }
.wz-seg.rt button span { font-size: 1.3rem; }
.wz-seg.rt button b { font-size: 1rem; }
.wz-q2 { margin-top: 4px; }
.wz-pct { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.wz-pct .seg-custom { width: 110px; min-height: 42px; flex-shrink: 0; }
.wz-bar { position: static; transform: none; animation: none; left: auto; right: auto; bottom: auto; width: auto; max-width: none; margin: 18px 0 0; padding: 10px 16px 12px; border-radius: 14px; box-shadow: 0 6px 18px rgba(11, 90, 166, .28); }
.wz-bar .bar-cap { display: block; margin-bottom: 4px; font-size: .74rem; font-weight: 700; opacity: .9; text-transform: none; letter-spacing: 0; }
.wz-bar + .wz-next, .wz-more + .wz-need + .wz-bar + .wz-next { margin-top: 12px; }
body.has-bar .wz { padding-bottom: 24px; }
.wz-more { width: 100%; margin-top: 10px; border: 2px dashed var(--blue); background: #fff; color: var(--blue-d); border-radius: 14px; padding: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.seg-custom input::-webkit-outer-spin-button, .seg-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg-custom input { -moz-appearance: textfield; }

.wz-gen { background: #fff; border: 2px solid #f0c24b; border-radius: 16px; padding: 14px 16px; margin-top: 12px; }
.wz-gen h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; color: #8a5a00; }
.wz-gen-row { display: flex; gap: 12px; justify-content: space-between; }
.wz-gen-row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wz-gen small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.wz-gen b { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.wz-gen-row > div + div b { color: #1e6b30; }

/* v15: battery too big for the roof's solar capacity -> loads and result turn red, with a message */
.wz-warn { margin: 10px 0 0; background: #fff1f1; border: 1.5px solid var(--danger); color: var(--danger); border-radius: 12px; padding: 10px 12px; font-size: .88rem; font-weight: 700; line-height: 1.4; }
.bad-fit .wz-app.has { border-color: var(--danger); background: #fff1f1; }
.bad-fit .wz-app.has .qty, .bad-fit .wz-app.has .nm { color: var(--danger); }
.bad-fit .wz-bar, .bad-fit .wz-hero, .bad-fit .wz-emi, .bad-fit.mode-scroll .wz-glance { background: linear-gradient(100deg, #8f1d1d, var(--danger)); box-shadow: 0 8px 20px rgba(201, 42, 42, .3); }
.bad-fit .wz-tiles .t-batt { background: #fde2e2; border-color: var(--danger); }
.bad-fit .wz-tiles .t-batt b, .bad-fit .wz-tiles .t-batt small { color: var(--danger); }

/* ═══════════ v16: single design, new header, result layout ═══════════ */
/* brand card: left aligned with the other cards */
.wz-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin: 0 0 10px; background: linear-gradient(100deg, #fff 0%, #eef6fd 100%); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 16px; box-shadow: 0 6px 20px rgba(18, 38, 58, .07); }
.wz-head img { height: 48px; width: auto; flex-shrink: 0; }
.wz-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.25; border-left: 0; padding-left: 0; }
.wz-head-text .wz-prog { margin: 0 0 2px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; color: #1e6b30; }
.wz-head-text strong { font-size: 1.2rem; font-weight: 800; color: var(--blue-d); letter-spacing: -.01em; }
.wz-head-text span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
@media (max-width: 430px) { .wz-head img { height: 38px; } .wz-head-text span { display: block; } .wz-head-text strong { font-size: 1.1rem; } }

/* quick link: start a new estimate (left) + language (right) */
.wz-tools { justify-content: space-between; margin: 0 0 10px; }
.wz-new { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--green); background: var(--green-soft); color: #1e6b30; font-weight: 700; font-size: .85rem; border-radius: 99px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.wz-new:hover { background: #d6efdd; }
.wz-new:active { transform: scale(.98); }

/* result: answers left, animated diagram right (stacked on phones) */
.wz-res-grid { display: block; }
.wz-res-main { min-width: 0; }
.wz-res-side { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 6px 20px rgba(18, 38, 58, .07); }
.wz-res-side .wz-diagram { max-height: none; margin: 0; border-radius: 10px; }
@media (min-width: 900px) {
  .wz.res-wide { max-width: 1080px; }
  .wz-res-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: 18px; align-items: start; }
  .wz-res-side { margin-top: 0; position: sticky; top: 12px; }
}

/* price (left) + down payment (right) */
.wz-pricerow { display: flex; gap: 10px; margin: 12px 0 0; }
.wz-pricerow > * { flex: 1 1 0; min-width: 0; }
.wz-result .wz-hero { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.wz-price-lab { display: block; font-size: .78rem; font-weight: 650; line-height: 1.35; opacity: .95; }
.wz-result .wz-price, .mode-scroll .wz-result .wz-price { font-size: 1.2rem; font-weight: 800; }
.wz-dpbox { background: var(--blue-soft); border: 2px solid #bcd6ef; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.wz-dpbox small { color: var(--blue-d); font-size: .78rem; font-weight: 650; }
.wz-dpbox b { font-size: 1.2rem; font-weight: 800; color: var(--blue-d); line-height: 1.15; }
.wz-dpbox span { font-size: .95rem; font-weight: 700; color: var(--ink); }
.wz-result .wz-adjust { margin-top: 10px; }

/* font order: solar / inverter / battery > package price > monthly instalment */
.wz-result .wz-tiles b { font-size: 1.7rem; line-height: 1.15; }
.wz-result .wz-tiles .t-inv b { font-size: 1.45rem; }
.wz-result .wz-emi { margin-top: 10px; padding: 12px 16px; }
.wz-result .wz-emi .wz-emi-out b { font-size: 1.05rem; }
.wz-result .wz-emi .wz-emi-out div:last-child { font-size: .9rem; }
.bad-fit .wz-dpbox { background: #fde2e2; border-color: var(--danger); }
.bad-fit .wz-dpbox small, .bad-fit .wz-dpbox b { color: var(--danger); }
@media (max-width: 480px) {
  .wz-result .wz-tiles b { font-size: 1.4rem; }
  .wz-result .wz-tiles .t-inv b { font-size: 1.3rem; }
}

/* ═══════════ v17: three columns on wide screens: heading | calculator | diagram ═══════════ */
.wz-res-side { display: none; }
.wz-side { display: none; margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 6px 20px rgba(18, 38, 58, .07); }
.wz.res-wide .wz-side { display: block; }                       /* phones: diagram sits under the result */
.wz-side .wz-diagram { max-height: none; margin: 0; width: 100%; }
@media (min-width: 1180px) {
  /* three equal columns; the heading card and the diagram card stretch to exactly the height of the calculator card */
  .wz, .wz.res-wide { max-width: 1560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto) 1fr; column-gap: 24px; row-gap: 0; align-items: start; padding: 24px 24px 12px; }
  .wz-center { display: contents; }
  .wz-center > * { grid-column: 2; min-width: 0; }
  .wz-center > .wz-alert { grid-row: 1; }
  .wz-center > .wz-tools { grid-row: 2; }
  .wz-center > .wz-nav { grid-row: 3; }
  .wz-center > .wz-progress { grid-row: 4; }
  .wz-center > .wz-stage { grid-row: 5; }
  .wz-center > .wz-foot { grid-row: 6; align-self: end; }
  .wz-left, .wz-side { grid-row: 5; align-self: stretch; position: static; height: auto; display: flex; margin: 0; }
  .wz-left { grid-column: 1; }
  .wz-side, .wz.res-wide .wz-side { grid-column: 3; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 24px rgba(18, 38, 58, .06); padding: 14px; margin: 0; }
  .wz-side .wz-diagram { background: #fff; border: 0; box-shadow: none; padding: 0; border-radius: 10px; }
  .wz-left .wz-head { flex: 1; flex-direction: column; justify-content: center; text-align: center; gap: 18px; width: 100%; max-width: none; margin: 0; padding: 36px 24px; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 18px; box-shadow: 0 6px 24px rgba(18, 38, 58, .06); }
  .wz-left .wz-head img { height: 72px; }
  .wz-left .wz-head-text { flex: 0 0 auto; align-items: center; gap: 6px; }
  .wz-left .wz-head-text .wz-prog { font-size: .85rem; }
  .wz-left .wz-head-text strong { font-size: 1.5rem; }
  .wz-left .wz-head-text span { font-size: .9rem; }
  .wz-res-grid { display: block; }
}

/* ═══════════ v18: page background image (wwwroot/images/background.*) ═══════════
   Covers the whole page. Any one of these file names works; the ones that do not exist are simply skipped. */
html { min-height: 100%; background: var(--bg); }
body {
  background-color: var(--bg);
  background-image: url("../images/background.jpg"), url("../images/background.jpeg"), url("../images/background.png"), url("../images/background.webp");
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  min-height: 100vh;
}
@media (max-width: 1024px) { body { background-attachment: scroll, scroll, scroll, scroll; background-position: center top, center top, center top, center top; } }  /* phones/tablets: fixed backgrounds are unreliable */

/* ═══════════ v19: glass cards: the background picture shows through, text stays readable ═══════════
   To change how see-through they are, edit --glass (0 = invisible, 1 = solid white) and --blur. */
:root { --glass: rgba(255, 255, 255, .72); --glass-strong: rgba(255, 255, 255, .84); --blur: 10px; }
.wz-head, .wz-step:not(.wz-result), .wz-side, .wz-gen, .wz-result .wz-opt, .wz-recap-wrap, .wz-sheet-box {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2); backdrop-filter: blur(var(--blur)) saturate(1.2);
  border-color: rgba(255, 255, 255, .65);
}
.wz-head { background: linear-gradient(100deg, rgba(255, 255, 255, .8), rgba(232, 243, 253, .66)); }
.wz-gen, .wz-result .wz-opt, .wz-recap-wrap { background: var(--glass-strong); }
.wz-gen { border-color: #f0c24b; }
.wz-hint, .wz-foot { color: #3f5266; }
.wz-foot { text-shadow: 0 1px 2px rgba(255, 255, 255, .8); }
.wz-lang button, .wz-new, .wz-pill { backdrop-filter: blur(6px); }
.wz-bad-fit .wz-gen { background: var(--glass-strong); }

/* ═══════════ v20: readable note text, and a minimum height for the three cards ═══════════ */
.wz-facts { background: var(--glass-strong); color: #1f3347; font-weight: 600; border-radius: 12px; padding: 10px 14px; margin: 12px 0; line-height: 1.5; border: 1px solid rgba(255, 255, 255, .7); }
/* how tall the three cards stay at least, even when the calculator card is short: between 440px and 620px, about 62% of the window height. Edit here. */
:root { --panel-min: clamp(440px, 62vh, 620px); }
@media (min-width: 1180px) {
  .wz-left, .wz-side, .wz-center > .wz-stage { min-height: var(--panel-min); }
  .wz-center > .wz-stage { align-self: stretch; display: flex; flex-direction: column; }
  .wz-stage .wz-step:not(.wz-result) { flex: 1; }          /* the calculator card grows to match the side cards */
}
.wz-result .wz-facts { font-size: .74rem; line-height: 1.45; padding: 8px 12px; }

/* ═══════════ v21: picture shows more on the side cards, calculator card more solid ═══════════ */
:root { --glass: rgba(255, 255, 255, .56); --glass-mid: rgba(240, 255, 240, .88); --glass-strong: rgba(255, 255, 255, .9); --blur: 6px; }
.wz-step:not(.wz-result) { background: var(--glass-mid); }
.wz-head { background: linear-gradient(100deg, rgba(255, 255, 255, .66), rgba(232, 243, 253, .5)); }

/* ═══════════ v22: background picture softened (less visible); side cards back to the earlier glass ═══════════
   --bg-fade = how much white is laid over the picture: 0 = picture at full strength, 1 = picture hidden. */
:root { --bg-fade: .5; --glass: rgba(255, 255, 255, .72); }
body {
  background-image: linear-gradient(rgba(255, 255, 255, var(--bg-fade)), rgba(255, 255, 255, var(--bg-fade))),
    url("../images/background.jpg"), url("../images/background.jpeg"), url("../images/background.png"), url("../images/background.webp");
  background-size: auto, cover, cover, cover, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}
@media (max-width: 1024px) { body { background-attachment: scroll, scroll, scroll, scroll, scroll; background-position: center, center top, center top, center top, center top; } }
.wz-head { background: linear-gradient(100deg, rgba(255, 255, 255, .8), rgba(232, 243, 253, .66)); }

/* ═══════════ v23: the result screen is a card like every other screen ═══════════ */
.wz-step.wz-result {
  background: var(--glass-mid); border: 1px solid rgba(255, 255, 255, .65); border-radius: 18px;
  box-shadow: 0 6px 24px rgba(18, 38, 58, .06); padding: 20px 18px 18px;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2); backdrop-filter: blur(var(--blur)) saturate(1.2);
}
@media (min-width: 768px) { .wz-step.wz-result { padding: 26px 26px 22px; } }
@media (min-width: 1180px) { .wz-stage .wz-step.wz-result { flex: 1; } }
.wz-result .wz-facts { font-size: .66rem; line-height: 1.4; padding: 6px 10px; }

/* v24: the note under the tiles is collapsible */
.wz-result .wz-factsbox { margin: 10px 0 0; padding: 2px 14px; }
.wz-result .wz-factsbox > summary { font-size: .8rem; }
.wz-factsbox .wz-facts, .wz-result .wz-factsbox .wz-facts { background: transparent; border: 0; padding: 0 0 8px; margin: 0; font-size: .66rem; }

/* ═══════════ v25: compact result screen (tighter spacing, slightly smaller blocks; the font order stays tiles > price > instalment) ═══════════ */
.wz-step.wz-result { padding: 14px 14px 12px; }
.wz-result .wz-res-title { font-size: 1rem; margin: 0 2px 8px; }
.wz-result .wz-tiles { gap: 6px; margin: 0 0 8px; }
.wz-result .wz-tiles > div { padding: 8px 4px; border-radius: 12px; box-shadow: 0 2px 8px rgba(18, 38, 58, .1); }
.wz-result .wz-tiles small { font-size: .72rem; }
.wz-result .wz-tiles b { font-size: 1.4rem; margin-top: 0; }
.wz-result .wz-tiles .t-inv b { font-size: 1.2rem; }
.wz-result .wz-factsbox { margin: 6px 0 0; padding: 0 12px; }
.wz-result .wz-factsbox > summary { padding: 4px 0; font-size: .76rem; }
.wz-result .wz-warn { margin: 8px 0 0; padding: 8px 10px; font-size: .8rem; }
.wz-result .wz-gen { margin-top: 8px; padding: 8px 12px; border-radius: 12px; border-width: 1.5px; }
.wz-result .wz-gen h3 { font-size: .85rem; margin: 0 0 4px; }
.wz-result .wz-gen small { font-size: .7rem; }
.wz-result .wz-gen b { font-size: 1.05rem; }
.wz-result .wz-pricerow { gap: 8px; margin: 8px 0 0; }
.wz-result .wz-hero { padding: 10px 12px; border-radius: 12px; gap: 2px; }
.wz-result .wz-price-lab { font-size: .7rem; line-height: 1.3; }
.wz-result .wz-price { font-size: 1.15rem; }
.wz-result .wz-dpbox { padding: 10px 12px; border-radius: 12px; }
.wz-result .wz-dpbox small { font-size: .7rem; }
.wz-result .wz-dpbox b { font-size: 1.1rem; }
.wz-result .wz-dpbox span { font-size: .85rem; }
.wz-result .wz-adjust { margin-top: 6px; padding: 0 12px; }
.wz-result .wz-adjust > summary { padding: 4px 0; font-size: .8rem; }
.wz-result .wz-emi { margin-top: 8px; padding: 8px 14px; border-radius: 12px; }
.wz-result .wz-emi .wz-emi-out small { font-size: .68rem; }
.wz-result .wz-emi .wz-emi-out b { font-size: 1rem; }
.wz-result .wz-emi .wz-emi-out div:last-child { font-size: .85rem; }
.wz-result .wz-next { padding: 11px 14px; font-size: .95rem; margin-top: 10px; border-radius: 12px; }
.wz-result .wz-recap-wrap { margin-top: 10px; padding: 8px 10px; }
.wz-result .wz-recap-wrap > small { margin-bottom: 4px; font-size: .66rem; }
.wz-result .wz-recap button { padding: 3px 8px; font-size: .7rem; }
@media (max-width: 480px) {
  .wz-result .wz-tiles b { font-size: 1.25rem; }
  .wz-result .wz-tiles .t-inv b { font-size: 1.1rem; }
}

/* ═══════════ v26 ═══════════ */
/* 1. less empty space left and right, so the three cards get more room; three columns start from 1100px */
@media (min-width: 1100px) {
  .wz, .wz.res-wide { max-width: 1760px; column-gap: 14px; padding: 16px 12px 10px; }
}
/* 2. right card: title on top, diagram below */
.wz-side { flex-direction: column; }
.wz-side-t { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; color: var(--blue-d); text-align: center; line-height: 1.3; }
@media (min-width: 1100px) {
  .wz-side, .wz.res-wide .wz-side { flex-direction: column; align-items: stretch; justify-content: center; }
  .wz-side-t { font-size: 1.25rem; }
}
/* 3. instalment block: monthly | tenure | loan amount */
.wz-emi-out .mid { text-align: center; }
.wz-emi-out .mid span { font-weight: 700; font-size: .85rem; color: #fff; }
.wz-result .wz-emi .wz-emi-out div:last-child { text-align: right; }
/* 5. heading card: the programme name leads, the calculator name and expo line are smaller */
.wz-head-text .wz-prog { font-size: 1.02rem; font-weight: 800; line-height: 1.35; color: var(--blue-d); letter-spacing: 0; margin: 0 0 3px; }
.wz-head-text strong { font-size: .9rem; font-weight: 700; color: #1e6b30; }
.wz-head-text span { font-size: .74rem; }
@media (min-width: 1100px) {
  .wz-left .wz-head-text .wz-prog { font-size: 1.45rem; line-height: 1.4; }
  .wz-left .wz-head-text strong { font-size: 1.05rem; }
  .wz-left .wz-head-text span { font-size: .85rem; }
}

/* ═══════════ v27: the diagram fills the whole right card (same look as the middle and left cards) ═══════════ */
.wz-side { background: var(--glass-mid); padding: 14px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 18px; box-shadow: 0 6px 24px rgba(18, 38, 58, .06); }
.wz-side .wz-diagram { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 10px; width: 100%; max-height: none; object-fit: contain; }
@media (min-width: 1100px) {
  .wz-side, .wz.res-wide .wz-side { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--glass-mid); border: 1px solid rgba(255, 255, 255, .65); border-radius: 18px; padding: 18px 14px 14px; }
  .wz-side-t { flex: 0 0 auto; margin: 0 0 12px; }
  .wz-side .wz-diagram { flex: 1 1 auto; min-height: 0; height: 100%; }          /* grows to fill all the room under the title */
}

/* ═══════════ v28: on wide screens the diagram covers the whole right card, edge to edge (cropped to fit); the title floats on top ═══════════
   To show the whole picture without cropping instead, change "cover" to "contain". */
@media (min-width: 1100px) {
  .wz-side, .wz.res-wide .wz-side { position: relative; padding: 0; overflow: hidden; display: block; }
  .wz-side .wz-diagram { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: cover; object-position: center; }
  .wz-side-t { position: absolute; top: 0; left: 0; right: 0; z-index: 2; margin: 0; padding: 14px 14px 22px; background: linear-gradient(to bottom, rgba(255, 255, 255, .95) 55%, rgba(255, 255, 255, 0)); pointer-events: none; }
}

/* ═══════════ v29: diagram shrinks to fit the right card (nothing cropped); title above it ═══════════ */
@media (min-width: 1100px) {
  .wz-side, .wz.res-wide .wz-side { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: hidden; padding: 16px 12px 12px; background: #fff; }
  .wz-side-t { position: static; flex: 0 0 auto; margin: 0 0 8px; padding: 0; background: none; }
  .wz-side .wz-diagram { position: static; flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 8px; }
}

/* v30: diagram a little bigger by default. --diagram-zoom: 1 = fit exactly, 1.1 = 10% bigger, 1.25 = 25% bigger (edges may be trimmed a little) */
:root { --diagram-zoom: 1.12; }
@media (min-width: 1100px) {
  .wz-side, .wz.res-wide .wz-side { padding: 14px 4px 4px; }
  .wz-side .wz-diagram { transform: scale(var(--diagram-zoom)); transform-origin: center center; }
  .wz-side-t { padding: 0 10px; }
}

/* v31: the redrawn diagram is portrait (4:5), so it needs no zoom */
:root { --diagram-zoom: 1; }

/* v32: right card has the same look as the heading card on the left (soft white-to-blue glass, green top edge).
   The video's white background is blended away so the card colour shows through. */
.wz-side, .wz.res-wide .wz-side {
  background: linear-gradient(100deg, rgba(255, 255, 255, .8), rgba(232, 243, 253, .66));
  border: 1px solid rgba(255, 255, 255, .65); border-top: 5px solid var(--green);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2); backdrop-filter: blur(var(--blur)) saturate(1.2);
}
.wz-side .wz-diagram { background: transparent; mix-blend-mode: multiply; }

/* v33: the diagram is now live SVG (diagram.js): truly transparent, sharp at any size */
.wz-diagram { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; max-height: none; mix-blend-mode: normal; cursor: zoom-in; background: transparent; }
.wz-side .wz-diagram { mix-blend-mode: normal; background: transparent; }
@media (min-width: 1100px) { .wz-side .wz-diagram { aspect-ratio: auto; } }
.wz-lightbox .wz-lightdiag { width: min(100vw, 80vh); height: min(100vh, 125vw); background: #fff; border-radius: 12px; }
