/* DILAN — generator de ofertă */
.of-bg { background: radial-gradient(900px 500px at 100% 0%, rgba(90,210,30,0.10), transparent 70%), var(--bg); }
.of-main { padding: 56px 0 96px; }
.of-main > .container { display: flex; flex-direction: column; gap: 36px; }
.of-intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.of-intro h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.of-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.of-card { flex: 999 1 560px; min-width: 0; background: var(--suprafata); border: 1px solid var(--l2); border-radius: 24px; padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 30px; }
.of-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
@media (max-width: 960px) { .of-aside { position: static; } }

.stepper { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stepper li { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text-4); }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--pas); transition: background .3s; }
.stepper li.done::before, .stepper li.current::before { background: var(--verde); }
.stepper li.current { color: var(--ink); font-weight: 600; }

.step { display: flex; flex-direction: column; gap: 28px; }
.step[hidden] { display: none; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend, .q-title { padding: 0; margin-bottom: 8px; font-size: 24px; font-weight: 600; }
.q-sub { margin: 0 0 16px; font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--text-2); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 170px), 1fr)); gap: 12px; }
.choice { text-align: left; min-height: 76px; padding: 17px 19px; border-radius: 16px; border: 1px solid var(--linie-2); background: var(--suprafata-3); color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--hov); }
.choice[aria-pressed="true"] { border: 2px solid var(--verde); padding: 16px 18px; background: var(--sel); }
.choice .c-label { font-size: 17px; font-weight: 600; }
.choice .c-sub { font-size: 12.5px; color: var(--text-3); }
.choice[aria-pressed="true"] .c-sub { color: var(--text-2); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; font-weight: 500; }
.field input[type=text], .field input[type=tel], .field input[type=email] { min-height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--linie-2); background: var(--suprafata-3); color: var(--ink); font-family: inherit; font-size: 16px; }
.field input::placeholder { color: var(--ph); }
.field input:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 3px rgba(90,210,30,.2); }
.field input[aria-invalid="true"] { border-color: #ff8a5c; }
.field .err { font-size: 13px; color: var(--err-t); }
.field .err:empty { display: none; }
.hint { font-size: 13px; color: var(--text-4); }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.consent { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--suprafata-2); cursor: pointer; }
.consent input { accent-color: var(--verde); width: 22px; height: 22px; flex: none; margin: 1px 0 0; }
.consent span { font-size: 14px; line-height: 1.55; color: var(--text-2); }

.reco { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: var(--suprafata-2); border: 1px solid var(--linie); }
.reco-head { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 600; }
.reco-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.reco-row strong { color: var(--ink); font-weight: 600; }
.reco-row .accent { color: var(--t-lime); }

.of-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--l3); }
.of-nav .count { font-size: 13px; color: var(--text-4); }
.of-nav .spacer { flex: 1; }

.panel { background: var(--suprafata); border: 1px solid var(--l2); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.panel h2 { font-size: 18px; font-weight: 600; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel .kw-big { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; }
.panel .kw-big small { font-size: 18px; color: var(--t-lime); font-weight: 500; }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--l3); }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--l3); font-size: 14px; }
.rows > div > span:first-child { color: var(--text-3); }
.rows > div > span:last-child { font-weight: 600; text-align: right; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--text-2); }
.checks li { display: flex; gap: 10px; align-items: center; }
.notice { padding: 14px 16px; border-radius: 14px; font-size: 13px; line-height: 1.55; }
.notice-lock { display: flex; gap: 12px; align-items: center; background: var(--suprafata-2); color: var(--text-2); }
.notice-big { border: 1px solid var(--galben); background: rgba(255,241,21,0.06); color: var(--notice-t); }
.notice-big strong { color: var(--t-galben); }
.notice[hidden] { display: none; }
.next-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.next-steps li { display: flex; gap: 14px; }
.next-steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--negru); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.next-steps strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.next-steps span { font-size: 13px; color: var(--text-3); }
.aside-tag { padding: 0 8px; font-size: 22px; color: var(--t-lime); }

