.nexgen-calculator{--ng:#4AAB3D;--ng-dark:#35882B;--ng-light:#f0f9ee;box-sizing:border-box;max-width:1020px;margin:24px auto;padding:32px;border:1px solid #d8ecd3;border-radius:20px;background:white;color:#172b42;font-family:inherit;box-shadow:0 16px 38px rgba(14,50,15,.055)}
.nexgen-calculator *{box-sizing:border-box}
.nexgen-calculator [hidden]{display:none!important}
.nexgen-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;margin:0 0 26px;padding:0 0 23px;border-bottom:1px solid #e4ece2}
.nexgen-steps li{display:flex;gap:10px;align-items:center;font-weight:600;color:#758274;font-size:14px}
.nexgen-steps li b{width:34px;height:34px;border-radius:50%;background:#edf1ee;color:#69746d;display:inline-flex;align-items:center;justify-content:center;flex:none}
.nexgen-steps li.is-active{color:#286f20}.nexgen-steps li.is-active b,.nexgen-steps li.is-complete b{background:var(--ng);color:white}
.nexgen-kicker{color:var(--ng-dark);text-transform:uppercase;font-size:12px;letter-spacing:.08em;font-weight:800;margin:0 0 10px}
.nexgen-panel h3{font-size:clamp(22px,3vw,30px);color:#14243c;margin:0 0 9px;font-weight:800;line-height:1.2}
.nexgen-lead{font-size:15px;color:#617083;line-height:1.6;margin:0 0 24px}
.nexgen-form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-bottom:18px;align-items:start}
.nexgen-field{display:block;font-size:14px;font-weight:700;color:#172b42;min-width:0;line-height:1.4}
.nexgen-field small{font-weight:400;color:#6d7884}.nexgen-full{margin-bottom:8px}
.nexgen-calculator .nexgen-field>input,.nexgen-calculator .nexgen-field>select,.nexgen-calculator .nexgen-input-wrap>input{display:block;box-sizing:border-box!important;width:100%!important;height:58px!important;min-height:58px!important;max-height:58px!important;margin:8px 0 0!important;padding:0 16px!important;font-family:inherit;font-size:16px!important;line-height:normal!important;border:1px solid #cad5e2!important;border-radius:10px!important;background-color:#fff!important;color:#172b42!important;box-shadow:none!important;outline-offset:2px;vertical-align:top}
.nexgen-calculator .nexgen-field>select{padding-right:38px!important;cursor:pointer}
.nexgen-calculator .nexgen-input-wrap>input{padding-left:36px!important}
.nexgen-input-wrap{display:block;position:relative}.nexgen-dollar{position:absolute;left:15px;top:8px;height:58px;display:flex;align-items:center;pointer-events:none;color:#637284;font-size:16px;font-weight:600}
.nexgen-calculator .nexgen-field>input:focus,.nexgen-calculator .nexgen-field>select:focus,.nexgen-calculator .nexgen-input-wrap>input:focus{border-color:var(--ng)!important;box-shadow:0 0 0 3px rgba(74,171,61,.14)!important}
.nexgen-help{font-size:13px;line-height:1.5;color:#66788b;margin:4px 0 17px}
.nexgen-fieldset{border:none;padding:0;margin:22px 0}.nexgen-fieldset legend{font-weight:800;font-size:16px;padding:0}.nexgen-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.nexgen-choice{display:flex;align-items:center;gap:10px;border:1px solid #d4e5d0;border-radius:12px;padding:16px 12px;cursor:pointer;font-weight:650;font-size:14px;background:#fff;line-height:1.3}
.nexgen-choice:has(input:checked){border-color:var(--ng);background:var(--ng-light)}.nexgen-choice input{accent-color:var(--ng);height:18px;width:18px;flex:none;margin:0}
.nexgen-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px}.nexgen-actions-end{justify-content:flex-end}
.nexgen-calculator .nexgen-submit,.nexgen-calculator .nexgen-back,.nexgen-calculator .nexgen-reset{font-family:inherit;border-radius:10px;font-size:16px;font-weight:750;padding:14px 22px;cursor:pointer;line-height:1.25;min-height:50px;box-shadow:none}
.nexgen-calculator .nexgen-submit{width:auto;min-width:190px;border:1px solid var(--ng);background:var(--ng);color:white;margin:0}
.nexgen-calculator .nexgen-submit:hover{background:var(--ng-dark)}.nexgen-calculator .nexgen-submit:disabled{opacity:.65;cursor:wait}
.nexgen-calculator .nexgen-back,.nexgen-calculator .nexgen-reset{border:1px solid #cbd5de;background:white;color:#253f53}
.nexgen-error{color:#9b1c1c;background:#fff1f2;border-radius:9px;margin:15px 0 0;padding:12px}
.nexgen-context{border-radius:10px;background:#f1f8ef;padding:11px 14px;font-size:13px;color:#346e31;margin:0 0 20px}
.nexgen-results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.nexgen-stat{background:var(--ng-light);border:1px solid #d4eacd;border-radius:12px;padding:15px;min-width:0}
.nexgen-stat span,.nexgen-stat small{display:block;color:#526b59;font-size:12px}.nexgen-stat strong{display:block;color:#236f23;font-size:21px;line-height:1.3;margin:8px 0;overflow-wrap:anywhere}
.nexgen-breakdown{margin-top:22px;border:1px solid #e3e9e0;border-radius:12px;overflow:hidden}.nexgen-breakdown>div{padding:13px 17px;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #e3e9e0}.nexgen-breakdown>div:last-child{border-bottom:0}.nexgen-breakdown strong{text-align:right}.nexgen-net{background:var(--ng-light);font-size:18px}.nexgen-net strong{color:#236f23}
.nexgen-disclaimer{font-size:12px;color:#687588;line-height:1.7;margin:20px 0 0}
@media(max-width:700px){.nexgen-calculator{padding:22px 16px}.nexgen-form-row{grid-template-columns:1fr;gap:12px}.nexgen-options{grid-template-columns:1fr}.nexgen-steps{gap:4px}.nexgen-steps li{font-size:11px;gap:5px}.nexgen-steps li b{width:27px;height:27px}.nexgen-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nexgen-stat strong{font-size:18px}.nexgen-breakdown>div{font-size:13px}.nexgen-actions{flex-wrap:wrap}.nexgen-calculator .nexgen-submit{flex:1}}
/* Guided address confirmation, roofing cards, and contact summary */
.nexgen-calculator .nexgen-address-preview{padding:26px;background:#f4f8f3;border:1px solid #d5e9d0;border-radius:12px;margin:20px 0;display:grid;gap:9px}
.nexgen-calculator .nexgen-address-preview strong{font-size:23px;color:#1e3833}
.nexgen-calculator .nexgen-address-preview span{color:#64716f}
.nexgen-calculator .nexgen-address-preview p{margin:4px 0 0}
.nexgen-calculator .nexgen-roof-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:14px}
.nexgen-calculator .nexgen-roof-choice{position:relative;display:flex;flex-direction:column;gap:11px;cursor:pointer;padding:13px;border:1px solid #ccd8d5;border-radius:11px;min-width:0}
.nexgen-calculator .nexgen-roof-choice:has(input:checked){border:2px solid var(--ng);background:var(--ng-light);padding:12px}
.nexgen-calculator .nexgen-roof-choice input{position:absolute;top:20px;right:19px;accent-color:var(--ng);width:18px;height:18px;z-index:1;margin:0}
.nexgen-calculator .nexgen-roof-choice b{font-size:15px}
.nexgen-calculator .nexgen-roof-graphic{display:flex;height:120px;border-radius:7px;align-items:center;justify-content:center;overflow:hidden}
.nexgen-calculator .nexgen-roof-graphic.shingles{background-color:#4c5558;background-image:repeating-linear-gradient(0deg,transparent 0 28px,#252e32 29px 34px),repeating-linear-gradient(90deg,transparent 0 85px,#30393c 86px 91px)}
.nexgen-calculator .nexgen-roof-graphic.tile{background-color:#b46d46;background-image:repeating-radial-gradient(ellipse at 50% 100%,#d5966d 0px,#9e502f 29px,#c78258 35px,#c78258 65px)}
.nexgen-calculator .nexgen-roof-graphic.unsure{background:#f1f3f1;color:#24483a;font-size:54px}
.nexgen-calculator .nexgen-details{border-top:1px solid #e3e8e3;border-bottom:1px solid #e3e8e3;padding:15px 0;margin:20px 0 28px}
.nexgen-calculator .nexgen-details summary{cursor:pointer;font-weight:700;font-size:15px}
.nexgen-calculator .nexgen-details[open] summary{margin-bottom:18px}
.nexgen-calculator .nexgen-details textarea{width:100%;min-height:92px;resize:vertical;margin-top:8px;padding:12px;border-radius:10px;border:1px solid #cad5e2;font:inherit}
.nexgen-calculator .nexgen-section-title{font-size:23px;margin:28px 0 22px}
.nexgen-calculator .nexgen-contact-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:30px;align-items:start}
.nexgen-calculator .nexgen-project-summary{background:#f7f8f6;border:1px solid #c6cfcb;border-radius:9px;padding:25px}
.nexgen-calculator .nexgen-project-summary h4{font-size:23px;color:#163633;margin:0 0 20px}
.nexgen-calculator .nexgen-project-summary dl{margin:0}
.nexgen-calculator .nexgen-project-summary dl>div{border-top:1px solid #e1e5e1;padding:15px 0;display:grid;grid-template-columns:35% 1fr;gap:14px;font-size:14px;line-height:1.55}
.nexgen-calculator .nexgen-project-summary dt{font-weight:800}.nexgen-calculator .nexgen-project-summary dd{margin:0;overflow-wrap:anywhere}
.nexgen-calculator .nexgen-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.55;cursor:pointer;color:#3d4b55}
.nexgen-calculator .nexgen-consent input{width:18px;height:18px;flex:none;margin:3px 0 0;accent-color:var(--ng)}
.nexgen-calculator .nexgen-honeypot{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;left:-9999px!important}
.nexgen-calculator .nexgen-success-message{padding:15px;background:var(--ng-light);border-radius:9px;color:#236f23}
@media(max-width:800px){.nexgen-calculator .nexgen-contact-layout{grid-template-columns:1fr}}
@media(max-width:600px){.nexgen-calculator .nexgen-roof-options{grid-template-columns:1fr}.nexgen-calculator .nexgen-roof-graphic{height:85px}.nexgen-calculator .nexgen-project-summary{padding:17px}}

/* Expanded lead capture and clear submission failure state */
.nexgen-calculator .nexgen-textarea{width:100%!important;min-height:100px;border:1px solid #cad5e2!important;border-radius:10px!important;padding:12px 14px!important;margin:8px 0 16px!important;font:inherit!important;line-height:1.5!important;resize:vertical;background:#fff!important;color:#172b42!important}
.nexgen-calculator .nexgen-textarea:focus{border-color:var(--ng)!important;outline:2px solid rgba(74,171,61,.25)}
.nexgen-calculator .nexgen-submission-failed{border:1px solid #d52c22;border-radius:12px;background:#fff5f4;color:#203c46;padding:22px;margin:20px 0;font-size:16px;line-height:1.6}
.nexgen-calculator .nexgen-submission-failed strong{display:block;color:#a51e17;font-size:22px}
.nexgen-calculator .nexgen-submission-failed p{margin:10px 0 0}
.nexgen-calculator .nexgen-submission-failed .nexgen-error-detail{font-size:13px;color:#8d2621}

/* Admin-customized variables override base theme defaults. */
.nexgen-calculator{max-width:var(--ng-width,1020px);border-radius:var(--ng-radius,20px);background:var(--ng-bg,#fff);color:var(--ng-text,#172b42)}
.nexgen-calculator .nexgen-field>input,.nexgen-calculator .nexgen-field>select,.nexgen-calculator .nexgen-input-wrap>input{height:var(--ng-input-height,58px)!important;min-height:var(--ng-input-height,58px)!important;max-height:var(--ng-input-height,58px)!important}
.nexgen-calculator .nexgen-submit:hover{background:var(--ng-dark,#35882B)}
.nexgen-calculator [hidden]{display:none!important}

/* Step 2 address preview. Scoped to this calculator only. */

/* v1.7.1 – tidy electricity fields (long hint no longer offsets the left input). */
.nexgen-calculator .nexgen-electricity-grid{align-items:start;gap:20px;margin-bottom:4px}
.nexgen-calculator .nexgen-electricity-grid>.nexgen-field{display:block;min-width:0;line-height:1.45;font-size:14px;font-weight:700}
.nexgen-calculator .nexgen-electricity-grid .nexgen-input-wrap{display:block;width:100%;margin:0;padding:0;position:relative}
.nexgen-calculator .nexgen-electricity-grid .nexgen-input-wrap>input,
.nexgen-calculator .nexgen-electricity-grid .nexgen-field>select{display:block;margin:10px 0 0!important;width:100%!important;height:var(--ng-input-height,58px)!important;min-height:var(--ng-input-height,58px)!important;max-height:var(--ng-input-height,58px)!important;box-sizing:border-box!important}
.nexgen-calculator .nexgen-electricity-grid .nexgen-dollar{top:10px;height:var(--ng-input-height,58px)}
.nexgen-calculator .nexgen-electricity-note{font-size:13px;line-height:1.5;color:#6d7884;margin:9px 0 18px;font-weight:400}
.nexgen-calculator .nexgen-textarea::placeholder{font-weight:400;color:#748393;opacity:1}
@media(max-width:700px){.nexgen-calculator .nexgen-electricity-grid{grid-template-columns:minmax(0,1fr);gap:16px}}

/* v1.8.2: request received screen; no automatic quote shown to visitors. */
.nexgen-calculator .nexgen-thankyou{text-align:center;padding:clamp(24px,5vw,58px) 16px 16px}
.nexgen-calculator .nexgen-thankyou-symbol{margin:0 auto 20px;display:flex;align-items:center;justify-content:center;width:78px;height:78px;border-radius:50%;background:var(--ng-light,#f0f9ee);color:var(--ng,#4AAB3D);border:2px solid var(--ng,#4AAB3D);font-size:38px;font-weight:700;line-height:1}
.nexgen-calculator .nexgen-thankyou h3{font-size:clamp(25px,4vw,36px);margin:8px 0 15px;color:var(--ng-text,#172b42)}
.nexgen-calculator .nexgen-thankyou-text{font-size:17px;line-height:1.75;color:#546678;max-width:560px;margin:0 auto 22px}
.nexgen-calculator .nexgen-thankyou .nexgen-success-message{max-width:580px;margin:0 auto 20px;line-height:1.5}
.nexgen-calculator .nexgen-thankyou-actions{display:flex;justify-content:center;margin-top:26px}
.nexgen-calculator .nexgen-thankyou-actions button{cursor:pointer;padding:12px 22px;border:1px solid #d5e3d5;border-radius:10px;background:#fff;color:var(--ng-dark,#35882B);font-weight:700}
.nexgen-calculator .nexgen-thankyou-actions button:hover{border-color:var(--ng,#4AAB3D);background:var(--ng-light,#f0f9ee)}

/* v1.8.3: robust, theme-resistant electricity input layout */
.nexgen-calculator .nexgen-electricity-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:20px!important;
  align-items:start!important;
  margin-top:14px!important;
  margin-bottom:0!important;
}
.nexgen-calculator .nexgen-electricity-grid > label.nexgen-field{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  font-size:14px!important;
  line-height:1.5!important;
}
.nexgen-calculator .nexgen-electricity-grid .nexgen-input-wrap{
  display:block!important;
  position:relative!important;
  flex:none!important;
  min-width:0!important;
  width:100%!important;
  height:var(--ng-input-height,58px)!important;
  margin:10px 0 0!important;
  padding:0!important;
}
.nexgen-calculator .nexgen-electricity-grid .nexgen-input-wrap > input{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  min-height:100%!important;
  max-height:100%!important;
  padding:0 16px 0 44px!important;
  margin:0!important;
  text-indent:0!important;
  float:none!important;
}
.nexgen-calculator .nexgen-electricity-grid .nexgen-field > select{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:var(--ng-input-height,58px)!important;
  min-height:var(--ng-input-height,58px)!important;
  max-height:var(--ng-input-height,58px)!important;
  margin:10px 0 0!important;
  float:none!important;
}
.nexgen-calculator .nexgen-electricity-grid .nexgen-dollar{
  position:absolute!important;
  top:0!important;
  bottom:0!important;
  left:16px!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  transform:none!important;
  pointer-events:none!important;
}
.nexgen-calculator .nexgen-electricity-note{
  margin:10px 0 22px!important;
  font-size:13px!important;
  line-height:1.6!important;
}
@media(max-width:700px){
  .nexgen-calculator .nexgen-electricity-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:16px!important;
  }
}

/* v1.8.6 - make restored roof cards fully visible and match the reference layout. */
.nexgen-calculator [data-step="2"] .nexgen-fieldset {display:block;clear:both;margin:28px 0 32px!important;border:0!important;padding:0!important}
.nexgen-calculator [data-step="2"] .nexgen-fieldset legend {display:block;width:100%;font-size:17px;font-weight:750;line-height:1.45;margin-bottom:14px;padding:0}
.nexgen-calculator [data-step="2"] .nexgen-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.nexgen-calculator [data-step="2"] .nexgen-choice {display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;min-height:72px;padding:17px 18px;border:1px solid #a9b8b4;border-radius:10px;font-size:16px;font-weight:650;line-height:1.4;background:#fff;color:#17383b;cursor:pointer}
.nexgen-calculator [data-step="2"] .nexgen-choice input {appearance:none;-webkit-appearance:none;width:25px;height:25px;min-width:25px;min-height:25px;margin:0;border:1.5px solid #899d9d;background:#fff;border-radius:50%;display:grid;place-items:center;cursor:pointer}
.nexgen-calculator [data-step="2"] .nexgen-choice input:checked {background:var(--ng,#4AAB3D);border-color:var(--ng,#4AAB3D)}
.nexgen-calculator [data-step="2"] .nexgen-choice input:checked:after {content:'✓';font-size:16px;font-weight:900;color:white}
.nexgen-calculator [data-step="2"] .nexgen-choice:has(input:checked),.nexgen-calculator [data-step="2"] .nexgen-roof-choice:has(input:checked){border-color:var(--ng,#4AAB3D);background:var(--ng-light,#f0f9ee)}
.nexgen-calculator [data-step="2"] .nexgen-roof-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.nexgen-calculator [data-step="2"] .nexgen-roof-choice{display:flex;flex-direction:column;position:relative;gap:10px;min-width:0;border:1px solid #a9b8b4;border-radius:10px;padding:13px;background:#fff;cursor:pointer}
.nexgen-calculator [data-step="2"] .nexgen-roof-choice input{appearance:none;-webkit-appearance:none;position:absolute;right:19px;top:18px;z-index:2;width:25px;height:25px;min-width:25px;min-height:25px;border:1.5px solid #899d9d;border-radius:50%;background:#fff;margin:0;cursor:pointer}
.nexgen-calculator [data-step="2"] .nexgen-roof-choice input:checked{border-color:var(--ng,#4AAB3D);background:var(--ng,#4AAB3D)}
.nexgen-calculator [data-step="2"] .nexgen-roof-choice input:checked:after{content:'✓';display:block;text-align:center;line-height:22px;color:#fff;font-size:16px;font-weight:900}
.nexgen-calculator [data-step="2"] .nexgen-roof-choice b{font-size:16px;color:#153639}
.nexgen-calculator [data-step="2"] .nexgen-roof-graphic{height:146px;width:100%;border-radius:7px}
.nexgen-calculator [data-step="2"] .nexgen-roof-graphic.unsure{font-size:65px}
@media(max-width:700px){.nexgen-calculator [data-step="2"] .nexgen-options{grid-template-columns:1fr}.nexgen-calculator [data-step="2"] .nexgen-roof-options{grid-template-columns:1fr}.nexgen-calculator [data-step="2"] .nexgen-roof-graphic{height:130px}}

/* Optional field ordering from the backend step editor */
.nexgen-calculator .nexgen-managed-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin:20px 0}
.nexgen-calculator .nexgen-managed-fields > .nexgen-field{min-width:0;margin:0}
.nexgen-calculator .nexgen-managed-fields > .nexgen-managed-full{grid-column:1/-1}
.nexgen-calculator .nexgen-managed-fields .nexgen-input-wrap input{box-sizing:border-box;width:100%}
.nexgen-calculator [hidden]{display:none!important}
@media(max-width:700px){.nexgen-calculator .nexgen-managed-fields{grid-template-columns:1fr}.nexgen-calculator .nexgen-managed-fields > .nexgen-managed-full{grid-column:auto}}

/* FormVista country/state/city address selector */
.nexgen-calculator .nexgen-field [hidden]{display:none!important}
.nexgen-calculator .fv-city-note{display:block;font-weight:400;font-size:12px;color:#64748b;margin-top:6px}
.nexgen-calculator .fv-city-note[hidden]{display:none!important}
.nexgen-calculator select[data-us-city-select]{max-height:58px}
