/*
 * Bloomfield forms (Fluent Forms) dressed like the old 123FormBuilder / Wix forms.
 *
 * Each form picks a look with its "Form CSS Class" (Fluent Forms > form > Settings > Form Layout):
 *   bf-ff bf-ff--apply    Application form: Open Sans, grey, white card with a soft shadow, 900px
 *   bf-ff bf-ff--grey     Field Trip + Photo Release: Open Sans, grey button, card, 640px
 *   bf-ff bf-ff--navy     Allergy, Sunscreen, Pick-Up: Lato, navy button, no card, 640px
 *   bf-ff bf-ff--blue     Contact Information: Trebuchet MS, blue button, card, 780px
 *   bf-ff bf-ff--contact  Contact Us: coral boxes on the photo (the Wix form)
 * Colours, fonts and sizes are the 123FormBuilder theme values captured from the live forms.
 * Per-field helpers (Advanced > Container Class): bf-bold (bold label), bf-w-50 / bf-w-70 / bf-w-90
 * (narrower box), bf-indent, bf-phone, bf-full-name, bf-addr-row3 (City | Postal | Country in one row).
 */

@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/open-sans-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/open-sans-700.woff2') format('woff2');
}
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/lato-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/lato-700.woff2') format('woff2');
}

/* ------------------------------------------------------------ theme values */

.bf-ff--apply,
.bf-ff--grey {
	--ff-font: 'Open Sans', sans-serif;
	--ff-size: 14px;
	--ff-text: #4c4c4c;
	--ff-label: #4c4c4c;
	--ff-help: #aaaaaa;
	--ff-help-size: 12px;
	--ff-border: #cccccc;
	--ff-border-w: 1px;
	--ff-radius: 3px;
	--ff-hover-border: #0099cc;
	--ff-hover-bg: transparent;
	--ff-focus-bg: rgba(0, 153, 204, 0.1);
	--ff-focus-border: #0099cc;
	--ff-pad-v: 8px;
	--ff-pad-h: 8px;
	--ff-star: #ff0000;
	--ff-error: #fa4848;
	--ff-btn-bg: #4c4c4c;
	--ff-btn-fg: #ffffff;
	--ff-btn-hover-bg: #707070;
	--ff-btn-hover-fg: #ffffff;
	--ff-btn-size: 14px;
	--ff-btn-weight: 400;
	--ff-btn-pad: 8px 40px;
	--ff-width: 640px;
	--ff-card-bg: #ffffff;
	--ff-shadow: 0 15px 32px 0 rgba(0, 0, 0, 0.05);
	--ff-cell-pad: 8px;
}
.bf-ff--apply {
	--ff-border-w: 2px;
	--ff-radius: 5px;
	--ff-pad-v: 10px;
	--ff-pad-h: 5px;
	--ff-width: 900px;
	--ff-cell-pad: 6px;
}
.bf-ff--navy {
	--ff-font: 'Lato', sans-serif;
	--ff-size: 16px;
	--ff-text: #2a2a2a;
	--ff-label: #2a2a2a;
	--ff-help: #808080;
	--ff-help-size: 14px;
	--ff-border: #a0aec0;
	--ff-border-w: 1px;
	--ff-radius: 3px;
	--ff-hover-border: #a0aec0;
	--ff-hover-bg: #edf2f7;
	--ff-focus-bg: #edf2f7;
	--ff-focus-border: #a0aec0;
	--ff-pad-v: 8px;
	--ff-pad-h: 8px;
	--ff-star: #ff0000;
	--ff-error: #fa4848;
	--ff-btn-bg: #0142a2;
	--ff-btn-fg: #ffffff;
	--ff-btn-hover-bg: #002151;
	--ff-btn-hover-fg: #ffffff;
	--ff-btn-size: 16px;
	--ff-btn-weight: 700;
	--ff-btn-pad: 8px 30px;
	--ff-width: 640px;
	--ff-card-bg: #ffffff;
	--ff-shadow: none;
	--ff-cell-pad: 8px;
}
.bf-ff--blue {
	--ff-font: 'Trebuchet MS', Helvetica, sans-serif;
	--ff-size: 14px;
	--ff-text: #000000;
	--ff-label: #000000;
	--ff-help: #aaaaaa;
	--ff-help-size: 12px;
	--ff-border: #cccccc;
	--ff-border-w: 1px;
	--ff-radius: 3px;
	--ff-hover-border: #ff7c00;
	--ff-hover-bg: transparent;
	--ff-focus-bg: rgba(255, 190, 127, 0.5);
	--ff-focus-border: #ff7c00;
	--ff-pad-v: 8px;
	--ff-pad-h: 8px;
	--ff-star: #1364d1;
	--ff-error: #ff0000;
	--ff-btn-bg: #1ca5ef;
	--ff-btn-fg: #000000;
	--ff-btn-hover-bg: #ff7c00;
	--ff-btn-hover-fg: #000000;
	--ff-btn-size: 14px;
	--ff-btn-weight: 700;
	--ff-btn-pad: 8px 40px;
	--ff-width: 780px;
	--ff-card-bg: #fdfdfc;
	--ff-shadow: 0 15px 32px 0 rgba(0, 0, 0, 0.05);
	--ff-cell-pad: 8px;
}

