/* Contact Form 7 integration.
   assets/css/style.css is a verbatim copy of the static build and must not be
   edited, so the few rules needed to make CF7's own markup look like the
   static form live here instead.

   The base form styling still applies: style.css targets .field input /
   .field select / .field textarea as descendants, so CF7's wrapper span does
   not break it. */

.wpcf7-form-control-wrap {
	display: block;
}

/* CF7's per-field error, styled as .field__err was. */
.wpcf7-not-valid-tip {
	font-size: .8rem;
	font-weight: 600;
	color: #b3261e;
	margin-top: .35em;
}

.field input.wpcf7-not-valid,
.field select.wpcf7-not-valid,
.field textarea.wpcf7-not-valid {
	border-color: #b3261e;
}

/* The consent row: CF7 wraps acceptance in its own list markup. */
.check .wpcf7-list-item {
	margin: 0;
}

.check .wpcf7-list-item-label {
	font-weight: inherit;
}

.check .wpcf7-acceptance .wpcf7-list-item {
	display: inline;
}

/* The form-level response, styled as .form__status was. */
.wpcf7-response-output {
	margin: clamp(14px, 1.8vw, 20px) 0 0;
	padding: .9em 1.1em;
	border-radius: var(--r-sm);
	border: 1px solid var(--line);
	background: var(--color-surface);
	font-size: .92rem;
	font-weight: 600;
	color: var(--ink);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: #b3261e;
	color: #b3261e;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--primary-ring);
	color: var(--primary-ink);
}

.wpcf7-spinner {
	margin: 0 0 0 .6em;
}
