.popup-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    top: 0;
    left: 0;
    transition: all .5s ease;
}

.popup-background.popup-active{
    pointer-events: all;
    opacity: 0.5;
}

.popup-form-wrapper {
    position: fixed;
    top: 350%;
    left: 50%;
    z-index: 100000;
    background: white;
    width: 100%;
    transform: translate(-50%, -50%);
    max-width: 640px;
    max-height: calc(100% - 80px);
    border: solid 5px var(--popup-color2);
    --popup-color: red;
    --popup-color2: darkred;
    border-radius: 30px;
    box-sizing: border-box;
    transition: all .5s ease;
    pointer-events: none;
    width: calc(100% - 40px);
    display: flex;
}

.popup-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--popup-color2);
    transform: translate(50%, -50%);
    border-radius: 50%;
    text-align: center;
    border: solid 3px var(--popup-color2);
    cursor: pointer;
    z-index: 5;
    color: white;
}

.popup-form-wrapper.popup-active{
    top: 50%;
    pointer-events: all;
}

.popup-form-wrapper .wpcf7 {
    overflow-y: scroll;
    overflow-x: hidden;
}


.popup-form-wrapper  p:last-of-type {
    margin-bottom: 0;
}

.popup-form-wrapper  h3 span {
    color: white;
    display: block;
    font-weight: 300;
}

.popup-form-wrapper  input.wpcf7-submit {
    box-sizing: border-box !important;
    color: white;
    font-size: 24px;
}

.popup-form-wrapper  .wpcf7-response-output {
    margin-top: 0 !important;
}

.popup-form-wrapper  label {
    font-size: 18px;
}

.popup-form-wrapper  textarea {
    max-height: 150px;
}