.homePage {
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
    padding: 0;
}

.blob {
    display: none;
}

#calcSection {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.toggle-container {
    position: relative;
    width: 185px;
    height: 35px;
    border-radius: 75px;
    border: 2px solid #BDB8C0;
    background-color: #F9F7FA;
    display: flex;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
    user-select: none;
}

.extra-fee {
    font-size: 14px;
    margin-bottom: 0;

}

.toggle-option {
    z-index: 1;
    font-size: 22px;
    color: #37384E;
}

.toggle-option.active {
    color: white
}


.toggle-container:not(.active) #sum-option {
    color: white;
}

.toggle-background {
    display: flex;
    gap: 22px;
}

.toggle-button {
    position: absolute;
    height: 29px;
    width: 60px;
    background-color: #37384E;
    border-radius: 23px;
    text-align: center;
    line-height: 31px;
    right: 2px;
    transition: transform 0.3s ease, width 0.3s ease;
}

.toggle-container.active .toggle-button {
    transform: translateX(-63px);
    width: 114px;
}

.actionButtonWrapper:visited {
    height: 73px;
}

.calcBox {
    background-color: white;
    display: flex;
    flex-direction: column;
    max-width: 1042px;
    align-items: center;
    border-radius: 30px;
    box-shadow: 0px 0px 60px 0px #00000026;
    padding: 24px 28px 42px 28px;
    margin-bottom: -36px;
}

.calcWrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.calc-picker-container {
    margin-top: 40px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    padding-top: 13px;
    width: 333px;
}

.slider-title {
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    margin-bottom: 32px;
}

.slider-labels-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slider-label {
    font-weight: 300;
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 0;
}

.slider-input-container {
    display: flex;
    justify-content: center;
    direction: ltr;
}

.slider-input {
    appearance: none;
    margin-top: 39px;
    width: calc(100% - 80px);
    height: 10px;
    background: linear-gradient(to right, #470077 10%, #470077 50%, #C5C7CE 50%, #C5C7CE 100%);
    border-radius: 10px;
    outline-color: #37384e;
    box-shadow: 0px 2px 4px 0px #14012080;
}

.calcTitle {
    font-size: 33px;
    font-weight: 700;

}

.calcBorder {
    height: 2px;
    background-color: #F0CC4C;
    width: 80%;
    align-self: center;
    margin-top: 60px;
}

.loan-conditions-border {
    height: 100px;
    background-color: red;
}

#loan-amount-label {
    background-color: #F9F7FA;
    border: 1px solid #BDB8C0;
    border-radius: 6px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 20px;
    width: 110px;
    text-align: center;
    margin-top: 0;
    font-weight: 700;
    height: 40px;
}

#loan-amount-label::before {
    content: "1";
}

#monthly-payment-label {
    background-color: #F9F7FA;
    border: 1px solid #BDB8C0;
    border-radius: 6px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 20px;
    width: 110px;
    text-align: center;
    margin-top: 0;
    font-weight: 700;
    height: 40px;
}

#loan-payments-label {
    background-color: #F9F7FA;
    border: 1px solid #BDB8C0;
    border-radius: 6px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: 20px;
    text-align: center;
    margin-top: 0;
    width: 85px;
    font-weight: 700;
    height: 40px;
}

.slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F0CC4C;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.41) 0px 3px 4px 0px;
}

.slider-input::-webkit-slider-thumb:hover {
    width: 43px;
    height: 43px;
}

.slider-input::-moz-range-track {
    background: #fff !important;
}

.rightVectorImg {
    position: absolute;
    right: -70px;
    bottom: -322px;
    transform: rotate(4deg);
    height: 440px;
    width: 420px;
    background-repeat: no-repeat;
    background-size: 28vw;
}

.leftVectorImg {
    position: absolute;
    left: 0;
    top: -77px;
    width: 250px;
    height: 250px;
    background-repeat: no-repeat;
}

.skyImage {
    position: absolute;
    right: 4px;
    top: 40px;
    height: 250px;
    width: 250px;
    background-repeat: no-repeat;
}

.calc-result {
    text-align: center;
    font-weight: 400;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.interest {
    padding-right: 4px;
    font-weight: 400;
    font-size: 28px;
}

.fistInterest {
    border-right: 1px solid black;
    padding-right: 10px;
}

.motherImg {
    display: none;
}

.formInput {
    border: none;
    border-bottom: 1px solid rgb(161, 160, 160);
    outline: none;
    color: black
}

select.formInput {
    height: 40px;
    background-color: white;
    cursor: pointer;
}

.formInput:hover {
    border-color: black;
}

.formInput {
    text-align: right;
    direction: rtl;
}

.is-invalid {
    border-color: red;
}

.paymentsTitle {
    display: none;
}

@media (min-width: 700px) {
    .slider-container {
        width: 38vw
    }

    .calcTitle {
        font-size: 64px;
        line-height: 64px;
        display: flex;
        flex-wrap: wrap;
    }

    #calcDesc {
        font-size: 26px;
        max-width: 531px;
        padding-top: 16px;
        line-height: 39px;
        margin-bottom: 16px;
        display: flex;
        flex-wrap: wrap;
    }

    .calcTitleWrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 98%;
        text-align: right;
    }

    .sildersWrapper {
        display: flex;
        width: 100%;
        justify-content: space-around;
        margin-top: 16px;
    }

    .calcGrayBorder {
        border: 2px solid #B4C1D7;
        opacity: 21%;
        margin: 45px 0px 10px;
    }

    .calcBorder {
        width: 487px;
    }

    .slider-labels-container {
        padding: 0 40px;
        gap: 8px;
    }

    .desktopCalcButton {
        background-color: #F0CC4C;
        border: 0;
        border-radius: 4px;
        min-width: 256PX;
        height: 45px;
        margin-top: 30px;
        box-shadow: 0px 0px 30px 0px #2C2C2C33;
        font-size: 26px;
        padding: 4px 91px 4px 91px
    }

    .calcTitleRight {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: space-around;
        margin: 32px 0 0 377px;
        width: 668px;
        position: relative;
    }

    .calcTitleLeft {
        height: 100%;
        width: 463px;
        position: absolute;
        right: 600px;
        bottom: 60px;
    }

    .calcImage {
        max-width: 563px;
    }

    #loanOffer {
        background: linear-gradient(180deg, rgba(245, 247, 249, 0.6) -24.01%, rgba(255, 255, 255, 0.6) -0.54%);
        padding: 100px 14px;
    }

    .toggle-span {
        display: none
    }

    #calc-result-by-loan-amount {
        display: inline-block;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 40px;
        font-weight: 700;
        width: 150px;
    }

    #calc-result-by-monthly-payment {
        display: inline-block;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 40px;
        font-weight: 700;
        width: 180px;
    }
}

