.mlfc {
    --mlfc-navy: #102A43;
    --mlfc-gold: #C5A253;
    color: #17212b;
    font-family: inherit;
}
.mlfc *, .mlfc *::before, .mlfc *::after { box-sizing: border-box; }
.mlfc-open, .mlfc-practice-link {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 5px; padding: 13px 22px;
    background: var(--mlfc-navy); color: #fff; font: inherit; font-weight: 700;
    text-decoration: none; cursor: pointer;
}
.mlfc-open:hover, .mlfc-open:focus-visible, .mlfc-practice-link:hover {
    background: var(--mlfc-gold); color: var(--mlfc-navy);
}
.mlfc-overlay {
    position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center;
    justify-content: center; padding: 20px; background: rgb(8 19 32 / 72%);
}
.mlfc-overlay[hidden] { display: none !important; }
.mlfc-dialog {
    position: relative; width: min(960px, 100%); max-height: min(90vh, 850px);
    overflow: auto; background: #fff; border-radius: 10px;
    box-shadow: 0 20px 70px rgb(0 0 0 / 28%); outline: none;
}
.mlfc-close {
    position: absolute; top: 10px; right: 13px; z-index: 2; width: 38px; height: 38px;
    border: 0; border-radius: 50%; background: transparent; color: var(--mlfc-navy);
    font-size: 30px; line-height: 1; cursor: pointer;
}
.mlfc-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
.mlfc-fields { padding: 38px 34px 32px; }
.mlfc-fields h2 { margin: 0 35px 28px 0; color: var(--mlfc-navy); font-size: clamp(23px, 3vw, 31px); line-height: 1.2; }
.mlfc-field { margin: 0 0 26px; }
.mlfc-field > label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--mlfc-navy); }
.mlfc-number-row { display: flex; align-items: center; min-height: 46px; gap: 8px; }
.mlfc .mlfc-number-row > .mlfc-adjust {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #d5dbe1;
    border-radius: 4px;
    background: #fff;
    color: var(--mlfc-navy);
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    box-shadow: none;
    cursor: pointer;
}
.mlfc .mlfc-number-row > .mlfc-adjust:focus-visible {
    outline: 2px solid var(--mlfc-gold);
    outline-offset: 2px;
}
.mlfc-adjust:hover { border-color: var(--mlfc-gold); background: #fbf7ed; }
.mlfc-currency, .mlfc-suffix { color: var(--mlfc-navy); font-weight: 700; }
.mlfc-number {
    min-width: 0; width: 100%; min-height: 42px; padding: 8px 10px;
    border: 1px solid #cbd2d9; border-radius: 4px; background: #fff; color: #17212b;
    font: inherit; font-weight: 700;
}
.mlfc-number:focus { outline: 2px solid var(--mlfc-gold); outline-offset: 1px; }
.mlfc-range { display: block; width: 100%; margin: 16px 0 8px; accent-color: var(--mlfc-gold); cursor: pointer; }
.mlfc-range-labels { display: flex; justify-content: space-between; gap: 10px; color: #65717c; font-size: 12px; }
.mlfc-deposit-field { margin-bottom: 0; }
.mlfc-results { padding: 48px 30px 28px; background: var(--mlfc-navy); color: #fff; }
.mlfc-kicker { margin: 0 0 12px; color: var(--mlfc-gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.mlfc-monthly { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-bottom: 5px; }
.mlfc-monthly-value { color: #fff; font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.mlfc-monthly > span:last-child { color: #e2e8ee; font-size: 14px; }
.mlfc-apr { margin: 0 0 30px; color: var(--mlfc-gold); font-weight: 700; }
.mlfc-result-line { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid rgb(255 255 255 / 18%); font-size: 14px; }
.mlfc-result-line strong { text-align: right; white-space: nowrap; }
.mlfc-practice-link { display: flex; margin-top: 24px; background: var(--mlfc-gold); color: var(--mlfc-navy); text-align: center; }
.mlfc-practice-link:hover { background: #fff; color: var(--mlfc-navy); }
.mlfc-disclaimer { margin: 22px 0 0; color: #d9e1e8; font-size: 11px; line-height: 1.5; }
body.mlfc-modal-open { overflow: hidden; }
@media (max-width: 700px) {
    .mlfc-overlay { padding: 10px; align-items: flex-start; overflow-y: auto; }
    .mlfc-dialog { max-height: calc(100vh - 20px); margin: auto 0; }
    .mlfc-content { grid-template-columns: 1fr; }
    .mlfc-fields { padding: 30px 20px 25px; }
    .mlfc-results { padding: 28px 20px 24px; }
    .mlfc-fields h2 { font-size: 25px; }
    .mlfc-apr { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
    .mlfc-dialog { animation: mlfc-enter .16s ease-out; }
    @keyframes mlfc-enter { from { opacity: .6; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
