#automatic-fg-reg-form-mask{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    display: none;
    opacity: 0;
    background-color: rgba(0,0,0,0.5);
}
#automatic-fg-reg-form-wrapper-v2{
    position: fixed;
    left: 50%;
    top: 5%;
    margin-left: -300px;
    z-index: 9998;
    display: none;
    opacity: 0;
}
.automatic-fg-reg-form-wrapper-v2{
    font-family: 'Roboto';
    width: 100%;
    max-width: 320px;
    /*    padding: 10px 0;*/
    text-align: center;
}
.automatic-fg-reg-form-wrapper-v2 > div{
    width: 600px;
    height: 100%;
    /*    border: 1px solid #b4b4b4;*/
    border-radius: 5px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: #ffffff;
}
.automatic-fg-reg-form-outer-v2{
    /*    background: url('../img/popup_logo.png') no-repeat bottom left;*/
    height: 550px;
}
.automatic-fg-reg-form-title-v2 img{max-width: 280px}
.automatic-fg-reg-form-title-v2{
    background: #2055a3;
    background: -moz-linear-gradient(left, #2055a3 0%, #2055a3 100%);
    background: -webkit-linear-gradient(left, #2055a3 0%,#2055a3 100%);
    background: linear-gradient(to right, #2055a3 0%,#2055a3 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#26baec', endColorstr='##2055a3',GradientType=1 );
    text-align: center;
    padding: 30px 30px;
    font-size: 22px;
    color: #fff;
}
.automatic-fg-reg-form-body-v2 div{
    width: 100%;
    font-size: 18px;
    padding: 10px;
    margin: 0 auto;
}
.automatic-fg-reg-form-wrapper-v2 input{
    width: 100%;
    background: none;
    background-color: #fff;
    color: #000;
    border: 1px solid #ebebeb;
    outline: none;
    box-shadow: none;
    height: 44px;
    padding: 0 15px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 5px;
    margin-bottom: 10px;
}
.automatic-fg-reg-button, .automatic-fg-reg-form-wrapper-v2 button{
    display: block;
    width: 250px;
    margin: 0 auto;
    background: none;
    background-color: #f9b807;
    border: 1px solid #ebebeb;
    color: #000;
    outline: none;
    box-shadow: none;
    height: 44px;
    padding: 0 15px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
}
.automatic-fg-reg-form-wrapper-v1 form,
.automatic-fg-reg-form-wrapper-v2 form{
    width: 100%;
    height: auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
#automatic-fg-reg-form-social1 {
}
#automatic-fg-reg-form-noSocial {
    color: grey;
    text-decoration: underline;
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 768px) {.automatic-fg-reg-form-wrapper-v2 > div {width: 500px;}
    #automatic-fg-reg-form-wrapper-v2 {margin-left: -250px;}
}
@media (max-width: 576px) {.automatic-fg-reg-form-wrapper-v2 > div {width: 320px;}
    #automatic-fg-reg-form-wrapper-v2 {margin-left:-160px; overflow: scroll; height: 100%; background: #fff; top:0%; max-height: 720px;}
    .form-group {margin-bottom: 10px !important;}
}
.modal .close {
    float: none;
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=100);
    opacity: 1;
    position: absolute;
    right: 10px;
    top: 0px;
    outline: none;}

.fancybox-slide>* {padding: 0px !important;}