/* V8.5: Scoped to HUS Product Showcase's real DOM (#hus-showcase).
 * Product Showcase mounts BEFORE HUS2's original React hero and hides its
 * immediate sibling. We preserve that DOM order and never reparent React. */
html:not(.hus-v8-active) #hus-v8-form-panel,
html:not(.hus-v8-active) #hus-v8-planner {display:none!important;}
html.hus-v8-active #hus2-home-root main#main-content {
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 grid-auto-flow:row!important;align-items:stretch!important;width:100%!important;margin:0!important;padding:0!important;
}
html.hus-v8-active #hus2-home-root main#main-content > #hus-v8-form-panel {
 grid-column:1!important;grid-row:1!important;align-self:stretch!important;
 display:block!important;visibility:visible!important;opacity:1!important;
 width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;
 position:relative!important;background:linear-gradient(115deg,#151a1a,#080d0d 75%)!important;
 border-right:1px solid rgba(134,195,147,.27)!important;
}
html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase.hus-ps--hero {
 grid-column:2!important;grid-row:1!important;align-self:stretch!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin:0!important;overflow:hidden!important;
 border-left:1px solid rgba(124,190,145,.33)!important;
}
html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase .hus-ps__track {height:100%!important;}
html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase.hus-ps--stories .hus-ps__stage {
 position:relative!important;top:0!important;margin-top:0!important;
 height:100%!important;min-height:640px!important;
}
html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase .hus-ps__copy {
 left:clamp(18px,3vw,40px)!important;right:20px!important;bottom:34px!important;width:auto!important;
}
html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase .hus-ps__name {font-size:clamp(27px,2.8vw,42px)!important;}
html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase .hus-ps__line {font-size:clamp(12px,1.08vw,15px)!important;}
html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase .hus-ps__cut {width:min(43vw,560px)!important;}
html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase .hus-ps__spec {padding:7px 9px!important;min-width:80px!important;}
/* The product showcase plugin hides its adjacent HUS2 original hero.
   Keep that original hero hidden; never hide the new form or Planner. */
html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase.hus-ps--hero + * {display:none!important;}
html.hus-v8-active #hus2-home-root main#main-content > #hus-v8-planner {
 grid-column:1/-1!important;grid-row:2!important;align-self:stretch!important;
 display:block!important;width:100%!important;min-width:0!important;margin:0!important;
}
html.hus-v8-active #hus2-home-root main#main-content > :not(#hus-v8-form-panel):not(#hus-v8-planner):not(#hus-showcase):not(.hus-ps--hero){
 grid-column:1/-1!important;width:100%!important;min-width:0!important;
}
@media(max-width:850px){
 html.hus-v8-active #hus2-home-root main#main-content{grid-template-columns:minmax(0,1fr)!important;}
 html.hus-v8-active #hus2-home-root main#main-content > #hus-v8-form-panel{grid-column:1!important;grid-row:1!important;min-height:0!important;}
 html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase.hus-ps--hero{grid-column:1!important;grid-row:2!important;}
 html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase .hus-ps__track{height:auto!important;}
 html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase.hus-ps--stories .hus-ps__stage{height:clamp(430px,70svh,630px)!important;min-height:430px!important;}
 html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase .hus-ps__cut{width:min(94vw,480px)!important;}
 html.hus-v8-active #hus2-home-root main#main-content > #hus-showcase .hus-ps__copy{bottom:38px!important;}
 html.hus-v8-active #hus2-home-root main#main-content > #hus-v8-planner{grid-column:1!important;grid-row:3!important;}
 html.hus-v8-active #hus2-home-root main#main-content > :not(#hus-v8-form-panel):not(#hus-v8-planner):not(#hus-showcase):not(.hus-ps--hero){grid-column:1!important;}
}

