/* Start For Loan Calculator */
.calculator {
    font-family: "Arial", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    height: auto;
    width: 100%; 
    max-width: 960px;
    margin: 0 auto; 
}

.centered-heading {
    text-align: center;
    margin-top: 50px;
    /* margin-bottom: 10px; */
}

.loan-calculator {
    /* padding-top: 50px; */
    padding-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    padding-left: 180px;
}

.loan-calculator .top {
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 50px rgba(0, 0, 0, 0.1);
    /* margin-left: 50px;
    margin-right: 50px; */
}

.loan-calculator .top .group {
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .calculator {
        padding-bottom: 50px;
    }

    .loan-calculator {
        padding-bottom: 50px;
        padding-top: 50px;
    }

    .loan-calculator .top {
        padding: 39px 60px 52px 58px;
    }

    /* Added styles for smaller devices */
    .centered-heading {
        margin-top: 40px;
    }

    .loan-calculator .top h2 {
        text-align: center;
    }
}

form {
    margin-top: 30px;
}

form:not(:first-child) {
    margin-top: 40px;
}

.title {
    color: #2bbbad;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.calc_output input {
    color: #282828;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    background: none;
    padding-right: 50px;
}

.calc__placeholders {
    font-size: 14px;
    color: grey;
    display: flex;
    justify-content: space-between;
}

.calc__input-range1 {
    border-radius: 8px;
    height: 7px;
    width: 100%;
    outline: none;
    transition: background 450ms ease-in;
    -webkit-appearance: none;
}

.calc__input-range1::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    -webkit-appearance: none;
    cursor: ew-resize;
    background: #434343;
}

.calc__input-range2 {
    border-radius: 8px;
    height: 7px;
    width: 100%;
    outline: none;
    transition: background 450ms ease-in;
    -webkit-appearance: none;
}

.calc__input-range2::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    -webkit-appearance: none;
    cursor: ew-resize;
    background: #434343;
}

.loan-calculator .calculate-btn{
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 10px;
    color: grey;
    padding: 8px 28px;
    border-radius: 25px;
    transition: all 0.5s ease 0s;
    background: transparent;
    border-width: 2px;
    border-style: solid;
    border-color: grey;
    border-image: initial;
    display: none;
}

/* Result Display */

.loan-calculator .result {
    padding-top: 50px;
    margin-left: 50px;
}

.loan-calculator .result div{
    margin-bottom: 20px;
}

.result .title {
    color: black;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
}

.result .title .loan-tenure-value{
    color: #2bbbad;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
  }

.value {
    color: black;
    font-size:40px;
    font-weight: 700;
    margin-bottom: 1rem;
    
}

.total-interest {
    display: none;
}


.value-container {
    display: inline-flex;
    align-items: baseline;
}

.loan-calculator .btn-container button{
    font-size: 16px;
    line-height: 1;
    color: #fff;
    background-color: #2bbbad;
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
    text-align: center;
    box-sizing: border-box;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
/* End For Loan Calculator */