/* Forms block + the Gravity Forms in the design (contact form .c_form = form 1, consultation step form
   .hsf-form = form 6). The theme turns Gravity Forms' own CSS off and the forms' markup already matches the
   design (wp-legacy.css / site.css style it); this file only adds the states the static design never shows:
   validation errors, the confirmation message, the AJAX spinner, and the calculator's send error. */

.wp-legacy :is(.c_form, .hsf-form) .gform_validation_errors {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid rgba(255, 46, 138, .35);
	background: rgba(255, 46, 138, .06);
}
.wp-legacy :is(.c_form, .hsf-form) .gform_validation_errors .gform_submission_error {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--px-pink, #ff2e8a);
}
.wp-legacy :is(.c_form, .hsf-form) .gform_validation_errors .gform-icon,
.wp-legacy :is(.c_form, .hsf-form) .gform_validation_errors ol { display: none; }
.wp-legacy :is(.c_form, .hsf-form) .gfield_error input,
.wp-legacy :is(.c_form, .hsf-form) .gfield_error textarea,
.wp-legacy :is(.c_form, .hsf-form) .gfield_error select { border-color: var(--px-pink, #ff2e8a) !important; }
.wp-legacy :is(.c_form, .hsf-form) .gfield_validation_message,
.wp-legacy :is(.c_form, .hsf-form) .validation_message {
	margin-top: 6px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--px-pink, #ff2e8a);
	background: none;
	border: 0;
	padding: 0;
}
.wp-legacy :is(.c_form, .hsf-form) .gform_confirmation_message {
	padding: 22px 24px;
	border-radius: 14px;
	background: rgba(46, 204, 113, .1);
	border: 1px solid rgba(46, 204, 113, .35);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}
.wp-legacy :is(.c_form, .hsf-form) .gform_ajax_spinner {
	width: 18px;
	height: 18px;
	margin-left: 10px;
	vertical-align: middle;
}
.wp-legacy :is(.c_form, .hsf-form) .gform_hidden,
.wp-legacy :is(.c_form, .hsf-form) .gform_validation_container { display: none !important; }

/* Calculator: message when the estimate could not be sent. */
.wp-legacy .est-sec .est-send-error { margin: 14px 0 0; }
