/*
 * WM Contact Form (the Contact page): mono labels, cream fields with a thick ink border, the
 * topic as chips, the consent box beside the large "Send message" button. The plugin's own
 * stylesheet only lays the form out.
 */

.wmcf-fields.wmcf-fields {
	gap: 24px 20px;
}

.wmcf-label,
.wmcf-field--radio legend {
	display: block;
	margin-bottom: 10px;
	padding: 0;
	color: var(--bl-ink);
	font-family: var(--bl-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wmcf-required {
	margin-left: 3px;
	color: var(--bl-coral);
}

.wmcf-info {
	margin: -4px 0 8px;
	font-size: 13px;
	line-height: 1.5;
}

.wmcf-input {
	width: 100%;
	padding: 14px 16px;
	border: var(--bl-border);
	border-radius: 0;
	background-color: var(--bl-cream);
	color: var(--bl-ink);
	font-family: var(--bl-sans);
	font-size: 16px;
	line-height: 1.4;
	outline: none;
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.wmcf-input::placeholder {
	color: #8a7d76;
}

textarea.wmcf-input {
	min-height: 160px;
	line-height: 1.6;
	resize: vertical;
}

.wmcf-input:focus {
	background-color: var(--bl-white);
	box-shadow: 4px 4px 0 var(--bl-ink);
}

.wmcf-field.is-invalid .wmcf-input {
	border-color: #b3261e;
}

.wmcf-error {
	margin-top: 8px;
	color: #b3261e;
	font-size: 14px;
	font-weight: 700;
}

/* The topic: choices as chips; the chosen one is dark. */
.bl-chips fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.bl-chips .wmcf-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bl-chips .wmcf-check {
	position: relative;
	margin: 0;
}

.bl-chips .wmcf-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.bl-chips .wmcf-check-label {
	display: inline-block;
	padding: 9px 14px;
	border: var(--bl-border);
	background: var(--bl-cream);
	box-shadow: 4px 4px 0 var(--bl-ink);
	font-family: var(--bl-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: var(--bl-lift);
}

.bl-chips .wmcf-check-label:hover {
	background: var(--bl-yellow);
}

.bl-chips .wmcf-radio:checked + .wmcf-check-label,
.bl-chips .wmcf-check-label:has(.wmcf-radio:checked) {
	background: var(--bl-ink);
	box-shadow: 4px 4px 0 var(--bl-coral);
	color: var(--bl-yellow);
}

.bl-chips .wmcf-radio:focus-visible + .wmcf-check-label,
.bl-chips .wmcf-check-label:has(.wmcf-radio:focus-visible) {
	outline: 3px solid var(--bl-ink);
	outline-offset: 3px;
}

/* Consent. */
.wmcf-field--checkbox .wmcf-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.wmcf-field--checkbox .wmcf-check-label {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}

.wmcf-checkbox {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--bl-ink);
}

.wmcf-field--checkbox a {
	color: var(--bl-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--bl-coral);
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.wmcf-actions {
	margin-top: 28px;
}

.wmcf-submit.wp-element-button {
	padding: 16px 30px;
	border: var(--bl-border);
	border-radius: 0;
	background: var(--bl-ink);
	box-shadow: 6px 6px 0 var(--bl-coral);
	color: var(--bl-yellow);
	font-family: var(--bl-display);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	cursor: pointer;
	transition: var(--bl-lift);
}

.wmcf-submit.wp-element-button:hover {
	transform: translate(-2px, -2px);
	box-shadow: 8px 8px 0 var(--bl-coral);
}

.wmcf-message {
	margin-bottom: 24px;
	padding: 16px 18px;
	border: var(--bl-border);
	background: var(--bl-yellow);
	font-weight: 700;
}

.wmcf-message--success {
	padding: 0;
	border: 0;
	background: none;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.6;
}

.wmcf-message--success > * + * {
	margin-top: 16px;
}

.bl-form-sent__title {
	color: var(--bl-white);
	font-family: var(--bl-display);
	font-size: clamp(32px, 3.6vw, 52px);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	-webkit-text-stroke: 0.055em var(--bl-ink);
	paint-order: stroke fill;
	text-shadow: var(--bl-stack-short);
}
