.text-right {
    text-align: right;
}

#main_form {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 15px;
}

#main_form label {
    display: block;
    position: relative;
}

#main_form label .n {
    display: block;
    font-size: 1em;
    line-height: 30px;
    margin-bottom: 5px;
}

#main_form label .form-control {
    height: 4em;
    text-align: center;
    font-size: 1em;
    width: 100%;
    color: #000;
    background: #fafafa;
    border: 1px #CCC solid;
}

#main_form label .form-control:focus {
    outline: none;
}

#main_form .error {
    color: red;
    font-size: 1em;
    position: relative;
    z-index: 2;
}

#main_form .error span {
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    top: -2em;
}



#main_form  .btn {
    cursor: pointer;
    height: auto;
}

#main_form  .btn:hover {
    opacity: 0.8;
}

.form_back_link {
    margin-bottom: 30px;
}

.check_phone {
    display: none;
    position: absolute;
    top: 22px;
    right: 10px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    background: #3BB712;
    color: #FFF;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}
.check_phone.active {
    display: block;
}
.from_sms {
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    z-index: 1;
    background: #FFF;
    text-align: center;
    color: #df0000;
    line-height: 48px;
}

.time_out_box a, .form_back_link a, .form_b .result a {
    margin-top: 15px;
    display: block;
    text-align: center;
    color: #ff7000;
}
.time_out_box span {
    display: block;
    margin-top: 15px;
    text-align: center;
}

.form_footer {
    padding-top: 50px;
    font-size: 0.7em;
    opacity: 0.8;
    max-width: 90%;
    width: 600px;
    margin: 0 auto;
}
.form_footer
    a {
        text-decoration: underline !important;
    }


.form_footer a {
    color: #333;
}

footer {
    padding: 30px 15px;
    background: #000;
    color: #FFF;
    font-size: 0.7em;
    text-align: center;
    position: relative;
    z-index: 99;
}

footer a {
    color: #FFF;

}

.bottom-gnom .btn_wrap {
    margin-top: 30px;
}

.bottom-gnom .btn_wrap .wrap-green {
    color: #000;
    background: #be2625;
    padding: 15px 0;
    max-width: 200px;
}

#form_b {
    padding: 5em 0;
    justify-content: space-between;
    overflow: hidden;
    text-align: center;
    z-index: 99;
    background: #fa97c2;
}

#form_b form .btn {
    padding: 0 20px;
}



#form_b .my_form_title {
    text-transform: uppercase;
    font-size: 2em;
    margin: 0 0 15px;
    color: #d50066!important;
    width: auto;
    padding: 0;
}

#form_b .my_form_title_desc {
    font-size: 1.2em;
    margin-bottom: 3em;
}

#form_b form .form-control.input_phone {
    text-align: center;
    padding-left: 0;
}

#form_b .share {
    padding: 100px;
    background: #FFF;
    color: #333;
    max-width: 640px;
    margin: 0 auto !important;
    -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;

}

#form_b {
    position: relative;
}

#form_b svg {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    fill: #27539a;
    height: 100%;
    width: 100%;
}


.btn {
    display: inline-block;
    line-height: 4em;
    background: #000;
    color: #FFF;
    font-size: 1em;
    padding-left: 2em;
    padding-right: 2em;
    width: 100%;
    height: auto;
}

.btn_box {
    margin-top: 2em;
}

.pos_r {
    position: relative;
}

.mfp-hide {
    display: none;
}



@media screen and (max-width: 640px) {
    #form_b:after {
        display: none;
    }
    #main_form label .n {
        font-size: 1em;
    }

    #main_form label .form-control {
        height: 4em;
    }

    #main_form .btn {
        margin-top: 1em;
        font-size: 1em;
    }

    #form_b {
        padding: 0 10px 50px;
    }

    #form_b .share {
        padding: 50px 30px;

    }
    #form_b .share__title {
        font-size: 28px;
    }


    #main_form .error span {
        top: -2.4em;
    }

    #form_b {
        padding: 50px 10px 50px;
    }
    #form_b .my_form_title_desc {
        text-transform: none;
        font-size: 0.7em;
        margin-bottom: 4em;
    }

}