/* chart section */
.chart {}

.chart .section-heading4 {
    font-size: 40px;
    font-weight: 600;
    font-family: myFirstFont2;
    line-height: 40px;
    width: 743px;
    /* height: 40px; */
    margin-left: auto;
    margin-right: auto;
}

.chart .sub-heading {
    font-size: 18px;
    font-weight: 400;
    font-family: myFirstFont3;
    line-height: 20px;
    color: #221849;
    width: 597px;
    /* height: 80px; */
    margin: 2rem auto;
}

.chart .sub-heading span {
    font-size: 18px;
    font-weight: 700;
    font-family: myFirstFont2;
    line-height: 26px;
    background: linear-gradient(90deg, #02FA72, #0074FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.chart button.payoff-now {
    font-size: 16px;
    font-weight: 400;
    font-family: myFirstFont3;
    line-height: 100%;
    color: #221849;
    width: 189px;
    height: 45px;
    border-radius: 60px;
    background-color: transparent;
    /* solid background */
    border: 2px solid;
    border-image: linear-gradient(90deg, #02FA72, #0074FF) 1;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, #02FA72, #0074FF);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

.chart hr {
    width: 80%;
    color: #D2D6DB;
    border-width: 1px;
    margin: 3rem auto;
    opacity: unset;
}

.chart .calculation {
    /* background: #fff; */
    /* border-radius: 12px; */
    display: flex;
    justify-content: space-between;
    /* padding: 30px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
    max-width: 937px;
    margin: auto;
}

.left {
    width: 577px;
    height: 421px;
}

.right {
    width: 360px;
    height: 421px;
    margin-top: -4px;
}

.right,
.left {
    position: relative;
}

.right .rightbox,
.left .leftbox {
    width: 100%;
}

.left h3 {
    font-size: 26px;
    line-height: 22px;
    font-family: myFirstFont3;
    color: #221849;
    font-weight: 400;
}

.right .rightpart,
.left .leftpart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.right .rightpart {
    width: 90%;
}

.amount-box {
    background: #F7F7F7;
    border-radius: 10px;
    padding: 15px 20px;
    font-family: myFirstFont3;
    color: #221849;
    font-size: 26px;
    line-height: 28px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #D2D6DB;

}

input[type="range"] {
    width: 100%;
    appearance: none;
    height: 6px;
    background: #D2D6DB;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    background: #240183;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #240183;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.info-boxes {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.info-box {
    /* background: #f1f6ff; */
    border-radius: 10px;
    padding: 20px;
    width: 48%;
    text-align: center;
    font-size: 18px;
    line-height: 20px;
    font-family: myFirstFont3;
    color: #221849;
}

.info-box .highlight {
    background: linear-gradient(90deg, #02FA72, #0074FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* display: inline-block; */
    font-weight: 700;
}

.info-box .highlight-blue {
    color: #0074FF;
    font-weight: 700;
}

.right canvas {
    /* margin-top: 20px; */
}

.graph-labels {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    font-family: myFirstFont3;
}

.credit_card_much {
    text-align: center;
}

.barchartbox {
    height: auto;
    min-height: 360px;
}

#barChart {
    width: 100%;
    height: 100% !important;
}

.info-box1,
.info-box2 {
    position: relative;
    width: 207px;
    height: 123px;
}

.info-box1 .infoleftbox,
.info-box2 .inforightbox {
    width: 100%;
}

.info-box1 .quote,
.info-box2 .quote {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}


@media (min-width: 992px) {
    .info-mobile {
        display: none;
    }
}

@media (max-width: 991px) {
    .info-desktop {
        display: none;
    }

    .chart .calculation {
        flex-direction: column;
    }

    .left,
    .right {
        margin-left: auto;
        margin-right: auto;
    }

    .right {
        margin-top: -10px;
    }

    .left {
        width: 360px;
        height: fit-content;
    }

    .left h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .right .rightpart,
    .left .leftpart {
        width: 90%;
    }

    .info-boxes {
        justify-content: initial;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        align-items: center;
        justify-content: center;
    }

    .info-box {
        font-size: 16px;
        line-height: 18px;
    }

    .chart .sub-heading {
        /* width: 100%; */
    }
}

@media (max-width: 768px) {}

@media (max-width: 576px) {
    .chart .section-heading4 {
        font-size: 30px;
        line-height: 30px;
        width: 90%;
    }

    .chart .sub-heading {
        font-size: 16px;
        line-height: 20px;
        width: 90%;
    }
}

@media (max-width: 426px) {
    .chart button.payoff-now {
        font-size: 12px;
        width: auto;
        padding: 0 1rem;
    }
}

@media (max-width: 400px) {

    .info-box1,
    .info-box2 {
        width: 48%;
        height: auto;
    }

    .info-box1 {
        padding-right: 10px;
        /* padding-top: 0; */
        padding-bottom: 0;
    }

    .info-box2 {
        padding-left: 10px;
        /* padding-top: 0; */
        padding-bottom: 0;
    }
}

@media (max-width: 375px) {

    .info-box1,
    .info-box2 {
        width: 48%;
        height: auto;
    }

    .info-box1 {
        padding-right: 10px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .info-box2 {
        padding-left: 10px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .right,
    .left {
        width: 90%;
    }

    .right .rightbox,
    .left .leftbox {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .info-box1 .quote,
    .info-box2 .quote {
        top: 50%;
    }

    .info-boxs {
        align-items: center;
        justify-content: center;
    }

    .info-box {
        font-size: 14px;
        line-height: 16px;
    }

    .chart .sub-heading {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 321px) {
    #barChart {
        height: 80% !important;
    }

    .info-box {
        font-size: 12px;
        line-height: 14px;
    }

    .right {
        margin-top: -8px;
    }
}