:root {
    --hero-header-h: 64px;
    --hero-footer-h: 60px;
    --hero-navy: #1a2d5e;
    --hero-navy-dark: #122047;
    --hero-orange: #f08a24;
    --hero-orange-dark: #d9771a;
    --hero-text: #2b2f38;
    --hero-muted: #5b6270;
    --hero-bg: #f3f5f9;
    --hero-border: #d9dee8;
    --hero-radius: 10px;
}

body.theme-hero {
    font-family: "Inter", "Work Sans", Arial, sans-serif;
    background: var(--hero-bg);
    color: var(--hero-text);
    font-size: 16px;
}

.theme-hero a {
    color: var(--hero-navy);
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--hero-border);
    height: var(--hero-header-h);
    display: flex;
    align-items: center;
}

.site-header .container-xxl {
    text-align: center;
}

.site-header__brand {
    display: inline-block;
    line-height: 0;
}

    .site-header__brand img {
        display: block;
        height: 40px;
        width: auto;
    }

/* Layout */
.hero-page {
    padding: 0;
}

    .hero-page > .row {
        margin: 0;
    }

.hero-col,
.form-col {
    padding: 0;
}

.form-col {
    padding: 16px;
}

@media (min-width: 992px) {
    .hero-page > .row {
        min-height: calc(100vh - var(--hero-header-h) - var(--hero-footer-h));
    }

    .form-col {
        padding: 32px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }

    .hero-col {
        padding: 0;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: var(--hero-navy);
    display: flex;
    align-items: flex-end;
}

@media (min-width: 992px) {
    .hero-col {
        display: flex;
    }

    .hero {
        flex: 1 1 auto;
        align-self: stretch;
        min-height: calc(100vh - var(--hero-header-h) - var(--hero-footer-h));
    }
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 50, 0) 20%, rgba(10, 20, 50, 0.72) 100%);
}

.hero__content {
    position: relative;
    padding: 40px 40px 56px;
    max-width: 640px;
    color: #fff;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 12px;
    color: #fff;
    letter-spacing: -0.5px;
}

.hero__subtitle {
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 24px;
    color: #fff;
}

.hero__cta,
.theme-hero button.forward,
.theme-hero button.submit {
    background: var(--hero-orange);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    padding: 14px 32px;
    cursor: pointer;
    transition: background .2s ease;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(240, 138, 36, .35);
}

    .hero__cta:hover,
    .theme-hero button.forward:hover,
    .theme-hero button.submit:hover {
        background: var(--hero-orange-dark);
        color: #fff;
    }

.hero__arrow {
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 991px) {
    .hero {
        min-height: 420px;
    }

    .hero__content {
        padding: 28px 20px 56px;
    }

    .form-col {
        margin-top: -28px;
        position: relative;
        z-index: 1;
        padding-top: 0;
    }

    .panel--search {
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(26, 45, 94, .14);
    }

    .hero__title {
        font-size: 34px;
    }

    .hero__subtitle {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .hero__cta {
        font-size: 16px;
        padding: 12px 24px;
    }
}

/* Panels */
.panel {
    background: #fff;
    border-radius: var(--hero-radius);
    box-shadow: 0 2px 10px rgba(26, 45, 94, .08);
    padding: 24px;
    margin: 0;
}

.panel--search {
    padding: 32px 32px 28px;
}

.panel__lead {
    color: var(--hero-muted);
    font-size: 15px;
    margin: 0 0 16px;
}

.panel__inner {
    padding: 0;
}

.panel__lead {
    margin-bottom: 20px;
}

.panel--intro {
    padding: 24px 28px 22px;
}

.panel__icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eef1f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel__icon img {
    width: 30px;
    height: auto;
}

.panel__text {
    width: 100%;
}

.panel__heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--hero-navy);
    margin: 0 0 14px;
}

.panel__text p {
    color: #3c4250;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 14px;
}

