#hfl-emi-modal,#hfl-emi-modal *,#hfl-emi-modal *::before,#hfl-emi-modal *::after{box-sizing:border-box}
#hfl-emi-modal[hidden],#hfl-emi-modal [hidden]{display:none!important}
body.hfl-emi-open{overflow:hidden}
.hfl-emi-modal{position:fixed;inset:0;z-index:1250;display:grid;place-items:center;padding:20px;font-family:inherit}
.hfl-emi-backdrop{position:absolute;inset:0;background:rgba(6,30,24,.7);backdrop-filter:blur(5px)}
.hfl-emi-dialog{position:relative;width:min(680px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;border-radius:24px;background:#fffdf8;box-shadow:0 30px 100px #041c1855;animation:hflEmiOpen .28s ease}
.hfl-emi-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:27px 30px;background:linear-gradient(135deg,#143c35,#2e4c43);color:#fff}
.hfl-emi-header>div>span{display:block;color:#f4d878;font-size:10px;letter-spacing:.18em;font-weight:800;margin-bottom:9px}
.hfl-emi-header h2{font-family:inherit;margin:0;color:#fff;font-size:24px;line-height:1.35}.hfl-emi-header p{margin:9px 0 0;color:#d4e0d7;font-size:12px}
.hfl-emi-close{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #ffffff40;border-radius:50%;background:#ffffff10;color:#fff;font-size:25px;cursor:pointer}
.hfl-emi-body{padding:28px 30px}.hfl-emi-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#hfl-emi-form .hfl-emi-field{min-width:0;margin-bottom:20px}
#hfl-emi-form label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;color:#2e4c43;font-size:12px;font-weight:700;text-transform:none;letter-spacing:normal}
#hfl-emi-form label small{font-size:10px;font-weight:600;color:#768476}
#hfl-emi-form input{display:block;width:100%;padding:13px 14px;margin:0;border:1px solid #d7e1d6;border-radius:11px;background:#fff;color:#203c30;font:inherit;font-size:15px;outline:none}
#hfl-emi-form input:focus{border-color:#2e4c43;box-shadow:0 0 0 3px #2e4c4312}
.hfl-emi-field p{margin:7px 0 0;color:#788578;font-size:10px;line-height:1.6}
.hfl-emi-actions{display:flex;gap:12px;margin-bottom:24px}
.hfl-emi-calculate,.hfl-emi-reset{display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:13px 20px;border:1px solid transparent;border-radius:11px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.hfl-emi-calculate{flex:1;background:#2e4c43;color:#fff}.hfl-emi-calculate:hover{background:#143c35}.hfl-emi-reset{background:#edf3e9;border-color:#dce5d5;color:#2e4c43}
.hfl-emi-result{border:1px solid #dce5d5;border-radius:17px;overflow:hidden;background:#f6f8ef}
.hfl-emi-monthly{display:flex;flex-direction:column;align-items:center;gap:7px;padding:24px 18px;background:linear-gradient(135deg,#143c35,#2e4c43);color:#fff;text-align:center}
.hfl-emi-monthly>span{font-size:11px;color:#d4e0d7}.hfl-emi-monthly strong{font-size:clamp(25px,5vw,36px);color:#f4d878;line-height:1.35;overflow-wrap:anywhere}.hfl-emi-monthly small{font-size:10px;color:#d4e0d7}
.hfl-emi-breakdown{margin:0;padding:8px 20px}.hfl-emi-breakdown>div{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid #e0e8d9}.hfl-emi-breakdown>div:last-child{border:0}.hfl-emi-breakdown dt{color:#637564;font-size:12px}.hfl-emi-breakdown dd{margin:0;color:#2e4c43;font-size:12px;font-weight:800;text-align:right;overflow-wrap:anywhere}
.hfl-emi-note{margin:18px 0 0;color:#718070;font-size:10px;line-height:1.8}.hfl-emi-error{margin-bottom:16px;padding:12px;border:1px solid #efc5bb;border-radius:9px;background:#fff0eb;color:#8a3027;font-size:12px}
#hfl-emi-modal button:focus-visible,#hfl-emi-modal [tabindex]:focus-visible{outline:3px solid #b38d2e;outline-offset:3px}
@keyframes hflEmiOpen{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:575px){.hfl-emi-modal{padding:12px}.hfl-emi-dialog{max-height:calc(100dvh - 24px);border-radius:18px}.hfl-emi-header{padding:23px 20px}.hfl-emi-header h2{font-size:21px}.hfl-emi-body{padding:23px 20px}.hfl-emi-input-grid{grid-template-columns:1fr;gap:0}}
@media(prefers-reduced-motion:reduce){#hfl-emi-modal *{animation:none!important;transition:none!important}}
