/* Main Container */
.emi-calculator-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.emi-calculator-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.emi-calculator-container h2 i {
    margin-right: 10px;
    color: #3498db;
}

/* Form Styles */
.emi-calculator-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 15px;
}

.form-group label i {
    margin-right: 10px;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.loan-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.loan-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Tenure Container */
.tenure-container {
    display: flex;
    gap: 10px;
}

#loan-tenure {
    flex: 2;
}

.tenure-select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
}

/* Button Styles */
.calculate-btn {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 0 #2980b9;
}

.calculate-btn:hover {
    background-color: #2980b9;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2980b9;
}

.calculate-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #2980b9;
}

.calculate-btn i {
    margin-right: 10px;
    transition: all 0.3s;
}

.calculate-btn:hover i {
    transform: scale(1.1);
}

/* Result Styles */
.emi-result {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    min-height: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-placeholder {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.result-success h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.result-success h3 i {
    margin-right: 8px;
    color: #3498db;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #34495e;
}

.result-label i {
    margin-right: 8px;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.result-value {
    font-weight: 700;
    color: #2ecc71;
}

.result-note {
    margin-top: 20px;
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
}

.result-note i {
    margin-right: 5px;
}

.result-error {
    color: #e74c3c;
    font-weight: 600;
    text-align: center;
    padding: 20px 0;
}

.result-error i {
    margin-right: 8px;
}

.loading {
    color: #3498db;
    font-weight: 600;
    text-align: center;
    padding: 20px 0;
}

.loading i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .emi-calculator-container {
        padding: 15px;
    }
    
    .emi-calculator-form,
    .emi-result {
        padding: 15px;
    }
    
    .tenure-container {
        flex-direction: column;
        gap: 10px;
    }
    
    #loan-tenure,
    .tenure-select {
        width: 100%;
    }
}