.emi-calculator-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.emi-calculator-header {
    text-align: center;
    margin-bottom: 25px;
    color: white;
}

.emi-calculator-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emi-calculator-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input::-webkit-outer-spin-button,
.form-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tenure-input-group {
    display: flex;
    gap: 10px;
}

.tenure-input-group input {
    flex: 2;
}

.tenure-input-group select {
    flex: 1;
}

.emi-calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emi-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #43A047 0%, #1B5E20 100%);
}

.emi-calculate-btn:active {
    transform: translateY(0);
}

.emi-results {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
    color: #2d3748;
}

.result-header h4 {
    margin: 0;
    font-size: 20px;
}

.result-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 #e2e8f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #4a5568;
}

.result-value {
    font-weight: 700;
    color: #2d3748;
    font-size: 18px;
}

.result-note {
    margin-top: 15px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
    text-align: center;
    color: #718096;
}

.result-note i {
    color: #667eea;
    margin-right: 5px;
}

.emi-error {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-message i {
    font-size: 18px;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
}

.emi-calculate-btn .loan-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    .emi-calculator-container {
        margin: 10px;
        padding: 15px;
    }
    
    .emi-calculator-form,
    .emi-results {
        padding: 20px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-value {
        font-size: 16px;
    }
    
    .emi-calculator-header h3 {
        font-size: 20px;
    }
}