.popup-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.75;
    display: block;
    z-index: 250;
}

.popup-body {
    position: absolute;
    top: 50%;
    margin-top: -300px;
    left: 50%;
    margin-left: -330px;
    max-width: 660px;
    width: 100%;
    min-height: 400px;
    display: block;
    z-index: 300;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: top left;
    padding: 40px;
}
.popup-body-bg-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center center;
}
.popup-body .popup-close {
    border-radius: 50%;
    -moz-box-sizing: 50%;
    -webkit-border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 20px;
    font-weight: normal;
    line-height: 20px;
    height: 24px;
    text-align: center;
    width: 24px;
    position: absolute;
    right: -12px;
    top: -12px;
    z-index: 301;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    transition: background .5s;
}
.popup-body .popup-close:hover {
    cursor: pointer;
    background: #333333;
}
.popup-body .primary-content {
    text-align: center;
}
.popup-body .gravity-form-contianer {
    display: block;
}
.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields li.gfield {
    width: 100%;
    padding: 0;
}

.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields .gfield .gfield_label {
    display: none;
}
.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields .gfield input,
.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields .gfield select,
.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields .gfield textarea {
    width: 100% !important;
    border: 2px solid #dddddd;
}
.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields .gfield.gfield_error {
    background-color: transparent !important;
    border: 0px !important;
    margin-top: 0px !important;
}
.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields .gfield.gfield_error:not(.gf_left_half):not(.gf_right_half) {
    width: 100% !important;
    max-width: 100% !important;
}
.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields .gfield.gfield_error input,
.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields .gfield.gfield_error select,
.popup-body .gravity-form-contianer .gform_wrapper ul.gform_fields .gfield.gfield_error textarea {
    background: #f8e5e6;
    border: 3px;
    width: 100% !important;
}
.popup-body .gravity-form-contianer .gform_wrapper .gform_footer {
    padding-top: 0px;
}
.popup-body .gravity-form-contianer .gform_wrapper .gform_footer input[type=submit] {
    width: 100% !important;
    background: #ce1e2b;
    color: #ffffff;
}
.popup-body .gravity-form-contianer .gform_wrapper .gform_footer input[type=submit]:hover {
    filter: brightness(115%);
    transition: filter 0.5s;
}
.popup-body .gravity-form-contianer .gform_wrapper div.validation_error {
    color: #721c24;
    background-color: #f8d7da;
    font-weight: normal;
    border-color: #f5c6cb;
}

.popup-body.style-1 {
    min-height: 400px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-flow: row-reverse;
    color: #ffffff;
}
.popup-body.style-1 h1 {
    color: #ffffff;
}

.popup-body.style-1 .primary-content {
    width: 60%;
}

.popup-body.style-2-top, .popup-body.style-2-bottom {
    padding-top: 300px;
    background-size: 100% auto;
    background-position: top center;
    width: 400px;
    top: 75px;
    margin-top: 0px;
    margin-left: -200px;
    position: absolute;
}
.popup-body.style-2-top .popup-body-bg-image {
    height: 300px;
    left:  0;
    top: 0;
}

.popup-body.style-2-bottom {
    padding-bottom: 300px;
    padding-top: 40px;
    background-position: bottom center;
}

.popup-body.style-2-bottom .popup-body-bg-image {
    height: 300px;
    left:  0;
    bottom: 0;
    top: auto;
}

.popup-body.style-3 {
    background-image: none !important;
    width: 400px;
    min-height: auto;
    margin-left: -200px;
}

.popup-body.style-3 .popup-body-bg-image,
.popup-body.style-4 .popup-body-bg-image {
    display: none;
    background-image: none !important;
}

.popup-body.style-4 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-flow: row;
    background-image: none !important;
    padding: 0px;
    min-height: 0px;
    height: auto;
    top: 175px;
    margin-top: 0px;
    position: absolute;
}
.popup-body.style-4 .secondary-content h1, .popup-body.style-4 .secondary-content {
    color: #ffffff;
}
.popup-body.style-4 .primary-content, .popup-body.style-4 .secondary-content {
    padding: 40px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}
.popup-body.style-4 .primary-content {
    width: 45%;
}
.popup-body.style-4 .secondary-content {
    width: 55%;
}
@media only screen and (max-width: 725px){
    .popup-body.style-1 {
        max-width: 90%;
        width: 90%;
        top: 80px;
        left: 0px;
        right: 0px;
        margin: 0 auto;
        position: absolute;
    }
    .popup-body.style-1 .primary-content {
        width: 100%;
    }

    .popup-body.style-4 {
        max-width: 90%;
        width: 90%;
        top: 80px;
        left: 0px;
        right: 0px;
        margin: 0 auto;
        position: absolute;
        flex-direction: column;
    }
    .popup-body.style-4 .primary-content, .popup-body.style-4 .secondary-content {
        width: 100%;
    }
}
@media only screen and (max-width: 460px) {
    .popup-body.style-2-top, .popup-body.style-2-bottom {
        max-width: 90%;
        width: 90%;
        top: 40px;
        left: 0px;
        right: 0px;
        margin: 0 auto;
    }
    .popup-body.style-2-top {
        padding-top: 75%;
    }
    .popup-body.style-2-top .popup-body-bg-image {
        height: 42%;
    }
    .popup-body.style-2-bottom {
        padding-bottom: 60%;
    }
    .popup-body.style-2-bottom .popup-body-bg-image {
        height: 37%;
    }
    .popup-body.style-3 {
        max-width: 90%;
        width: 90%;
        top: 40px;
        left: 0px;
        right: 0px;
        margin: 0 auto;
        position: absolute;
    }
}