@media (max-width: 1170px) {
    .skyImage {
        top: 10px;
    }

    .calcTitleLeft {
        top: 73px;
        right: 404px;
    }

    .calcImage {
        max-width: 463px;
    }

    .calcTitleRight {
        margin: 32px 250px 8px 377px;
    }

    .rightVectorImg, .calcTitleLeft {
        display: none;
    }
}

@media (max-width: 1024px) {
    .calcTitleLeft {
        display: none;
    }

    .calcTitleRight {
        margin: 32px 0;
    }
}


@media (max-width: 699px) {

    #calcSection {
        margin: 0 8px 32px 8px;
    }

    .calcTitleWrapper {
        margin: 24px 7px;
    }

    #calcDesc {
        margin: 16px 26px 0 26px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap
    }

    .calcTitle {
        font-size: 31px;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap
    }

    .calcWrapper {
        margin: 24px 0px;
        text-align: center;
    }

    .skyImage {
        display: none;
    }

    .rightVectorImg {
        display: none;
    }

    .leftVectorImg {
        width: 90px;
        height: 89px;
        left: 0;
        background-size: contain;
        z-index: 99;
        background-repeat: no-repeat;
        background-position-x: -2px;
    }

    .blob {
        position: absolute;
        display: block;
        width: 200px;
        height: 250px;
        right: 0;
        top: -90px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position-x: -2px;
        rotate: -67deg;
        opacity: 60%;
        z-index: -1;
    }

    .paymentsTitle {
        display: block;
        text-align: center;
        font-size: 22px;
        color: #061839;
        font-weight: 700;
        margin-bottom: -8px;
    }

    .calcImage {
        display: none;
    }

    .calcBorder {
        margin-top: 0 !important;
    }


    .calcBox {
        background-color: white;
        padding: 16px 8px;
        border-radius: 10px;
        width: 100%;
        margin-bottom: 0;
    }

    .sildersWrapper {
        width: 100%;
    }

    .slider-input {
        width: 100%;
    }

    .desktopCalcButton {
        display: none;
    }

    .motherImgWrapper {
        display: flex;
        justify-content: center;
    }

    .motherImg {
        display: block;
        width: 80%;
    }

    .desktopImage {
        display: none;
    }

    .actionButtonWrapper {
        display: none;
    }

    .calcTitleRight {
        margin: 0;
        width: 100%;
    }

    .slider-title {
        display: none;
    }

    .toggle-wrapper {
        display: flex;
        align-items: center;
        font-size: 22px;
        font-weight: 700;
        text-align: center;
        gap: 8px;
        white-space: nowrap;
    }

    .interest {
        display: block;
        font-size: 22px;
    }

    .fistInterest {
        display: block;
    }

    #calc-result-by-loan-amount {
        font-weight: 700;
        font-size: 25px;
        padding-left: 10px;
        padding-right: 5px;
        width: 90px;
    }

    #calc-result-by-monthly-payment {
        font-weight: 700;
        font-size: 25px;
        padding-left: 10px;
        padding-right: 5px;
        width: 110px;
    }

    .calc-result {
        padding-top: 16px;
        white-space: nowrap;
        border-top: 2px solid #F0CC4C;
    }

    .calcBorder {
        display: none;
    }

    .slider-container {
        margin-top: 24px;
        margin-bottom: 38px;
        padding-top: 0;
        width: 100%;
    }

    .extra-fee {
        margin-top: 24px;
        line-height: 20px;
        margin-bottom: 8px;
    }

    .toggle-option:not(.active) {
        color: #37384EBF;
        font-weight: 400;
    }
}

@media (min-width: 1700px) {
    .rightVectorImg {
        width: 30%;
        right: -17px;
        height: 510px;
        top: 20vh;
    }
}

@media (max-width: 350px) {
    .slider-input {
        width: 92%;
    }

    .slider-labels-container {
        padding: 0 20px;
    }

    .toggle-wrapper {
        gap: 1px
    }
}

@media (max-width: 330px) {
    .calc-result {
        flex-direction: column;
    }
    .calcBox .toggle-wrapper {
        flex-direction: column;
    }
    .fistInterest {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 1500px) {
    .rightVectorImg {
        display: none;
    }
    .leftVectorImg {
        display: none;
    }
}