/* EMI Calculator Compact Redesign (V3) */
.emi-section-v2 {
    background: var(--white);
    padding: 1.5rem 0;
}

/* Container for No Scrollbars */
.emi-container {
    overflow: hidden;
    /* Critical constraint */
    max-width: 800px;
    margin: 0 auto;
}

/* Tabs */
.emi-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #f1f5f9;
    padding: 0.3rem;
    border-radius: 50px;
    display: inline-flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.emi-tab-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emi-tab-btn.active {
    background: var(--white);
    color: var(--green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Calculator Card - Compact */
.emi-calculator-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    border: 1px solid var(--border);
    display: none;
    animation: fadeIn 0.3s ease;
}

.emi-calculator-card.active {
    display: block;
    /* Stacked layout for compactness */
}

/* Compact Input Rows */
.input-row {
    margin-bottom: 1.5rem;
}

.input-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.input-label {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-field-styled {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--green);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    width: 140px;
    text-align: right;
    transition: all 0.2s;
}

.input-field-styled:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Sleek Range Slider */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
    display: block;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 4px solid var(--green);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.min-max-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.3rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Big Result Section */
.emi-result-compact {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.result-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.result-value-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.result-breakdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.breakdown-item {
    text-align: center;
}

.breakdown-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.breakdown-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
}

/* Hide Scrollbars Globally for this widget */
.emi-section-v2 ::-webkit-scrollbar {
    display: none;
}

@media (max-width: 600px) {
    .result-breakdown {
        flex-direction: column;
        gap: 1rem;
    }
}