body.ba-modal-open {
    overflow: hidden;
}

.ba-contact-form-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
}

.ba-contact-form-modal.is-open {
    display: block;
}

.ba-contact-form-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.72);
}

.ba-contact-form-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(96vw, 1100px);
    height: min(92vh, 850px);
    margin: 4vh auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.ba-contact-form-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 3;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
}

.ba-contact-form-modal__content {
    height: 100%;
    overflow: auto;
    padding: 34px 30px 24px;
    box-sizing: border-box;
}

.ba-contact-form-modal__content .entry-title,
.ba-contact-form-modal__content h1.page-title {
    display: none;
}

@media (max-width: 768px) {
    .ba-contact-form-modal__dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .ba-contact-form-modal__content {
        padding: 56px 16px 18px;
    }
}
