/**
 * Site forms. Scoped to .bbc-form so nothing here touches the IDX suite's
 * fields or anything a theme renders.
 */

.bbc-form-wrap { max-width: 720px; }

.bbc-form__intro {
	margin: 0 0 26px;
	color: var(--bbt-muted, #6b7280);
	font-size: 1.05rem;
	line-height: 1.6;
}

.bbc-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px 20px;
}

.bbc-form__field--wide { grid-column: 1 / -1; }

.bbc-form__field label {
	display: block;
	margin-bottom: 7px;
	color: var(--bbt-muted, #6b7280);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.bbc-form__field input,
.bbc-form__field select,
.bbc-form__field textarea {
	width: 100%;
	padding: 13px 15px;
	background: #fff;
	border: 1px solid var(--bbt-border, #e5e7eb);
	border-radius: 8px;
	color: var(--bbt-ink, #1c1c1c);
	font-family: inherit;
	font-size: 1rem;
	box-sizing: border-box;
}

.bbc-form__field textarea { resize: vertical; }

.bbc-form__field input:focus,
.bbc-form__field select:focus,
.bbc-form__field textarea:focus {
	outline: 2px solid var(--bbt-primary, #00223d);
	outline-offset: 1px;
	border-color: var(--bbt-primary, #00223d);
}

.bbc-form__submit {
	margin-top: 24px;
	padding: 15px 34px;
	background: var(--bbt-accent, #9b7523);
	color: var(--bbt-accent-fg, #fff);
	border: 0;
	border-radius: 8px;
	font-family: inherit;
	font-size: .92rem;
	font-weight: 700;
	letter-spacing: .04em;
	cursor: pointer;
}

.bbc-form__submit:hover { filter: brightness(.93); }

/* Off-screen rather than display:none — some bots skip hidden fields. */
.bbc-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bbc-form__notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: .96rem;
}

.bbc-form__notice--ok  { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.bbc-form__notice--bad { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