.stat {
    padding: 2px 16px 0 0;
    text-align: left;
}

    .stat + .stat {
        padding-left: 16px;
    }

.stat__icon {
    display: block;
    width: 24px;
    height: 24px;
    color: var(--hero-orange);
    margin-bottom: 8px;
}

.stat__value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: var(--hero-navy);
    letter-spacing: -0.8px;
}

.stat__label {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--hero-muted);
}

.stats__source,
.panel--subscribe .offers-overview__subscription-note {
    font-size: 10px;
    line-height: 1.4;
    color: #9aa3b2;
    margin: 0;
}

    .stats__source::before,
    .panel--subscribe .offers-overview__subscription-note::before {
        content: "* ";
    }

    .stats__source a {
        color: inherit;
        text-decoration: none;
        border-bottom: 1px dotted #c9d0dc;
    }

        .stats__source a:hover {
            color: var(--hero-navy);
            border-bottom-color: var(--hero-navy);
        }

@media (max-width: 767px) {
    .stat {
        padding-right: 10px;
    }

        .stat + .stat {
            padding-left: 10px;
        }

    .stat__value {
        font-size: 21px;
    }

    .stat__label {
        font-size: 11.5px;
    }
}

    .panel__text p:last-child {
        margin-bottom: 0;
    }

@media (max-width: 991px) {
    .form-col {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .panel,
    .panel--search,
    .panel--intro {
        padding: 20px;
    }

    .panel__title {
        font-size: 24px;
    }

    .panel__inner {
        padding: 14px;
    }

    .panel__heading {
        margin-bottom: 10px;
    }
}

/* Wizard inside the panel */
.theme-hero #start,
.theme-hero #wizard_container,
.theme-hero #offers_container,
.theme-hero .offers-overview,
.theme-hero .wizard {
    width: 100%;
    max-width: none;
    min-height: 0;
}

.theme-hero #wizard_container form,
.theme-hero #offers_container form {
    width: 100%;
}

.theme-hero .section_title {
    text-align: left;
    font-size: 20px;
    font-weight: 700;
    color: var(--hero-navy);
    margin-bottom: 2px;
    line-height: 1.25;
}

.theme-hero .main_question {
    text-align: left;
    color: var(--hero-muted);
    font-size: 14px;
    line-height: 1.4;
}

.theme-hero .top-wizard {
    margin: 10px 0 16px;
}

.theme-hero .location {
    color: var(--hero-muted);
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}

.theme-hero .progressbar {
    height: 6px;
    background: #e9edf4;
}

.theme-hero .ui-widget-header {
    background: var(--hero-orange);
}

.theme-hero .form-group {
    margin-bottom: 14px;
}

.theme-hero .form-group > label:not(.container_radio) {
    display: block;
    font-weight: 600;
    color: var(--hero-navy);
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.theme-hero .form-group:has(input[type="checkbox"]) > label {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.45;
    color: #5b6270;
    text-align: left;
}

.theme-hero input[type="checkbox"].form-control,
.theme-hero input[type="checkbox"].form-control:focus {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    outline: none;
    accent-color: var(--hero-navy);
}

.theme-hero .form-group label sup {
    font-size: 11px;
    top: -2px;
}

.theme-hero .form-control {
    border: 1px solid #c9d0dc;
    border-radius: 6px;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--hero-text);
    box-shadow: none;
}

    .theme-hero .form-control::placeholder {
        color: #9aa3b2;
    }

    .theme-hero .form-control:focus {
        border-color: var(--hero-navy);
        box-shadow: 0 0 0 3px rgba(26, 45, 94, .12);
    }

.theme-hero select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231a2d5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding-right: 38px;
}


.theme-hero .container_radio {
    font-size: 14px;
    line-height: 20px;
    margin: 2px 0 6px;
    padding-left: 28px;
}

    .theme-hero .container_radio .checkmark {
        border-color: #c9d0dc;
    }

    .theme-hero .container_radio input:checked ~ .checkmark:after {
        background: var(--hero-orange);
    }

