/* ========================================
   MONTHLY INCOME DEPOSIT CALCULATOR - INR
   Minimalistic and functional calculator
   ======================================== */

/* Calculator Container */
.mid-calculator-section {
    background: linear-gradient(135deg, #f5faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.mid-calculator-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.mid-calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.mid-calculator-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: #0A1023;
    margin-bottom: 10px;
}

.mid-calculator-header p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* Amount Display */
.mid-amount-display {
    text-align: center;
    margin-bottom: 30px;
}

.mid-amount-label {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.mid-amount-value {
    font-size: 52px;
    font-weight: 800;
    color: #1a4dbe;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mid-amount-value .currency-symbol {
    font-size: 44px;
    color: #1a4dbe;
}

/* Slider Container */
.mid-slider-container {
    margin-bottom: 40px;
}

.mid-slider-wrapper {
    position: relative;
    padding: 20px 0;
}

/* Custom Range Slider */
.mid-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #1a4dbe 0%, #1a4dbe 50%, #e0e0e0 50%, #e0e0e0 100%);
    outline: none;
    transition: all 0.3s ease;
}

.mid-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a4dbe;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 77, 190, 0.4);
    transition: all 0.3s ease;
}

.mid-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(26, 77, 190, 0.6);
}

.mid-range-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a4dbe;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(26, 77, 190, 0.4);
    transition: all 0.3s ease;
}

.mid-range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(26, 77, 190, 0.6);
}

/* Slider Labels */
.mid-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Tenure Options */
.mid-tenure-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.mid-tenure-option {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mid-tenure-option:hover {
    border-color: #1a4dbe;
    background: #f5faff;
    transform: translateY(-2px);
}

.mid-tenure-option.active {
    border-color: #1a4dbe;
    background: linear-gradient(135deg, #1a4dbe 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(26, 77, 190, 0.3);
}

.mid-tenure-option .tenure-months {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.mid-tenure-option .tenure-label {
    font-size: 15px;
    opacity: 0.8;
}

.mid-tenure-option .tenure-rate {
    font-size: 14px;
    margin-top: 5px;
    font-weight: 600;
}

.mid-tenure-option.active .tenure-label,
.mid-tenure-option.active .tenure-rate {
    color: #ffffff;
}

/* Results Display */
.mid-results {
    background: linear-gradient(135deg, #f5faff 0%, #e8f4ff 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.mid-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mid-result-row:last-child {
    border-bottom: none;
}

.mid-result-label {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.mid-result-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a4dbe;
    font-family: 'Courier New', monospace;
}

.mid-result-value.highlight {
    font-size: 34px;
    color: #0d2a6e;
}

/* CTA Button */
.mid-cta-button {
    text-align: center;
}

.mid-cta-button .cmn-btn {
    padding: 16px 45px;
    font-size: 19px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 991px) {
    .mid-calculator-wrapper {
        padding: 40px 30px;
    }
    
    .mid-tenure-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mid-amount-value {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .mid-calculator-wrapper {
        padding: 30px 20px;
    }
    
    .mid-calculator-header h2 {
        font-size: 26px;
    }
    
    .mid-amount-value {
        font-size: 32px;
    }
    
    .mid-amount-value .currency-symbol {
        font-size: 28px;
    }
    
    .mid-tenure-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .mid-result-value {
        font-size: 20px;
    }
    
    .mid-result-value.highlight {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .mid-calculator-header h2 {
        font-size: 24px;
    }
    
    .mid-amount-value {
        font-size: 28px;
    }
    
    .mid-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .mid-result-value {
        font-size: 22px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mid-calculator-wrapper {
    animation: fadeInUp 0.6s ease;
}

/* Accessibility */
.mid-range-slider:focus {
    outline: 2px solid #1a4dbe;
    outline-offset: 2px;
}

.mid-tenure-option:focus {
    outline: 2px solid #1a4dbe;
    outline-offset: 2px;
}

/* Reduce white space after testimonials section on monthly income deposit page */
.testimonials-section.monthly-income-deposit .overlay {
    padding-bottom: 60px !important;
}

.testimonials-section.monthly-income-deposit + .features-section .overlay {
    padding-top: 60px !important;
}
