* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.emi-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    background: #f6f8ff;
    padding: 40px;
    border-radius: 30px;
    font-family: Arial, sans-serif;
}

.emi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.emi-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.emi-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5f6fff, #6c7bff);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 35px;
    box-shadow: 0 10px 30px rgba(95, 111, 255, 0.3);
}

.emi-header h2 {
    font-size: 52px;
    color: #09153d;
    margin-bottom: 10px;
}

.emi-header p {
    font-size: 22px;
    color: #667085;
}

.emi-badge {
    background: #fff;
    padding: 22px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.emi-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 35px;
}

.emi-left-card,
.emi-right-card {
    background: #fff;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.emi-left-card h3 {
    font-size: 34px;
    margin-bottom: 30px;
    color: #3d57ff;
}

.emi-field {
    margin-bottom: 35px;
}

.emi-field label {
    display: block;
    margin-bottom: 15px;
    font-size: 20px;
    color: #111827;
    font-weight: 600;
}

.emi-range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.emi-field input[type="number"] {
    width: 100%;
    height: 70px;
    border: 2px solid #e8ebff;
    border-radius: 18px;
    padding: 0 20px;
    font-size: 22px;
}


/* RANGE SLIDER */

.emi-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 20px;
    margin-top: 20px;
    cursor: pointer;
    background: linear-gradient( to right, #4f5dff 0%, #4f5dff 50%, #dbe2ff 50%, #dbe2ff 100%);
}


/* Chrome / Edge / Safari */

.emi-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f5dff;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(79, 93, 255, 0.35);
    cursor: pointer;
    transition: 0.3s;
}

.emi-field input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.08);
}


/* Firefox */

.emi-field input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f5dff;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(79, 93, 255, 0.35);
    cursor: pointer;
    transition: 0.3s;
}

.emi-field input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 20px;
    background: #dbe2ff;
}

.emi-tenure-switch {
    display: flex;
    background: #f3f4ff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.tenure-btn {
    flex: 1;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: 0.3s;
}

.tenure-btn.active {
    background: #4f5dff;
    color: #fff;
}

#calculateBtn {
    width: 100%;
    height: 75px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #4b5cff, #5f6fff);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

#calculateBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(79, 92, 255, 0.3);
}

.emi-top-result {
    background: linear-gradient(135deg, #4455ff, #5667ff);
    border-radius: 26px;
    padding: 35px;
    color: #fff;
}

.emi-top-result h1 {
    font-size: 70px;
    margin-bottom: 30px;
}

.emi-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.emi-chart-box {
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.circle-chart {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(#2f67ff 0% 50%, #31c97c 50% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-inner {
    width: 170px;
    height: 170px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.chart-inner strong {
    font-size: 24px;
    color: #111827;
}

.blue-dot,
.green-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
}

.blue-dot {
    background: #2f67ff;
    margin-top: 8px;
}

.green-dot {
    background: #31c97c;
    margin-top: 8px;
}

.chart-row {
    display: flex;
    align-items: start;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 20px;
}

.emi-note {
    margin-top: 40px;
    background: #eef3ff;
    padding: 20px;
    border-radius: 18px;
    color: #4b5563;
    font-size: 18px;
}

@media (max-width: 991px) {
    .emi-grid {
        grid-template-columns: 1fr;
    }
    .emi-top-result h1 {
        font-size: 50px;
    }
    .emi-stats {
        grid-template-columns: 1fr;
    }
    .emi-chart-box {
        flex-direction: column;
    }
    .emi-header {
        flex-direction: column;
    }
    .emi-header-left {
        align-items: start;
    }
    .emi-badge {
        width: 100%;
    }
    .emi-top-result {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .emi-wrapper {
        padding: 20px;
    }
    .emi-header h2 {
        font-size: 36px;
    }
    .emi-left-card,
    .emi-right-card {
        padding: 20px;
    }
    .emi-top-result h1 {
        font-size: 42px;
    }
    .circle-chart {
        width: 200px;
        height: 200px;
    }
    .chart-inner {
        width: 140px;
        height: 140px;
    }
    .emi-header-left {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }
}