/* EMI Calculator - Main Styles */
.emi-calculator-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.emi-calculator-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.emi-calculator-header h2 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 28px;
}

.emi-calculator-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.emi-calculator-header i {
    margin-right: 10px;
    color: #3498db;
}

.emi-calculator-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 16px;
}

.form-group label i {
    margin-right: 8px;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.tenure-input-container {
    display: flex;
    gap: 10px;
}

.tenure-input-container #loan-tenure {
    flex: 2;
}

.tenure-input-container #tenure-type {
    flex: 1;
}

.calculate-btn {
    width: 100%;
    padding: 14px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn i {
    margin-right: 10px;
}

.loading-spinner {
    text-align: center;
    margin: 20px 0;
    color: #3498db;
    font-size: 16px;
}

.emi-result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.emi-result h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.emi-result h3 i {
    margin-right: 10px;
    color: #3498db;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.result-item.highlight {
    background: #e3f2fd;
    border-left: 4px solid #3498db;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-icon {
    margin-right: 15px;
    font-size: 24px;
    color: #3498db;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 50%;
}

.result-content {
    display: flex;
    flex-direction: column;
}

.result-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.result-value {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .emi-calculator-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .emi-calculator-header h2 {
        font-size: 24px;
    }
    
    .tenure-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .tenure-input-container #loan-tenure,
    .tenure-input-container #tenure-type {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}