#jc_contact {
    display: none;
}

#jc_contact.is-visible {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 54, 66, 0.9);
    z-index: 12000;
    overflow-y: auto;
    animation: fadeIn 0.15s ease-out;
}

#jc_contact.is-hidden {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 54, 66, 0.9);
    z-index: 12000;
    overflow-y: auto;
    animation: fadeOut 0.15s ease-out forwards;
}

#jc_contact #jc-form {
    position: relative;
    width: 345px;
    background: #FFF;
    margin: 3em auto;
    cursor: auto;
    border-radius: 0.25em;
    padding: 1.4em;
    animation: slideIn 0.2s ease-out;
}

#jc_contact.is-hidden #jc-form {
    animation: slideOut 0.15s ease-out forwards;
}

#jc_contact .success {
    position: relative;
    width: 345px;
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #468847;
    padding: 20px;
    margin: 3em auto;
    border-radius: 0.25em;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

#jc_contact .jcbutton,
#jc_contact .jcbutton_text {
    display: none;
}

#jc_contact .close {
    opacity: 1;
    position: absolute;
    background: #fff;
    border-radius: 100%;
    box-shadow: 0 0 2px 3px rgba(17,17,26,.35);
    top: -18px;
    right: -5px;
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    z-index: 10;
}

#jc_contact .header {
    background: #0091dc url(../images/popup_contact_us.png) no-repeat right top;
    padding: 10px 0;
    margin: -20px -20px 20px -20px;
    border-radius: 5px 5px 0 0;
    text-align: center;
}

#jc_contact .headercontent {
    color: #fff;
    font-size: 160%;
    font-weight: bold;
}