/* Loan EMI Calculator Styles */
.emi-calculator-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.emi-calculator {
    background: #ffffff;
    border-radius: 10px;
}

.emi-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.emi-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.emi-header i {
    margin-right: 10px;
}

.emi-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tenure-input {
    display: flex;
    gap: 10px;
}

.tenure-input input {
    flex: 1;
}

.tenure-input select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    min-width: 100px;
}

.tenure-input select:focus {
    outline: none;
    border-color: #667eea;
}

.emi-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.emi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.emi-btn:active {
    transform: translateY(0);
}

.emi-btn i {
    margin-right: 8px;
}

.emi-results {
    padding: 0 30px 30px;
    animation: fadeIn 0.5s ease;
}

.results-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.results-header i {
    color: #667eea;
    margin-right: 8px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #555;
}

.result-value {
    font-weight: 700;
    color: #2c5aa0;
    font-size: 1.1em;
}

.emi-loader {
    text-align: center;
    padding: 30px;
    color: #667eea;
    font-weight: 600;
}

.emi-loader i {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .emi-calculator-wrapper {
        margin: 10px;
        max-width: none;
    }
    
    .emi-form {
        padding: 20px;
    }
    
    .emi-results {
        padding: 0 20px 20px;
    }
    
    .tenure-input {
        flex-direction: column;
    }
    
    .tenure-input select {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error States */
.form-group input:invalid {
    border-color: #e74c3c;
}

.form-group input:invalid:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}