/* Fluent Forms, dressed as the Elementor forms it replaced.
 *
 * The five forms on the site were Elementor Pro widgets. Their fields are now
 * Fluent Forms, which ships its own markup; these rules restate the field
 * styling Elementor had generated so the forms look unchanged.
 *
 * Only the four placeholder-style forms are styled here. The pledge form on
 * Sustaining Brothers has its own look, written into that page's custom CSS,
 * and must not inherit any of this.
 */

.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-el-group { margin-bottom: 20px; }

/* Fluent Forms emits an empty paragraph above the fields; it is invisible but
   its margin is not. */
.elementor .frm-fluent-form p:empty { display: none; }
/* Fluent Forms already hides the label when a field is set to hide it; the
   pledge form keeps its labels, and they carry that form's styling. */
.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-el-form-hide_label .ff-el-input--label { display: none; }
/* Elementor gutters a form row by widening the wrapper and padding the cells,
   which is what makes a 33/66 split land on 241px and 503px at this width. */
.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-t-container {
	display: flex;
	gap: 0;
	margin-inline: -10px;
	width: calc(100% + 20px);
}

.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-t-cell {
	box-sizing: border-box;
	flex-grow: 0;
	flex-shrink: 0;
	padding: 0 10px;
}

.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-el-form-control {
	background-color: #F2F3EC;
	border: 1px solid #C3D1C7;
	border-radius: 0;
	box-shadow: none;
	color: #000;
	font-family: "Red Hat Display", Sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	min-height: 47px;
	padding: 6px 16px;
	width: 100%;
}

.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) textarea.ff-el-form-control { height: 126px; min-height: 126px; }

.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-el-form-control::placeholder {
	color: #000;
	font-weight: 500;
	opacity: 1;
}

.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-el-form-control:focus {
	border-color: #C3D1C7;
	box-shadow: none;
	outline: 2px solid #073C26;
	outline-offset: 1px;
}

.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-btn-submit {
	background-color: #CE202E;
	border: 0;
	border-radius: 10px;
	color: #FFF;
	font-family: "Red Hat Display", Sans-serif;
	font-size: 16px;
	font-weight: 700;
	height: 40px;
	line-height: 20px;
	min-width: 137px;
	padding: 10px 20px;
	transition: background-color .3s;
}

/* Production leaves a reCAPTCHA v3 field group above the button. It renders as
   empty space, and the footer's proportions depend on it, so it is reserved
   here rather than left out. */
.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-el-group:has(.ff-btn-submit) { margin-top: 24px; margin-bottom: 0; }

/* Only the footer form carried the reCAPTCHA. */
.elementor .fluent_form_3 .ff-el-group:has(.ff-btn-submit)::before {
	content: "";
	display: block;
	height: 31px;
	margin-bottom: 20px;
}

/* Below Elementor's mobile breakpoint the row stacks and the button stretches. */
@media (max-width: 767px) {
	.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-t-container { display: block; margin-inline: 0; width: 100%; }
	.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-t-cell { flex-basis: auto !important; padding: 0; }
	.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-t-cell:not(:last-child) { margin-bottom: 20px; }
	.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-btn-submit { width: 100%; }
}

.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-btn-submit:hover { background-color: #073C26; }

/* Validation and confirmation copy sits on the same dark panel as the form. */
.elementor :is(.fluent_form_3, .fluent_form_4, .fluent_form_5, .fluent_form_6) .ff-el-is-error .text-danger { color: #FFBF3C; }
.elementor .ff-message-success { color: #FFF; }

/* The pledge form's own page CSS keys off Elementor's group class; Fluent
   Forms' groups carry it too (set on the fields themselves), so only the
   button needs saying here. */
.elementor .fluent_form_7 .ff-btn-submit {
	height: 40px;
	line-height: 20px;
	background-color: #CE202E;
	border: 0;
	border-radius: 10px;
	color: #FFF;
	font-family: "Red Hat Display", Sans-serif;
	font-size: 16px;
	font-weight: 700;
	padding: 10px 20px;
}

.elementor .fluent_form_7 .ff-btn-submit:hover { background-color: #073C26; }

/* The pledge form's own page CSS was written against Elementor's markup and
   reaches most of Fluent Forms' too. These are the pieces it cannot see: the
   label and field metrics Elementor's form stylesheet used to supply, and the
   radio rows, which Fluent Forms names differently. */
.elementor .fluent_form_7 .ff-el-input--label { display: block; margin-bottom: 0; }

/* Elementor's form stylesheet set the label's line-height; the page's own CSS
   sets the size, including the 16px it drops to on small screens — but it
   names a class Fluent Forms does not use, so that one is restated here. */
.elementor .fluent_form_7 .ff-el-input--label label { line-height: 1; }

@media (max-width: 480px) {
	.elementor .fluent_form_7 .ff-el-input--label label { font-size: 16px; }
}

/* Elementor gutters this form by 10px, taken back on the wrapper. Its fields
   wrapper is a flex container, so the row margins never collapse into each
   other — which is where the extra space above Send comes from. */
.elementor .elementor-element-4f5ee2b form.fluent_form_7 > fieldset {
	display: flex;
	flex-direction: column;
	width: calc(100% + 10px);
}

.elementor .fluent_form_7 .ff-el-form-control {
	color: #1f2124;
	font-family: "Roboto", Sans-serif;
	line-height: 1.4;
	min-height: 40px;
}

/* Elementor stacked the options in a flex column, where the 10px margins do
   not collapse into each other. */
.elementor .fluent_form_7 .ff-el-input--content:has(.ff-el-form-check) { display: flex; flex-direction: column; margin: 0; }

.elementor .fluent_form_7 .ff-el-form-check {
	align-items: center;
	display: flex;
	gap: 12px;
	margin: 10px 0;
}

/* The page's own CSS styles every label in this container at 17px; the radio
   options are not that kind of label, and need to outrank it. */
.elementor-1908 .elementor-element-194e74c .fluent_form_7 .ff-el-form-check-label {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
}

/* The child theme pinned the footer's message placeholder to the bottom of the
   box; its selector named Elementor's field id, which no longer exists. */
.elementor .f-form textarea.ff-el-form-control::placeholder {
	bottom: 5px;
	position: absolute;
	top: auto;
}

/* Elementor's own 10px field gap survived under the page's 28px override for
   the button row only, putting 38px above Send rather than 28. */
.elementor .fluent_form_7 .ff-el-group:has(.ff-btn-submit) { margin-top: 10px; }

/* Elementor's fields wrapper pulled its last row back with a negative margin.
   Fluent Forms writes `margin: 0 !important` into the fieldset's style
   attribute, which no stylesheet can override, so the same few pixels come off
   the form's padding instead. */
.elementor .elementor-element-4f5ee2b form.fluent_form_7 { padding-bottom: 26px; }

@media (max-width: 480px) {
	.elementor .elementor-element-4f5ee2b form.fluent_form_7 { padding-bottom: 12px; }
}