/* Rezultat */
.result { display: flex; flex-direction: column; gap: 26px; }
.result h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; font-weight: 600; }
.send-status { font-size: 14px; padding: 12px 16px; border-radius: 12px; }
.send-status.ok { background: rgba(90,210,30,0.1); color: var(--ok-t); border: 1px solid var(--ok-l); }
.send-status.fail { background: rgba(255,138,92,0.08); color: var(--fail-t); border: 1px solid var(--fail-l); }
.send-status.info { background: var(--suprafata-2); color: var(--text-2); }
.send-status:empty { display: none; }
.offer { border-radius: 20px; background: var(--bg); border: 1px solid var(--l2); overflow: hidden; }
.offer-bar { height: 4px; background: linear-gradient(90deg, var(--verde), var(--lime)); }
.offer-bar.big { background: linear-gradient(90deg, var(--lime), var(--galben)); }
.offer-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; }
.offer-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.offer-head h3 { font-size: 20px; font-weight: 600; }
.offer-head .ref { font-size: 13px; color: var(--text-4); margin-top: 6px; }
.offer-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--negru); background: var(--lime); padding: 6px 10px; border-radius: 999px; }
.offer-badge.big { background: var(--galben); }
.offer h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.3em; color: var(--t-verde); margin-bottom: 10px; }
.spec { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 24px; border-top: 1px solid var(--l3); }
.spec div { padding: 13px 0; border-bottom: 1px solid var(--l3); display: flex; justify-content: space-between; gap: 12px; }
.spec dt { font-size: 14px; color: var(--text-3); }
.spec dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
.spec dd.ok { color: var(--t-verde); }
.warr { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.warr div { padding: 14px; border-radius: 12px; background: var(--s4); display: flex; flex-direction: column; gap: 4px; }
.warr span { font-size: 12px; color: var(--text-3); }
.warr strong { font-size: 18px; font-weight: 600; }
.warr small { font-size: 11px; color: var(--text-3); }
.total { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: 16px; background: var(--s4); border: 1px solid var(--contur-v); }
.total .lbl { display: flex; flex-direction: column; gap: 4px; }
.total .lbl span:first-child { font-size: 12px; font-weight: 600; letter-spacing: 0.3em; color: var(--t-verde); }
.total .lbl span:last-child { font-size: 13px; color: var(--text-3); }
.total .sum { font-size: clamp(32px, 4.5vw, 46px); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.total .sum small { font-size: 20px; font-weight: 400; color: var(--text-3); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpis div { background: var(--s4); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.kpis span { font-size: 12px; color: var(--text-3); }
.kpis strong { font-size: 24px; font-weight: 600; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.print-only { display: none; }

/* Avertizare prosumator monofazat */
.notice-warn { border: 1px solid var(--galben); background: rgba(255,241,21,0.07); color: var(--notice-t); font-size: 13.5px; line-height: 1.55; }
.notice-warn strong { color: var(--t-galben); }
.choice:disabled { opacity: 0.45; cursor: not-allowed; }
.choice:disabled:hover { border-color: var(--linie-2); }
.mono-dialog { max-width: 520px; width: calc(100% - 32px); border: 1px solid var(--dlg-l); border-radius: 22px; background: var(--dlg); color: var(--ink); padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.mono-dialog::backdrop { background: rgba(0,0,0,0.7); }
.mono-dialog[open] { display: flex; flex-direction: column; gap: 14px; }
.mono-dialog .md-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--galben); display: flex; align-items: center; justify-content: center; }
.mono-dialog h2 { font-size: 21px; font-weight: 600; }
.mono-dialog p { font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--text-2); }
.mono-dialog p strong { color: var(--ink); font-weight: 600; }
.mono-dialog .md-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* Panouri în plus peste invertor */
.extra-q .opt { margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.extra-q .reco-row { margin-top: 4px; }
.extra-total { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.kwp-note { font-weight: 400; font-size: .82em; color: var(--t-lime); }