/* --------------------------------------------------------------- the card */

.fluentform.bf-ff:not(.bf-ff--contact) {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ff-width);
	margin: 0 auto;
	padding: 20px 12px;
	background: var(--ff-card-bg);
	box-shadow: var(--ff-shadow);
	font-family: var(--ff-font);
	font-size: var(--ff-size);
	line-height: 1.2;
	color: var(--ff-text);
	text-align: left;
}
.bf-form-section {
	background: #fff;
}
.bf-ff .frm-fluent-form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

/* Field rows: 123FormBuilder spacing (cell padding 6-8px, label 10px above / 8px below). */
.bf-ff:not(.bf-ff--contact) .ff-el-group {
	margin: 0;
	padding: var(--ff-cell-pad);
}
.bf-ff:not(.bf-ff--contact) .ff-t-container {
	gap: 0;
	margin: 0;
}
.bf-ff:not(.bf-ff--contact) .ff-t-container > .ff-t-cell {
	padding: 0;
}
.bf-ff:not(.bf-ff--contact) .ff-t-container .ff-el-group {
	padding-left: var(--ff-cell-pad);
	padding-right: var(--ff-cell-pad);
}
.bf-ff .ff-name-field-wrapper .ff-t-container .ff-el-group,
.bf-ff .ff-field_container .ff-t-container .ff-el-group {
	padding: 0 !important;
}
.bf-ff .ff-name-field-wrapper .ff-t-container,
.bf-ff .ff-field_container .ff-t-container {
	display: flex;
	gap: calc(var(--ff-cell-pad) * 2);
}
.bf-ff .ff-field_container .ff-t-container + .ff-t-container,
.bf-ff .ff-field_container .ff-el-group + .ff-el-group {
	margin-top: calc(var(--ff-cell-pad) + 2px);
}
.bf-ff .ff-name-field-wrapper,
.bf-ff .bf-name-group {
	margin: 0;
	padding: var(--ff-cell-pad);
}
.bf-ff .bf-name-group .ff-name-field-wrapper {
	padding: 0;
}

