/* HEG Solar Savings Calculator – v2 styles */
.heg-calc{--heg-accent:#f5a524;--heg-dark:#12324a;--heg-blue:#1b6ec2;--heg-line:#dbe4ec;--heg-soft:#f3f7fb;--heg-text:#1f2d3a;--heg-muted:#5b6b7b;--heg-good:#15803d;
  font-family:inherit;color:var(--heg-text);background:#fff;border-radius:22px;box-shadow:0 10px 40px rgba(18,50,74,.12);padding:clamp(20px,4vw,44px);max-width:1080px;margin:0 auto;box-sizing:border-box;line-height:1.5}
.heg-calc *,.heg-calc *::before,.heg-calc *::after{box-sizing:border-box}
.heg-calc button{font:inherit}

/* progress */
.heg-progress{margin-bottom:26px}
.heg-progress__text{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--heg-blue);margin-bottom:8px}
.heg-progress__bar{height:6px;background:var(--heg-soft);border-radius:99px;overflow:hidden}
.heg-progress__bar span{display:block;height:100%;background:linear-gradient(90deg,var(--heg-dark),var(--heg-blue));border-radius:99px;transition:width .35s ease}
.heg-progress__dots{display:none}

/* question */
.heg-q{font-size:clamp(22px,3vw,30px);line-height:1.2;font-weight:800;color:var(--heg-dark);margin:0 0 6px}
.heg-hint{color:var(--heg-muted);margin:0 0 22px;font-size:15px}
.heg-row{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.heg-money{display:flex;align-items:center;border:2px solid var(--heg-line);border-radius:999px;padding:0 20px;background:#fff;min-width:220px;flex:1 1 220px;max-width:320px}
.heg-money:focus-within,.heg-input:focus{border-color:var(--heg-blue);outline:none;box-shadow:0 0 0 4px rgba(27,110,194,.15)}
.heg-money span{font-weight:800;font-size:22px;color:var(--heg-dark)}
.heg-money input{border:0;outline:0;font:inherit;font-size:22px;font-weight:700;padding:14px 8px;width:100%;background:transparent;color:var(--heg-dark)}
.heg-seg{display:inline-flex;background:var(--heg-soft);border-radius:999px;padding:5px;gap:4px;flex-wrap:wrap}
.heg-seg label{padding:10px 18px;border-radius:999px;cursor:pointer;font-weight:700;color:var(--heg-muted);transition:.15s}
.heg-seg label.is-on{background:var(--heg-dark);color:#fff}
.heg-seg input,.heg-card input{position:absolute;opacity:0;pointer-events:none}
.heg-seg label:focus-within,.heg-card:focus-within .heg-card__box{outline:3px solid rgba(27,110,194,.4);outline-offset:2px}

/* postcode + map */
.heg-postcode{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:28px;align-items:center}
.heg-input{font:inherit;font-size:22px;font-weight:700;color:var(--heg-dark);border:2px solid var(--heg-line);border-radius:12px;padding:14px 18px;width:100%;max-width:260px;background:#fff}
.heg-input--pill{border-radius:999px;text-align:center;letter-spacing:.2em}
.heg-region{min-height:24px;margin:12px 0 0;font-weight:700;color:var(--heg-good)}
.heg-map{border-radius:18px;overflow:hidden;border:1px solid var(--heg-line);aspect-ratio:4/3;background:var(--heg-soft)}
.heg-map iframe{width:100%;height:100%;border:0;display:block}

/* cards */
.heg-cards{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.heg-cards--art{grid-template-columns:repeat(4,minmax(0,1fr))}
.heg-cards--plan{grid-template-columns:repeat(5,minmax(0,1fr))}
.heg-cards--provider{grid-template-columns:repeat(3,minmax(0,1fr))}
.heg-card{position:relative;display:flex;flex-direction:column;cursor:pointer}
.heg-card__box{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;background:#fff;border:2px solid var(--heg-line);border-radius:18px;padding:18px 12px;height:100%;transition:border-color .15s,box-shadow .15s,transform .15s}
.heg-card:hover .heg-card__box{border-color:#a9c3da;transform:translateY(-2px);box-shadow:0 8px 20px rgba(18,50,74,.08)}
.heg-card.is-on .heg-card__box{border-color:var(--heg-accent);background:#fffbea;box-shadow:0 0 0 2px var(--heg-accent),0 10px 24px rgba(18,50,74,.12)}
.heg-cards--art{grid-auto-rows:auto}
@supports (grid-template-rows:subgrid){.heg-cards--art .heg-card{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0}}
.heg-card__name{font-weight:800;color:var(--heg-dark);font-size:15px;line-height:1.25}
.heg-card__icon{color:var(--heg-dark);display:flex}
.heg-card.is-on .heg-card__icon{color:var(--heg-blue)}
.heg-card__tick{position:absolute;top:10px;right:10px;width:22px;height:22px;border-radius:50%;border:2px solid var(--heg-line);font-size:12px;line-height:18px;color:transparent;font-weight:900}
.heg-card.is-on .heg-card__tick{background:var(--heg-accent);border-color:var(--heg-accent);color:var(--heg-dark)}
.heg-card__badge{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:20px;letter-spacing:.02em}
.heg-cards--provider .heg-card__box{flex-direction:row;justify-content:flex-start;text-align:left;padding:16px 18px;min-height:88px}
.heg-cards--provider .heg-card__name{font-size:17px}
.heg-card__art{display:flex;justify-content:center;width:100%}
.heg-house{width:100%;max-width:190px;height:auto}
.heg-card__lines{display:flex;flex-direction:column;gap:4px;margin-top:12px;font-size:13.5px;color:var(--heg-muted);text-align:center}
.heg-cards--art .heg-card__lines span{padding:6px 8px;background:var(--heg-soft);border-radius:8px}
.heg-apps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:6px 0}
.heg-app{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#b8c5d1;background:var(--heg-soft)}
.heg-app.is-active{color:var(--heg-dark);background:#fff4c2}
.heg-card.is-on .heg-app.is-active{background:var(--heg-accent)}

/* steppers */
.heg-row--house{gap:20px}
.heg-stepper{flex:1 1 240px;max-width:340px;display:flex;flex-direction:column;align-items:center;gap:10px;border:2px solid var(--heg-line);border-radius:18px;padding:22px}
.heg-stepper__icon{color:var(--heg-blue);display:flex}
.heg-stepper__label{font-weight:800;color:var(--heg-dark);font-size:17px}
.heg-stepper__ctl{display:flex;align-items:center;gap:18px}
.heg-stepper__ctl button{width:46px;height:46px;border-radius:50%;border:2px solid var(--heg-dark);background:#fff;color:var(--heg-dark);font-size:24px;font-weight:700;cursor:pointer;line-height:1}
.heg-stepper__ctl button:hover:not(:disabled){background:var(--heg-dark);color:#fff}
.heg-stepper__ctl button:disabled{opacity:.3;cursor:default}
.heg-stepper output{font-size:30px;font-weight:800;min-width:34px;text-align:center;color:var(--heg-dark)}

/* nav + errors */
.heg-error{color:#b42318;font-weight:600;min-height:22px;margin:16px 0 0}
.heg-error:empty{min-height:0;margin:0}
.heg-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:26px;padding-top:22px;border-top:1px solid var(--heg-line)}
.heg-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:999px;padding:14px 30px;font-weight:800;font-size:16px;cursor:pointer;background:var(--heg-dark);color:#fff;transition:.15s}
.heg-btn:hover{background:var(--heg-blue)}
.heg-btn--ghost{background:transparent;color:var(--heg-dark);border:2px solid var(--heg-line)}
.heg-btn--ghost:hover{background:var(--heg-soft);color:var(--heg-dark)}
.heg-btn--accent{background:var(--heg-accent);color:var(--heg-dark)}
.heg-btn--accent:hover{background:#ffc845;color:var(--heg-dark)}
.heg-btn:disabled{opacity:.6;cursor:default}

/* report */
.heg-hero{background:linear-gradient(135deg,var(--heg-dark),#1d4f75);color:#fff;border-radius:18px;padding:clamp(22px,4vw,36px);margin-bottom:20px}
.heg-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:13px;font-weight:800;color:var(--heg-accent);margin:0 0 8px}
.heg-report__title{font-size:clamp(24px,3.4vw,34px);line-height:1.2;margin:0;color:#fff;font-weight:800}
.heg-report__title strong{color:var(--heg-accent)}
.heg-report__title:focus{outline:none}
.heg-report__sub{margin:10px 0 0;color:#d8e6f2;font-size:17px}
.heg-report__sub strong{color:#fff}
.heg-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.heg-stat{border:1px solid var(--heg-line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:4px;background:#fff}
.heg-stat__icon{width:40px;height:40px;border-radius:12px;background:#fff4c2;color:var(--heg-dark);display:flex;align-items:center;justify-content:center;margin-bottom:6px}
.heg-stat__label{font-size:13px;color:var(--heg-muted);font-weight:700}
.heg-stat__value{font-size:22px;font-weight:800;color:var(--heg-dark);line-height:1.2}
.heg-stat__sub{font-size:12.5px;color:var(--heg-muted)}
.heg-panel{background:var(--heg-soft);border-radius:16px;padding:22px;margin-bottom:20px}
.heg-panel h4,.heg-cta h4{margin:0 0 12px;font-size:18px;color:var(--heg-dark);font-weight:800}
.heg-tablewrap{overflow-x:auto}
.heg-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;font-size:15px}
.heg-table th,.heg-table td{padding:12px 14px;text-align:right;border-bottom:1px solid var(--heg-line)}
.heg-table th:first-child{text-align:left}
.heg-table thead th{background:var(--heg-dark);color:#fff;font-size:13px}
.heg-good{color:var(--heg-good);font-weight:800}
.heg-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.heg-dl{margin:0}
.heg-dl div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px dashed var(--heg-line)}
.heg-dl div:last-child{border-bottom:0}
.heg-dl dt{color:var(--heg-muted)}
.heg-dl dd{margin:0;font-weight:700;color:var(--heg-dark);text-align:right}
.heg-note{font-size:13.5px;color:var(--heg-muted);margin:12px 0 0}
.heg-note--box{background:#fff8e1;border-left:4px solid var(--heg-accent);padding:12px 16px;border-radius:8px;margin:0 0 20px;color:var(--heg-text)}
.heg-cta{background:var(--heg-dark);color:#dbe8f3;border-radius:18px;padding:clamp(22px,4vw,34px);margin-bottom:20px}
.heg-cta h4{color:#fff;font-size:22px}
.heg-cta a{color:var(--heg-accent)}
.heg-lead{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}
.heg-lead label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:14px;color:#fff}
.heg-lead input{font:inherit;padding:12px 14px;border-radius:10px;border:0;background:#fff;color:var(--heg-text)}
.heg-lead .heg-error{grid-column:1/-1;color:#ffb4a8;margin:0}
.heg-lead .heg-btn{grid-column:1/-1;justify-self:start}
.heg-hp{position:absolute!important;left:-9999px!important}
.heg-disclaimer{font-size:12.5px;color:var(--heg-muted);margin:0 0 14px}
.heg-restart{text-align:center;margin:0}

/* responsive */
@media (max-width:900px){
  .heg-cards--art{grid-template-columns:repeat(2,minmax(0,1fr))}
  .heg-cards--plan{grid-template-columns:repeat(3,minmax(0,1fr))}
  .heg-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .heg-postcode{grid-template-columns:1fr}
}
@media (max-width:640px){
  .heg-calc{border-radius:16px}
  .heg-cards--provider{grid-template-columns:1fr}
  .heg-cards--plan{grid-template-columns:repeat(2,minmax(0,1fr))}
  .heg-cards--art .heg-card__lines span:not(:first-child){display:none}
  .heg-two,.heg-lead{grid-template-columns:1fr}
  .heg-app{width:38px;height:38px}
  .heg-app svg{width:26px;height:26px}
  .heg-nav .heg-btn{padding:12px 20px}
}
@media (prefers-reduced-motion:reduce){.heg-calc *{transition:none!important}}

/* theme guard: stop Beaver Builder / theme styles leaking in */
.heg-calc h3,.heg-calc h4,.heg-calc dl,.heg-calc dd{margin:0}
.heg-calc .heg-q{margin:0 0 6px;font-size:clamp(22px,3vw,30px);line-height:1.2;font-weight:800;color:var(--heg-dark);text-transform:none;letter-spacing:normal}
.heg-calc .heg-hint{margin:0 0 22px}
.heg-calc .heg-report__title{color:#fff;margin:0;text-transform:none}
.heg-calc .heg-panel h4{color:var(--heg-dark)}
.heg-calc .heg-cta h4{color:#fff}
.heg-calc label{margin:0;font-size:inherit}
.heg-calc .heg-card,.heg-calc .heg-seg label{margin:0}
.heg-calc .heg-seg input,.heg-calc .heg-card input{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0}
.heg-calc .heg-money input{border:0;box-shadow:none;margin:0;min-width:0;height:auto;background:transparent}
.heg-calc .heg-input{height:auto;margin:0;box-shadow:none}
.heg-calc .heg-btn{font-family:inherit;line-height:1.2;text-decoration:none;text-transform:none;letter-spacing:normal;height:auto;margin:0}
.heg-calc .heg-btn--ghost{background:transparent;color:var(--heg-dark);border:2px solid var(--heg-line)}
.heg-calc .heg-btn--accent{background:var(--heg-accent);color:var(--heg-dark);border:0}
.heg-calc .heg-stepper__ctl button{padding:0;margin:0;min-height:0;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:var(--heg-dark);border:2px solid var(--heg-dark);border-radius:50%;width:46px;height:46px}
.heg-calc .heg-stepper__ctl button:hover:not(:disabled){background:var(--heg-dark);color:#fff}
.heg-calc .heg-table{margin:0;border:0}
.heg-calc .heg-table th,.heg-calc .heg-table td{border:0;border-bottom:1px solid var(--heg-line);background:transparent}
.heg-calc .heg-table thead th{background:var(--heg-dark);color:#fff}
.heg-calc .heg-lead input{margin:0;height:auto;border:0;box-shadow:none}
.heg-calc svg{max-width:none}
