.miras-form-modal:not([open]) { display: none; }
.miras-form-modal[open] { display: flex; flex-direction: column; }
.miras-form-modal {
    box-sizing: border-box;
    width: min(760px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    margin: auto;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    color: #153052;
    background: #fff;
    box-shadow: none;
    font: 16px/22px "Roboto", Arial, sans-serif;
}
.miras-form-modal::backdrop { background: rgb(3 18 42 / 65%); }
.miras-form-modal__header { position: relative; flex-shrink: 0; padding: 24px 28px 0; }
.miras-form-modal__header h2 { margin: 0; padding-right: 44px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.03em; }
.miras-form-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #153052;
    background: transparent;
    cursor: pointer;
}
.miras-form-modal__close:hover { background: #eef3f9; }
.miras-form-modal__close:focus-visible { outline: 2px solid #245eae; outline-offset: -2px; }
.miras-form-modal__content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 28px 28px; }
.miras-form-modal__description { margin: 0 0 20px; color: #52647c; font-size: 16px; line-height: 22px; }
.miras-form-modal .wp-block-miras-lead-form { margin: 0; max-width: none; }
@media (max-width: 600px) {
    .miras-form-modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 10px; }
    .miras-form-modal__header { padding: 20px 20px 0; }
    .miras-form-modal__content { padding: 16px 20px 20px; }
}