#hus-v82-preview-badge {
  position:fixed;z-index:2147483000;bottom:12px;right:12px;
  font:600 11px/1.2 system-ui,sans-serif;
  color:#e5ffe8;background:#0c1b14;border:1px solid #589772;
  padding:7px 10px;border-radius:8px;box-shadow:0 2px 10px #0005;
}
#hus-v8-form-panel, #hus-v8-planner { box-sizing:border-box; }
#hus-v8-form-panel *, #hus-v8-planner *,#hus-v8-form-panel *::before,#hus-v8-planner *::before,#hus-v8-form-panel *::after,#hus-v8-planner *::after{box-sizing:border-box;}
#hus-v8-form-panel, #hus-v8-planner {
  --v8-bg:#0b0e0e;--v8-green:#2e7d46;--v8-leaf:#76c991;--v8-light:#f8faf7;
  --v8-soft:#a6b7ae;--v8-border:rgba(137,196,152,.33);
  color:var(--v8-light);font:400 15px/1.55 'Hanken Grotesk','Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-feature-settings:normal;letter-spacing:normal;-webkit-font-smoothing:antialiased;
}
#hus-v8-form-panel a, #hus-v8-planner a {text-decoration:none;color:inherit;}
#hus-v8-form-panel button,#hus-v8-form-panel input,#hus-v8-form-panel select{font:inherit;}
#hus-v8-form-panel :focus-visible,#hus-v8-planner :focus-visible {outline:3px solid #92dda9;outline-offset:3px;}
#hus-v8-form-panel {
  position:relative!important; z-index:1; display:block; background:
  radial-gradient(75% 70% at 0 0,rgba(53,118,78,.15),transparent 65%),
  linear-gradient(110deg,#151a1a 0%,#0a0e0e 78%,#070a0b 100%);
  border-right:1px solid rgba(134,195,147,.27);
  overflow:visible;
}
#hus-v8-form-panel .v8-inner{
  min-height:100%;max-width:720px;margin:0 auto;padding:clamp(37px,4.5vw,76px) clamp(24px,4.3vw,72px) 39px;
  display:flex;flex-direction:column;justify-content:center;gap:0;
}
#hus-v8-form-panel .v8-eyebrow,#hus-v8-planner .v8-eyebrow{display:flex;align-items:center;gap:11px;color:#a9e2b8;font-size:10px;font-weight:850;letter-spacing:.17em;text-transform:uppercase;}
#hus-v8-form-panel .v8-eyebrow:before,#hus-v8-planner .v8-eyebrow:before{content:"";width:27px;height:1px;background:#79c995;display:inline-block;flex-shrink:0;}
#hus-v8-form-panel .v8-headline{font-family:'Iowan Old Style','Baskerville','Fraunces',Georgia,serif;font-size:clamp(37px,3.8vw,65px);font-weight:500;letter-spacing:-.032em;line-height:1.075;margin:19px 0 18px;max-width:660px;color:#fff;}
#hus-v8-form-panel .v8-headline em{color:#9bdfaf;font-style:italic;}
#hus-v8-form-panel .v8-summary{font-size:14px;line-height:1.58;margin:0 0 23px;color:#c4ccc5;max-width:540px;}
#hus-v8-form-panel .v8-trust{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;margin-bottom:27px;color:#e0e7e0;font-size:11px;font-weight:700;}
#hus-v8-form-panel .v8-check{color:#70c78a;font-size:17px;vertical-align:-1px;margin-right:5px;}
#hus-v8-form-panel .v8-form{border-radius:16px;border:1px solid var(--v8-border);background:linear-gradient(140deg,rgba(255,255,255,.055),rgba(255,255,255,.02));padding:20px 21px 18px;box-shadow:0 20px 36px rgba(0,0,0,.1);max-width:610px;}
#hus-v8-form-panel .v8-form-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;font-weight:800;color:#f9f9f6;margin-bottom:13px;}
#hus-v8-form-panel .v8-form-heading span{font-size:10px;font-weight:800;color:#96d9ab;letter-spacing:.1em;}
#hus-v8-form-panel .v8-fields{display:grid;grid-template-columns:1.4fr .9fr;gap:12px;}
#hus-v8-form-panel .v8-field{min-width:0;display:block;}
#hus-v8-form-panel .v8-field label{display:block;margin-bottom:7px;font-size:11px;font-weight:700;color:#d5ddd7;}
#hus-v8-form-panel .v8-field select,#hus-v8-form-panel .v8-field input{
  display:block;width:100%;min-width:0;height:47px;border-radius:9px;
  border:1px solid rgba(183,198,188,.38);background-color:#1b211e;color:#f7f9f5;
  padding:0 12px;font-size:13px;font-weight:500;
}
#hus-v8-form-panel .v8-field select{cursor:pointer;color-scheme:dark;}
#hus-v8-form-panel .v8-field option{color:#fff;background:#16201a;}
#hus-v8-form-panel .v8-field input::placeholder{color:#9ba9a0;}
#hus-v8-form-panel .v8-field [aria-invalid='true']{border-color:#f0b5a4;}
#hus-v8-form-panel .v8-error{min-height:14px;color:#f3b4a5;font-size:12px;margin:5px 0 0;}
#hus-v8-form-panel .v8-primary{
  display:flex;align-items:center;justify-content:center;gap:13px;width:100%;min-height:50px;
  margin:13px 0 0;border-radius:10px;border:1px solid #5cb477;
  background:linear-gradient(170deg,#358e51,#14552f);color:#fff;
  font-weight:850;font-size:14px;letter-spacing:.003em;cursor:pointer;
  box-shadow:0 9px 23px rgba(0,0,0,.24);transition:filter .2s ease,transform .2s ease;
}
#hus-v8-form-panel .v8-primary:hover{filter:brightness(1.12);transform:translateY(-1px);}
#hus-v8-form-panel .v8-under{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:12px;color:#b4c1b9;font-size:11px;}
#hus-v8-form-panel .v8-under a{font-weight:800;color:#9bdea9;text-decoration:underline;text-underline-offset:3px;}
#hus-v8-form-panel .v8-features{font-size:11px;line-height:1.5;color:#9bb4a3;letter-spacing:.02em;margin-top:21px;}
#hus-v8-form-panel .v8-features b{color:#7dce98;font-weight:650;}

