.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0;
    -webkit-transition: all 300ms;
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
    transition: all 300ms;
    overflow: hidden;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
}

.popup.light_popup {
    background-color: #E5E5E5;
}

.popup .modal-scroll {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 100;
    overflow: hidden;
}

.popup.show {
    z-index: 9999;
    opacity: 1;
}

.popup .popup-inner {
    max-width: 500px;
    width: 100%;
    height: auto;
    background: #F9F9F9;
    position: absolute;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    padding: 25px 25px;
    border: 1px solid #A1A1A1;
    box-sizing: border-box;
    transition: opacity 500ms ease, transform 450ms ease;
}

.popup .popup-inner .modal-title {
    margin-bottom: 15px;
}

.popup .popup-inner .feedback-input {
    padding: 10px 15px;
    margin-bottom: 8px;
    font-size: 13px;
}

.popup .popup-inner .wrapper {
    margin-bottom: 5px;
}

.popup .popup-inner .text-center {
    font-size: 11px !important;
}

.popup .popup-inner .btn {
    padding: 12px 0;
    font-size: 14px;
    margin-top: 5px;
}

.popup.teams_popup .popup-inner {
    max-width: 974px;
}

.popup.show .popup-inner {
    opacity: 1;
}

.popup .popup-inner .body_popup {
    transform: translate(0, 30px);
    transition: transform 500ms ease;
}

.popup.show .popup-inner .body_popup {
    transform: translate(0, 0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.popup .popup-inner::-webkit-scrollbar {
    width: 4px;
    position: relative;
}

.popup .popup_close {
    width: 32px;
    height: 32px;
    position: fixed;
    top: 10px;
    right: 10px;
    -webkit-transition: all 300ms;
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
    transition: all 300ms;
    z-index: 9;
    border: none;
    outline: none;
    cursor: pointer;
}

.popup .modal-title {
    font-family: var(--raleway-family);
    font-weight: bold;
    font-size: 18px;
    line-height: 21px;
    text-align: center;
    text-transform: uppercase;
    color: #222222;
}

.popup .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 1em;
    font-weight: normal;
    display: block;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    right: 10px;
    font-size: 12px;
}

.popup .wpcf7 form .wpcf7-response-output {
    margin: 0 0.5em 1em;
    padding: 0.2em 1em;
    border: 2px solid #00a0d2;
}


@media screen and (max-height: 800px),
screen and (max-width: 767px) {
    .popup {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        display: block;
        padding: 10px 0;
    }

    .popup .popup-inner {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 20px auto;
        padding-bottom: 100px;
        max-width: 90%;
        height: auto;
    }

    .popup .popup-inner iframe,
    .popup .popup-inner .wpcf7-form-control-wrap {
        min-height: 45px;
        display: block;
    }

    .popup .popup-inner textarea.feedback-input {
        height: 60px;
        margin-bottom: 5px;
    }
}