* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif
}

body {
    background: #fff;
    color: #102d60
}

.loan-hero {
    position: relative;
    width: 100%;
    height: min(32vw, 635px);
    min-height: 500px;
    background: url("../img/loan_img.png") center center/cover no-repeat;
    overflow: hidden
}

.loan-content {
    position: relative;
    width: 100%;
    height: 100%
}

.loan-label,
.loan-title,
.loan-title-lines,
.loan-description,
.loan-benefits,
.loan-cta {
    position: absolute;
    z-index: 5;
    left: 4.65%
}

.loan-label {
    top: 8.8%;
    height: 44px;
    min-width: 245px;
    padding: 0 15px 0 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 2px solid #0870ed;
    border-right-color: #e7d83b;
    border-radius: 10px;
    background: rgba(255, 255, 255, .82);
    color: #102d60;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .8px;
    white-space: nowrap
}

.loan-label-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0870ed;
    font-size: 23px
}

.loan-title {
    top: 19.7%;
    margin: 0;
    padding: 0;
    color: #102d60;
    font-size: clamp(40px, 3.05vw, 60px);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -1.8px;
    white-space: nowrap
}

.loan-title span,
.loan-title strong {
    display: block
}

.loan-title strong {
    color: #0870ed
}

.loan-title-lines {
    top: 39.2%;
    display: flex;
    gap: 38px
}

.loan-title-lines span {
    width: 70px;
    height: 5px;
    border-radius: 20px;
    background: #0870ed
}

.loan-description {
    top: 42.4%;
    margin: 0;
    color: #173866;
    font-size: clamp(16px, 1vw, 20px);
    line-height: 1.3;
    white-space: nowrap
}

.loan-benefits {
    top: 54.5%;
    width: min(575px, 35vw);
    display: flex;
    justify-content: space-between
}

.loan-benefit {
    position: relative;
    flex: 1;
    min-width: 0;
    text-align: center
}

.loan-benefit+.loan-benefit:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 1px;
    height: 70px;
    background: rgba(30, 105, 220, .13)
}

.loan-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px
}

.loan-icon-orange {
    color: #fff;
    background: #ffa900;
    box-shadow: 0 0 0 8px rgba(255, 183, 43, .23)
}

.loan-icon-blue {
    color: #fff;
    background: #0874ed;
    box-shadow: 0 0 0 8px rgba(100, 174, 247, .23)
}

.loan-icon-green {
    color: #fff;
    background: #08a963;
    box-shadow: 0 0 0 8px rgba(82, 219, 162, .23)
}

.loan-icon-pink {
    color: #fff;
    background: #ef1670;
    box-shadow: 0 0 0 8px rgba(249, 120, 170, .23)
}

.loan-benefit-text {
    color: #102d60;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 800
}

.loan-cta {
    top: 80.2%;
    width: 340px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    background: linear-gradient(90deg, #0969ed, #0873f1);
    box-shadow: 0 6px 13px rgba(0, 84, 190, .22);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s
}

.loan-cta i {
    font-size: 23px;
    font-weight: 400
}

.loan-cta:hover {
    color: #fff;
    transform: translateY(-2px)
}

.loan-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 35, 90, .25)
}

