/* Layout: Contact */

.contact__card {
	padding: clamp(var(--space-l), 2rem + 4vw, 5rem) clamp(var(--space-m), 1.5rem + 3vw, 4rem);
	background: var(--color-surface-strong);
	border-radius: var(--radius-l);
}

.contact__card > :last-child {
	margin-bottom: 0;
}

.contact__header {
	margin-bottom: var(--space-l);
}

.contact__header > :last-child {
	margin-bottom: 0;
}

.contact__title {
	font-size: var(--text-3xl);
}

.contact__intro {
	color: var(--color-text);
}

/* The two messaging buttons, side by side where they fit. */
.contact__channels {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0 0 var(--space-xl);
	padding: 0;
	list-style: none;
}

.contact__form {
	max-width: 40rem;
}

.contact__form-title {
	margin-bottom: var(--space-m);
	font-size: var(--text-lg);
}

/*
 * Fluent Forms brings its own stylesheet. These only make the fields match
 * the theme's inputs on the grey card; the plugin keeps layout and validation.
 */
.contact__form .fluentform .ff-el-form-control {
	width: 100%;
	padding: 0.7em 0.9em;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s);
	background: var(--color-bg);
	color: var(--color-text);
	font: inherit;
}

.contact__form .fluentform .ff-el-form-control:focus-visible {
	outline: 0;
	border-color: var(--color-accent);
}

.contact__form .fluentform .ff-el-input--label label {
	font-weight: 600;
}

/*
 * The submit button. Fluent Forms prints a per-form <style> for
 * .ff_btn_style with the colours set in its editor (the blue default), which
 * beats any selector here on source order — hence !important on the colours.
 */
.contact__form .fluentform .ff-btn-submit.ff_btn_style,
.contact__form .fluentform .ff-btn-submit {
	padding: 0.6em 1.6em;
	border: 0 !important;
	border-radius: var(--radius-m) !important;
	background-color: var(--color-accent) !important;
	color: var(--color-accent-contrast) !important;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.contact__form .fluentform .ff-btn-submit.ff_btn_style:hover,
.contact__form .fluentform .ff-btn-submit.ff_btn_style:focus-visible,
.contact__form .fluentform .ff-btn-submit:hover,
.contact__form .fluentform .ff-btn-submit:focus-visible {
	background-color: var(--color-accent-hover) !important;
}
