#footer-contact-desktop {
    border-top: 6px solid #fff;
    bottom: -86px;
    line-height: 1;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    transition: all .25s ease;
    z-index: 1000;
}

#footer-contact-desktop .the-form-wrap .form-text,
#footer-contact-mobile .the-form-wrap .form-text {
    line-height: 1;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 400;
    margin: 0;
    text-align: center
}

/* #footer-contact-mobile .the-form-wrap .form-text {
    padding-bottom: 10px;
} */

#footer-contact-desktop .form-text .btn,
#footer-contact-mobile .form-text .btn,
#footer-contact-desktop input[type="submit"],
#footer-contact-mobile input[type="submit"] {
    border: 1px #fff solid;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    padding: 10px 17px;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all .4s ease;
    -moz-transition: all .4s ease;
    -webkit-transition: all .4s ease;
    -o-transition: all .4s ease;
    overflow: hidden;
}

#footer-contact-desktop input[type="submit"],
#footer-contact-mobile input[type="submit"] {
    margin-left: 0;
}

.form-text .btn:hover {
    background-color: #595959;
}

#footer-forms .wpcf7-form-control.wpcf7-text,
#footer-forms .wpcf7-form-control.wpcf7-select,
#footer-forms .wpcf7-form-control.wpcf7-textarea {
    font-size: 14px;
}

#footer-forms input {
    width: 49%;
}

#footer-forms textarea {
    height: 100px;
}

#footer-forms .wpcf7-form-control-wrap:nth-child(odd) input {
    float: left;
}

#footer-forms .wpcf7-form-control-wrap:nth-child(even) input {
    float: right;
}

#footer-forms br {
    display: none;
}

#footer-contact-desktop.active {
    bottom: 0
}

#footer-contact-mobile {
    box-sizing: border-box;
    border-top: 6px solid #fff;
    cursor: pointer;
    position: fixed;
    padding: 10px;
    transition: all .25s ease;
    width: 100%;
    z-index: 1000;
}

#footer-forms #footer-contact-mobile .the-form {
    display: none;
    margin-top: 16px;
}

#footer-forms #footer-contact-mobile .btn-primary.open .footer-close-form {
    opacity: 1;
}

#footer-contact-mobile.open {
    bottom: 0
}

#footer-contact-mobile .form-text.open .footer-close-form {
    cursor: pointer;
    opacity: 1
}

.footer-close-form {
    color: #fff;
    opacity: 0;
    font-size: 24px;
    position: absolute;
    right: 20px;
    top: 0px;
    transition: all .25s ease
}

#footer-contact-form #popup {
    display: none;
    position: fixed;
    margin: 0 auto;
    top: 40%;
    left: 50%;
    -ms-transform: translate(-50%, -40%);
    transform: translate(-50%, -40%);
    z-index: 999;
    width: 800px
}

#footer-contact-form #popup #popupwrap {
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    position: relative
}

#footer-contact-form #popup #popupwrap #popup-title {
    color: #fff;
    font-size: 26px;
    padding: 10px 10px 5px;
    position: relative;
    margin: 0;
}

#footer-contact-form #popup #popupwrap p {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px
}

#footer-contact-form #popup #popupwrap #popup-close {
    position: absolute;
    top: 4px;
    right: -15px;
    width: 48px;
    height: 48px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

#footer-contact-form #popup #popup-content {
    background: #fff;
    padding: 20px
}

#footer-contact-form #popup #popup-content #popup-content-wrapper {
    line-height: 1.25;
    margin-bottom: 20px;
}

#footer-contact-form #popup #popup-content #popup-form-wrapper {
    margin-top: 20px;
}

#popupmask {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    overflow-x: hidden;
    transition: 0.5s;
    display: none;
}

@media all and (max-width: 1020px) {
    #footer-contact-desktop {
        display: none;
    }

    #footer-contact-mobile {
        bottom: 0;
        display: block;
    }

    #footer-contact-mobile h2 {
        color: #fff;
        font-size: 20px;
        line-height: 24px;
        padding: 0;
    }

    #footer-contact-mobile input[type="submit"] {
        width: 100%;
    }
}

@media all and (max-width: 640px) {

    #footer-contact-mobile .the-form-wrap .form-text {
        font-size: 22px;
    }

    #footer-contact-mobile .wpcf7-form-control.wpcf7-text,
    #footer-contact-mobile .wpcf7-form-control.wpcf7-select,
    #footer-contact-mobile .wpcf7-form-control.wpcf7-textarea {
        padding: 5px 15px;
    }
}

@media only screen and (max-width:523px) {

    #footer-contact-mobile .wpcf7-form-control.wpcf7-text,
    #footer-contact-mobile .wpcf7-form-control.wpcf7-select,
    #footer-contact-mobile .wpcf7-form-control.wpcf7-textarea {
        width: 100%;
    }

    #footer-contact-mobile .wpcf7-form-control.wpcf7-textarea {
        height: 50px;
    }
}

@media all and (max-width:475px) {
    #footer-contact-mobile .the-form-wrap .form-text {
        font-size: 16px;
    }

    #footer-contact-mobile {
        padding-bottom: 0;
        padding-top: 0;
    }

    #footer-forms #footer-contact-mobile .the-form {
        margin-top: 0;
    }

    #footer-contact-mobile .form-text .btn {
        margin-bottom: 10px;
        margin-left: 10px;
        margin-top: 10px;
        font-size: 14px;
        padding: 5px 10px;
    }

    .footer-close-form {
        top: 5px;

    }
}