.md-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 1001;
    opacity: 1;
    background: rgba(37,37,37, 0.6);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.popup {
    position: absolute;
    display:none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002;
}
.popup .reg, .popup .invite{
  display: none;
  max-width: 600px;
  border-radius: 4px;
  box-shadow: -10px 9px 21px 0 rgba(128, 152, 213, 0.08);
  background-color: #ffffff;
}
.popup-inner, .popup-thnx-inner {
  width: 100%;
  height: auto;
  padding:50px 30px;
  margin: 0 auto;
  position: relative;
}
.popup .close {
    position: absolute;
    font-size: 25px;
    top: 22px;
    right: 18px;
}

input:focus, input:active, input:active:focus, 
textarea:focus, textarea:active, textarea:active:focus {
    outline: unset!important;
}
.form-item {
  display: block;
  vertical-align: top;
  position: relative;
  margin-bottom: 20px
}

.form-input {
    background: transparent;
    border: 0;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    width: 100%;
    height: 52px;
    padding: 20px 15px 10px;
    font-size: 20px;
    line-height: 1.5;
    color: #000000;
}
.form-textarea {
  height: 113px;
}
.form-textarea textarea {
  height: 100px;
  resize: none;
  margin-bottom: -10px;
  line-height: 21px;
}
.form-label {
    position: absolute;
    pointer-events: none;
    left: 15px;
    top: 0;
    line-height: 52px;
    transition: .3s;
    font-size: 16px;
    color: #435466;
}
input.done, textarea.done {
  background: url(../img/done.png) no-repeat calc(100% - 10px) 18px;
  padding-right: 40px;
}
.list_scroll input.done {
  background:unset;
  padding: 0;
}
/* хром, сафари */
textarea::-webkit-scrollbar { width: 0; }
/* ie 10+ */
textarea { -ms-overflow-style: none; }
/* фф (свойство больше не работает, других способов тоже нет)*/
textarea { overflow: -moz-scrollbars-none; }
.form-input:focus~.form-label,
.form-input:not(:focus):valid~.form-label {
    top: 1px;
    font-size: 11px;
    line-height: 2;
    letter-spacing: normal;
    color: #435466;
    width: calc(100% - 33px);
    background: #fff;
}

.select_custom {
    width: 100%;
    border: 0;
}

.jq-selectbox__select {
    background: none;
    border: 0!important;
    box-shadow: unset;
    height: 47px;
    border-bottom: 1px dashed #2F3441!important;
    border-radius: 0;
    padding-left: 0;
}

.jq-selectbox__select-text {
    font-style: normal;
    font-weight: 300;
    font-size: 30px;
    line-height: 38px;
    color: #474D5E;
}
.jq-selectbox li {
    min-height: 47px;
    font-weight: 300;
    font-size: 30px;
    line-height: 33px;
    padding: 10px 10px 12px;
}

.jq-selectbox__dropdown {
    background: #FFFFFF;
    border: 1px solid #CBCBCB;
    box-sizing: border-box;
    border-radius: 0px 0px 10px 10px;
    box-shadow: unset;
    margin: 0;
}

.jq-selectbox li.selected, .jq-selectbox li:hover {
    background: #DEDFEC;
    color: #474D5E;
}
.jq-selectbox__dropdown {
    top: 46px!important;
}

li.sel {
    display: none;
}
.form-item {
    max-width: 443px;
    width: 100%;
    margin: 0 auto;
}
.form-item {
    border: 0;
}

.regform .btn, .return_quest,.inviteform .btn {
  display: block;
  width: 100%;
  border-radius: 2px;
  background-color: #0278ff;
  text-align: center;
  color: #ffffff;
  font-size: 18px;
line-height: 22px;
margin-top:38px;
}
.popup .reg, .popup .invite {
    padding: 31px 43px 52px; 
}
input.required.err, textarea.required.err {
    outline: 1px solid #ef3a3f;
}

span.err-text {
    color:#ef3a3f;
    margin:10px 0;
    display:block;
}

.popup-thnx-inner{
  display:none;
  background: #FFFFFF;
	border-radius: 10px;
}
.popup-thnx-inner .buh p {
    font-style: normal;
    font-weight: 300;
    font-size: 35px;
    line-height: 44px;
    color: #474D5E;
}
.popup-thnx-inner .buh p span{
    display:block;
}


.popup-thnx-inner .buh p{
  margin-top: 20px;
}a.return_quest {
    padding: 15px 35px ;
}

.popup-thnx-inner{
  padding:0;
  height:auto;
}

.popup p{
font-style: normal;
font-weight: 300;
font-size: 22px;
line-height: 34px;
color: #474D5E;
}
.popup .title {
	font-style: normal;
	font-weight: 200;
	font-size: 35px;
	line-height: 44px;
	color: #474D5E;
    max-width: 440px;
    margin: 0 auto 40px;
}

.popup img{
  max-width:100%;
  
}
.popup .invite .popup-thnx-inner p {
    font-style: normal;
    font-weight: 300;
    font-size: 35px;
    line-height: 44px;
    color: #474D5E;
}
.invite  .form-item {
	max-width:509px;
	
	margin-bottom:18px;
}
.invite .primary-btn {margin-top:13px;}
.invite  .form-item > div:first-of-type {
    border-radius: 1px;
    border: solid 1px #e5e5e5;
}

.popup .title {
    font-size: 24px;
    line-height: 27px;
}

.popup p {
    font-size: 16px;
    line-height: 21px;
}

.jq-selectbox__select-text {
    font-size: 20px;
    line-height: 38px;
}

.jq-selectbox__select {
    height: 40px;
}

.jq-selectbox__dropdown {
    top: 39px!important;
}

.jq-selectbox li {
    font-size: 20px;
    line-height: 25px;
    min-height: 40px;
}
.regform .btn, .return_quest, .inviteform .btn {
    font-size: 14px;
    line-height: 17px;
}.popup .reg, .popup .invite {
    padding: 64px 37px;
}
.popup .reg, .popup .invite {
	width:90%;
}
.popup-thnx-inner .buh p {
    font-weight: 300;
    font-size: 24px;
    line-height: 27px;
}
.popup .invite {
    padding: 57px 29px 30px;
}

.top_line_l a img:last-child {
    display: block!important;
}

input.done, textarea.done {
    background: url(../img/done.png) no-repeat calc(100% - 10px) 18px;
    padding-right: 40px;
}

.block_chat_write textarea {
    margin-bottom: -7px;
}
#message-form {
    background-color: white;
}

.popup {
    position: absolute!important;
    background: none!important;
    padding: 0!important;
    max-width: none!important;
    font-family: Proxima Nova;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0px;
    text-align: left;
    color: #000000!important;
}

.popup p {
    font-family: Proxima Nova;
    font-size: 22px;
    font-style: normal !important;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0px;
    text-align: left !important;
    color: #000000!important;
}

.popup .title {
    color: #000000!important;
    font-family: Proxima Nova;
    font-style: normal;
    font-weight: 600;
    font-size: 45px;
    line-height: 58px;
    max-width: none;
}

.form-item {
    padding: 0 !important;
}
.popup .reg, .popup .invite {
    padding: 40px 37px;
    max-width: 750px !important;
}