/* Loan EMI Calculator Styles */
.emi-calculator-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 500px;
    margin: 20px auto;
    padding: 0 15px;
}

.emi-calculator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.emi-calculator h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.emi-calculator h3 i {
    margin-right: 10px;
    color: #ffd700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #ffd700;
    width: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.tenure-container {
    display: flex;
    gap: 10px;
}

.tenure-container input {
    flex: 2;
}

.tenure-container select {
    flex: 1;
    min-width: 100px;
}

.emi-calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.emi-calculate-btn:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.emi-calculate-btn:active {
    transform: translateY(0);
}

.emi-calculate-btn i {
    margin-right: 10px;
}

.emi-results {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.emi-results h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: #ffd700;
}

.emi-results h4 i {
    margin-right: 8px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    color: #ffd700;
}

.result-label {
    font-weight: 500;
}

.result-value {
    font-weight: 600;
    color: #ffd700;
    font-size: 16px;
}

.emi-error {
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid rgba(255, 87, 87, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.emi-error p {
    margin: 0;
    color: #ff6b6b;
    font-weight: 500;
}

.emi-error i {
    margin-right: 8px;
}

/* Loading State */
.emi-calculate-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.emi-calculate-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .emi-calculator-container {
        max-width: 100%;
        margin: 10px auto;
    }
    
    .emi-calculator {
        padding: 20px;
    }
    
    .tenure-container {
        flex-direction: column;
    }
    
    .tenure-container input,
    .tenure-container select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .emi-calculator {
        padding: 15px;
    }
    
    .emi-calculator h3 {
        font-size: 20px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-value {
        align-self: flex-end;
    }
}