:root {
    --bg-soft: #e7eff7;
    --bg-strong: #243a5a;
    --surface: #ffffff;
    --text-strong: #243a5a;
    --text-muted: #6e7f98;
    --line-soft: #d9e3ee;
    --green: #23c765;
    --green-dark: #18ac55;
    --green-soft: #e7f8ee;
    --danger: #d64343;
    --title-size: clamp(1.6rem, 2.6vw, 2.25rem);
    --subtitle-size: clamp(1.1rem, 1.9vw, 1.5rem);
    --body-size: 1rem;
    --title-line: 1.25;
    --body-line: 1.6;
    --blue: #24365B;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.solar-body {
    min-height: 100vh;
    font-family: "Nunito Sans", sans-serif;
    color: var(--text-strong);
    background-color: var(--bg-strong);
    font-size: var(--body-size);
    line-height: var(--body-line);
}

.logo {
    width: 28%;
}

.solar-main {
    padding: 7.5rem 0 28px;
    z-index: 0;
    position: relative;
    border-radius: 0;
    background-color: #fff;
    overflow: hidden;
    min-height: 90vh;
}

.hero-title {
    font-family: "Poppins", sans-serif;
    font-size: var(--title-size);
    font-weight: 700;
    line-height: var(--title-line);
    text-align: center;
    margin: 4px auto 24px;
    max-width: 900px;
    color: var(--text-strong);
}

.form-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid #dce6f1;
    box-shadow: 0 20px 50px rgba(29, 54, 92, 0.12);
    padding: 28px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 10px;
}

.progress-track {
    height: 8px;
    border-radius: 999px;
    background: #d2f0df;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 17%;
    background: var(--green);
    border-radius: inherit;
    transition: width 0.3s ease;
}

#msform fieldset {
    display: none;
    border: 0;
    padding: 26px 0 6px;
    margin: 0;
}

#msform fieldset.active-step {
    display: block;
}

.step-back {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0;
}

.headline {
    font-family: "Poppins", sans-serif;
    font-size: var(--subtitle-size);
    font-weight: 700;
    line-height: var(--title-line);
    text-align: center;
    margin: 0 auto 16px;
    max-width: 840px;
}

.option-grid {
    display: grid;
    gap: 18px;
}

.option-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    min-height: 150px;
    background: #fcfdff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-strong);
    font-size: 1.6rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    padding: 18px;
    cursor: pointer;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: #b7cadf;
}

.option-card.selected {
    background: var(--green-soft);
    border-color: #98dfb6;
}

.option-card.compact {
    min-height: 116px;
}

.icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    border: 2px solid #7bd9a7;
    background: #e8f8ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.option-text {
    display: block;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.contact-block {
    max-width: 660px;
    margin: 0 auto;
}

.text-input {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    border: 1px solid #c9d9ea;
    font-size: var(--body-size);
    color: var(--text-strong);
    padding: 0 20px;
    margin-bottom: 14px;
}

.text-input:focus {
    border-color: #8bb5dd;
    outline: 3px solid rgba(35, 120, 190, 0.12);
}

.btn-main {
    width: 100%;
    border: 0;
    border-radius: 14px;
    height: 56px;
    background: var(--green);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    transition: background 0.2s ease;
}

.btn-main:hover {
    background: var(--green-dark);
}

.consent-text {
    max-width: 660px;
    margin: 14px auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.success-wrap {
    text-align: center;
    max-width: 700px;
    margin: 26px auto 12px;
}

.success-wrap i {
    font-size: 3.2rem;
    color: var(--green);
}

.success-wrap h2 {
    font-family: "Poppins", sans-serif;
    font-size: var(--subtitle-size);
    font-weight: 700;
    line-height: var(--title-line);
    margin-top: 10px;
}

.success-wrap p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 0;
}

.micro-copy,
.legal-line {
    text-align: center;
    color: var(--text-muted);
    margin: 12px 0 0;
    font-size: 0.95rem;
}

.micro-copy i,
.legal-line i {
    margin-right: 6px;
}

.legal-line a {
    color: #1fae5a;
    text-decoration: none;
    font-weight: 800;
}

.fixed-top {
    box-shadow: 0 5px 16px #00000026;
}

.trustpilot {
    width: 90%;
}

.as-seen-section {
    background: transparent;
    padding: 56px 0 44px;
    border-radius: 0;
}

.as-seen-title {
    font-family: "Poppins", sans-serif;
    text-align: center;
    font-size: var(--title-size);
    font-weight: 700;
    line-height: var(--title-line);
    margin: 0 0 22px;
    color: var(--text-strong);
}

.logos-row {
    max-width: 1100px;
    margin: 0 auto;
}

.logo-col {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seen-logo {
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
}

.pre-footer-curved {
    background-color: #fff;
    border-radius: 0 0 72px 0;
    overflow: hidden;
}

.footer {
    background: #26355c;
}

.why-solar-section {
    background: transparent;
    color: var(--text-strong);
    padding: 32px 0 62px;
}

.why-solar-title {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: var(--title-size);
    font-weight: 700;
    line-height: var(--title-line);
    margin: 0 0 22px;
}

.why-solar-card {
    text-align: center;
    max-width: 390px;
    margin: 0 auto;
    padding: 8px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-icon {
    font-size: 54px;
    line-height: 1;
    margin-bottom: 12px;
    color: var(--blue);
}

.why-solar-card h3 {
    font-family: "Poppins", sans-serif;
    font-size: var(--subtitle-size);
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.25;
}

.why-solar-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 350px;
}

.invalid {
    border-color: var(--danger) !important;
}

@media (max-width: 991px) {
    .form-shell {
        padding: 24px 18px;
    }

    .option-grid.three-col {
        grid-template-columns: 1fr;
    }

    .seen-logo {
        height: 40px;
    }
}

@media (max-width: 767px) {
    .logo {
        width: 50%;
    }

    .trustpilot {
        width: 100%;
    }

    .option-card {
        min-height: 118px;
        padding: 12px 8px;
        gap: 8px;
    }

    .icon-circle {
        width: 66px;
        height: 66px;
        font-size: 1.7rem;
    }

    .option-text {
        font-size: 0.92rem;
    }

    #step5 .row {
        --bs-gutter-y: 0.5rem;
    }

    #step5 .option-card.compact {
        min-height: 74px;
        padding: 10px 10px;
        border-radius: 12px;
    }

    #step5 .option-text {
        font-size: 0.88rem;
        line-height: 1.2;
    }

    .btn-main {
        font-size: 1rem;
    }

    .solar-main {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .as-seen-section {
        padding: 46px 0 46px;
    }

    .as-seen-title {
        margin-bottom: 16px;
    }

    .seen-logo {
        height: 34px;
    }

    .pre-footer-curved {
        border-radius: 0 0 42px 0;
    }

    .why-solar-section {
        padding: 30px 0 48px;
    }

    .why-icon {
        font-size: 48px;
        margin-bottom: 8px;
    }

    .why-solar-card h3 {
        margin-bottom: 10px;
    }
}

@media (min-width: 992px) {
    .header {
        padding-right: 4rem !important;
        padding-left: 4rem !important;
    }
}
