.loan-calculator *{
    box-sizing: border-box;
}

.loan-calculator {
    display: flex;
    max-width: 1000px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.calculator-header {
    background-color: #6e5592;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.calculator-body {
    padding: 20px 30px;
}

.calculator-body .info {
    font-size: 14px;
    color: #6c757d;
}

.calculator-body .lccp-form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    appearance: none;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    outline: 0;
    border-radius: 0;
}

.calculator-body .lccp-form-control:active,
.calculator-body .lccp-form-control:focus,
.calculator-body .lccp-form-control:focus-visible {
    outline: 0;
}

.repayment-box {
    display: flex;
    flex-direction: column;
    background-color: #6e5592;
    color: #ffffff;
    border-radius: 8px;
    border-bottom-left-radius: 0;
    text-align: center;
}

.repayment-box h3 {
    margin: 0;
}

.btn-apply {
    background-color: #00b3a6;
    color: #ffffff;
    border: none;
}

.btn-apply:hover {
    background-color: #019d91;
}

.nav-tabs {
    border: 0px !important;
}

.nav-tabs .nav-link {
    background-color: #f2f2f2;
    color: #6e5592;
    border-radius: 0px;
    font-weight: bold;
}

.nav-tabs .nav-link.active {
    background-color: #6e5592;
    color: white;
    border: none;
}

.repayment-box {
    min-width: 400px;
}

.lccp-input-group {
    position: relative;
    display: flex;
    /* flex-wrap: wrap; */
    align-items: stretch;
    width: 100%;
}

.btn-increase,
.btn-decrease {
    padding: 6px 15px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
}

.btn-increase:hover,
.btn-decrease:hover {
    background-color: #0056b3;
}

input[type="number"] {
    width: 80px;
    text-align: center;
}

.colorbg {
    background-color: #2fa39f;
}

.bggray {
    background-color: #f2f2f2 !important;
}

.tabs-container {
    display: flex;
    justify-content: center;
    background-color: #6f4a8e;
    /* Adjust background color */
    border-radius: 10px;
    /* Adjust if needed */
    overflow: hidden;
}

.tabs-container ul {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tabs-container li {
    flex: 1;
    /* Equal width for all tabs */
    text-align: center;
    padding: 15px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    background: white;
    transition: background 0.3s;
}

.tabs-container li.active {
    background: #6f4a8e;
    /* Active tab background */
    color: white;
}

.font-weight-bold {
    font-weight: bold;
    font-size: 18px;
}

select#loanType {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    background-color: #6e5592;
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 50px;
    border-radius: 0px;
    outline: unset;
    background: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 97%;
    background-position-y: 12px;
    /* transform: translate(-50%, -50%); */
}

select#loanType:active,
select#loanType:focus,
select#loanType:focus-visible {
    outline: unset;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 14l5-5 5 5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
}

.calculator-left {
    flex: 1;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

ul.lccp-repayment-tabs{
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

li.lccp-repayment-tab{
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: #F3F3F3;
    color: #6e5592;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

li.lccp-repayment-tab-active{
    background: #6e5592;
    color: #ffffff;
}

li.lccp-repayment-tab:last-child{
    border-top-right-radius: 8px;
}

li.lccp-repayment-tab:first-child{
    /* border-top-left-radius: 8px; */
}

.lccp-tab-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px 20px 30px;
    height: 100%;
    min-height: 300px;
}

h3#repayment-amount{
    font-size: 3.5rem;
    font-weight: bold;
    padding: 0;
    margin: 0;
}

.lccp-tab-content-inner{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto auto;
    width: 100%;
}

.repayment-amount-details{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

span.repayment-amount-details-label{
    font-size: 14px;
}

span.repayment-amount-details-value{
    font-size: 16px;
    font-weight: bold;
}

.repayment-total{
    font-size: 1.5rem;
}

a.lccp-apply-loan-btn{
    display: block;
    width: 100%;
    max-width: 300px;
    margin-top: auto;
    padding: 10px 30px;
    text-decoration: none !important;
    text-decoration-line: none !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    background: #00b3a6;
    border-radius: 5px;
    white-space: nowrap;
    box-sizing: border-box;
}

label.lccp-heading{
    display: block;
    font-size: 16px;
    font-weight: bold;
}

div.lccp-loan-type-label{
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.lccp-loan-type-input-container{
    margin-bottom: 10px;
}

.lccp-loan-type-input-container:last-child{
    margin-bottom: 0;
}

label.loan-amount-term-label{
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.term-in-year span{
    margin-top: 5px;
    font-size: 14px;
    display: block;
}

/** Utility */
.lccp-mb-1rem {
    margin-bottom: 1rem;
}

.lccp-mb-05rem {
    margin-bottom: 0.5rem;
}

.lccp-row {
    display: flex;
    flex-wrap: wrap;
}

.lccp-col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.lccp-input-btn {
    cursor: pointer;
    display: inline-block;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    font-weight: 400;
    font-size: 1rem;
    color: #6c757d;
    border: 1px solid #6c757d;
    border-radius: 0.375rem;
    width: 50px;
}

.lccp-input-btn-left {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.lccp-input-btn-right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/** Mobile Responsive */

@media only screen and (max-width: 700px) {
    .loan-calculator {
        flex-direction: column;
        padding: 0;
    }

    .repayment-box {
        min-width: unset;
        border-radius: 0;
        border-bottom-right-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    li.lccp-repayment-tab:last-child, .lccp-repayment-tabs{
        border-radius: unset;
    }

    .calculator-body {
        padding: 20px;
    }
    
    .calculator-left{
        border-radius: 0;
        border-top-right-radius: 8px;
        border-top-left-radius: 8px;
    }
}