.solar-wizard,
.solar-wizard * {
    box-sizing: border-box;
}

.solar-wizard {
    --sepv-bg: #f7f8f5;
    --sepv-surface: #ffffff;
    --sepv-text: #1e2620;
    --sepv-muted: #66706b;
    --sepv-border: #dfe5dc;
    --sepv-primary: #237a57;
    --sepv-primary-dark: #16583e;
    --sepv-accent: #f0b429;
    --sepv-warn: #9a4b12;
    --sepv-warn-bg: #fff4df;
    --sepv-error: #b42318;
    --sepv-error-bg: #fff1f0;
    width: min(100%, 980px);
    margin: 24px auto;
    padding: 24px;
    color: var(--sepv-text);
    background: var(--sepv-bg);
    border: 1px solid var(--sepv-border);
    border-radius: 8px;
    font-family: inherit;
}

.solar-wizard [hidden] {
    display: none !important;
}

.solar-wizard__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.solar-wizard__eyebrow {
    margin: 0 0 6px;
    color: var(--sepv-primary-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.solar-wizard h2,
.solar-wizard h3,
.solar-wizard h4 {
    margin: 0;
    color: var(--sepv-text);
    line-height: 1.25;
    letter-spacing: 0;
}

.solar-wizard h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.solar-wizard h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.solar-wizard h4 {
    margin-bottom: 12px;
    font-size: 18px;
}

.solar-wizard p {
    line-height: 1.6;
}

.solar-wizard__step-indicator {
    min-width: 72px;
    padding: 10px 12px;
    border: 1px solid var(--sepv-border);
    border-radius: 8px;
    background: var(--sepv-surface);
    color: var(--sepv-primary-dark);
    font-weight: 700;
    text-align: center;
}

.solar-wizard__progress {
    height: 10px;
    overflow: hidden;
    margin-bottom: 22px;
    background: #e4e9e2;
    border-radius: 999px;
}

.solar-wizard__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--sepv-primary), var(--sepv-accent));
    border-radius: inherit;
    transition: width 180ms ease;
}

.solar-wizard__notice,
.solar-wizard__success {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
}

.solar-wizard__notice {
    background: var(--sepv-error-bg);
    color: var(--sepv-error);
    border: 1px solid #ffd3cf;
}

.solar-wizard__success {
    background: #e9f7ef;
    color: #176043;
    border: 1px solid #bde4cc;
}

.solar-wizard__step {
    display: none;
    padding: 22px;
    background: var(--sepv-surface);
    border: 1px solid var(--sepv-border);
    border-radius: 8px;
}

.solar-wizard__step.is-active {
    display: block;
}

.solar-wizard__intro {
    width: 100%;
    max-width: none;
}

.solar-wizard__muted {
    color: var(--sepv-muted);
}

.solar-wizard__field {
    margin-bottom: 20px;
}

.solar-wizard__field--wide {
    grid-column: 1 / -1;
}

.solar-wizard__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.solar-wizard input[type='text'],
.solar-wizard input[type='email'],
.solar-wizard input[type='tel'],
.solar-wizard input[type='number'],
.solar-wizard input[type='url'],
.solar-wizard select,
.solar-wizard textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--sepv-text);
    background: #ffffff;
    border: 1px solid #cfd8d2;
    border-radius: 8px;
    font: inherit;
}

.solar-wizard textarea {
    min-height: 100px;
    resize: vertical;
}

.solar-wizard input:focus,
.solar-wizard select:focus,
.solar-wizard textarea:focus {
    outline: 3px solid rgba(35, 122, 87, 0.18);
    border-color: var(--sepv-primary);
}