.theme-hero .container_check input:checked ~ .checkmark {
    background-color: var(--hero-orange);
}

.theme-hero #bottom-wizard {
    border-top: 0;
    margin-top: 8px;
    padding: 0;
    gap: 12px;
}

.theme-hero button.forward,
.theme-hero button.submit {
    flex: 1;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

    .theme-hero button.forward::after {
        content: "\2192";
        margin-left: 12px;
        font-size: 20px;
    }

.theme-hero button.backward {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #eef1f7;
    color: var(--hero-navy);
    border-radius: 8px;
    font-size: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .theme-hero button.backward::before {
        content: "\2190";
        font-size: 22px;
        line-height: 1;
    }

    .theme-hero button.backward:hover {
        background: #dfe4ee;
        color: var(--hero-navy);
    }

.theme-hero button[disabled] {
    display: none;
}

/* Offers */
.theme-hero .offers-overview__title,
.theme-hero .offer__name,
.theme-hero .wizard-header {
    color: var(--hero-navy);
}

.theme-hero .offer__form_controls button.skip {
    color: var(--hero-muted);
}

.theme-hero .offers-overview__title {
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    margin: 0 0 4px;
}

.theme-hero .offers-overview__lead {
    font-size: 14px;
    color: var(--hero-muted);
    text-align: left;
    margin: 0 0 20px;
}

.theme-hero .offers-overview__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}

.theme-hero .offers-overview__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-width: 0;
    padding: 24px 20px 20px;
    background: #fff;
    border: 1px solid var(--hero-border);
    border-radius: var(--hero-radius);
    box-shadow: 0 2px 10px rgba(26, 45, 94, .06);
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

    .theme-hero .offers-overview__item-logo {
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .theme-hero .offers-overview__item-logo img {
            height: 72px;
            width: auto;
            max-width: 180px;
            object-fit: contain;
        }

    .theme-hero .offers-overview__item-name {
        margin: 14px 0 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--hero-navy);
        text-align: center;
        line-height: 1.3;
    }

    .theme-hero .offers-overview__item--pointable:hover {
        transform: translateY(-2px);
        border-color: #c9d0dc;
        box-shadow: 0 6px 18px rgba(26, 45, 94, .12);
    }

.theme-hero .offers-overview__item-status {
    margin-top: auto;
    padding-top: 16px;
    width: 100%;
}

.theme-hero .offers-overview__item-status--learn-more {
    display: block;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    background: var(--hero-orange);
}

    .theme-hero .offers-overview__item-status--learn-more:hover {
        background: var(--hero-orange-dark);
    }

.theme-hero .offers-overview__item-status--submitted {
    font-weight: 600;
    font-size: 14px;
}

.theme-hero .offers-overview__wait-message,
.theme-hero .offers-overview__thank-you {
    text-align: left;
}

@media (hover: hover) {
    .theme-hero button:not(.btn-close):not(.btn-link):hover {
        background: var(--hero-orange-dark);
        color: #fff;
    }

    .theme-hero button.backward:not(.btn-close):not(.btn-link):hover {
        background: #dfe4ee;
        color: var(--hero-navy);
    }
}

.theme-hero .offer__form_controls button.skip:hover,
.theme-hero .btn-link:hover {
    background: transparent;
    color: var(--hero-navy);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    min-height: var(--hero-footer-h);
    padding: 0;
    border: 0;
    background: var(--hero-navy);
    color: #fff;
    font-size: 13px;
    letter-spacing: .1px;
}

    .site-footer .container-xxl {
        min-height: var(--hero-footer-h);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

@media (min-width: 992px) {
    .site-footer .container-xxl {
        max-width: none;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .site-footer ul,
    .site-footer em {
        justify-content: center;
        text-align: center;
    }
}

    .site-footer ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px 24px;
    }


        .site-footer ul li {
            margin: 0;
        }

            .site-footer ul li::after {
                content: none;
            }

    .site-footer a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
    }

        .site-footer a:hover {
            color: var(--hero-orange);
        }

    .site-footer em {
        font-style: normal;
    }

@media (max-width: 767px) {
    .site-footer {
        padding: 16px 0 18px;
    }

        .site-footer .container-xxl {
            flex-direction: column;
            text-align: center;
            gap: 8px;
        }

        .site-footer ul {
            justify-content: center;
            gap: 4px 14px;
        }

        .site-footer a {
            font-size: 12px;
        }
}

/* Loader within the panel */
.theme-hero #loader_form {
    position: absolute;
    border-radius: var(--hero-radius);
}

