.popup {
    position: relative;
    top: auto;
    left: auto;
    margin: auto;
}
.text.error:before {top:-19px;}
.text.error:after { top: 3px;}
.text.error:before {
    content: attr(data-content)
}

.review-icon{
    width: 24px;
    height: 24px;
    background: url("/bitrix/templates/main/img/main-sprite.png") no-repeat;
    float: left;
}
.review-icon.bad{background-position: -264px -3px; margin-left: 4px;}
.review-icon.good{background-position: -231px -3px;}
#boss-review {
	margin: 10px 0;
}
.complaints2boss .boss-photo{
	width: 127px;
	height: 170px;
    /*background-image: url('images/boss.jpg');*/
    background-image: url('images/boss-5.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
}
.complaints2boss .float-left {
	width: 235px!important;
}
.complaints2boss .float-right {
	width: 333px!important;
}
.complaints2boss .box-reviews-img {
	max-width: 130px;
	max-height: 170px;
	box-shadow: none;
	margin: -6px 0 0 0;
}
.complaints2boss .box-reviews-author {
	margin-left: 159px;
	display: block;
}
.complaints2boss .box-reviews-author .name {
	font-size: 22px;
	font-weight: normal;
}
.complaints2boss .box-reviews-author .post {
	font-size: 14px;
	font-weight: normal;
}
.complaints2boss .popup-content .textarea textarea {
	height: 154px;
}
.complaints2boss .box-reviews-bubble {
	margin: 0 0 10px 145px;
	line-height: 18px;
}
/*style forms*/
.complaints2boss.popup {
	max-width: 635px;
}
.complaints2boss .box-reviews-author{
	line-height: 1;
}

.complaints2boss .popup-content .text input, .complaints2boss .popup-content .text input[type=tel]{
	box-shadow: none;
	border-radius: 0;
	background: #efefef;
	border: 0;
	padding: 15px 18px;
	margin-bottom: 20px;
	height: 50px;
	box-sizing: border-box;
	color: #999;
	font-family: "Open Sans";
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

.complaints2boss .popup-content .text.error	 input,
.complaints2boss .popup-content .text.error .cusel {
	background: #f69999;
	color: #fff;
}
.complaints2boss .text.error:before, .complaints2boss .text.error:after{
	display: none;
}
.complaints2boss .popup-content label{
	color: #515762;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase!important;
	margin-bottom: 0;
	margin-top: 0;
}
.complaints2boss .popup-content .textarea textarea{
	border-radius: 0;
	border: 0;
	background: #efefef;
	height: 140px;
	font-size: 14px;
	font-weight: 400;
	color: #999;
	padding: 15px 18px;
	line-height: 20px;
	margin-bottom: 25px;
	width: 100%;
	box-sizing: border-box;
}
.complaints2boss .popup-button{
	border-top: 0;
	padding: 1px 0;
	background: none;
	margin: 0;
}
.complaints2boss .popup-content .text{
	padding: 0;
	margin:0;
}
.complaints2boss .btn.btn-yellow{
	text-transform: uppercase;
	padding: 15px 30px;
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	color: #fff;
	border-radius: 0;
	border: 0;
	box-shadow: none;
	display: table;
	background: #2f3ca4;
	margin-bottom: 15px;
	box-sizing: border-box;
	margin-top: 20px;
	min-width: 235px;
	max-width: 100%;
}
.complaints2boss .btn.btn-yellow:hover{
	background: #384adc;
}
.complaints2boss .btn.btn-yellow:active{
	background: #182481;
}
.complaints2boss .popup-title{
	background: #384adc;
	border:0;
	text-transform: uppercase;
}
.complaints2boss .popup-title:after{
	display: none;
}
.complaints2boss .policy-text{
	font-size: 9px;
	padding-bottom: 15px;
	color: grey;
}

.complaints2boss form {
	margin-top: 40px;

}

.complaints2boss .popup-title {
	padding: 15px 40px 13px 20px;
	color: #fff;
	font-weight: bold;
	font-size: 16px;
	background: #384adc;
	border: 0;
	text-transform: none!important;
}
.complaints2boss .close {
	position: absolute;
	right: 12px;
	width: 30px;
	height: 30px;
	top: 15px;
	cursor: pointer;
	background: url(/bitrix/templates/main/img/close-2.png) no-repeat;
}

.complaints2boss .popup-content .required{
	color: inherit!important;
}
@media all and (max-width:600px) {
	complaints2boss.popup {
		max-width: 635px;
		width: 100% !important;
	}

	.complaints2boss .float-right {
		width: 100%!important;
	}
	.complaints2boss form {
		margin-top: 0;
	}
}

@media all and (max-width:500px) {
	.complaints2boss .boss-photo {
		width: 100%;
		height: 100%;
	}
	.complaints2boss .box-reviews-img {
		max-width: 100%;
		max-height: initial;
		height: 310px;
		box-shadow: none;
		margin: -6px 0 20px 0;
		overflow: hidden;
	}
	#boss-review {
		display: flex;
		flex-direction: column;
	}
	.complaints2boss .box-reviews-bubble {
		margin: 0;
		max-width: 100%;
		line-height: 18px;
		margin-bottom: 20px;
	}
	.complaints2boss .box-reviews-author {
		margin-left: 0;
		display: block;
		margin-bottom: 20px;
	}

	.box-reviews-crn {
		display: none;
	}
}

@media all and (max-width:400px) {
	div.complaints2boss .popup-content .textarea textarea,
	div.complaints2boss .popup-content .text input,
	div.complaints2boss .popup-content .text input[type=tel] {
		font-size: 16px;
	}
}

/* END style forms*/
