/* AJAX contact form additions imported from the WPinProgress form. */
.ajax-form .control {
	display: block;
	position: relative;
	padding: 0 0 0 40px !important;
	margin: 25px 0 0;
	cursor: pointer;
	text-align: left;
	font-size: 14px;
	font-weight: 600;
}

.ajax-form .control span {
	margin: 0;
	padding: 0;
	font-style: italic;
	display: block;
	font-weight: 300;
}

.ajax-form label.control input {
	position: absolute;
	z-index: 1;
	opacity: 0;
	top: 4px;
	left: 0;
	height: 20px;
	width: 20px;
	cursor: pointer;
}

.ajax-form .control-indicator {
	position: absolute;
	top: 4px;
	left: 0;
	height: 20px;
	width: 20px;
	background: #fff;
	border: 1px solid #e6e6e6;
	cursor: pointer;
	transition: color .3s ease, background-color .3s ease;
}

.ajax-form .control input:checked ~ .control-indicator {
	background: #5faae3;
	border-color: #5faae3;
}

.ajax-form .control-indicator:after {
	content: '';
	position: absolute;
	display: none;
	left: 8px;
	top: 4px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ajax-form .control input:checked ~ .control-indicator:after {
	display: block;
}

.ajax-form.input-error input[type='text'],
.ajax-form.input-error input[type='email'],
.ajax-form.input-error textarea {
	border-color: #b93333 !important;
}

.ajax-form.input-error input.is-filled,
.ajax-form.input-error textarea.is-filled {
	border-color: #ddd !important;
}

.ajax-form.input-error .control a,
.ajax-form.input-error .control span,
.ajax-form .mail-error {
	color: #b93333;
}

.ajax-form .mail-animation {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin-bottom: 20px;
	overflow: hidden;
}

.ajax-form .mail-line {
	flex-shrink: 0;
	height: 2px;
	width: calc(100% - 100px);
	background-image: linear-gradient(to right, #000 30%, transparent 0%);
	background-size: 15px 2px;
	background-repeat: repeat-x;
}

.ajax-form .mail-sending,
.ajax-form .mail-success {
	position: relative;
	width: 40px;
	height: 30px;
	border-radius: 5%;
	border: 2px solid #000;
}

.ajax-form .mail-sending {
	animation: tip-mail-shrink .3s linear, tip-mail-move 1.2s .3s linear forwards;
}

.ajax-form .mail-sending:before,
.ajax-form .mail-sending:after,
.ajax-form .mail-success:after {
	content: '';
	position: absolute;
}

.ajax-form .mail-sending:after {
	bottom: 5px;
	left: 5px;
	width: 15px;
	height: 4px;
	border-top: 2px solid #000;
	border-bottom: 2px solid #000;
}

.ajax-form .mail-sending:before {
	top: 5px;
	right: 5px;
	width: 7px;
	height: 6px;
	background: #000;
}

.ajax-form .mail-success {
	border-color: #417ca4;
	animation: tip-mail-success-pop .3s .4s linear forwards;
}

.ajax-form .message-sent {
	text-align: center;
}

.ajax-form .mail-success:after {
	bottom: 12px;
	left: 11px;
	width: 15px;
	height: 8px;
	border-left: 2px solid #417ca4;
	border-bottom: 2px solid #417ca4;
	transform: rotate(-45deg);
	animation: tip-mail-success-check .3s .4s linear forwards;
}

@keyframes tip-mail-shrink {
	50% { transform: scale(.5); opacity: .5; }
}

@keyframes tip-mail-move {
	100% { transform: translateX(calc(100vw - 40px)) rotateY(90deg); opacity: 0; }
}

@keyframes tip-mail-success-pop {
	50% { transform: scale(1.5); background: #417ca4; }
	100% { background: #417ca4; }
}

@keyframes tip-mail-success-check {
	100% {
		border-left-color: #fff;
		border-bottom-color: #fff;
	}
}