/* Labels */
.bf-ff:not(.bf-ff--contact) .ff-el-input--label {
	margin: 0;
	padding: 10px 0 8px;
	display: block;
}
.bf-ff:not(.bf-ff--contact) .ff-el-input--label label {
	font-family: var(--ff-font);
	font-size: var(--ff-size);
	font-weight: 400;
	line-height: 1.2;
	color: var(--ff-label);
	margin: 0;
}
.bf-ff .bf-name-group.bf-bold > .ff-el-input--label label,
.bf-ff .ff-el-group.bf-bold > .ff-el-input--label label,
.bf-ff .ff-field_container.bf-bold > .ff-el-input--label label {
	font-weight: 700;
}
.fluentform.bf-ff .ff-el-input--label.ff-el-is-required.asterisk-right label::after {
	content: '*';
	color: var(--ff-star);
	margin-left: 0;
	font-weight: 400;
}
.bf-ff .ff-el-help-message,
.bf-ff .ff-el-help-message.ff_ahm {
	font-family: var(--ff-font);
	font-size: var(--ff-help-size);
	font-style: normal;
	line-height: 1.2;
	color: var(--ff-help);
	margin: -4px 0 6px;
	padding: 0;
}

/* Inputs */
.bf-ff:not(.bf-ff--contact) .ff-el-form-control {
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: var(--ff-pad-v) var(--ff-pad-h);
	font-family: var(--ff-font);
	font-size: var(--ff-size);
	line-height: 1.2;
	color: var(--ff-text);
	background-color: transparent;
	border: var(--ff-border-w) solid var(--ff-border);
	border-radius: var(--ff-radius);
	box-shadow: none;
	transition: border-color 0.2s, background-color 0.2s;
}
.bf-ff:not(.bf-ff--contact) .ff-el-form-control::placeholder {
	color: #9a9a9a;
	opacity: 1;
}
.bf-ff:not(.bf-ff--contact) .ff-el-form-control:hover {
	border-color: var(--ff-hover-border);
	background-color: var(--ff-hover-bg);
}
.bf-ff:not(.bf-ff--contact) .ff-el-form-control:focus {
	outline: 2px solid var(--ff-focus-border);
	outline-offset: 0;
	border-color: var(--ff-focus-border);
	background-color: var(--ff-focus-bg);
}
.bf-ff:not(.bf-ff--contact) textarea.ff-el-form-control {
	min-height: 74px;
	resize: vertical;
}
.bf-ff:not(.bf-ff--contact) select.ff-el-form-control {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 32px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0h12L6 7z' fill='%23888'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
/* Calendar icon in date boxes, like 123FormBuilder */
.bf-ff:not(.bf-ff--contact) input.ff-el-datepicker,
.bf-ff:not(.bf-ff--contact) input.flatpickr-input {
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Crect x='1.5' y='3' width='15' height='13.5' rx='1.5' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3Cpath d='M1.5 7h15' stroke='%23888' stroke-width='1.5'/%3E%3Cpath d='M5 1v4M13 1v4' stroke='%23888' stroke-width='1.5'/%3E%3Ccircle cx='6' cy='11' r='1' fill='%23888'/%3E%3Ccircle cx='9' cy='11' r='1' fill='%23888'/%3E%3Ccircle cx='12' cy='11' r='1' fill='%23888'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
}

/* Radio buttons */
.bf-ff:not(.bf-ff--contact) .ff-el-form-check {
	margin: 0 0 8px;
}
.bf-ff:not(.bf-ff--contact) .ff-el-form-check-label {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	font-family: var(--ff-font);
	font-size: var(--ff-size);
	color: var(--ff-text);
	line-height: 1.3;
	cursor: pointer;
}
.bf-ff:not(.bf-ff--contact) .ff-el-form-check-input {
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	flex: 0 0 16px;
	accent-color: #0099cc;
}
.bf-ff .ff_list_inline .ff-el-form-check {
	display: inline-block;
	margin-right: 24px;
}
.bf-ff .bf-radio-long .ff-el-form-check {
	padding-left: 24px;
	margin-bottom: 14px;
}

/* Text, headings and the header picture */
.bf-ff .ff-custom_html p {
	margin: 0 0 10px;
	font-size: var(--ff-size);
	line-height: 1.2;
	color: var(--ff-label);
}
.bf-ff--grey .ff-custom_html p,
.bf-ff--grey .ff-custom_html p.bf-ff-dark {
	color: #000;
	font-size: 14px;
	line-height: 1.35;
}
.bf-ff--navy .ff-custom_html p {
	color: #000;
}
.bf-ff .bf-ff-gap-before {
	margin-top: 14px !important;
}
.bf-ff .bf-ff-spacer {
	margin: 0 !important;
	height: 24px;
	line-height: 24px;
}
.bf-ff .bf-ff-head {
	text-align: center;
}
.bf-ff .bf-ff-logo {
	margin: 0 0 18px !important;
	text-align: center;
}
.bf-ff .bf-ff-logo img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	vertical-align: top;
}
.bf-ff .bf-ff-title {
	margin: 0 0 6px;
	font-family: var(--ff-font);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: #000;
	text-align: center;
}
.bf-ff--navy .bf-ff-title {
	color: #000;
}
.bf-ff .bf-ff-title--bold {
	font-weight: 700;
	color: #2a2a2a;
}
.bf-ff--blue .bf-ff-title {
	font-size: 28px;
}
.bf-ff--grey .bf-ff-title,
.bf-ff--apply .bf-ff-title {
	font-size: 30px;
}
.bf-ff .bf-ff-section :is(h2, h3) {
	margin: 12px 0 4px;
	font-family: var(--ff-font);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	color: #000;
	letter-spacing: 0;
}
.bf-ff--blue .bf-ff-section :is(h2, h3) {
	font-size: 20px;
}
.bf-ff .bf-ff-section--small :is(h2, h3) {
	font-size: 17px;
	margin-top: 12px;
}

