.modal-form .container {
    text-align: center;
}

.soj-modal-form-parking {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.modal-form__button {
    margin-top: 2rem;
}

.modal-form__modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-index-modal);
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1rem;
    border: 0;
    background: transparent;
}

@media (min-width: 768px) {
    .modal-form__modal {
        padding: 5rem 2rem;
    }
}

.modal-form__modal[open] {
    display: block;
}

.modal-form__modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-form__inner {
    width: 100%;
    max-width: 48rem;
    background: #fff;
    margin: 0 auto;
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--md) var(--wp--preset--spacing--md);
    border-radius: var(--wp--preset--spacing--xs);
    z-index: var(--z-index-modal);
}

.modal-form__header {
    display: flex;
    align-items: baseline;
    flex-direction: row-reverse;
    margin-bottom: var(--wp--preset--spacing--sm);
}

.modal-form__header-title {
    font-size: var(--font-size-xxl);
    margin: 0;
}

.modal-form__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}
