.tab-agent {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.tab-agent__text-wrapper{
	padding-right:16px;
}

.tab-agent__title {
  font-size: 28px;
  text-transform: uppercase;
  margin: 0;
}

.tab-agent__subtitle {
  color: #6f6f6f;
  margin:8px 0 0 0;
  font-size: 15px;
}

.tab-agent__form {
	flex-shrink:0;
	width:435px;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content:center;
	position:relative;
}


.tab-agent__fields{
	display:none;
	height:40px;
}
.tab-agent__fields_active{
	display:flex;
}
.tab-agent__input {
	padding:0 16px;
	font-size: 15px;
	border-radius: 4px 0 0 4px;
	width: 305px;
	border: 1px solid #acacac;
	border-right-width: 0;
	box-sizing:border-box;
	height:100%;
}
.tab-agent__input:invalid {
	outline:none;
	box-shadow:none;
}

.tab-agent__button {
  border-radius: 0 4px 4px 0;
  background: #ad5a55;
  border: none;
  outline: none;
  color: white;
  width: 130px;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  height: 100%;
  transition: 0.3s;
  cursor: pointer;
  display:flex;
  justify-content:center;
  align-items:center;
}


.tab-agent__button:hover {
  background-color: #814340;
}


.tab-agent__result {
	display:none;
	width:100%;
	position:relative;
	
}

.tab-agent__result_active {
	display:block;
}

.tab-agent__tip {
	position:Absolute;
	bottom:-20px;
	right:0;
	display: flex;
	justify-content: flex-end;
}

.tab-agent__tip a {
	font-size: 11px;
	text-decoration: none;
	color: #666;
	border-bottom: 1px dashed #666;
}

.tab-agent__message {
	height: 40px;
	background: #999;
	border-radius: 4px;
	color: #fff;
	display: flex;
	align-items: center;
	padding: 0 16px;
	position:relative;
}
.tab-agent__message:after {
	position: absolute;
	top: 50%;
	margin-top: -6px;
	right: 20px;
	width: 19px;
	height: 13px;
	background: url('assets/tab-agent/icon-tick.svg') center center no-repeat;
	background-size: auto;
	background-size: contain;
	content: '';
}
.tab-agent__result_success .tab-agent__message{
  background:#58a850;
}


@media screen and (max-width: 1366px) {

}

@media screen and (max-width: 1024px) {
	.tab-agent {
		flex-direction:column;
	}
	.tab-agent__title {
		font-size: 20px;
		text-align: center;
	}
	.tab-agent__subtitle{
		text-align:center;
	}
	.tab-agent__form{
		width:100%;
		margin-top:16px;
	}
	
	.tab-agent__fields{
		flex-direction:column;
		width:100%;
		height:auto;
	}
	.tab-agent__input{
		height:40px;
		width:100%;
		border:1px solid #ccc;
		border-radius:4px;
		text-align:center;
	}
	.tab-agent__button{
		width:100%;
		height:40px;
		margin-top:8px;
		border-radius:4px;
	}
	.tab-agent__message{
		justify-content: center;
	}
}

@media screen and (max-width: 768px) {
	.tab-agent__title {
		font-size: 14px;
	}
	.tab-agent__subtitle {
		font-size: 12px;
	}
	.tab-agent__input {
		font-size: 13px;
	}
	.tab-agent__button {
		font-size: 13px;
	}
}

@media screen and (max-width: 480px) {
	.tab-agent__message {
		font-size:13px;
		padding:0 32px;
		text-align:center;
	}
	.tab-agent__message:after {
		right: 16px;
		width: 16px;
		height: 16px;
	}
}