/* Application form header (from the old form: Arial Black, green school name) */
.bf-ff .bf-ff-apply-head {
	padding: 6px 0 2px;
	text-align: center;
	font-family: 'Arial Black', 'Avant Garde', 'Arial', sans-serif;
	color: #000;
}
.bf-ff .bf-ff-apply-head p {
	margin: 0 0 15px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 900;
	color: #000;
}
.bf-ff .bf-ff-apply-head__name {
	margin: 22px 0 22px;
	font-family: inherit;
	font-size: 31px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.1;
	color: #008000;
}
.bf-ff .bf-ff-apply-head__name small {
	font-size: 13pt;
}
.bf-ff .bf-ff-apply-head .bf-ff-apply-head__title {
	margin: 50px 0 32px;
	font-size: 31pt;
	line-height: 1.1;
}

/* Narrower boxes */
.bf-ff .bf-w-50 .ff-el-input--content {
	max-width: 50%;
}
.bf-ff .bf-w-70 .ff-el-input--content {
	max-width: 70%;
}
.bf-ff .bf-w-90 .ff-el-input--content {
	max-width: 90%;
}
.bf-ff .bf-indent {
	padding-left: 38px !important;
}

/* Address: Street Address and Line 2 full width, then City | Region / Postal | Country.
   bf-addr-row3 (Contact Information, no Region): City | Postal | Country in one row. */
.bf-ff .fluent-address {
	margin: 0;
	padding: var(--ff-cell-pad, 8px);
}
.bf-ff .fluent-address > .ff-el-input--content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px calc(var(--ff-cell-pad, 8px) * 2);
}
.bf-ff .fluent-address > .ff-el-input--content > .ff-t-container {
	display: contents;
}
.bf-ff .fluent-address .ff-t-cell {
	width: auto !important;
	min-width: 0;
	padding: 0 !important;
}
.bf-ff .fluent-address .ff-t-cell:has([data-key_name='address_line_1']),
.bf-ff .fluent-address .ff-t-cell:has([data-key_name='address_line_2']) {
	grid-column: 1 / -1;
}
.bf-ff .fluent-address.bf-addr-row3 > .ff-el-input--content {
	grid-template-columns: 1fr 1fr 1.36fr;
}
.bf-ff .fluent-address .ff-el-group {
	margin: 0 !important;
	padding: 0 !important;
}
.bf-ff .fluent-address.bf-bold > .ff-el-input--label label {
	font-weight: 700;
}

