/* ==========================================================================
   EMI calculator (typed inputs) — vehicle pages + EMI Calculator page
   ========================================================================== */
.clt-emi {
	--emi-loan: var(--primary-color);
	--emi-int: #f59e0b;
	--emi-down: #10b981;
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	margin: 0; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0;
	box-shadow: 0 30px 60px rgba(15, 23, 42, .10);
}
.clt-emi [hidden] { display: none !important; }

/* ---------- Inputs ---------- */
.clt-emi-inputs { display: grid; gap: 20px; align-content: start; padding: 30px 32px; }
.clt-emi-f { display: grid; gap: 8px; }
.clt-emi-f > label, .clt-emi-lab label { margin: 0; font-weight: 700; font-size: .95rem; color: #0f172a; }
.clt-emi-lab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.clt-emi-box {
	display: flex; align-items: center; min-height: 58px; padding: 0 16px; border-radius: 16px;
	background: #f8fafc; border: 1.5px solid #e2e8f0; transition: border-color .2s, box-shadow .2s, background .2s;
}
.clt-emi-box:focus-within { background: #fff; border-color: var(--primary-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 14%, transparent); }
.clt-emi-f.is-invalid .clt-emi-box { border-color: #dc2626; background: #fef2f2; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.clt-emi-box input {
	flex: 1; min-width: 0; height: 54px; border: 0; background: transparent; outline: none;
	font-size: 1.25rem; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.clt-emi-box input::placeholder { color: #cbd5e1; font-weight: 600; }
.clt-emi-pre, .clt-emi-post { flex-shrink: 0; font-weight: 800; color: #64748b; }
.clt-emi-pre { margin-right: 10px; padding-right: 10px; border-right: 1.5px solid #e2e8f0; }
.clt-emi-post { margin-left: 8px; }
.clt-emi-box.has-steps { padding: 0 6px; }
.clt-emi-box.has-steps input { text-align: center; }
.clt-emi-step {
	display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px;
	background: #fff; color: var(--primary-color); font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .08); transition: background .15s, color .15s;
}
.clt-emi-step:hover { background: var(--primary-color); color: #fff; }
.clt-emi-help { min-height: 1.2em; margin: 0; font-size: .84rem; color: #64748b; font-weight: 600; }
.clt-emi-help.is-error { color: #dc2626; }
.clt-emi-help.is-error::before { content: "\F333"; font-family: "bootstrap-icons"; margin-right: 5px; }

/* Segmented switch (% / Rs, Months / Years) */
.clt-emi-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #f1f5f9; }
.clt-emi-seg button { padding: 5px 12px; border: 0; border-radius: 8px; background: transparent; color: #64748b; font-size: .8rem; font-weight: 800; cursor: pointer; }
.clt-emi-seg button[aria-pressed="true"] { background: #fff; color: var(--primary-color); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }

/* Quick picks */
.clt-emi-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.clt-emi-quick button { padding: 5px 11px; border: 1px dashed #cbd5e1; border-radius: 999px; background: #fff; color: #475569; font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .15s; }
.clt-emi-quick button:hover { border-style: solid; border-color: var(--primary-color); color: var(--primary-color); }
.clt-emi-quick button.is-on { border-style: solid; border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 10%, #fff); color: var(--primary-color); }

/* Vehicle picker (EMI page) */
.clt-emi-pick { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border-radius: 16px; background: #f8fafc; border: 1.5px solid #e2e8f0; cursor: pointer; }
.clt-emi-pick:focus-within { border-color: var(--primary-color); }
.clt-emi-ico { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: color-mix(in srgb, var(--primary-color) 12%, #fff); color: var(--primary-color); font-size: 1.2rem; }
.clt-emi-pick-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.clt-emi-pick-body small { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.clt-emi-pick select { width: 100%; border: 0; background: transparent; font-weight: 700; font-size: 1rem; color: #0f172a; outline: none; }

/* Actions */
.clt-emi-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.clt-emi-calc {
	flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 0; border-radius: 16px;
	background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%, #0f172a)); color: #fff;
	font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 12px 26px color-mix(in srgb, var(--primary-color) 35%, transparent); transition: transform .2s;
}
.clt-emi-calc:hover { transform: translateY(-2px); }
.clt-emi-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 18px; border: 1.5px solid #e2e8f0; border-radius: 16px; background: #fff; color: #475569; font-weight: 700; cursor: pointer; }
.clt-emi-reset:hover { border-color: #94a3b8; color: #0f172a; }

/* ---------- Result panel ---------- */
.clt-emi-result {
	display: flex; flex-direction: column; padding: 30px 30px 24px; color: #fff; overflow: hidden;
	background: radial-gradient(500px 260px at 100% 0%, color-mix(in srgb, var(--primary-color) 55%, transparent), transparent 70%), linear-gradient(160deg, #0b1324, #13233f);
}
.clt-emi.is-pulse .clt-emi-big strong { animation: clt-emi-pulse .5s ease; }
@keyframes clt-emi-pulse { 40% { transform: scale(1.06); color: #fde68a; } }
.clt-emi-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px 10px; text-align: center; color: #cbd5e1; }
.clt-emi-empty-ico { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fde68a; font-size: 2rem; }
.clt-emi-empty strong { color: #fff; font-size: 1.15rem; }
.clt-emi-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #93c5fd; }
.clt-emi-big { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.clt-emi-big small { font-size: 1.1rem; font-weight: 700; color: #cbd5e1; }
.clt-emi-big strong { display: inline-block; font-size: clamp(2.3rem, 4.5vw, 3.2rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.clt-emi-big em { font-style: normal; color: #94a3b8; }
.clt-emi-sub { margin: 0 0 12px; color: #94a3b8; font-size: .88rem; }
.clt-emi-viz { position: relative; width: 150px; height: 150px; margin: 4px auto 12px; }
.clt-emi-donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.clt-emi-donut circle { fill: none; stroke-width: 14; }
.clt-donut-bg { stroke: rgba(255, 255, 255, .08); }
.clt-donut-int { stroke: var(--emi-int); }
.clt-donut-loan { stroke: var(--emi-loan); transition: stroke-dasharray .5s cubic-bezier(.2, .7, .3, 1); }
.clt-emi-donut-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.clt-emi-donut-mid small { font-size: .66rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.clt-emi-donut-mid strong { font-size: 1.3rem; color: #fde68a; }
.clt-emi-list { list-style: none; margin: 0 0 14px; padding: 0; }
.clt-emi-list li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; color: #cbd5e1; }
.clt-emi-list li span { flex: 1; }
.clt-emi-list li strong { color: #fff; font-variant-numeric: tabular-nums; }
.clt-emi-list i { width: 10px; height: 10px; border-radius: 3px; }
.clt-emi-list i.is-loan { background: var(--emi-loan); }
.clt-emi-list i.is-int { background: var(--emi-int); }
.clt-emi-list i.is-down { background: var(--emi-down); }
.clt-emi-list li.is-total { border-bottom: 0; padding-top: 12px; }
.clt-emi-list li.is-total strong { font-size: 1.1rem; }
.clt-emi-compare > span { display: block; margin-bottom: 8px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }
.clt-emi-compare > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.clt-emi-compare button { display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; transition: background .2s; }
.clt-emi-compare button small { color: #94a3b8; font-size: .72rem; }
.clt-emi-compare button strong { font-size: .88rem; font-variant-numeric: tabular-nums; }
.clt-emi-compare button:hover { background: rgba(255, 255, 255, .1); }
.clt-emi-compare button.is-on { background: #fff; border-color: #fff; color: #0f172a; }
.clt-emi-compare button.is-on small { color: #64748b; }
.clt-emi-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.clt-emi-apply { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; background: #fff; color: #0f172a; font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.clt-emi-apply:hover { color: #0f172a; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
.clt-emi-share { display: inline-flex; align-items: center; gap: 7px; min-height: 50px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: transparent; color: #fff; font-weight: 700; cursor: pointer; }
.clt-emi-share:hover { background: rgba(255, 255, 255, .1); }
.clt-emi-banks { margin-top: 16px; }
.clt-emi-banks > span { display: block; margin-bottom: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }
.clt-emi-banks em { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-style: normal; font-size: .8rem; }
.clt-emi-note { margin: 14px 0 0; font-size: .75rem; color: #94a3b8; }

/* ---------- Schedule ---------- */
.clt-emi-sched { grid-column: 1 / -1; border-top: 1px solid #e2e8f0; }
.clt-emi-sched summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 30px; cursor: pointer; font-weight: 800; color: #0f172a; list-style: none; }
.clt-emi-sched summary::-webkit-details-marker { display: none; }
.clt-emi-sched summary::after { content: "+"; margin-left: 4px; font-size: 1.2rem; font-weight: 900; color: var(--primary-color); }
.clt-emi-sched[open] summary::after { content: "−"; }
.clt-emi-sched-seg { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 10px; background: #f1f5f9; }
.clt-emi-sched-seg button { padding: 4px 12px; border: 0; border-radius: 8px; background: transparent; color: #64748b; font-size: .8rem; font-weight: 800; cursor: pointer; }
.clt-emi-sched-seg button[aria-pressed="true"] { background: #fff; color: var(--primary-color); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.clt-emi-sched-wrap { max-height: 460px; overflow: auto; padding: 0 30px 26px; }
.clt-emi-sched table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.clt-emi-sched th { position: sticky; top: 0; padding: 10px; background: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; text-align: left; border-bottom: 1px solid #e2e8f0; }
.clt-emi-sched td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; font-size: .92rem; }
.clt-emi-sched tbody tr:hover td { background: #f8fafc; }
.clt-emi-bar { width: 26%; min-width: 110px; }
.clt-emi-bar span { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--emi-down), var(--primary-color)); }

/* ---------- Vehicle page section ---------- */
.clt-emi-sec { padding: 60px 0; background: #fff; overflow: visible; scroll-margin-top: 90px; }
.clt-emi-sec-head { margin-bottom: 22px; }
.clt-emi-sec-head h2 { margin: 8px 0 4px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #0f172a; }
.clt-emi-sec-head p { margin: 0; color: #64748b; }

/* ---------- EMI page ---------- */
.clt-emih { position: relative; overflow: hidden; padding: 140px 0 110px; color: #fff; background: radial-gradient(800px 320px at 90% 0%, color-mix(in srgb, var(--primary-color) 45%, transparent), transparent 60%), linear-gradient(150deg, #0b1324, #13233f); }
.clt-emih .container { position: relative; z-index: 1; }
.clt-emih h1 { margin: 12px 0 8px; color: #fff; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); }
.clt-emih p { max-width: 620px; margin: 0; color: #cbd5e1; font-size: 1.05rem; }
.clt-emih-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.clt-emih-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #e2e8f0; font-size: .86rem; }
.clt-emip { padding: 0 0 70px; background: #f8fafc; overflow: visible; }
.clt-emip .clt-emi { position: relative; z-index: 2; margin-top: -70px; }
.clt-emip-content { margin-top: 40px; }

@media (max-width: 991px) {
	.clt-emi { grid-template-columns: minmax(0, 1fr); } /* 1fr alone let wide controls push the card past the screen */
}
@media (max-width: 575px) {
	.clt-emi-inputs, .clt-emi-result { padding: 22px 18px; }
	.clt-emi-sched summary { padding: 16px 18px; }
	.clt-emi-sched-seg { margin-left: 0; }
	.clt-emi-sched-wrap { padding: 0 10px 18px; }
	.clt-emi-reset { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.clt-donut-loan { transition: none; }
	.clt-emi.is-pulse .clt-emi-big strong { animation: none; }
}
@media print {
	.clt-emi-inputs .clt-emi-actions, .clt-emi-ctas, .clt-emi-quick, .clt-emi-seg { display: none !important; }
	.clt-emi-sched-wrap { max-height: none; }
}
