/*
 * Enquiry form — neutral structural styles.
 *
 * Every colour and radius is a custom property with a plain fallback, so the
 * form is presentable under any theme and the active theme can restyle it by
 * redefining the properties on .rfc-form.
 */

.rfc-form {
	--rfc-radius: 10px;
	--rfc-border: #d8dde5;
	--rfc-border-focus: #1f6feb;
	--rfc-ring: rgba(31, 111, 235, .18);
	--rfc-ink: #1a1f29;
	--rfc-muted: #6b7280;
	--rfc-surface: #fff;
	--rfc-error: #b42318;
	--rfc-success-bg: #ecfdf3;
	--rfc-success-border: #abefc6;
	--rfc-success-ink: #085d3a;
	--rfc-button-bg: #1a1f29;
	--rfc-button-ink: #fff;
	--rfc-button-radius: 999px;
}

.rfc-notice {
	margin: 0 0 1.25rem;
	padding: .9rem 1.1rem;
	border: 1px solid;
	border-radius: 10px;
	font-weight: 600;
}

.rfc-notice--success {
	background: var(--rfc-success-bg, #ecfdf3);
	border-color: var(--rfc-success-border, #abefc6);
	color: var(--rfc-success-ink, #085d3a);
}

.rfc-notice--error {
	background: #fef3f2;
	border-color: #fecdc9;
	color: var(--rfc-error, #b42318);
}

.rfc-form__title {
	margin-top: 0;
}

.rfc-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1rem;
}

@media (max-width: 34rem) {
	.rfc-row {
		grid-template-columns: 1fr;
	}
}

.rfc-field {
	margin: 0 0 1.15rem;
}

.rfc-field label {
	display: block;
	margin-bottom: .35rem;
	color: var(--rfc-ink, #1a1f29);
	font-weight: 700;
	font-size: .9375rem;
}

.rfc-req {
	color: var(--rfc-error, #b42318);
}

.rfc-field input,
.rfc-field select,
.rfc-field textarea {
	width: 100%;
	padding: .8rem 1rem;
	background: var(--rfc-surface, #fff);
	border: 1px solid var(--rfc-border, #d8dde5);
	border-radius: var(--rfc-radius, 10px);
	color: var(--rfc-ink, #1a1f29);
	font: inherit;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.rfc-field textarea {
	min-height: 9rem;
	resize: vertical;
}

.rfc-field input:focus,
.rfc-field select:focus,
.rfc-field textarea:focus {
	outline: none;
	border-color: var(--rfc-border-focus, #1f6feb);
	box-shadow: 0 0 0 3px var(--rfc-ring, rgba(31, 111, 235, .18));
}

.rfc-help {
	display: block;
	margin-top: .4rem;
	color: var(--rfc-muted, #6b7280);
	font-size: .875rem;
	line-height: 1.5;
}

.rfc-submit {
	margin: 0;
}

.rfc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .9rem 1.75rem;
	background: var(--rfc-button-bg, #1a1f29);
	border: 0;
	border-radius: var(--rfc-button-radius, 999px);
	color: var(--rfc-button-ink, #fff);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: filter .16s ease, transform .16s ease;
}

.rfc-button:hover {
	filter: brightness(.93);
	transform: translateY(-1px);
}

/* The honeypot must be reachable by bots but never by people. */
.rfc-trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
