/*--------------------------------------------------------------
# Popup Model Box
--------------------------------------------------------------*/
.wpi-modal {
    visibility: hidden;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: hidden auto;
}

.wpi-modal.is-visible {
    visibility: visible;
    position: fixed;
}

.wpi-modal-overlay {
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #000;
    background: rgba(0, 0, 0, .84);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s;
}

.wpi-modal.is-visible .wpi-modal-overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.wpi-modal-body {
    background: var(--wpi--base-bg-color);
    position: absolute;
    z-index: 9999;
    top: 20rem;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
}

.wpi-modal-transition {
    transition: all 0.3s 0.12s;
    -webkit-transform: translateY(-10%);
    transform: translateY(-10%);
    opacity: 0;
}

.wpi-modal.is-visible .wpi-modal-transition {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

.site .wpi-modal-close {
    position: absolute;
    top: 0;
    left: 0;
    padding-right: 1em;
    padding-left: 1em;
    color: #000;
    background: none !important;
    border: 0;
}

.wpi-popup-wrapper {
    display: flex;
    width: 100%;
}

.wpi-popup-image {
    display: block;
    width: 390px;
    height: auto;
}

.data-bg-modelbox {
    height: 100%;
    min-height:50rem;
}

.wpi-popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 2rem;
    flex: 1;
}

.wpi-popup-content .wpi-modal-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.wpi-popup-content .wpi-popup-title {
    font-size: 32px;
    margin: 0 auto 15px;
    line-height: 1.2;
}

.wpi-popup-content .mc4wp-form-fields > p {
    float: none;
}

.wpi-popup-content .mc4wp-form-fields input[type="text"],
.wpi-popup-content .mc4wp-form-fields input[type="email"] {
    color: #000;
}

.wpi-popup-content .mc4wp-form-fields input[type="submit"] {
    display: block;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .wpi-modal-body .wpi-popup-wrapper {
        flex-direction: column;
    }

    .wpi-popup-wrapper .wpi-popup-image {
        width: 100%;
    }
}