/* Loan Calculator Styles */
.loan-calculator-wrapper {
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #f7f7f7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.loan-calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
}
.loan-calculator-inputs,
.loan-calculator-results {
    flex: 1 1 calc(50% - 15px);
    min-width: 280px;
}

.loan-calculator-inputs h3,
.loan-calculator-results h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a2e;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Inputs */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.input-with-currency,
.input-with-suffix {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.input-with-currency:focus-within,
.input-with-suffix:focus-within {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.currency-symbol,
.input-suffix {
    padding: 0 12px;
    background: #f1f3f5;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 40px;
    white-space: nowrap;
}

.input-with-currency .currency-symbol {
    background: #edf2f7;
}

.loan-input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1a202c;
    outline: none;
    min-width: 0;
}

.loan-input[type="number"] {
    -moz-appearance: textfield;
}

.loan-input[type="number"]::-webkit-outer-spin-button,
.loan-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select.loan-input {
    background: #f8f9fa;
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    appearance: auto;
}

.input-note {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    margin-top: 3px;
    font-style: italic;
}

/* Results */
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
}

.result-item:last-child {
    border-bottom: none;
}
.result-item.highlight {
    padding: 12px 16px;
    margin-bottom: 15px;
    flex-direction: column;
    align-items: center;
    border-bottom: none;
    gap: 8px;
}
.result-label {
    color: #4a5568;
    font-weight: 400;
}

.result-value {
    font-weight: 600;
    color: #1a202c;
}
.result-item.highlight .result-value {
    font-size: 2.5rem;
    color: #039354;
}
.result-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 15px 0;
    background: #fafbfc;
    padding: 10px 15px;
    border-radius: 8px;
}
.result-grid .result-item {
    border-bottom: 1px solid #edf2f7;
    padding: 6px 0;
}

.result-grid .result-item:last-child {
    border-bottom: none;
}

.result-savings {
    margin: 20px 0 15px;
    padding: 15px;
    background: #f0fff4;
    border-left: 4px solid #38a169;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.6;
}

.result-savings #savings-amount {
    font-weight: 700;
    color: #38a169;
}

.result-savings #savings-extra {
    font-weight: 600;
    color: #2b6cb0;
}

.result-disclaimer {
    margin-top: 20px;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #744210;
    line-height: 1.5;
    border: 1px solid #f6e05e;
}

/* Responsive */
@media (max-width: 768px) {
    .loan-calculator-container {
        padding: 15px;
        gap: 20px;
    }
    .loan-calculator-inputs,
    .loan-calculator-results {
        flex: 1 1 100%;
    }
    .result-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .result-item.highlight .result-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .loan-calculator-wrapper {
        padding: 10px;
    }
    .loan-calculator-container {
        padding: 12px;
    }
    .currency-symbol,
    .input-suffix {
        padding: 0 8px;
        font-size: 0.85rem;
        line-height: 36px;
    }
    .loan-input {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    .result-item.highlight {
        padding: 10px 12px;
    }
}