.theme-hero .panel__inner {
    position: relative;
}

/* Results view */
.results-shown .hero-col,
.results-shown .panel--intro,
.results-shown .panel__title,
.results-shown .panel__lead {
    display: none;
}

.results-shown .panel__inner {
    padding: 4px;
}

.results-shown .form-col {
    flex: 0 0 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 24px 16px;
}

.results-shown .panel--search,
.form-focused.results-shown .panel--search {
    width: 100%;
    max-width: 1040px;
    animation: none;
}

.theme-hero .offer {
    width: 100%;
    margin: 0;
}

    .theme-hero .offer:not(.d-none),
    .theme-hero .offers-overview:not(.d-none) {
        animation: panel-settle .25s cubic-bezier(.2, .8, .2, 1) both;
    }

@media (min-width: 768px) {
    .theme-hero .offer {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-rows: 1fr auto auto 1fr;
        column-gap: 32px;
        align-items: start;
    }

        .theme-hero .offer > .offer__logo {
            grid-column: 1;
            grid-row: 2;
        }

        .theme-hero .offer > .offer__description {
            grid-column: 1;
            grid-row: 3;
        }

        .theme-hero .offer:not(:has(.step)) {
            display: block;
            max-width: 680px;
            margin: 0 auto;
        }

            .theme-hero .offer:not(:has(.step)) > .offer__form {
                margin: 24px auto 0;
                padding: 0;
                border: 0;
                max-width: 420px;
            }

            .theme-hero .offer:not(:has(.step)) > .offer__description {
                text-align: left;
            }

        .theme-hero .offer > .offer__form {
            grid-column: 2;
            grid-row: 1 / span 4;
            margin: 0;
            padding-left: 32px;
            border-left: 1px solid var(--hero-border);
        }
}

.theme-hero .offer__logo {
    margin: 0 0 14px;
    text-align: center;
}

    .theme-hero .offer__logo img {
        height: 64px;
        max-width: 220px;
        object-fit: contain;
    }

.theme-hero .offer__name {
    display: none !important;
}

.theme-hero .offer__description {
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
    color: #3c4250;
}

    .theme-hero .offer__description p {
        margin-bottom: 8px;
    }

    .theme-hero .offer__description ul {
        text-align: left;
        padding-left: 20px;
        margin: 8px 0 0;
    }

    .theme-hero .offer__description li {
        margin-bottom: 4px;
    }

.theme-hero .offer__form_title {
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hero-navy);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hero-border);
}

    .theme-hero .offer__form_title span {
        color: var(--hero-orange);
    }

.theme-hero .offer__form .step {
    display: block;
}