.solar-wizard__choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.solar-wizard__choice {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cfd8d2;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.solar-wizard__choice:hover {
    border-color: var(--sepv-primary);
}

.solar-wizard__choice input {
    width: 18px;
    height: 18px;
    accent-color: var(--sepv-primary);
    flex: 0 0 auto;
}

.solar-wizard__choice:has(input:checked) {
    background: #edf8f2;
    border-color: var(--sepv-primary);
    box-shadow: inset 0 0 0 1px var(--sepv-primary);
}

.solar-wizard__conditional-grid,
.solar-wizard__contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.solar-wizard__consents {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.solar-wizard__consents label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.solar-wizard__consents input {
    margin-top: 4px;
    accent-color: var(--sepv-primary);
}

.solar-wizard__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.solar-wizard__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.solar-wizard__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #ffffff !important;
    background: var(--sepv-primary);
    border: 1px solid var(--sepv-primary);
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.solar-wizard__button:hover,
.solar-wizard__button:focus {
    color: #ffffff !important;
    background: var(--sepv-primary-dark);
    border-color: var(--sepv-primary-dark);
}

.solar-wizard__button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.solar-wizard__button--ghost {
    color: var(--sepv-primary-dark) !important;
    background: #ffffff;
    border-color: #b6c8be;
}

.solar-wizard__button--ghost:hover,
.solar-wizard__button--ghost:focus {
    color: #ffffff !important;
}

.solar-wizard .has-error input,
.solar-wizard .has-error select,
.solar-wizard .has-error textarea,
.solar-wizard .has-error .solar-wizard__choice {
    border-color: var(--sepv-error);
}

.solar-wizard__loading {
    padding: 18px;
    color: var(--sepv-muted);
}

.solar-wizard__result {
    display: grid;
    gap: 16px;
}

.solar-wizard__card,
.solar-wizard__mini-card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--sepv-border);
    border-radius: 8px;
}

.solar-wizard__card p:first-child,
.solar-wizard__mini-card p:first-child {
    margin-top: 0;
}

.solar-wizard__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.solar-wizard__metrics div {
    padding: 12px;
    background: #f7faf8;
    border: 1px solid #dce7df;
    border-radius: 8px;
}

.solar-wizard__metrics span,
.solar-wizard__metrics strong {
    display: block;
}

.solar-wizard__metrics span {
    margin-bottom: 4px;
    color: var(--sepv-muted);
    font-size: 13px;
}

.solar-wizard__metrics strong {
    font-size: 18px;
}

.solar-wizard__solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.solar-wizard__explain {
    margin-top: 12px;
    padding: 12px;
    background: #f7faf8;
    border-left: 4px solid var(--sepv-primary);
    border-radius: 6px;
}

.solar-wizard__explain p {
    margin: 6px 0 0;
}

.solar-wizard__warning {
    margin-top: 12px;
    padding: 12px;
    color: var(--sepv-warn);
    background: var(--sepv-warn-bg);
    border: 1px solid #f6d69b;
    border-radius: 8px;
}

.solar-wizard__warning p {
    margin: 6px 0 0;
}

.solar-wizard__cta {
    padding: 16px 18px;
    color: #153d2c;
    background: #eaf7ef;
    border: 1px solid #bfe4cc;
    border-radius: 8px;
    font-weight: 700;
}

.solar-wizard ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

.solar-wizard li {
    margin: 6px 0;
}

@media (max-width: 760px) {
    .solar-wizard {
        margin: 12px auto;
        padding: 14px;
    }

    .solar-wizard__header,
    .solar-wizard__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .solar-wizard__step {
        padding: 16px;
    }

    .solar-wizard__conditional-grid,
    .solar-wizard__contact-grid,
    .solar-wizard__solution-grid {
        grid-template-columns: 1fr;
    }

    .solar-wizard__choices {
        grid-template-columns: 1fr;
    }

    .solar-wizard__button {
        width: 100%;
    }
}

/* Page-aligned visual system for the solar guide layout. */
.solar-wizard,
.solar-mini-calculator {
    --sepv-bg: #eef2e6;
    --sepv-surface: transparent;
    --sepv-text: #17231d;
    --sepv-muted: #54645a;
    --sepv-border: rgba(23, 35, 29, 0.16);
    --sepv-border-strong: rgba(23, 35, 29, 0.34);
    --sepv-soft: rgba(45, 106, 79, 0.055);
    --sepv-primary: #2d6a4f;
    --sepv-primary-dark: #183f30;
    --sepv-accent: #2d6a4f;
    --sepv-warn: #7a4a11;
    --sepv-warn-bg: rgba(240, 180, 41, 0.12);
    --sepv-error: #9f2f24;
    --sepv-error-bg: rgba(159, 47, 36, 0.08);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    color: var(--sepv-text);
    background: transparent;
    border: 0;
    border-radius: 0;
    text-align: left;
    line-height: 1.55;
}

.solar-wizard.solar-wizard h3,
.solar-wizard.solar-wizard h4,
.solar-mini-calculator.solar-mini-calculator h3,
.solar-mini-calculator.solar-mini-calculator h4 {
    color: var(--sepv-text);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 650;
}