.loan-modal .modal-header {
    padding: 22px 25px 17px;
    background: linear-gradient(135deg, #f5faff, #fff);
    border-bottom: 1px solid #e8eef7
}

.loan-modal .modal-title {
    margin: 0;
    color: #102d60;
    font-size: 24px;
    font-weight: 800
}

.loan-modal .modal-header p {
    margin: 5px 0 0;
    color: #687b98;
    font-size: 14px
}

.loan-modal .modal-body {
    padding: 23px 25px
}

.form-label {
    margin-bottom: 6px;
    color: #102d60;
    font-size: 14px;
    font-weight: 700
}

.form-label span {
    color: #ef1670
}

.input-group-text {
    width: 45px;
    justify-content: center;
    color: #0870ed;
    background: #f4f8ff;
    border-color: #dce6f4
}

.form-control {
    border-color: #dce6f4;
    box-shadow: none
}

.input-group .form-control {
    height: 45px
}

.form-control:focus {
    border-color: #0870ed;
    box-shadow: 0 0 0 3px rgba(8, 112, 237, .1)
}

textarea.form-control {
    resize: vertical;
    min-height: 105px
}

.loan-success {
    display: none;
    margin-top: 16px;
    padding: 11px 14px;
    border: 1px solid #bce7d0;
    border-radius: 8px;
    background: #effbf4;
    color: #147a43;
    font-size: 14px;
    font-weight: 600
}

.loan-success.show {
    display: block
}

.loan-modal .modal-footer {
    padding: 14px 25px 20px;
    border-top: 1px solid #e8eef7
}

.loan-cancel,
.loan-submit {
    height: 42px;
    min-width: 105px;
    border-radius: 23px;
    font-weight: 700
}

.loan-cancel {
    border: 1px solid #d6dfed;
    color: #526783;
    background: #fff
}

.loan-submit {
    min-width: 125px;
    border: 0;
    color: #fff;
    background: #0870ed
}

@media(max-width:767.98px) {
    .loan-hero {
        height: 150vw;
        min-height: 0;
        background-image: url("../img/loan_mobile_img.png");
        background-position: center top;
        background-size: cover
    }

    .loan-label,
    .loan-title,
    .loan-title-lines,
    .loan-description,
    .loan-benefits,
    .loan-cta {
        left: 0;
        right: auto
    }

    /* All mobile sizes are tied to viewport width, not fixed desktop pixels. */
    .loan-label {
        top: 8.6%;
        left: 6.8%;
        width: 43vw;
        height: 8.4vw;
        min-width: 0;
        padding: 0 1.5vw;
        gap: 1vw;
        border-radius: 1.7vw;
        font-size: 2.65vw;
        letter-spacing: .15vw
    }

    .loan-label-icon {
        width: 5.5vw;
        height: 5.5vw;
        font-size: 4vw
    }

    .loan-title {
        top: 14.6%;
        left: 6.8%;
        right: 4%;
        font-size: 6.8vw;
        line-height: .97;
        letter-spacing: -.15vw
    }

    .loan-title-lines {
        top: 26%;
        left: 7.3%;
        gap: 5vw
    }

    .loan-title-lines span {
        width: 11vw;
        height: .7vw
    }

    .loan-description {
        top: 28.1%;
        left: 7.4%;
        right: 6%;
        font-size: 2.75vw;
        line-height: 1.28;
        white-space: normal
    }

    .desktop-only {
        display: none
    }

    .loan-benefits {
        top: 34%;
        left: 7.2%;
        right: 6.2%;
        width: auto
    }

    .loan-benefit+.loan-benefit:before {
        top: 1vw;
        height: 12vw
    }

    .loan-icon {
        width: 13vw;
        height: 13vw;
        margin-bottom: 1.6vw;
        font-size: 5.4vw
    }

    .loan-icon-orange,
    .loan-icon-blue,
    .loan-icon-green,
    .loan-icon-pink {
        box-shadow: 0 0 0 1.5vw rgba(100, 170, 240, .16)
    }

    .loan-benefit-text {
        font-size: 2.35vw;
        line-height: 1.12
    }

    .loan-cta {
        top: 49.6%;
        left: 17.2%;
        width: 65.6%;
        right: auto;
        height: 9.2vw;
        min-height: 0;
        border-radius: 5vw;
        gap: 5vw;
        font-size: 3.7vw
    }

    .loan-cta i {
        font-size: 4.4vw
    }

    .modal-dialog {
        margin: 12px
    }

    .loan-modal {
        border-radius: 14px
    }

    .loan-modal .modal-header {
        padding: 17px 18px 14px
    }

    .loan-modal .modal-title {
        font-size: 20px
    }

    .loan-modal .modal-body {
        padding: 18px
    }

    .loan-modal .modal-footer {
        padding: 13px 18px 17px
    }
}

@media(max-width:575.98px) {
    .loan-label {
        top: 8.6%;
        height: 8.4vw
    }

    .loan-title {
        top: 14.6%;
        font-size: 6.8vw
    }

    .loan-description {
        font-size: 2.8vw
    }

    .loan-benefit-text {
        font-size: 2.35vw
    }
}