/* Shared application forms and confirmation screens, after legacy page styles. */
.mp-modal { z-index: 12000; padding: 24px; background: rgb(20 41 69 / 56%); backdrop-filter: blur(6px); }
.mp-modal, .mp-modal * { box-sizing: border-box; }
.mp-modal .mp-modal-panel { width: min(100%, 760px); max-height: calc(100dvh - 48px); margin: auto; padding: 48px; border: 1px solid var(--mp-color-line); border-radius: 28px; background: var(--mp-color-paper); color: var(--mp-color-ink); font-family: var(--mp-font); box-shadow: 0 24px 80px rgb(20 41 69 / 18%); }
.mp-modal .mp-modal-art { display: none; }
.mp-modal .mp-modal-close { top: 18px; right: 18px; width: 36px; height: 36px; background: #fff; border: 1px solid var(--mp-color-line); color: var(--mp-color-ink); cursor: pointer; }
.mp-modal .mp-modal-kicker, .mp-modal .mp-success-kicker { display: inline-flex; max-width: calc(100% - 24px); align-items: center; border-radius: 999px; padding: 8px 13px; margin: 0 0 20px; background: var(--mp-color-blue); color: #fff; font-size: 11px; line-height: 1.4; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.mp-modal .mp-modal-title, .mp-modal .mp-success-title { max-width: 610px; margin: 0 0 16px; color: var(--mp-color-ink) !important; font-size: clamp(28px, 3vw, 40px); font-weight: 650; line-height: 1.12; letter-spacing: -.045em; }
.mp-modal .mp-modal-copy, .mp-modal .mp-success-copy { max-width: 600px; margin: 0 0 28px; color: var(--mp-color-muted); font-size: 15px; line-height: 1.65; }
.mp-modal .mp-modal-copy strong { font-weight: 500; }
.mp-modal .mp-funding-summary { max-width: none; margin: 0 0 28px; padding: 20px; border: 1px solid var(--mp-color-line); border-radius: 18px; background: #fff; box-shadow: none; }
.mp-modal .mp-funding-summary-title { margin: 0 0 12px; color: var(--mp-color-ink); font-size: 14px; text-transform: none; font-weight: 650; }
.mp-modal .mp-lenders-badge { position: static; display: inline-block; margin: 0 0 16px; padding: 5px 10px; border-radius: 999px; color: var(--mp-color-blue); background: #edf2ff; font-size: 11px; text-transform: none; font-weight: 600; }
.mp-modal .mp-summary-grid { gap: 16px; }
.mp-modal .mp-summary-card { min-width: 0; min-height: 0; border: 0; border-left: 1px solid var(--mp-color-line); border-radius: 0; padding: 0 0 0 12px; }
.mp-modal .mp-summary-card:first-child { border: 0; padding-left: 0; }
.mp-modal .mp-summary-label { color: var(--mp-color-muted); font-size: 12px; text-transform: none; font-weight: 400; }
.mp-modal .mp-summary-value { color: var(--mp-color-ink); font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.mp-modal .mp-form-grid, .mp-modal .mp-form-grid--compare { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mp-modal .mp-form-field { min-width: 0; }
.mp-modal .mp-label { color: var(--mp-color-ink); margin-bottom: 8px; font-size: 13px; font-weight: 600; text-transform: none; }
.mp-modal .mp-input, .mp-modal .mp-select, .mp-modal .mp-textarea { width: 100%; border: 1px solid #d8dfe9; border-radius: 12px; background: #fff; color: var(--mp-color-ink); font-family: inherit; font-size: 15px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.mp-modal .mp-input, .mp-modal .mp-select { height: 48px; padding: 0 14px; }
.mp-modal .mp-select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23617087' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.mp-modal .mp-textarea { min-height: 108px; padding: 14px; }
.mp-modal .mp-input::placeholder, .mp-modal .mp-textarea::placeholder { color: #778397; font-weight: 400; text-transform: none; letter-spacing: 0; }
.mp-modal .mp-input:focus, .mp-modal .mp-select:focus, .mp-modal .mp-textarea:focus { outline: none; border-color: var(--mp-color-blue); box-shadow: 0 0 0 3px rgb(21 84 220 / 12%); }
.mp-modal :is(input,select,textarea):user-invalid { border-color: #bd3343; }
.mp-modal .mp-consent { max-width: none; align-items: flex-start; margin: 22px 0; color: var(--mp-color-muted); font-size: 13px; line-height: 1.6; }
.mp-modal .mp-consent input { margin-top: 2px; accent-color: var(--mp-color-blue); }
.mp-modal .mp-submit-btn, .mp-modal a.mp-success-cta { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; border: 0; border-radius: 999px; padding: 12px 20px; margin: 0; background: var(--mp-color-coral); color: #fff; font-family: inherit; font-size: 15px; line-height: 1.5; font-weight: 600; text-decoration: none; cursor: pointer; }
.mp-modal .mp-submit-btn:disabled { background: #e4e8ee; color: #657186; opacity: 1; cursor: not-allowed; }
.mp-modal .mp-submit-btn:not(:disabled):hover { background: #ed5c5a; }
.mp-modal :is(button,a,input,select,textarea):focus-visible { outline: 3px solid var(--mp-color-blue); outline-offset: 3px; }
.mp-modal .lead-form-error { padding: 14px 16px; border: 1px solid #efc9ce; border-radius: 12px; background: #fff1f2; color: #982d3b; font-size: 14px; line-height: 1.5; }
.mp-modal [hidden] { display: none !important; }
.mp-modal .mp-trust-strip { max-width: none; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--mp-color-line); }
.mp-modal .mp-trust-item { grid-template-columns: 32px 1fr; gap: 8px; color: var(--mp-color-muted); font-size: 11px; font-weight: 500; }
.mp-modal .mp-trust-icon { width: 32px; height: 32px; color: var(--mp-color-blue); background: #edf2ff; font-size: 18px; }
.mp-modal .mp-modal-panel--success { width: min(100%, 760px); text-align: left; }
.mp-modal .mp-success-icon { width: 56px; height: 56px; margin-bottom: 22px; border: 0; border-radius: 16px; background: #e9f3ef; color: #21745a; font-size: 32px; }
.mp-modal .mp-success-kicker { display: table; }
.mp-modal .mp-success-card { width: 100%; margin: 0 0 20px; padding: 26px; border: 1px solid var(--mp-color-line); border-radius: 20px; background: #fff; box-shadow: none; }
.mp-modal .mp-success-card h3 { margin: 0 0 12px; color: var(--mp-color-ink); font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.mp-modal .mp-success-card p { color: var(--mp-color-muted); font-size: 14px; line-height: 1.6; }
.mp-modal .mp-success-benefits { gap: 16px; }
.mp-modal .mp-success-benefit { color: var(--mp-color-ink); font-size: 13px; font-weight: 500; }
.mp-modal .mp-success-benefit-icon { background: #edf2ff; color: var(--mp-color-blue); }
.mp-modal a.mp-success-cta { background: var(--mp-color-blue); }
.mp-modal .mp-credit-note { color: var(--mp-color-muted); font-size: 12px; }
.mp-modal .mp-callback-link { display: block; margin: 0 auto; color: var(--mp-color-blue); font-family: inherit; font-size: 14px; }
@media(max-width: 600px) {
 .mp-modal { padding: 12px; }
 .mp-modal .mp-modal-panel { max-height: calc(100dvh - 24px); padding: 48px 22px 24px; border-radius: 22px; }
 .mp-modal .mp-form-grid, .mp-modal .mp-form-grid--compare, .mp-modal .mp-summary-grid, .mp-modal .mp-success-benefits { grid-template-columns: minmax(0, 1fr); }
 .mp-modal .mp-summary-card { border-left: 0; border-top: 1px solid var(--mp-color-line); padding: 12px 0 0; }
 .mp-modal .mp-summary-card:first-child { border: 0; padding-top: 0; }
 .mp-modal .mp-success-card { padding: 20px; }
 .mp-modal .mp-trust-strip { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion: reduce) { .mp-modal *, .mp-modal *::before, .mp-modal *::after { animation: none !important; transition: none !important; } }
