/* HPGUK website palette, inspected 2026-09-09: blue #2c7be5, green #28a745, surface #f4f7fb. */
.hpguk-cta-wrap{margin:28px 0}
.hpguk-cta,.hpguk-dialog .hpguk-cta{display:inline-block;background:#2c7be5;color:#fff;border:0;border-radius:999px;padding:16px 22px;font:700 19px/1.4 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;text-align:center;white-space:normal}
.hpguk-cta:hover{background:#1e73be}
.hpguk-cta:disabled{opacity:.6;cursor:wait}
.hpguk-cta-note{font:13px/1.6 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#4A5568;margin:10px 0}
.hpguk-dialog{padding:0;width:min(620px,calc(100vw - 28px));max-height:90vh;max-height:90dvh;border:0;border-radius:18px;background:#ffffff;color:#334155;box-shadow:0 24px 90px #0f172a26;font:15px/1.55 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.hpguk-dialog::backdrop{background:#0f172ab8;backdrop-filter:blur(4px)}
.hpguk-dialog *{box-sizing:border-box}
.hpguk-dialog [hidden]{display:none!important}
.hpguk-header{display:flex;justify-content:space-between;align-items:center;padding:20px 32px;border-bottom:1px solid #e2e8f0;background:#f4f7fb}
.hpguk-brand{display:flex;gap:10px;align-items:center;font-size:11px;letter-spacing:1.7px;line-height:1.35}
.hpguk-brand strong{font-size:16px}
.hpguk-mark{background:#2c7be5;color:#fff;border-radius:50% 50% 50% 8px;padding:7px 13px;font-size:23px;font-weight:800}
.hpguk-close{border:0;background:transparent;font-size:30px;color:#334155;cursor:pointer;min-width:44px;min-height:44px}
.hpguk-body{padding:26px 32px}
.hpguk-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;margin:0 0 12px;color:#166534}
.hpguk-dialog h2{font:700 30px/1.13 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-1px;margin:0 0 14px;color:#0f172a}
.hpguk-intro{color:#4A5568;margin:0 0 20px}
.hpguk-mode{font-size:13px;background:#eef5ff;border:1px solid #bdd5f4;padding:10px 13px;border-radius:7px}
.hpguk-mode:empty{display:none}
.hpguk-progress{display:flex;list-style:none;padding:0;margin:24px 0;gap:6px}
.hpguk-progress li{flex:1;border-top:3px solid #e2e8f0;padding-top:10px;font-size:12px;color:#4A5568}
.hpguk-progress li[aria-current=step]{border-color:#28a745;font-weight:800;color:#1e73be}
.hpguk-dialog fieldset{border:0;margin:0;padding:0;min-width:0}
.hpguk-dialog legend{font-size:20px;font-weight:750;margin-bottom:16px;line-height:1.3}
.hpguk-dialog label{display:block;font-size:14px;font-weight:650;margin:0 0 7px}
.hpguk-dialog input:not([type=checkbox]),.hpguk-dialog select,.hpguk-dialog textarea{display:block;width:100%;min-height:48px;border:1px solid #94a3b8;border-radius:7px;padding:11px 12px;margin:0 0 17px;background:#fff;color:#334155;font:16px/1.4 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.hpguk-dialog textarea{resize:vertical}
.hpguk-help{font-size:13px;color:#4A5568;margin:-4px 0 16px}
.hpguk-dialog output{display:block;text-align:right;font-size:12px;color:#4A5568}
.hpguk-actions{display:flex;gap:15px;margin:23px 0 12px;align-items:center}
.hpguk-actions .hpguk-cta{flex:1}
.hpguk-back{border:0;background:transparent;color:#1e73be;font-weight:700;cursor:pointer;padding:12px 0;font-size:14px}
.hpguk-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hpguk-disclosure,.hpguk-advice{background:#f4f7fb;border-left:3px solid #28a745;border-radius:9px;padding:17px;font-size:13px;margin:12px 0 20px}
.hpguk-disclosure p,.hpguk-advice p{margin:7px 0}
.hpguk-dialog .hpguk-consent{display:flex;gap:11px;align-items:flex-start;font-size:12px;line-height:1.6;font-weight:400;margin:14px 0}
.hpguk-consent input{flex:0 0 20px;width:20px;height:20px;margin:2px 0 0;accent-color:#2c7be5}
.hpguk-dialog a{color:#1e73be;text-decoration:underline}
.hpguk-footer{border-top:1px solid #e2e8f0;text-align:center;padding-top:17px;font-size:12px;color:#4A5568;margin-top:23px}
.hpguk-footer span{display:block;font-size:10px;margin-top:5px}
.hpguk-honey{position:absolute;left:-10000px;height:1px;overflow:hidden}
#hpguk-error{padding:12px;background:#fff0eb;border:1px solid #c15a36;border-radius:7px;color:#8a2914;margin-bottom:18px;font-size:14px}
.hpguk-dialog :focus-visible,.hpguk-cta:focus-visible{outline:3px solid #2c7be5;outline-offset:3px}
.hpguk-dialog h3{font-size:25px;line-height:1.25}
body.hpguk-modal-open{overflow:hidden}
@media(max-width:480px){.hpguk-header{padding:15px 20px}
.hpguk-body{padding:22px 20px}
.hpguk-dialog h2{font-size:27px}
.hpguk-name-grid{grid-template-columns:1fr;gap:0}
.hpguk-progress li{font-size:11px}
.hpguk-cta,.hpguk-dialog .hpguk-cta{font-size:19px;padding:15px}
.hpguk-dialog{max-height:94dvh}
.hpguk-progress{margin:20px 0}
}

.hpguk-header{position:sticky;top:0;z-index:2}

.hpguk-dialog .hpguk-header{background:#fff}
.hpguk-brand-logo{width:220px;height:60px;overflow:hidden;position:relative}
.hpguk-brand-logo img{position:absolute;width:340px!important;height:auto!important;max-width:none!important;left:-50px;top:-78px}


/* Editable copy must wrap safely on narrow screens. */
.hpguk-dialog .hpguk-body, .hpguk-cta-wrap { overflow-wrap:anywhere; }
.hpguk-cta { white-space:normal; max-width:100%; }
#hpguk-result-copy, .hpguk-disclosure p, #hpguk-mode { white-space:pre-line; }

.hpguk-dialog{overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:110px}
.hpguk-consent span{min-width:0;overflow-wrap:anywhere}
.hpguk-dialog .hpguk-consent{font-size:14px}
@media(max-width:480px){.hpguk-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.hpguk-body{padding-bottom:max(24px,env(safe-area-inset-bottom))}.hpguk-dialog .hpguk-actions{flex-wrap:wrap}.hpguk-dialog .hpguk-actions .hpguk-cta{min-width:180px}}
@media(max-height:600px){.hpguk-header{padding-top:6px;padding-bottom:6px}.hpguk-brand-logo{height:60px}.hpguk-dialog{max-height:100dvh}.hpguk-body{padding-top:14px}}

/* Guided choices retain native radio semantics and full visible labels. */
.hpguk-project-position{font-size:.85rem;color:#52635c;margin-top:20px}
.hpguk-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.hpguk-dialog label.hpguk-card{position:relative;margin:0;cursor:pointer;font-weight:600;min-width:0}
.hpguk-dialog .hpguk-card input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;border:0;margin:0;clip-path:inset(50%)}
.hpguk-card-body{display:flex;align-items:center;gap:12px;padding:16px 12px;border:2px solid #cad7cf;border-radius:14px;min-height:78px;height:100%;box-sizing:border-box;background:#fff}
.hpguk-card-icon{display:flex;flex:0 0 32px;color:#24754b}
.hpguk-card-label{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.hpguk-card-check{opacity:0;flex:0 0 18px;font-weight:800}
.hpguk-card input:checked+.hpguk-card-body{border-color:#24754b;background:#edf8ee;box-shadow:0 0 0 1px #24754b}
.hpguk-card input:checked+.hpguk-card-body .hpguk-card-check{opacity:1}
.hpguk-card input:focus-visible+.hpguk-card-body{outline:3px solid #163e2d;outline-offset:3px}
@media(max-width:520px){.hpguk-cards{grid-template-columns:1fr}.hpguk-card-body{min-height:64px}}

/* Opt-in landing sections; established HPGUK navy and darker accessible green. */
.hpg-installer-landing{--hpg-landing-navy:#0f172a;--hpg-landing-green:#24754b;box-sizing:border-box;width:100%;max-width:none;margin:0;padding:64px 24px;background:#edf8ee;color:#334155;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-wrap:anywhere}
.hpg-installer-landing *{box-sizing:border-box}
.hpg-installer-landing--green{background:linear-gradient(120deg,#e1efdc,#edf5e9)}
.hpg-installer-landing--navy{background:var(--hpg-landing-navy);color:#e2e8f0}
.hpg-installer-landing .hpg-installer-landing__inner{width:100%;max-width:1180px;margin:0 auto}
.hpg-installer-landing .hpg-installer-landing__intro{max-width:1000px;margin:0 auto 22px;text-align:center}
.hpg-installer-landing .hpg-installer-landing__eyebrow{display:block;color:var(--hpg-landing-green);font-size:12px;line-height:1.5;letter-spacing:1.6px;font-weight:750;margin:0 0 12px}
.hpg-installer-landing .hpg-installer-landing__intro h2{color:var(--hpg-landing-navy);font:750 clamp(26px,2.7vw,34px)/1.2 Inter,system-ui,sans-serif;letter-spacing:-.6px;margin:0 0 10px;text-wrap:balance}
.hpg-installer-landing .hpg-installer-landing__intro p{font-size:17px;line-height:1.6;margin:0;color:inherit}
.hpg-installer-landing--navy .hpg-installer-landing__intro h2{color:#fff}
.hpg-installer-landing--navy .hpg-installer-landing__eyebrow{color:#bbf7d0}
.hpg-installer-landing .hpg-installer-landing__form-card{width:100%;max-width:960px;margin:0 auto;padding:20px;background:#fff;color:#334155;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 6px 18px #183b2317}
.hpg-installer-landing .hpg-installer-landing__start{display:grid;grid-template-columns:minmax(0,1.15fr) repeat(3,minmax(0,1fr));column-gap:16px;row-gap:8px;margin:0;align-items:end}
.hpg-installer-landing .hpg-installer-landing__field{min-width:0}
.hpg-installer-landing .hpg-installer-landing__field label{display:block;font-size:14px;line-height:1.4;font-weight:700;margin:0 0 8px;color:#334155}
.hpg-installer-landing .hpg-installer-landing__field :is(input,select){display:block;width:100%;max-width:100%;min-height:48px;padding:10px 12px;border:1px solid #94a3b8;border-radius:7px;background:#fff;color:#334155;font:400 16px/1.5 Inter,system-ui,sans-serif;margin:0}
.hpg-installer-landing .hpg-installer-landing__continue{display:block;width:100%;min-height:48px;margin:0;padding:10px 16px;border:1px solid transparent;border-radius:7px;background:var(--hpg-landing-green);color:#fff;font:700 16px/1.5 Inter,system-ui,sans-serif;cursor:pointer;white-space:normal;text-align:center}
.hpg-installer-landing .hpg-installer-landing__continue:hover{background:#166534}
.hpg-installer-landing .hpg-installer-landing__help{grid-column:1/-1;font-size:13px;line-height:1.5;color:#4A5568;margin:0}
.hpg-installer-landing .hpg-installer-landing__trust{font-size:13px;line-height:1.5;text-align:center;margin:18px 0 0;color:inherit}
.hpg-installer-landing :focus-visible{outline:3px solid #2c7be5;outline-offset:3px}
.hpguk-dialog.hpguk-landing-dialog .hpguk-cta{background:#24754b;border-radius:8px}
.hpguk-dialog.hpguk-landing-dialog .hpguk-cta:hover{background:#166534}
@media(max-width:900px){.hpg-installer-landing{padding:48px 24px}.hpg-installer-landing .hpg-installer-landing__start{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}}
@media(max-width:600px){.hpg-installer-landing{padding:36px 20px}.hpg-installer-landing .hpg-installer-landing__form-card{padding:20px 16px}.hpg-installer-landing .hpg-installer-landing__start{grid-template-columns:minmax(0,1fr);row-gap:14px}.hpg-installer-landing .hpg-installer-landing__intro{margin-bottom:22px}.hpg-installer-landing .hpg-installer-landing__intro p{font-size:16px}.hpg-installer-landing .hpg-installer-landing__help{grid-column:1;grid-row:2}}

.hpg-installer-landing [hidden]{display:none!important}
.hpguk-dialog.hpguk-landing-dialog .hpguk-landing-fields{display:grid;gap:12px;margin-top:16px}
.hpguk-dialog .hpguk-landing-fields[hidden],.hpguk-dialog .hpguk-landing-fields [hidden]{display:none!important}

/* Compact, plain-text review shared by standard and landing flows. */
.hpguk-dialog .hpguk-project-review{margin:22px 0;padding:16px;border:1px solid #dbe5ee;border-radius:12px;background:#f4f7fb}
.hpguk-dialog .hpguk-review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hpguk-dialog .hpguk-review-heading h3{margin:0;font-size:18px}
.hpguk-dialog #hpguk-project-summary{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.55;margin:12px 0 0}


.hpguk-calculator-card{background:#f4f7fb;border:1px solid #dbe5ee;border-radius:12px;padding:16px;margin:18px 0}
.hpguk-calculator-card h3{font-size:18px;margin:0 0 10px}
.hpguk-calculator-card p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.hpguk-calculator-card label{display:block;margin-top:10px}
.hpguk-calculator-card input,.hpguk-calculator-card select{width:100%;max-width:100%}
.hpguk-calculator-postcode{overflow-wrap:anywhere}

[data-hpguk-landing-start] .hpg-installer-landing__field[hidden]{display:none}
