.loan-calc, .loan-calc * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.loan-calc {
    background: #fbfbfd;
    border: 1px solid #edeef3;
    border-radius: 16px;
    padding: 24px;
}

.loan-calc-head {
    margin-bottom: 16px;
}

.loan-calc-title {
    font-size: 1.15rem;
    font-weight: 650;
    color: #1f2430;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loan-calc-title i {
    color: #009768;
}

.loan-calc-subtitle {
    margin: 6px 0 0 !important;
    font-size: 13.5px;
    color: #7d8194;
    font-weight: 400;
    line-height: 1.5;
}

.loan-calc-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef3e0;
    color: #92650c;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 20px;
}

.loan-calc-warning i {
    margin-top: 2px;
    color: #d78b0c;
}

.loan-calc-row {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.loan-calc-field, .loan-calc-slider-field {
    flex: 1;
    min-width: 0;
}

.loan-calc-field label, .loan-calc-slider-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 650;
    color: #454a5c;
    margin-bottom: 8px;
}

.loan-input {
    width: 100%;
    height: 44px;
    border: 1px solid #e6e8f0;
    background: #fff;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 650;
    color: #1f2430;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.loan-input:focus {
    border-color: #009768;
    box-shadow: 0 0 0 3px rgba(0, 151, 104, .1);
}

select.loan-input {
    cursor: pointer;
}

.loan-slider-value {
    color: #009768;
    font-weight: 650;
}

input[type="range"].loan-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    accent-color: #009768;
}

input[type="range"].loan-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #009768;
    box-shadow: 0 2px 6px rgba(0, 151, 104, .4);
    cursor: pointer;
    border: 2px solid #fff;
}

input[type="range"].loan-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #009768;
    box-shadow: 0 2px 6px rgba(0, 151, 104, .4);
    cursor: pointer;
    border: 2px solid #fff;
}

.loan-slider-minmax {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #9297a8;
    margin-top: 6px;
}

.loan-calc-result {
    background: #e8f8f2;
    border: 1px solid #f9d4db;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 18px;
}

.loan-result-heading {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .04em;
    color: #009768;
}

.loan-result-note {
    font-size: 12.5px;
    color: #7d8194;
    margin-top: 4px;
}

.loan-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.loan-result-box {
    background: #fff;
    border: 1px solid #f7dde2;
    border-radius: 10px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loan-result-label {
    font-size: 12px;
    color: #7d8194;
    font-weight: 650;
}

.loan-result-value {
    font-size: 1.05rem;
    font-weight: 650;
    color: #1f2430;
}

.loan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border-radius: 999px;
    background: #009768;
    color: #fff;
    font-weight: 650;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 151, 104, .25);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.loan-cta:hover {
    background: #c40025;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 151, 104, .3);
}

@media (max-width: 600px) {
    .loan-calc-row {
        flex-direction: column;
        gap: 16px;
    }

    .loan-result-grid {
        grid-template-columns: 1fr;
    }

    .loan-calc {
        padding: 18px;
    }
}
