/* ============================================
   Demak Corporate - EMI Calculator Page
   Reuses about.css for nav + footer
   Fully responsive
   ============================================ */

.emi-page {
    background: #fff;
}

.text-brand-blue { color: #2563eb; }

/* ============================================
   PAGE HERO / TITLE
   ============================================ */
.emi-page-hero {
    padding: 56px 0 28px;
    text-align: center;
}
.emi-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 18px;
    margin-bottom: 14px;
}
.emi-page-title {
    font-size: clamp(1.7rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #0a1830;
    letter-spacing: -0.025em;
    margin: 0 0 10px;
}
.emi-page-sub {
    color: #64748b;
    font-size: 0.96rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* ============================================
   CALCULATOR CARD
   ============================================ */
.emi-page-card-wrap {
    padding: 12px 0 80px;
}
.emi-page-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 12px 40px -22px rgba(15, 23, 42, 0.18);
}

/* ============================================
   SLIDERS / CONTROLS (left column)
   ============================================ */
.emi-control { display: flex; flex-direction: column; }
.emi-ctrl-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.14em;
}
.emi-ctrl-pill {
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2563eb;
    min-width: 88px;
    text-align: center;
}
.emi-ctrl-bounds {
    color: #94a3b8;
    font-weight: 500;
    font-size: 11px;
    margin-top: 8px;
}

/* Range track */
.emi-track-wrap {
    position: relative;
    height: 16px;
    margin-top: 6px;
}
.emi-track-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: #eef2f7;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    transform: translateY(-50%);
    cursor: pointer;
    margin: 0;
    z-index: 2;
}
.emi-track-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: transform .15s;
}
.emi-track-input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.emi-track-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2563eb;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.emi-track-input:focus { outline: none; }
.emi-track-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    background: #2563eb;
    border-radius: 999px;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    transition: width .15s;
}

/* ============================================
   RESULT PANEL (right column)
   ============================================ */
.emi-result-panel {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.emi-monthly-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.16em;
    margin-bottom: 4px;
}
.emi-monthly-value {
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    font-weight: 800;
    color: #2563eb;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Chart area */
.emi-chart-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Breakdown list */
.emi-breakdown { padding-top: 8px; }
.emi-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.emi-breakdown-row.emi-breakdown-total { border-bottom: 0; }
.emi-breakdown-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}
.emi-breakdown-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.emi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.emi-dot-primary { background: #2563eb; }
.emi-dot-light { background: #bfdbfe; }

/* Apply button */
.emi-apply-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.5);
    transition: all .25s ease;
}
.emi-apply-btn:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.6);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet ≤ 991 */
@media (max-width: 991.98px) {
    .emi-page-hero { padding: 40px 0 22px; }
    .emi-page-card { padding: 26px; border-radius: 22px; }
    .emi-result-panel { padding: 22px 20px; border-radius: 16px; }
}

/* Tablet portrait / large phone ≤ 767 */
@media (max-width: 767.98px) {
    .emi-page-hero { padding: 32px 0 18px; }
    .emi-page-title { font-size: 1.55rem; }
    .emi-page-sub { font-size: 0.9rem; }

    .emi-page-card { padding: 22px; border-radius: 20px; }
    .emi-page-card-wrap { padding-bottom: 50px; }
    .emi-result-panel { padding: 22px 18px; }
    .emi-chart-wrap { height: 170px; }
}

/* Mobile ≤ 575 */
@media (max-width: 575.98px) {
    .emi-page-icon { width: 38px; height: 38px; font-size: 16px; }
    .emi-page-card { padding: 18px; border-radius: 18px; }
    .emi-ctrl-label { font-size: 10.5px; }
    .emi-ctrl-pill { padding: 5px 10px; font-size: 0.85rem; min-width: 78px; }
    .emi-ctrl-bounds { font-size: 10.5px; }
    .emi-monthly-value { font-size: 1.65rem; }
    .emi-chart-wrap { height: 160px; }
    .emi-breakdown-label { font-size: 12.5px; }
    .emi-breakdown-value { font-size: 13px; }
    .emi-apply-btn { padding: 12px; font-size: 0.9rem; }
}

/* Tiny ≤ 380 */
@media (max-width: 380px) {
    .emi-page-card { padding: 14px; }
    .emi-result-panel { padding: 18px 14px; }
}
