.top-reg {
    margin: 0 auto;
    text-align: center;
}

html[lang="zh-hans"] .submit-button {
    margin-bottom: 33px;
}

.top-reg .submit-button {
    height: 40px;
}

.top-reg h3,
.top-reg .h3 {
    font-size: 26px;
    font-weight: 400;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #fff;
}

.top-reg li a {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 33px;
    background-color: #00897b;
    background-repeat: no-repeat;
    background-position: center;
}

.top-reg input {
    min-width: 300px;
    font-size: 13px;
}

.top-reg li a:hover,
.submit-button:hover {
    background-color: #33a195;
}

.top-reg ul {
    display: inline-block;
    margin-bottom: 20px;
    margin-left: 0!important;
    padding-left: 0;
    list-style-type: none;
}
.top-reg input {
    line-height: 36px;
    float: left;
    height: 40px;
    margin-bottom: 23px;
    padding: 1px 8px 0;
    vertical-align: bottom;
    color: #212121;
    border-top: 2px solid #fff;
    border-right: none;
    border-bottom: 2px solid #fff;
    border-left: none;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.top-reg input::-webkit-input-placeholder,
.top-reg input::-moz-placeholder,
.top-reg input:-moz-placeholder,
.top-reg input:-ms-input-placeholder {
    font-size: 13px;
    opacity: 1;
    color: #bdbdbd;
}

.top-reg input:focus {
    border-bottom: 2px solid #00897b;
}

.top-reg input.error {
    border-top: 2px solid #fce7e6;
    border-bottom: 2px solid rgba(229, 57, 53, .8);
    background: #fce7e6;
}

.top-reg li {
    float: left;
    margin: 0 8px!important;
}

.top-reg p a {
    font-size: 11px;
    text-decoration: underline;
    color: #fff;
}
.top-reg .error-msg {
    position: absolute;
    left: 0;
    top: 42px;
    font-size: 11px;
    color: #fff;
    margin-left: 10px;
    opacity: 0;
}

.top-reg .error-msg.error {
    opacity: 1;
}

.top-reg {
    position: relative;
}
.top-reg-wrapper {
    display: inline-block;
}
form.top-reg p {
    font-size: 15px;
    font-weight: 400;
    margin: 0 auto 8px!important;
    color: #ffffff;
}
@media screen and (max-width:480px) {
    .top-reg .error-msg {
        top: 43px!important;
    }
}
@media screen and (max-width:525px) {
    .top-reg .submit-button {
        float: none!important;
    }
    .top-reg input {
        float: none!important;
        min-width: 290px;
    }
}
@media screen and (max-width:1215px) {
    .top-reg .error-msg {
        top: 43px!important;
    }
    .top-reg input {
        float: none;
        display: block;
        border-radius: 2px;
        margin-bottom: 20px;
    }
    .top-reg .submit-button {
        display: block;
        float: none;
        width: 100%;
    }
}
#modal_form{
    -webkit-font-smoothing: antialiased;
    position: fixed;
    z-index: 201;
    top: 45%;
    display: none;
    left: 50%;
    box-sizing: border-box;
    width: 464px;
    height: auto;
    margin-top: -125px;
    margin-left: -233px;
    padding: 30px;
    opacity: 0;
    color: #424242;
    border-radius: 2px;
    background: #fff;
}
#modal_form h3,
#modal_form .h3{
  font-family: Roboto, sans-serif;
  line-height: 42px;
  height: 38px;
  text-align: center;
  color: #424242;
  position: absolute;
  text-transform: inherit;
  left: 30px;
  top: 18px;
  font-size: 18px;
  font-weight: 300;
  margin: 0;
}
#modal_form .close{
    display: block;
    float: right;
    width: 14px;
    height: 14px;
    margin-top: 0;
    margin-right: 0;
    cursor: pointer;
    opacity: 1;
    background: transparent url('/sites/all/themes/smartcat/img/close-modal.png') no-repeat scroll center center;
    background-size: 100%;
}

