/* EMI Calculator Styles */

.calculator-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    min-height: calc(100vh - 200px);
}

.calculator-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-top: 5px solid #1a237e;
}

.calculator-form .form-label {
    color: #1a237e;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.calculator-form .form-label i {
    margin-right: 8px;
    color: #303f9f;
}

.form-range {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #1a237e 0%, #303f9f 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.form-range::-webkit-slider-thumb {
    background: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #1a237e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #555;
    font-size: 0.9rem;
}

.range-value {
    font-weight: 600;
    color: #1a237e;
    font-size: 1.1rem;
    background: #f0f4ff;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.result-card {
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.6;
}

.result-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-card h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.chart-title {
    font-size: 1.2rem;
    color: #1a237e;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.loan-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.summary-item {
    text-align: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 120px;
    margin: 5px;
}

.summary-item h5 {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}

.summary-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a237e;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-section {
        padding: 40px 0;
    }

    .calculator-card {
        padding: 25px 20px;
    }

    .result-card h3 {
        font-size: 1.5rem;
    }
    
    .summary-item {
        min-width: 100px;
        margin: 3px;
    }
}

/* Additional Styling */
.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-header h2 {
    color: #1a237e;
    font-weight: 700;
    margin-bottom: 10px;
}

.calculator-header p {
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a237e;
}

.input-with-icon input {
    padding-left: 35px;
}

.amortization-link {
    text-align: center;
    margin-top: 20px;
}

.amortization-link a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.amortization-link a i {
    margin-left: 5px;
}