/* Signature pad */
.bf-signature {
	position: relative;
	box-sizing: border-box;
	height: 100px;
	border: var(--ff-border-w, 1px) solid var(--ff-border, #ccc);
	border-radius: var(--ff-radius, 3px);
	background: #fff;
	touch-action: none;
}
.bf-ff--apply .bf-signature {
	height: 74px;
	border-width: 1px;
	border-radius: 0;
}
.bf-signature__pad {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: crosshair;
	z-index: 2;
}
.bf-signature__hint {
	position: absolute;
	left: 7%;
	right: 7%;
	bottom: 20%;
	width: 86%;
	height: 70%;
	pointer-events: none;
	z-index: 1;
}
.bf-signature.is-signed .bf-signature__hint path:not(:first-child),
.bf-signature.is-signed .bf-signature__hint g {
	display: none;
}
.bf-signature__clear {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 3;
	padding: 2px 10px;
	font: 12px/1.6 var(--ff-font, sans-serif);
	color: #555;
	background: #f3f3f3;
	border: 1px solid #ccc;
	border-radius: 3px;
	cursor: pointer;
}
.bf-signature__clear:hover,
.bf-signature__clear:focus-visible {
	background: #e6e6e6;
}
.bf-signature__value {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}
.bf-ff .ff-el-is-error .bf-signature {
	border-color: var(--ff-error);
}

/* Errors */
.bf-ff .ff-el-is-error .ff-el-form-control {
	border-color: var(--ff-error) !important;
}
.bf-ff .error.text-danger {
	margin-top: 4px;
	font-family: var(--ff-font);
	font-size: 12px;
	line-height: 1.2;
	color: var(--ff-error);
}
.bf-form-notice {
	margin: 0 var(--ff-cell-pad, 8px) 12px;
	padding: 10px 12px;
	font-family: var(--ff-font, sans-serif);
	font-size: 14px;
	color: #fff;
	background: var(--ff-error, #fa4848);
	border-radius: 3px;
}
.bf-form-notice[hidden] {
	display: none;
}

/* Submit button */
.bf-ff:not(.bf-ff--contact) .ff_submit_btn_wrapper {
	margin: 10px 0 0;
	padding: 0 var(--ff-cell-pad);
	text-align: center;
}
.bf-ff:not(.bf-ff--contact) .ff-btn-submit,
.bf-ff:not(.bf-ff--contact) .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style) {
	display: inline-block;
	min-width: 0;
	padding: var(--ff-btn-pad);
	font-family: var(--ff-font);
	font-size: var(--ff-btn-size);
	font-weight: var(--ff-btn-weight);
	line-height: 2;
	color: var(--ff-btn-fg) !important;
	background-color: var(--ff-btn-bg) !important;
	border: 1px solid transparent;
	border-radius: 3px;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	transition: background-color 0.2s, color 0.2s;
	cursor: pointer;
}
.bf-ff:not(.bf-ff--contact) .ff-btn-submit:hover,
.bf-ff:not(.bf-ff--contact) .ff-btn-submit:focus-visible,
.bf-ff:not(.bf-ff--contact) .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style):hover,
.bf-ff:not(.bf-ff--contact) .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style):focus-visible {
	color: var(--ff-btn-hover-fg) !important;
	background-color: var(--ff-btn-hover-bg) !important;
	opacity: 1;
}
.bf-ff .ff-btn-submit.bf-submit-full {
	display: block;
	width: 100%;
}
.bf-ff--apply .ff-btn-submit {
	padding-top: 6px !important;
	padding-bottom: 6px !important;
	font-size: 12px !important;
}

