/* Genesis Clinic — lead forms: the message that appears under a field that
   still needs filling, and the off-screen field used to catch form-stuffing
   scripts. Loaded after main-style.css. */

.ajax_form .lead-field-error {
	display: block;
	width: 100%;
	color: #c62828;
	font-size: 14px;
	line-height: 1.35;
	text-align: right;
	direction: rtl;
}

.ajax_form .lead-field-error:empty {
	display: none;
}

/* The pop-up and the in-page forms stack their inputs with a 20px gap — pull
   the message up so it reads as belonging to the field above it. */
.simple-popup .ajax_form .lead-field-error {
	margin: -14px 0 14px;
}

/* The questionnaire lays its fields out in a wrapping flex row. */
.quiz-form-step-result .lead-field-error {
	-webkit-flex: 0 0 100%;
	-ms-flex: 0 0 100%;
	flex: 0 0 100%;
	margin: -6px 0 0;
}

.ajax_form .input.error {
	-webkit-box-shadow: inset 0 0 0 1px #c62828;
	box-shadow: inset 0 0 0 1px #c62828;
}

.ajax_form .form-privacy .lead-field-error {
	margin-top: -12px;
	padding-right: 30px;
}

.lead-form-trap {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