#hus-v8-planner{
  position:relative!important;display:block;z-index:1;background:
  radial-gradient(65% 115% at 55% 0,rgba(42,94,62,.22),transparent 67%),
  linear-gradient(150deg,#111716,#070a0a 83%);
  padding:27px clamp(18px,3.3vw,58px) 34px;
  border-top:1px solid rgba(119,188,138,.32);
  border-bottom:1px solid rgba(119,188,138,.2);
}
#hus-v8-planner .v8-planner-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:20px;}
#hus-v8-planner h2{font-family:'Fraunces',Georgia,serif;font-size:clamp(25px,3vw,40px);font-weight:500;letter-spacing:-.025em;line-height:1.12;color:#fff;margin:8px 0 5px;}
#hus-v8-planner .v8-planner-caption{font-size:12px;max-width:750px;color:#b8c4bc;margin:0;}
#hus-v8-planner .v8-more{display:inline-flex;align-items:center;gap:5px;color:#9eddb1;font-size:12px;font-weight:750;white-space:nowrap;text-decoration:underline;text-underline-offset:4px;}
#hus-v8-planner .v8-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:11px;}
#hus-v8-planner .v8-card{
  position:relative;display:flex;flex-direction:column;justify-content:end;min-width:0;min-height:171px;
  border:1px solid rgba(116,172,133,.36);border-radius:14px;overflow:hidden;
  background:#1d2420;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.18);
  transition:transform .23s,border-color .23s,box-shadow .23s;
}
#hus-v8-planner .v8-card:hover{transform:translateY(-3px);border-color:#a1e3b3;box-shadow:0 12px 24px rgba(0,0,0,.28);}
#hus-v8-planner .v8-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
#hus-v8-planner .v8-card::after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,transparent 22%,rgba(6,11,9,.13) 38%,rgba(5,9,7,.94) 100%);}
#hus-v8-planner .v8-card span{z-index:1;position:relative;padding:0 10px 11px;font-size:12px;font-weight:800;line-height:1.3;color:#fff;text-shadow:0 1px 4px #000;}
#hus-v8-planner .v8-card small{display:block;margin-bottom:6px;font-weight:650;font-size:10px;color:#a5e7b6;}
#hus-v8-planner .v8-planner-foot{margin-top:14px;font-size:11px;color:#9db0a3;text-align:center;line-height:1.4;}

/* Make the existing HUS rebate strip conspicuous without replacing its
   amounts, disclaimer, program names, or backend CTA. */
