/* SBP Eventos Formulário */
.bfm {
	--bfm-label: #1e1f4a;
	--bfm-border: #cfcde6;
	--bfm-focus: #0a0a7d;
	--bfm-input-bg: #fff;
	--bfm-radius: 10px;
	--bfm-btn-bg: #0a0a7d;
	--bfm-btn-tx: #fff;
	--bfm-btn-hbg: #f2b230;
	--bfm-btn-htx: #0a0a7d;

	box-sizing: border-box;
	padding: 28px;
	border: 1px solid #e3e2f3;
	border-radius: 18px;
	background: #fff;
}

.bfm-title {
	margin: 0 0 22px;
	color: #0a0a7d;
	font-size: clamp(22px, 2.2vw, 26px);
	font-weight: 800;
	line-height: 1.2;
}

.bfm-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}
.bfm-field {
	grid-column: span var(--bfm-span, 6);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bfm-label {
	display: block;
	margin: 0 0 7px;
	color: var(--bfm-label);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}
.bfm-req { color: #c0392b; }

.bfm .bfm-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--bfm-border);
	border-radius: var(--bfm-radius);
	background-color: var(--bfm-input-bg);
	color: #1e1f4a;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bfm textarea.bfm-input { resize: vertical; min-height: 110px; }
.bfm select.bfm-input { cursor: pointer; }
.bfm .bfm-input:focus {
	outline: none;
	border-color: var(--bfm-focus);
	box-shadow: 0 0 0 3px rgba(10, 10, 125, .1);
}

.bfm-check {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	margin: 4px 0;
	color: var(--bfm-label);
	font-size: 14px;
	line-height: 1.45;
	cursor: pointer;
}
.bfm-check input { margin-top: 3px; accent-color: var(--bfm-focus); }
.bfm-radios { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Erros */
.bfm-error { min-height: 0; margin-top: 5px; color: #b32d2e; font-size: 12px; line-height: 1.3; }
.bfm-error:empty { display: none; }
.bfm-field.has-error .bfm-input { border-color: #b32d2e; }

/* Armadilha para robôs */
.bfm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Botão */
.bfm-actions { margin-top: 22px; }
.bfm .bfm-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 26px;
	border: 0;
	border-radius: 40px;
	background: var(--bfm-btn-bg);
	color: var(--bfm-btn-tx);
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.bfm .bfm-submit:hover,
.bfm .bfm-submit:focus-visible { background: var(--bfm-btn-hbg); color: var(--bfm-btn-htx); transform: translateY(-1px); }
.bfm .bfm-submit[disabled] { opacity: .7; cursor: wait; transform: none; }
.bfm-form.is-sending .bfm-submit::after {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: bfm-spin .7s linear infinite;
}
@keyframes bfm-spin { to { transform: rotate(360deg); } }

/* Mensagem */
.bfm-msg:empty { display: none; }
.bfm-msg {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
}
.bfm-msg.is-ok { background: #e7f6ec; color: #1a6b33; }
.bfm-msg.is-err { background: #fdecec; color: #8e1f1f; }

@media (max-width: 767px) {
	.bfm-field { grid-column: span 6; }
	.bfm .bfm-submit { width: 100%; }
}
