.ondeck-loan-offer-form {
    align-items: flex-start;
    background: var(--ondeck-blue-50, #f2f8ff);
    border-radius: 32px;
    box-shadow: 0 10px 60px rgba(0, 0, 130, 0.3);
    color: var(--ondeck-heritage-blue, #000082);
    column-gap: 64px;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(220px, 260px) minmax(260px, 1fr);
    justify-content: stretch;
    padding: 64px 80px;
    row-gap: 48px;
    width: 100%;
}

.ondeck-loan-offer-form * {
    box-sizing: border-box;
}

.ondeck-loan-offer-form__amount {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.ondeck-loan-offer-form__heading {
    color: var(--ondeck-heritage-blue, #000082);
    font-family: Miranda-Medium, Miranda, sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.1px;
    line-height: 1.35;
    margin-bottom: 0;
}

.ondeck-loan-offer-form__amount-value {
    align-items: center;
    background: #cde5fa;
    border-radius: 999px;
    color: var(--ondeck-heritage-blue, #000082);
    display: flex;
    font-family: "TASA Orbiter", Miranda, sans-serif;
    font-size: 36px;
    font-weight: 600;
    height: 60px;
    justify-content: center;
    line-height: 1;
    width: 100%;
    padding-top: 0;
}

.ondeck-loan-offer-form__range {
    accent-color: var(--ondeck-heritage-blue, #000082);
    appearance: none;
    background: linear-gradient(
        to right,
        var(--ondeck-green, #83eece) 0%,
        #80b9ff var(--ondeck-loan-offer-progress, 0%),
        #cde5fa var(--ondeck-loan-offer-progress, 0%),
        #cde5fa 100%
    );
    border-radius: 999px;
    display: block;
    height: 4px;
    margin: 4px 0 0;
    width: 100%;
}

.ondeck-loan-offer-form__range::-webkit-slider-thumb {
    appearance: none;
    background: var(--ondeck-heritage-blue, #000082);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 12px;
    width: 12px;
}

.ondeck-loan-offer-form__range::-moz-range-thumb {
    background: var(--ondeck-heritage-blue, #000082);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 12px;
    width: 12px;
}

.ondeck-loan-offer-form__range::-moz-range-track {
    background: transparent;
    border: 0;
}

.ondeck-loan-offer-form__range:focus-visible {
    outline: 2px solid var(--ondeck-light-blue, #0074ff);
    outline-offset: 6px;
}

.ondeck-loan-offer-form__range-labels {
    display: flex;
    font-family: Miranda, sans-serif;
    font-size: 16px;
    font-weight: 400;
    justify-content: space-between;
    line-height: 1.5;
    margin-top: -10px;
}

.ondeck-loan-offer-form__eligibility {
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.ondeck-loan-offer-form__eligibility legend {
    border: 0;
    padding: 0;
}

.ondeck-loan-offer-form__eligibility legend + .ondeck-loan-offer-form__criterion,
.ondeck-loan-offer-form__criterion + .ondeck-loan-offer-form__criterion {
    margin-top: 16px;
}

.ondeck-loan-offer-form__criterion {
    align-items: center;
    color: var(--ondeck-heritage-blue, #000082);
    cursor: pointer;
    display: flex;
    font-family: Miranda, sans-serif;
    font-size: 16px;
    font-weight: 400;
    gap: 12px;
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
}

.ondeck-loan-offer-form__criterion input {
    position: absolute;
    opacity: 0;
}

.ondeck-loan-offer-form__criterion-icon {
    border: 1px solid var(--ondeck-heritage-blue, #000082);
    border-radius: 4px;
    display: inline-block;
    flex: 0 0 24px;
    height: 24px;
    position: relative;
    width: 24px;
}

.ondeck-loan-offer-form__criterion input:checked + .ondeck-loan-offer-form__criterion-icon::before {
    background: var(--ondeck-heritage-blue, #000082);
    clip-path: polygon(57% 8%, 26% 53%, 47% 53%, 36% 92%, 78% 39%, 56% 39%);
    content: "";
    inset: 3px;
    position: absolute;
}

.ondeck-loan-offer-form__criterion input:focus-visible + .ondeck-loan-offer-form__criterion-icon {
    outline: 2px solid var(--ondeck-light-blue, #0074ff);
    outline-offset: 2px;
}

.ondeck-loan-offer-form__cta {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.ondeck-loan-offer-form__button {
    align-items: center;
    background: var(--ondeck-light-blue, #0074ff);
    border: 0;
    border-radius: 999px;
    color: var(--ondeck-white, #ffffff);
    cursor: pointer;
    display: flex;
    font-family: Miranda-Medium, Miranda, sans-serif;
    font-size: 16px;
    font-weight: 500;
    height: 40px;
    justify-content: center;
    line-height: 1.5;
    padding: 8px 32px;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
    width: 100%;
}

.ondeck-loan-offer-form__button:hover,
.ondeck-loan-offer-form__button:focus {
    background: var(--ondeck-light-blue-hover, #54a2ff);
    color: var(--ondeck-white, #ffffff);
}

.ondeck-loan-offer-form__criteria-count {
    color: var(--ondeck-heritage-blue, #000082);
    font-family: Miranda, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 1343px) {
    .ondeck-loan-offer-form {
        grid-template-columns: minmax(280px, 1fr) minmax(220px, 1fr);
        padding-left: 64px;
        padding-right: 64px;
    }

    .ondeck-loan-offer-form__cta {
        align-items: center;
        grid-column: 1 / -1;
        margin: 0 auto;
        max-width: 334px;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .ondeck-loan-offer-form {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding: 40px 32px;
    }

    .ondeck-loan-offer-form__amount,
    .ondeck-loan-offer-form__cta {
        flex-basis: auto;
        max-width: none;
        text-align: left;
        width: 100%;
    }

    .ondeck-loan-offer-form__criterion {
        white-space: normal;
    }
}

@media (max-width: 575px) {

    .ondeck-loan-offer-form {
        gap: 24px;
    }


    .ondeck-loan-offer-form {
        border-radius: 24px;
        padding: 32px 20px;
    }

    .ondeck-loan-offer-form__heading {
        font-size: 16px;
        letter-spacing: -0.08px;
        line-height: 1.5;
        text-align: center;
    }

    .ondeck-loan-offer-form__amount-value {
        font-size: 36px;
    }

    .ondeck-loan-offer-form__range-labels {
        margin-top: -10px;
        font-size: 14px;
    }

    .ondeck-loan-offer-form__cta {
        gap: 16px;
    }
}