html.hus-v8-active #hus-home-rebates {
  position:relative!important;z-index:40!important;
  background:linear-gradient(110deg,#0c301f,#16472d 48%,#0b2b1c)!important;
  border-top:3px solid #73d090!important;
  border-bottom:1px solid #376a4b!important;
  box-shadow:0 9px 20px rgba(2,17,8,.2)!important;
  overflow:visible!important;
}
html.hus-v8-active #hus-home-rebates .hhbr-inner{max-width:1440px!important;padding:19px clamp(18px,3vw,50px) 15px!important;gap:15px 21px!important;}
html.hus-v8-active #hus-home-rebates .hhbr-title{font-size:clamp(18px,1.6vw,24px)!important;color:#fff!important;line-height:1.18!important;}
html.hus-v8-active #hus-home-rebates .hhbr-kicker{color:#a4eabc!important;font-size:11px!important;}
html.hus-v8-active #hus-home-rebates .hhbr-program{min-height:65px!important;background:rgba(5,18,11,.38)!important;border:1px solid #527b61!important;border-radius:12px!important;}
html.hus-v8-active #hus-home-rebates .hhbr-program strong{color:#fff!important;font-size:13px!important;}
html.hus-v8-active #hus-home-rebates .hhbr-program span{color:#c4e0ce!important;}
html.hus-v8-active #hus-home-rebates .hhbr-cta{min-height:50px!important;padding:12px 21px!important;background:linear-gradient(145deg,#a0e9b0,#5eca7f)!important;color:#082514!important;font-size:13px!important;border-radius:999px!important;border:1px solid #c6f7cf!important;}
html.hus-v8-active #hus-home-rebates .hhbr-fine{color:#d3e4d8!important;margin:0!important;line-height:1.5!important;}

