/*
 * Breakpoint theme: site forms (contact page).
 *
 * Plain CSS on the theme's existing tokens (brand.css). No animation. Inputs
 * are 16px so phones do not zoom on focus; supporting text is never below 14px.
 */

.bp-form {
	--bp-form-text: #171717;
	--bp-form-muted: rgba(23, 23, 23, 0.7);
	--bp-form-border: #c9d2d8;
	--bp-form-field: #fff;
	--bp-form-error: #b42318;
	--bp-form-ok: #0b6b3a;
	color: var(--bp-form-text);
}

/* ----- Contact page card ----- */

.bp-contact {
	max-width: 40rem;
	margin: 0 auto;
}

.bp-contact .bp-form--light {
	padding: 32px;
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bp-contact__alt {
	margin: 20px 0 0;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
	color: rgba(23, 23, 23, 0.7);
}

.bp-contact__alt a,
.bp-form__hint a,
.bp-form__status a {
	color: var(--bp-ocean);
	text-decoration: underline;
}

.bp-form__title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.bp-form__lead {
	margin: 12px 0 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--bp-form-muted);
}

/* ----- Fields ----- */

.bp-form__panel {
	margin-top: 24px;
}

.bp-form__field + .bp-form__field {
	margin-top: 20px;
}

.bp-form__label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.bp-form__input {
	display: block;
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--bp-form-text);
	background: var(--bp-form-field);
	border: 1px solid var(--bp-form-border);
	border-radius: 6px;
	box-sizing: border-box;
}

.bp-form__input::placeholder {
	color: var(--bp-form-muted);
}

.bp-form__input:focus-visible,
.bp-form__submit:focus-visible {
	outline: 3px solid var(--bp-cyan);
	outline-offset: 2px;
}

.bp-form__input[aria-invalid="true"] {
	border-color: var(--bp-form-error);
}

.bp-form__textarea {
	min-height: 9rem;
	resize: vertical;
}

.bp-form__hint {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bp-form-muted);
}

.bp-form__turnstile {
	margin-top: 20px;
}

.bp-form__turnstile:empty {
	margin-top: 0;
}

.bp-form__status {
	margin: 16px 0 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--bp-form-text);
}

.bp-form__status:empty {
	margin: 0;
}

.bp-form__status[data-state="error"] {
	color: var(--bp-form-error);
}

.bp-form__status[data-state="ok"] {
	color: var(--bp-form-ok);
}

.bp-form__submit {
	margin-top: 20px;
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.bp-form__submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Honeypot: off screen rather than display:none, so naive bots still fill it. */
.bp-form__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Visually hidden label that screen readers still read. */
.bp-form__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 480px) {
	.bp-contact .bp-form--light {
		padding: 22px 18px;
	}
}