.theme-hero .offer__form_controls button.submit,
.theme-hero .offer__form_controls button.redirect {
    width: 100%;
    height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.theme-hero .offer__form_controls button.skip {
    font-size: 14px;
    margin-top: 8px;
}

.theme-hero .offers-overview {
    min-height: 0;
    width: 100%;
}

.theme-hero .offers-overview__wait-message,
.theme-hero .offers-overview__thank-you {
    font-size: 14px;
    color: #3c4250;
}

.results-shown .panel--subscribe {
    display: block;
    width: 100%;
    max-width: 1040px;
    padding: 24px 32px;
}

    .results-shown .panel--subscribe.d-none {
        display: none;
    }

.panel--subscribe .offers-overview__subscription {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

    .panel--subscribe .offers-overview__subscription h5 {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0;
        color: var(--hero-navy);
        margin: 0 0 6px;
    }

    .panel--subscribe .offers-overview__subscription p {
        text-align: left;
        font-size: 14px;
        color: #3c4250;
        margin: 0 0 14px;
    }

.panel--subscribe .subscription__form {
    max-width: none;
}

.panel--subscribe .subscription__form_body {
    padding: 0;
}

    .panel--subscribe .subscription__form_body .row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin: 0;
        align-items: center;
    }

    .panel--subscribe .subscription__form_body .row > .form-group {
        margin: 0;
        padding: 0;
        width: auto;
        max-width: none;
        flex: 1 1 280px;
    }

        .panel--subscribe .subscription__form_body .row > .form-group:last-child {
            flex: 0 0 auto;
        }

    .panel--subscribe .subscription__form_body .form-control {
        height: 48px;
        padding: 0 14px;
        border: 1px solid #c9d0dc;
        border-radius: 6px;
        font-size: 15px;
    }

    .panel--subscribe .subscription__form_body button.submit {
        width: auto;
        min-width: 200px;
    }

.panel--subscribe .offers-overview__subscription-note {
    text-align: left;
    margin-top: 10px;
}

.panel--subscribe #subsription_loader {
    position: absolute;
    border-radius: var(--hero-radius);
}

.panel--subscribe {
    position: relative;
}

.theme-hero .offers-overview__linkout {
    max-width: none;
}

/* Get Started on desktop: hero slides away, the form settles in the centre */
@media (min-width: 992px) {
    .form-focused .hero-col {
        display: none;
    }

    .form-focused:not(.results-shown) .form-col {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .form-focused:not(.results-shown) .panel--search {
        flex: 0 1 640px;
        max-width: 640px;
    }

    .form-focused .panel--intro {
        flex: 0 1 300px;
        width: 100%;
        max-width: 300px;
        animation: panel-settle .45s cubic-bezier(.2, .8, .2, 1) .1s both;
    }

        .form-focused .panel--intro .stats {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .form-focused .panel--intro .stat,
        .form-focused .panel--intro .stat + .stat {
            padding: 0;
        }

        .form-focused .panel--intro .stat__icon {
            margin-bottom: 4px;
        }


    .form-focused .form-col {
        flex: 0 0 100%;
        max-width: 100%;
        align-items: center;
        justify-content: center;
        padding: 16px 16px;
    }

    .form-focused .panel--search {
        width: 100%;
        max-width: 720px;
        animation: panel-settle .45s cubic-bezier(.2, .8, .2, 1) both;
    }
}

@keyframes panel-settle {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Overview: cards straight on the page, no surrounding box */
.overview-shown .panel--search {
    background: transparent;
    box-shadow: none;
    padding: 0;
    animation: none;
}

.overview-shown .panel__inner {
    padding: 0;
}

.overview-shown .offers-overview__title,
.overview-shown .offers-overview__lead {
    display: none;
}

.overview-shown .offers-overview__list {
    margin-bottom: 0;
}

.overview-shown .offers-overview__item {
    padding: 28px 24px 24px;
    box-shadow: 0 2px 10px rgba(26, 45, 94, .08);
}

.overview-shown .offers-overview__wait-message,
.overview-shown .offers-overview__thank-you,
.overview-shown .offers-overview__linkout {
    margin-top: 20px;
}

/* Focused form view: soft brand wash behind the panels */
@media (min-width: 992px) {
    .form-focused:not(.results-shown) .hero-page {
        background:
            radial-gradient(60% 55% at 50% 0%, rgba(26, 45, 94, .14), rgba(26, 45, 94, 0) 100%),
            linear-gradient(180deg, #eef1f7 0%, var(--hero-bg) 70%);
    }

    .form-focused:not(.results-shown) .panel {
        box-shadow: 0 10px 30px rgba(26, 45, 94, .12);
    }
}