/* Thank-you message */
.bf-ff .ff-message-success {
	margin: 20px var(--ff-cell-pad, 8px);
	padding: 24px 20px;
	font-family: var(--ff-font, inherit);
	font-size: 16px;
	line-height: 1.4;
	text-align: center;
	color: var(--ff-text, #333);
	background: #fff;
	border: 1px solid var(--ff-border, #ccc);
	box-shadow: none;
}
.bf-ff .ff-message-success p {
	margin: 0;
}

/* Honeypot stays invisible (Fluent Forms adds it). */
.bf-ff .ff_force_hide,
.bf-ff .ff-hidden {
	display: none !important;
}

/* ------------------------------------------- Contact Us (the Wix contact form) */

.bf-contact-form {
	margin-top: 18px;
}
.bf-ff--contact {
	font-family: var(--wp--preset--font-family--body, 'Jost', sans-serif);
}
.bf-ff--contact .ff-el-group {
	margin: 0 0 15px;
	padding: 0;
}
/* The three Wix boxes show their name inside the box (placeholder), so their labels are set to
   "Hide Label" in the form editor and kept for screen readers only. A field the school adds later
   keeps its visible label (Fluent's default), so it never appears as an empty box. */
.bf-ff--contact .ff-el-form-hide_label > .ff-el-input--label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
.bf-ff--contact .ff-el-input--label {
	margin: 0 0 6px;
	padding: 0;
}
.bf-ff--contact .ff-el-input--label label {
	margin: 0;
	font-size: 16px;
	font-style: italic;
	font-weight: 300;
	color: #e6535c;
}
.bf-ff--contact .ff-el-form-control {
	box-sizing: border-box;
	width: 100%;
	height: 57px;
	margin: 0;
	padding: 6px 20px 6px 43px;
	font-family: inherit;
	font-size: 16px;
	font-style: italic;
	font-weight: 300;
	color: #e6535c;
	background: rgba(255, 255, 255, 0.55);
	border: 4px solid #fe6060;
	border-radius: 0;
	box-shadow: none;
	transition: border-color 0.4s, background-color 0.4s;
}
.bf-ff--contact textarea.ff-el-form-control {
	height: 127px;
	padding-top: 14px;
	resize: vertical;
}
.bf-ff--contact .ff-el-form-control::placeholder {
	color: #fe6060;
	opacity: 1;
	font-style: italic;
	font-weight: 300;
}
.bf-ff--contact .ff-el-form-control:hover,
.bf-ff--contact .ff-el-form-control:focus {
	outline: none;
}
.bf-ff--contact .ff-el-form-control:focus {
	outline: 3px solid #36802f;
	outline-offset: 2px;
	background: rgba(255, 255, 255, 0.85);
	border-color: #e6535c;
}
.bf-ff--contact .ff-el-is-error .ff-el-form-control {
	border-color: #ff4040 !important;
}
.bf-ff--contact .error.text-danger {
	margin-top: 4px;
	font-size: 14px;
	color: #c4001d;
}
.bf-ff--contact .ff_submit_btn_wrapper {
	margin: 24px 0 0;
	text-align: left;
}
.bf-ff--contact .ff-btn-submit,
.bf-ff--contact .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style) {
	display: block;
	width: 340px;
	max-width: 100%;
	height: 52px;
	padding: 0 20px;
	font-family: inherit;
	font-size: 16px;
	font-style: italic;
	font-weight: 700;
	color: #fff !important;
	background-color: #e6535c !important;
	border: 4px solid #fe6060;
	border-radius: 0;
	box-shadow: none;
	transition: border-color 0.4s, background-color 0.4s;
}
.bf-ff--contact .ff-btn-submit:hover,
.bf-ff--contact .ff-btn-submit:focus-visible,
.bf-ff--contact .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style):hover,
.bf-ff--contact .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style):focus-visible {
	background-color: #36802f !important;
	border-color: #36802f;
	opacity: 1;
}
.bf-ff--contact .ff-message-success {
	margin: 14px 0 0;
	padding: 0;
	font-family: inherit;
	font-size: 16px;
	text-align: left;
	color: #36802f;
	background: none;
	border: 0;
	box-shadow: none;
}
.bf-form-notice:is(.bf-ff--contact *) {
	margin: 0 0 12px;
}

/* -------------------------------------------------------------------- phones */

