/* Native dialog: the rest of the page is inert while an inquiry is being edited. */
html.mi-lock { overflow: hidden; }
.mi-dialog { width: min(980px,calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #e1e8f3; border-radius: 18px; background: #fff; color: var(--mr-navy); box-shadow: 0 30px 100px #0c214b38; font-family: var(--mr-font); font-size: 16px; line-height: 1.65; overscroll-behavior: contain; }
.mi-dialog::backdrop { background: rgba(15,31,54,.52); backdrop-filter: blur(5px); }
.mi-dialog[open] { animation: mi-enter .24s ease-out both; }
.mi-dialog [hidden] { display: none !important; }
.mi-close { position: absolute; z-index: 2; top: 15px; right: 15px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #546782; background: #f0f4f9; cursor: pointer; }
.mi-close:hover { background: #e3ecfa; color: var(--mr-blue); }
.mi-close .mr-icon { width: 20px; height: 20px; }
.mi-layout { display: grid; grid-template-columns: 310px minmax(0,1fr); min-height: 580px; }
.mi-aside { display: flex; flex-direction: column; align-items: flex-start; padding: 46px 30px 36px; background: radial-gradient(ellipse at 20% 0%,#d8e9ff,transparent 70%),#f1f6fd; }
.mi-eyebrow { display: block; color: var(--mr-blue); font-size: 12px; font-weight: 600; letter-spacing: .15em; }
.mi-aside h2 { margin: 25px 0 18px; font-size: 28px; line-height: 1.6; letter-spacing: -.03em; }
.mi-aside p { margin: 0; color: #566c88; font-size: 16px; line-height: 1.9; }
.mi-promises { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 15px; color: #375475; font-size: 14px; }
.mi-promises li { display: flex; align-items: center; gap: 9px; }
.mi-promises .mr-icon { color: var(--mr-blue); width: 20px; height: 20px; flex-shrink: 0; }
.mi-direct { margin-top: auto; padding-top: 24px; width: 100%; border-top: 1px solid #d9e4f2; }
.mi-direct > * { display: block; }
.mi-direct > span, .mi-direct small { font-size: 14px; color: #637a98; }
.mi-direct a { font-size: 25px; line-height: 1.8; font-weight: 600; font-variant-numeric: tabular-nums; color: #123562; }
.mi-main { min-width: 0; padding: 36px 38px 32px; }
.mi-heading { padding-right: 15px; margin-bottom: 23px; }
.mi-heading h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.6; letter-spacing: -.025em; }
.mi-heading p { margin: 0; font-size: 14px; color: #62738a; }
.mi-heading p > span { white-space: nowrap; margin-left: 8px; color: #7e8da0; font-size: 12px; }
.mi-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 18px; }
.mi-field label { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; font-size: 15px; font-weight: 500; color: #263d5b; }
.mi-field label > span { color: #0b64e8; }
.mi-field label em { font-style: normal; font-size: 12px; color: #8190a4; font-weight: 400; margin-left: auto; }
.mi-field input, .mi-field select, .mi-field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #d7e0ec; border-radius: 7px; background: #fff; color: #172c49; font: inherit; font-size: 16px; line-height: 1.5; padding: 11px 12px; outline: none; transition: border-color .18s,box-shadow .18s; }
.mi-field select { height: 48px; padding-right: 6px; }
.mi-field textarea { resize: vertical; min-height: 108px; max-height: 230px; }
.mi-field ::placeholder { color: #8695a9; font-size: 14px; }
.mi-field input:focus, .mi-field select:focus, .mi-field textarea:focus { border-color: #0965e9; box-shadow: 0 0 0 3px #0865eb12; }
.mi-field [aria-invalid="true"] { border-color: #c84646; }
.mi-message { margin-top: 18px; }
.mi-error { display: block; color: #b63737; font-size: 13px; line-height: 1.6; }
.mi-error:not(:empty) { margin-top: 5px; }
.mi-consent { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; font-size: 13px; color: #687b94; cursor: pointer; line-height: 1.7; }
.mi-consent input { width: 17px; height: 17px; flex: 0 0 17px; margin: 3px 0 0; accent-color: #0865eb; cursor: pointer; }
.mi-feedback { font-size: 14px; color: #b63737; }
.mi-feedback:not(:empty) { margin-top: 12px; }
.mi-feedback[data-state="loading"] { color: #62738a; }
.mi-submit { width: 100%; margin-top: 19px; border-radius: 7px; min-height: 49px; font-family: inherit; font-size: 16px; cursor: pointer; }
.mi-submit:disabled { opacity: .6; cursor: wait; }
.mi-retry { background: none; color: var(--mr-blue); border: 0; border-bottom: 1px solid currentColor; padding: 4px 0; margin-top: 8px; font: inherit; font-size: 14px; cursor: pointer; }
.mi-honeypot { display: none; }
.mi-captcha { margin-top: 15px; }
.mi-captcha > div { display: flex; align-items: center; gap: 12px; }
.mi-captcha input { flex: 1; }
.mi-captcha button { border: 1px solid #d7e0ec; background: #f3f6fa; border-radius: 6px; overflow: hidden; padding: 0; cursor: pointer; flex-shrink: 0; }
.mi-captcha img { display: block; object-fit: contain; }
.mi-success { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 100%; min-height: 480px; padding: 24px 0; }
.mi-success__icon { display: grid; place-items: center; width: 68px; height: 68px; color: var(--mr-blue); background: #ebf3ff; border-radius: 50%; margin-bottom: 30px; }
.mi-success__icon .mr-icon { width: 32px; height: 32px; }
.mi-success h2 { font-size: 26px; line-height: 1.6; margin: 12px 0; }
.mi-success p { color: #62738a; margin: 0 0 18px; }
.mi-success small { font-size: 14px; color: #728298; }
.mi-success .mr-btn { margin-top: 34px; cursor: pointer; font: inherit; }
.mi-dialog :focus-visible:not(.mi-field input):not(.mi-field select):not(.mi-field textarea) { outline: 2px solid #0965e9; outline-offset: 4px; }
@keyframes mi-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 800px) {
  .mi-dialog { width: min(600px,calc(100% - 32px)); max-height: calc(100dvh - 32px); border-radius: 14px; }
  .mi-layout { grid-template-columns: minmax(0,1fr); min-height: auto; }
  .mi-aside { display: none; }
  .mi-main { padding: 30px 26px; }
  .mi-heading h2 { font-size: 25px; }
  .mi-heading { padding-right: 25px; }
  .mi-success { min-height: 420px; }
}
@media (max-width: 480px) {
  .mi-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .mi-main { padding: 28px 20px 24px; }
  .mi-heading { margin-bottom: 20px; }
  .mi-heading h2 { font-size: 23px; }
  .mi-heading p { line-height: 1.8; }
  .mi-heading p > span { display: block; margin: 2px 0 0; }
  .mi-fields { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .mi-field textarea { min-height: 110px; }
  .mi-close { top: 10px; right: 10px; width: 32px; height: 32px; }
  .mi-consent { font-size: 13px; }
  .mi-success h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .mi-dialog[open] { animation: none; } }