.solar-wizard.solar-wizard h3 {
    margin-bottom: clamp(22px, 3vw, 34px);
    font-size: clamp(1.45rem, 2.2vw, 2.25rem);
}

.solar-wizard.solar-wizard h4 {
    font-size: clamp(1.08rem, 1.35vw, 1.35rem);
}

.solar-wizard__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0;
    border-top: 1px solid var(--sepv-border-strong);
    border-bottom: 1px solid var(--sepv-border);
}

.solar-wizard__steps-nav {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.solar-wizard__steps-nav span {
    flex: 0 0 auto;
    padding: 15px 18px 14px 0;
    margin-right: 18px;
    color: rgba(23, 35, 29, 0.58);
    border-right: 1px solid var(--sepv-border);
    font-size: 0.92rem;
    font-weight: 620;
    white-space: nowrap;
}

.solar-wizard__steps-nav span.is-active {
    color: var(--sepv-primary-dark);
}

.solar-wizard__steps-nav span.is-complete {
    color: var(--sepv-primary);
}

.solar-wizard__step-indicator {
    min-width: 72px;
    padding: 15px 0 14px 18px;
    color: var(--sepv-primary-dark);
    background: transparent;
    border: 0;
    border-left: 1px solid var(--sepv-border);
    border-radius: 0;
    font-weight: 650;
}

.solar-wizard__progress {
    height: 2px;
    margin: 0 0 clamp(24px, 3.5vw, 42px);
    background: rgba(23, 35, 29, 0.10);
    border-radius: 0;
}

.solar-wizard__progress span {
    background: var(--sepv-primary);
    border-radius: 0;
}

.solar-wizard__notice,
.solar-wizard__success {
    border-radius: 0;
    border: 0;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.solar-wizard__step {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.solar-wizard__intro {
    max-width: 860px;
}

.solar-wizard__intro p,
.solar-wizard__muted {
    color: var(--sepv-muted);
    font-size: clamp(1rem, 1.23vw, 1.18rem);
}

.solar-wizard__field {
    margin-bottom: clamp(18px, 2.3vw, 28px);
}

.solar-wizard__label {
    margin-bottom: 9px;
    color: var(--sepv-text);
    font-weight: 620;
}

.solar-wizard input[type='text'],
.solar-wizard input[type='email'],
.solar-wizard input[type='tel'],
.solar-wizard input[type='number'],
.solar-wizard input[type='url'],
.solar-wizard select,
.solar-wizard textarea,
.solar-mini-calculator input,
.solar-mini-calculator select {
    min-height: 52px;
    padding: 12px 0;
    color: var(--sepv-text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--sepv-border-strong);
    border-radius: 0;
    box-shadow: none;
}

.solar-wizard textarea {
    padding-top: 12px;
}

.solar-wizard input:focus,
.solar-wizard select:focus,
.solar-wizard textarea:focus,
.solar-mini-calculator input:focus,
.solar-mini-calculator select:focus {
    outline: none;
    border-color: var(--sepv-primary);
    box-shadow: 0 1px 0 var(--sepv-primary);
}

.solar-wizard__choices {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px;
    background: var(--sepv-border);
    border: 1px solid var(--sepv-border);
}

.solar-wizard__choice {
    min-height: 58px;
    padding: 14px 16px;
    background: var(--sepv-bg);
    border: 0;
    border-radius: 0;
}

.solar-wizard__choice:hover {
    color: var(--sepv-primary-dark);
    background: rgba(45, 106, 79, 0.075);
}

.solar-wizard__choice:has(input:checked) {
    color: var(--sepv-primary-dark);
    background: rgba(45, 106, 79, 0.12);
    border: 0;
    box-shadow: inset 0 -3px 0 var(--sepv-primary);
}

.solar-wizard__conditional-grid,
.solar-wizard__contact-grid {
    gap: clamp(18px, 3vw, 34px);
}

.solar-wizard__actions {
    margin-top: clamp(24px, 3.5vw, 42px);
    padding-top: 18px;
    border-top: 1px solid var(--sepv-border-strong);
}

.solar-wizard__button {
    min-height: 54px;
    padding: 12px 24px;
    color: #eef2e6 !important;
    background: var(--sepv-primary-dark);
    border: 1px solid var(--sepv-primary-dark);
    border-radius: 0;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.solar-wizard__button:hover,
.solar-wizard__button:focus {
    color: #eef2e6 !important;
    background: var(--sepv-primary);
    border-color: var(--sepv-primary);
}

.solar-wizard__button--ghost {
    color: var(--sepv-primary-dark) !important;
    background: transparent;
    border-color: var(--sepv-border-strong);
}

.solar-wizard__button--ghost:hover,
.solar-wizard__button--ghost:focus {
    color: #eef2e6 !important;
    background: var(--sepv-primary-dark);
    border-color: var(--sepv-primary-dark);
}

.solar-wizard__result {
    gap: clamp(18px, 3vw, 32px);
}

.solar-wizard__card,
.solar-wizard__mini-card {
    padding: clamp(18px, 2.6vw, 30px) 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--sepv-border-strong);
    border-radius: 0;
}

.solar-wizard__metrics {
    gap: 1px;
    background: var(--sepv-border);
    border: 1px solid var(--sepv-border);
}

.solar-wizard__metrics div {
    padding: 15px 16px;
    background: var(--sepv-soft);
    border: 0;
    border-radius: 0;
}

.solar-wizard__metrics strong {
    color: var(--sepv-text);
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
}

.solar-wizard__solution-grid {
    gap: 18px;
}

.solar-wizard__explain {
    padding: 14px 0 0;
    background: transparent;
    border-left: 0;
    border-top: 1px solid var(--sepv-border);
    border-radius: 0;
}

.solar-wizard__warning,
.solar-wizard__cta {
    padding: 14px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--sepv-primary);
    border-radius: 0;
}

.solar-wizard__warning {
    color: var(--sepv-warn);
}

.solar-wizard__cta {
    color: var(--sepv-primary-dark);
}

.solar-mini-calculator {
    min-width: 0;
}

.solar-mini-calculator__form {
    display: grid;
    gap: 17px;
    width: 100%;
    padding-top: 2px;
}

.solar-mini-calculator label {
    display: grid;
    gap: 7px;
    color: var(--sepv-text);
    font-size: 0.95rem;
    font-weight: 620;
}

.solar-mini-calculator label > span {
    color: var(--sepv-muted);
    font-size: 0.86rem;
    font-weight: 400;
}

.solar-mini-calculator__check {
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 12px !important;
    color: var(--sepv-muted) !important;
    font-weight: 400 !important;
}

.solar-mini-calculator__check input {
    width: 18px;
    height: 18px;
    min-height: auto;
    padding: 0;
    margin-top: 4px;
    border: 0;
    box-shadow: none;
    background: transparent;
    accent-color: var(--sepv-primary);
}

.solar-mini-calculator__results {
    display: grid;
    gap: 18px;
    margin-top: clamp(22px, 3vw, 34px);
    padding-top: 20px;
    border-top: 1px solid var(--sepv-border-strong);
}

.solar-mini-calculator__main {
    display: grid;
    gap: 6px;
}

.solar-mini-calculator__main span,
.solar-mini-calculator dt {
    color: var(--sepv-muted);
    font-size: 0.88rem;
}

.solar-mini-calculator__main strong {
    color: var(--sepv-primary-dark);
    font-size: clamp(2rem, 3.8vw, 4.15rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 650;
}

.solar-mini-calculator dl {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--sepv-border);
}

.solar-mini-calculator dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sepv-border);
}

.solar-mini-calculator dt,
.solar-mini-calculator dd {
    margin: 0;
}

.solar-mini-calculator dd {
    color: var(--sepv-text);
    font-weight: 650;
    text-align: right;
}

.solar-mini-calculator p {
    margin: 0;
    color: var(--sepv-muted);
    font-size: 0.94rem;
}

@media (max-width: 760px) {
    .solar-wizard,
    .solar-mini-calculator {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .solar-wizard__header {
        grid-template-columns: 1fr;
    }

    .solar-wizard__step-indicator {
        border-top: 1px solid var(--sepv-border);
        border-left: 0;
        padding-left: 0;
        text-align: left;
    }

    .solar-wizard__choices,
    .solar-wizard__conditional-grid,
    .solar-wizard__contact-grid,
    .solar-wizard__solution-grid {
        grid-template-columns: 1fr;
    }

    .solar-mini-calculator dl div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .solar-mini-calculator dd {
        text-align: left;
    }
}
