/* 1.36.51: one consistent look for every front-end form of FoRB Contacts
   (submit event, membership application, contact, privacy request, sign-in, My FoRB).
   Scoped to plugin blocks inside the page's main area so the theme's own forms are untouched. */

/* Same typeface everywhere: no monospace or tiny browser-default text in boxes. */
main :where([class*="forbc-"]) :is(input, textarea, select, button) { font-family: inherit; }
main :where([class*="forbc-"]) :is(input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=date], input[type=time], input[type=datetime-local], input:not([type]), textarea, select) {
	font-size: 16px; line-height: 1.45; color: #122541; box-sizing: border-box; max-width: 100%;
}
main :where([class*="forbc-"]) textarea { font-family: inherit !important; resize: vertical; min-height: 92px; }

/* Defaults for fields that had no design of their own (any styled form keeps its own look). */
:where(main [class*="forbc-"]) :where(input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input:not([type]), textarea, select) {
	padding: 11px 13px; border: 1px solid #C8D3DF; border-radius: 10px; background: #fff;
}
main :where([class*="forbc-"]) select { min-height: 46px; cursor: pointer; }
main :where([class*="forbc-"]) :is(input, textarea, select):focus-visible {
	outline: none; border-color: #2BB5E3 !important; box-shadow: 0 0 0 3px rgba(43, 181, 227, .22);
}
main :where([class*="forbc-"]) ::placeholder { color: #8A93A6; font-weight: 400; opacity: 1; }

/* Locked (read-only) fields look locked, not broken. */
main :where([class*="forbc-"]) input[readonly] { background: #F3F6F9 !important; color: #5C6174 !important; cursor: not-allowed; }

/* Tick boxes and round options: same size, in the site's navy, lined up with the first line of text. */
main :where([class*="forbc-"]) :is(input[type=checkbox], input[type=radio]) { width: 18px; height: 18px; flex: none; margin: 3px 0 0; accent-color: #0B1A3E; cursor: pointer; }

/* Photo upload: a real button instead of the grey browser control. */
main :where([class*="forbc-"]) input[type=file] { font-size: 15px; color: #5C6174; max-width: 100%; }
main :where([class*="forbc-"]) input[type=file]::file-selector-button {
	margin-right: 12px; padding: 9px 16px; border: 1px solid #C8D3DF; border-radius: 999px; background: #fff;
	color: #0B1A3E; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; transition: background .15s;
}
main :where([class*="forbc-"]) input[type=file]::file-selector-button:hover { background: #EEF4FA; }

/* Small helper lines under a field. */
.forbc-field-hint { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 400; color: #687689; line-height: 1.45; }
.forbc-optional { font-weight: 400; color: #687689; }

/* --- Submit an event --- */
.forbc-relevance-note { margin-top: 18px; }
.forbc-proposal-section .forbc-proposal-consent { margin: 0 0 12px; line-height: 1.55; }
.forbc-proposal-section.is-final .forbc-proposal-consent { padding: 12px 14px; border: 1px solid #E3E8EF; border-radius: 12px; background: #FAFBFD; }
.forbc-proposal-section .forbc-proposal-footnote { margin: 10px 0 0; line-height: 1.5; }
.forbc-proposal-actions { margin: 22px 0 4px; }

/* --- Privacy request --- */
.forbc-rights-form h2 { margin: 0 0 12px; }
.forbc-rights-form > p { margin: 0 0 12px; line-height: 1.6; }
.forbc-rights-intake { margin: 22px 0 18px; padding: 20px 0 0; border-top: 1px solid #E3E8EF; }
.forbc-rights-intake .forbc-field { display: grid; gap: 7px; margin: 0 0 16px; }
.forbc-rights-intake .forbc-field label { font-weight: 650; color: #243650; }
.forbc-rights-intake :is(input[type=email], select) { width: 100%; }
.forbc-rights-intake .forbc-small { margin: 0 0 16px; }
.forbc-rights-form .forbc-rights-intake .forbc-btn { display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 999px; font-size: 16px; font-weight: 700; }

/* --- Membership application --- */
.forbc-regcard .forbc-member-form label { font-size: 15px; }
.forbc-regcard .forbc-member-form fieldset legend { font-size: 18px; }

/* --- My FoRB forms --- */
.forbc-self-portal .forbc-self-card > h2 { margin: 0 0 8px; }
.forbc-self-portal .forbc-self-card > .forbc-self-help { margin: 0 0 20px; line-height: 1.6; }
.forbc-self-portal .forbc-self-card label > span { color: #243650; }
.forbc-self-portal .forbc-self-card :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select) { width: 100%; }
.forbc-self-profile-photo-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px; margin: 0 0 18px; border-radius: 14px; background: #F6F8FB; }
.forbc-self-profile-photo-row label { margin: 0 !important; }
.forbc-photo-pick { flex: 1 1 240px; min-width: 0; }
.forbc-self-portal .forbc-self-card hr { border: 0; border-top: 1px solid #E3E8EF; margin: 20px 0; }
.forbc-self-portal .forbc-self-card > button.forbc-self-btn, .forbc-self-portal .forbc-self-card > .forbc-self-btn:last-child { margin-top: 8px; font-size: 16px; padding: 13px 24px; }
