.loan-calculator {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, #f27457 0%, #ff9d80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-label {
    display: block;
}

.label-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.modern-input:focus {
    outline: none;
    border-color: #f27457;
    background: white;
    box-shadow: 0 0 0 4px rgba(242, 116, 87, 0.1);
}

.currency-symbol,
.unit-label {
    position: absolute;
    color: #64748b;
    font-weight: 500;
}

.currency-symbol {
    left: 1rem;
}

.unit-label {
    right: 1rem;
}

.modern-input:has(.currency-symbol) {
    padding-left: 2rem;
}

.modern-input:has(.unit-label) {
    padding-right: 2rem;
}

.results-container {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 2px solid #e2e8f0;
}

.monthly-payment {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-label {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f27457;
    text-shadow: 0 2px 4px rgba(242, 116, 87, 0.1);
}

.additional-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: #0f172a;
}

@media (max-width: 768px) {
    .loan-calculator {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
    }

    .result-value {
        font-size: 1.5rem;
    }
}

/* Animations */
.modern-input,
.results-container {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-input:focus {
    transform: translateY(-2px);
}

.results-container {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