@media(max-width:1310px){
 #hus-v8-planner .v8-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
 #hus-v8-planner .v8-card{min-height:135px;}
 #hus-v8-form-panel .v8-inner{padding:35px 28px;}
 #hus-v8-form-panel .v8-headline{font-size:clamp(35px,3.3vw,50px);}
}
@media(max-width:850px){
 
 
 
 #hus-v8-form-panel .v8-inner{padding:29px 21px 25px;}
 #hus-v8-form-panel .v8-headline{font-size:clamp(35px,8vw,49px);margin:14px 0;}
 #hus-v8-form-panel .v8-summary{font-size:13px;margin-bottom:16px;}
 #hus-v8-form-panel .v8-trust{margin-bottom:15px;}
 #hus-v8-form-panel .v8-form{padding:15px;}
 #hus-v8-form-panel .v8-features{margin-top:14px;}
 #hus-v8-planner .v8-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 #hus-v8-planner .v8-card{min-height:142px;}
 #hus-v8-planner .v8-planner-head{flex-direction:column;align-items:flex-start;}
 #hus-v8-planner {padding:25px 17px 28px;}
 html.hus-v8-active #hus-home-rebates .hhbr-inner{padding:15px 14px!important;}
 html.hus-v8-active #hus-home-rebates .hhbr-program strong{font-size:11px!important;}
}
@media(max-width:440px){
 #hus-v8-form-panel .v8-fields{grid-template-columns:1fr;gap:8px;}
 #hus-v8-form-panel .v8-field select,#hus-v8-form-panel .v8-field input{height:45px;}
 #hus-v8-form-panel .v8-form-heading{font-size:13px;}
 #hus-v8-planner .v8-card{min-height:136px;}
 #hus-v8-planner .v8-card span{font-size:11px;}
}
@media(prefers-reduced-motion:reduce){#hus-v8-form-panel *,#hus-v8-planner *{transition:none!important;animation:none!important;}}



/* V8.4: ORIGINAL HUS Customer Confirmation form, relocated only after its
   existing JS binds. Never duplicate or reconstruct the lead fields. */
body #hus-v8-form-panel .v8-inner{
  max-width:780px;padding:clamp(20px,2.6vw,44px) clamp(20px,3vw,48px) 20px;
  justify-content:center;
}
body #hus-v8-form-panel .v8-headline{
  font-size:clamp(30px,2.65vw,45px);line-height:1.07;margin:10px 0 9px;
  letter-spacing:-.03em;
}
body #hus-v8-form-panel .v8-summary{font-size:12px;line-height:1.5;margin-bottom:11px}
body #hus-v8-form-panel .v8-trust{font-size:10px;margin-bottom:14px;gap:3px 11px}
body #hus-v8-form-panel .v8-eyebrow{font-size:9px}
body #hus-v8-form-panel .v8-native-form-slot{width:100%;max-width:670px;min-width:0}
body #hus-v8-form-panel #hus-request-estimate.hus-ccf:not([hidden]){
  clear:none;display:block;width:100%;max-width:100%;padding:0;margin:0;
  background:transparent;color:#eff7f0;scroll-margin-top:100px;
  font-family:'Hanken Grotesk',system-ui,sans-serif;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__inner{
  display:block;width:100%;max-width:100%;margin:0;padding:0;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__intro{display:none!important}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__form{
  display:block;width:100%;max-width:none;min-width:0;margin:0;padding:19px 20px 14px;
  border:1px solid rgba(137,196,152,.34);border-radius:14px;
  background:linear-gradient(130deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  color:#f5faf6;box-shadow:0 16px 40px rgba(0,0,0,.14);
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__row{gap:12px}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__field,
body #hus-v8-form-panel #hus-request-estimate .hus-mpv-message-field{
  display:block;font-family:inherit;font-size:12px;line-height:1.3;font-weight:650;
  color:#dcece0;margin:0 0 9px;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__field input,
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__field select,
body #hus-v8-form-panel #hus-request-estimate .hus-mpv-message-field textarea{
  display:block;width:100%;min-width:0;min-height:40px;height:40px;margin:5px 0 0;padding:9px 11px;
  border:1px solid rgba(167,198,175,.46);border-radius:8px;background:#19211d;
  color:#f9fff9;font:400 14px/1.4 'Hanken Grotesk',system-ui,sans-serif;
  box-shadow:none;color-scheme:dark;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__field select option{color:#fff;background:#182019}
body #hus-v8-form-panel #hus-request-estimate input::placeholder,
body #hus-v8-form-panel #hus-request-estimate textarea::placeholder{color:#a4b5aa;opacity:1}
body #hus-v8-form-panel #hus-request-estimate .hus-mpv-message-field textarea{
  resize:vertical;height:62px;min-height:62px;max-height:150px;padding-top:9px;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__consent{
  display:flex;align-items:flex-start;gap:9px;margin:12px 0;
  color:#c7d4ca;font-size:11px;line-height:1.4;font-weight:400;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__consent input{
  flex:0 0 17px;width:17px;height:17px;margin:0;accent-color:#76c991;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__submit{
  min-height:45px;padding:11px 16px;border:1px solid #68be84;border-radius:9px;
  background:linear-gradient(160deg,#328d50,#165b32);color:#fff;
  font:750 14px/1.4 'Hanken Grotesk',system-ui,sans-serif;
  box-shadow:0 10px 22px rgba(0,0,0,.2);cursor:pointer;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__submit:hover{background:linear-gradient(160deg,#3c9b5e,#1c6638)}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__submit:disabled{opacity:.67;cursor:default}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__fine{
  color:#b9c9bd;font-size:10px;line-height:1.4;margin:10px 0 0;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__fine a,
body #hus-v8-form-panel #hus-request-estimate a{color:#a5e8b9;text-decoration:underline}
body #hus-v8-form-panel .v8-explore{margin:12px 0 0;font-size:11px;color:#acd5b8}
body #hus-v8-form-panel .v8-explore a{color:#acd5b8;text-decoration:underline;text-underline-offset:3px}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__status{
  border:1px solid #6ba283;border-radius:8px;background:#1e3326;color:#e3f9e7;
  padding:12px;font-size:13px;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__success{
  color:#eaf8ec;font-size:13px;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__success h3{
  color:#fff;font-size:28px;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__next{
  border-top:1px solid #41634c;color:#d2e2d5;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__schedule{
  background:#2a8046;color:#fff!important;border:1px solid #68be84;
}
body #hus-v8-form-panel #hus-request-estimate .hus-ccf__phone-action{
  background:#18281d;color:#bfe7ca!important;border:1px solid #648d6f;
}
body #hus-v8-form-panel #hus-request-estimate :is(input,select,textarea,button):focus-visible{
  outline:2px solid #9fdfb1;outline-offset:2px;
}
@media (max-width:850px){
  body #hus-v8-form-panel .v8-inner{padding:24px 20px}
  body #hus-v8-form-panel .v8-headline{font-size:clamp(30px,7.5vw,42px)}
  body #hus-v8-form-panel #hus-request-estimate .hus-ccf__form{padding:15px}
}
@media (max-width:360px){
  body #hus-v8-form-panel #hus-request-estimate .hus-ccf__row{grid-template-columns:minmax(0,1fr);gap:0}
}
