/**
 * Robertet Canada theme — forms.css
 *
 * The two WS Form forms, dressed as the forms they replace: "Footer Contact" as the old
 * Elementor form (white borderless fields, full-width navy button) and "Contact" as the old
 * WPForms form (pale bordered fields, a left-aligned button).
 *
 * WS Form draws its forms in the browser and loads its own stylesheet after the theme's,
 * so every rule here is scoped under .rc-form and marked important where WS Form sets the
 * same property. Written against WS Form Pro 1.10 and 1.12 markup (labels are styled by
 * class, never by tag: 1.12 changed the tag of group labels).
 */

.rc-form {
	text-align: left;
}
/* Hold each form's space before the browser has drawn it, so the page below does not jump. */
.rc-form--footer-contact { min-height: 305px; }
.rc-form--contact { min-height: 406px; }

.rc-form form.wsf-form .wsf-grid {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.rc-form form.wsf-form .wsf-tile {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.rc-form form.wsf-form .wsf-label {
	/* Each field keeps its label for screen readers; the old forms showed placeholders only. */
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}
.rc-form form.wsf-form .wsf-alert {
	margin: 10px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: inherit !important;
	font-size: 1rem !important;
}
.rc-form form.wsf-form .wsf-invalid-feedback {
	font-size: 13px !important;
}

/* ------------------------------------------------------------------ Footer Contact */
.rc-col > .rc-form--footer-contact {
	width: 60%;
	max-width: 60%;
	--ml: auto;
	--mr: auto;
}
.rc-form--footer-contact form.wsf-form .wsf-field-wrapper {
	margin-bottom: 10px !important;
}
.rc-form--footer-contact form.wsf-form .wsf-field-wrapper:last-child {
	margin-bottom: 0 !important;
}
.rc-form--footer-contact form.wsf-form input.wsf-field,
.rc-form--footer-contact form.wsf-form textarea.wsf-field {
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 11.25px !important;
	border: 0 !important;
	border-radius: 2px !important;
	background-color: #fff !important;
	box-shadow: none !important;
	color: #1f2124 !important;
	font-family: "Myriad Pro Regular", sans-serif !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
}
.rc-form--footer-contact form.wsf-form textarea.wsf-field {
	display: block !important;
	height: 94px !important;
	padding: 5px 14px !important;
	border-radius: 3px !important;
	resize: vertical;
}
.rc-form--footer-contact form.wsf-form input.wsf-field::placeholder,
.rc-form--footer-contact form.wsf-form textarea.wsf-field::placeholder {
	color: inherit;
	opacity: 0.6;
}
.rc-form--footer-contact form.wsf-form button.wsf-button {
	width: 100% !important;
	min-height: 40px !important;
	padding: 0 24px !important;
	border: 0 !important;
	border-radius: 3px !important;
	background-color: #0f334f !important;
	color: #fff !important;
	font-family: "PT Sans", sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
}

/* ------------------------------------------------------------------ Contact */
.rc-form--contact {
	padding: 10px 0 5px;    /* WPForms began its first field 10px down and ended 5px lower */
}
.rc-form--contact form.wsf-form .wsf-field-wrapper {
	margin-bottom: 20px !important;
}
.rc-form--contact form.wsf-form input.wsf-field,
.rc-form--contact form.wsf-form textarea.wsf-field {
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0.75em !important;
	border: 1px solid #ddd !important;
	border-radius: 2px !important;
	background-color: #fafafa !important;
	box-shadow: none !important;
	color: #666 !important;
	font-family: "PT Sans", sans-serif !important;
	font-size: 1rem !important;
	line-height: 1.65 !important;
}
.rc-form--contact form.wsf-form textarea.wsf-field {
	display: block !important;
	height: 120px !important;
}
.rc-form--contact form.wsf-form button.wsf-button {
	width: auto !important;
	padding: 10px 40px !important;
	border: 1px solid #0f334f !important;
	border-radius: 0 !important;
	background-color: #0f334f !important;
	color: #fff !important;
	font-family: "PT Sans", sans-serif !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	line-height: 1.65 !important;
	cursor: pointer;
}
.rc-form--contact form.wsf-form button.wsf-button:hover {
	border-color: #95c23d !important;
	background-color: #95c23d !important;
}