#modal_form .close:hover{
    opacity: 1;
}
#modal_form .label-box {
    position: relative;
    width: 100%;
    text-align: left;
}
#modal_form .label-box::before,
#modal_form .label-box::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 0;
    bottom: 1px;
    background-color: #757575;
    transition-property: width;
    transition-duration: 0.2s;
    right: 50%;
}
#modal_form .label-up {
  width: calc(100% - 125px);
  display: inline-block;
  vertical-align: top;
}

#modal_form .label-box::before {
    left: 50%;
}

#modal_form label-box::after {
    right: 50%;
}

#modal_form input:focus ~ .label-box::before,
#modal_form input:focus ~ .label-box::after {
    width: 50%;
}

#modal_form input {
    width: 100%;
    padding-top: 11px;
    padding-bottom: 5px;
    font-size: 18px;
    line-height: 1.5em;
    vertical-align: text-bottom;
    border: none;
    border-bottom: 1px solid #BDBDBD;
    box-sizing: border-box;
    padding-left: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}
#modal_form input:focus{
  outline: none;
}
#modal_form label {
    position: absolute;
    top: -35px;
    line-height: 1.5em;
    margin-bottom: 10px;
    font-size: 18px;
    color: #757575;
    transition: 0.2s ease all;
    pointer-events: none;
    width: 100%;
    font-weight: 400;
}

#modal_form input:focus ~ .label-box label,
#modal_form input:valid ~ .label-box label {
    font-size: 11px;
    transform: translateY(-15px);
}
#modal_form form.reg{
  font-family: 'Roboto', sans-serif;
}
#modal_form form.reg .submit-button{
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    width: 104px;
    float: right;
    height: 39px;
    cursor: pointer;
    color: #fff;
    border: none;
    border-radius: 2px;
    background: #7e64bd;
    margin-top: 5px;
    display: inline-block;
    vertical-align: top;
}
.domain-ru-smartcat-ai #modal_form form.reg .submit-button {
  width: 125px;
}
#modal_form form.reg .submit-button:hover {
  opacity: .9;
}
#modal_form form.reg .submit-button[disabled] {
  background-color: white;
  color: #c9c9c9;
  cursor: auto;
}
#modal_form .error-msg{
    position: absolute;
    text-align: left;
    color: white;
    font-size: 12px;
    display: block;
    margin-top: 5px;
    transition: .2s;
}
#modal_form .error-msg.error {
  color: red;
}
#modal_form form.reg input.error{
    border-bottom: 1px solid rgba(229, 57, 53, .8);
}
#modal_form form.reg{
    margin: 0 auto;
    text-align: left;
    margin-top: 50px;
}

#modal_form .soc-reg {
  margin-top: 54px;
  display: flex;
  justify-content: space-between;
}
#modal_form .soc-reg a{
  display: inline-block;
  width: 48%;
  border: 1px solid #c9c9c9;
  display: flex;
  padding: 4px 14px;
}
#modal_form .soc-reg a:hover {
  text-decoration: none;
  color: #848484;
  border: 1px solid #7e64bd;
}
#modal_form .soc-reg a img {
  display: inline-block;
  height: 22px;
  margin-top: 3px;
  margin-right: 12px;
}
#modal_form .soc-reg a p {
  color: #424242;
  font-size: 13px;
  line-height: 1.2;
  display: inline-block;
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 500px) {
  #modal_form {
    width: 290px;
    margin-left: -145px;
    margin-top: -186px;
  }
  #modal_form .label-up {
    width: 100%;
  }
  #modal_form form.reg .submit-button {
    float: none;
    display: block;
    width: 100%;
    margin-top: 47px;
    font-size: 14px;
    font-weight: 400;
  }
  #modal_form .soc-reg {
    margin-top: 24px;
    flex-direction: column;
  }
  #modal_form .soc-reg a {
    width: 100%;
    text-decoration: none;
  }
  #modal_form .soc-reg a:first-of-type {
    margin-bottom: 24px;
  }
}