@media (max-width: 640px) {
	.bf-form-section {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.fluentform.bf-ff:not(.bf-ff--contact) {
		padding: 16px 8px;
	}
	.bf-ff:not(.bf-ff--contact) .ff-t-container {
		display: block;
	}
	.bf-ff:not(.bf-ff--contact) .ff-t-container > .ff-t-cell {
		width: 100% !important;
		flex-basis: 100% !important;
	}
	.bf-ff .ff-name-field-wrapper .ff-t-container,
	.bf-ff .ff-field_container .ff-t-container {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.bf-ff .ff-field_container .ff-t-container + .ff-t-container {
		margin-top: 10px;
	}
	.bf-ff .fluent-address > .ff-el-input--content,
	.bf-ff .fluent-address.bf-addr-row3 > .ff-el-input--content {
		grid-template-columns: 1fr;
	}
	.bf-ff .bf-w-50 .ff-el-input--content,
	.bf-ff .bf-w-70 .ff-el-input--content,
	.bf-ff .bf-w-90 .ff-el-input--content {
		max-width: none;
	}
	.bf-ff .bf-indent {
		padding-left: var(--ff-cell-pad) !important;
	}
	.bf-ff .bf-ff-title {
		font-size: 26px;
	}
	.bf-ff .bf-ff-apply-head__name {
		font-size: 20px;
	}
	.bf-ff .bf-ff-apply-head .bf-ff-apply-head__title {
		font-size: 24px;
	}
	.bf-ff .bf-radio-long .ff-el-form-check {
		padding-left: 0;
	}
	/* 16px text so phones do not zoom into the boxes */
	.bf-ff .ff-el-form-control {
		font-size: 16px !important;
	}
	.bf-ff--contact .ff-el-form-control {
		padding-left: 20px;
	}
	.bf-ff--contact .ff-btn-submit {
		width: 100%;
	}
}

/* ------------------------------------------------------- Keyboard focus */
/* Every form control shows where the keyboard is (the old forms had no visible focus on buttons). */
.bf-ff .ff-btn-submit:focus-visible {
	outline: 3px solid #1d4f91 !important;
	outline-offset: 3px;
}
.bf-ff--contact .ff-btn-submit:focus-visible {
	outline-color: #36802f !important;
}
.bf-ff input[type="checkbox"]:focus-visible,
.bf-ff input[type="radio"]:focus-visible,
.bf-ff .bf-signature canvas:focus-visible {
	outline: 2px solid #0099cc;
	outline-offset: 2px;
}

/* Sub-labels of Name and Address ("First", "Street Address" ...): kept for screen readers and the
   form editor, hidden on the page because the boxes already show them as placeholders (as on the old forms). */
.bf-ff .ff-name-field-wrapper .ff-t-cell .ff-el-input--label,
.bf-ff .ff-name-address-wrapper .ff-el-input--content .ff-el-input--label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Signature: "Type your signature instead" (keyboard / screen-reader alternative to drawing).
   The button stays invisible until it gets keyboard focus, so the form looks as before. */
.bf-signature__alt {
	position: relative;
}
.bf-signature__type-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.bf-signature__type-toggle:focus,
.bf-signature__alt.is-open .bf-signature__type-toggle {
	position: static;
	width: auto;
	height: auto;
	margin: 6px 0 0;
	padding: 2px 10px;
	overflow: visible;
	clip: auto;
	font: 13px/1.6 var(--ff-font, sans-serif);
	color: #333;
	background: #f3f3f3;
	border: 1px solid #ccc;
	border-radius: 3px;
	cursor: pointer;
}
.bf-signature__type-toggle:focus-visible {
	outline: 2px solid #0099cc;
	outline-offset: 2px;
}
.bf-signature__typed-wrap {
	margin-top: 6px;
}
.bf-signature__typed-wrap[hidden] {
	display: none;
}
.bf-signature__typed-wrap label {
	display: block;
	margin-bottom: 4px;
	font: 13px/1.4 var(--ff-font, sans-serif);
}
