.image-text-form {
    position: relative;
}

.image-text-form:not(:first-child):last-child {
    .image-text-form__overlay {
        padding-bottom: var(--section-margins);
    }

    .image-text-form__overlay:after {
        display: none;
    }
}

.image-text-form__overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 35, 62, 0.85);
    padding: var(--section-margins) 0 0;
}

.image-text-form__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-text-form__content,
.image-text-form__content :where(h1, h2, h3, h4, h5, h6) {
    color: var(--white);
}

.image-text-form__content .sub-heading {
    color: var(--secondary);
}

.image-text-form__content a:not(.btn) {
    color: var(--secondary);
}

.image-text-form__area {
    margin: 35px 0 0;
}

.image-text-form__overlay:after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--white);
    bottom: 0;
    z-index: -1;
}

.image-text-form__overlay .btn-tertiary {
    color: var(--secondary);
}

@media(min-width: 768px) {
    .image-text-form__overlay:after {
        height: 74px;
    }

    .image-text-form__area {
        margin: 45px 0 0;
    }
}

@media(min-width: 1200px) {
    .image-text-form__overlay {
        padding: var(--section-margins) 0 0;
    }

    .image-text-form__overlay .btn-tertiary:hover {
        color: var(--secondary-hover);
    }

    .image-text-form__flex {
        display: flex;
        gap: 63px;
    }

    .image-text-form__content {
        width: calc(100% - 800px);
        margin: 75px 0 134px;
    }

    .image-text-form__content:last-child {
        flex: 1;
    }

    .form-enabled {
        max-width: 100%;
    }
    .image-text-form__area {
        width: 100%;
        max-width: 800px;
        margin: 0;
    }

    .image-text-form__overlay:after {
        height: 72px;
    }

    .image-text-form__content p {
        margin: 0 0 30px;
    }

    .image-text-form__content p:last-child {
        margin: 0;
    }
}

#wpforms-116925-field_9 {
    column-count: 2;
}

@media(min-width: 1200px) {
    .image-text-form__flex--form-only {
        display: block;
    }

    .image-text-form__flex--form-only .image-text-form__area {
        max-width: 100%;
    }
}

.image-text-form__overlay:has(.image-text-form__flex--form-only) {
    padding-bottom: var(--section-margins);
}

.image-text-form__overlay:has(.image-text-form__flex--form-only):after {
    display: none;
}

.image-text-form__area {
    .wpforms-field-container {
        display: flex;
        flex-wrap: wrap;
        gap: 0 20px;

        .wpforms-field {
            width: 100%;
        }
    }
}

@media (min-width: 1200px) {
    .image-text-form__area {
        .wpforms-field-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0 20px;

            #wpforms-116925-field_4-container,
            #wpforms-116925-field_2-container,
            #wpforms-116925-field_7-container,
            #wpforms-116925-field_8-container {
                width: calc(50% - 10px);
            }
        }
    }
}
