/*
 * MC Contact Form — styled to match the Miłosz Cordes mark:
 * ink and paper, square corners, letter-spaced capitals.
 * Override the two colours from your theme if needed:
 *   .mc-contact { --mc-ink: #111; --mc-paper: #F4F2EE; }
 */
.mc-contact {
	--mc-ink: #111111;
	--mc-paper: #f4f2ee;
	--mc-muted: #5e5c58;
	--mc-line: #c9c4bb;
	--mc-error: #b3261e;
	max-width: 36rem;
	color: var(--mc-ink);
	font: inherit;
}

.mc-contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.mc-contact__field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.mc-contact__field label {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--mc-muted);
}

.mc-contact__field input,
.mc-contact__field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.6rem 0;
	border: 0;
	border-bottom: 1px solid var(--mc-line);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.05rem;
	line-height: 1.5;
	transition: border-color 0.15s ease;
}

.mc-contact__field textarea {
	resize: vertical;
	min-height: 9rem;
}

.mc-contact__field input:focus,
.mc-contact__field textarea:focus {
	outline: none;
	border-bottom: 2px solid var(--mc-ink);
	margin-bottom: -1px;
}

.mc-contact__field input:focus-visible,
.mc-contact__field textarea:focus-visible {
	outline: 2px solid transparent; /* keeps a visible indicator in forced-colours mode */
}

.mc-contact__check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 0.75rem;
	align-items: start;
	font-size: 0.9rem;
	line-height: 1.5;
}

.mc-contact__check input {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.15rem 0 0;
	accent-color: var(--mc-ink);
}

.mc-contact__check a {
	color: inherit;
	text-underline-offset: 0.2em;
}

.mc-contact__check .mc-contact__error {
	grid-column: 2;
}

.has-error input,
.has-error textarea {
	border-bottom-color: var(--mc-error);
}

.mc-contact__error {
	margin: 0;
	font-size: 0.85rem;
	color: var(--mc-error);
}

.mc-contact__privacy {
	margin: -0.5rem 0 0;
	font-size: 0.82rem;
	line-height: 1.55;
	color: var(--mc-muted);
}

.mc-contact__privacy a {
	color: inherit;
	text-underline-offset: 0.2em;
}

.mc-contact__button {
	align-self: flex-start;
	min-height: 3rem;
	padding: 0.9rem 2.25rem;
	border: 1px solid var(--mc-ink);
	border-radius: 0;
	background: var(--mc-ink);
	color: var(--mc-paper);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mc-contact__button:hover {
	background: transparent;
	color: var(--mc-ink);
}

.mc-contact__button:focus-visible {
	outline: 2px solid var(--mc-ink);
	outline-offset: 3px;
}

.mc-contact__notice {
	margin: 0 0 1.75rem;
	padding: 1rem 1.25rem;
	border-left: 0;
	border-top: 2px solid var(--mc-ink);
	background: rgba(0, 0, 0, 0.04);
}

.mc-contact__notice p {
	margin: 0;
}

.mc-contact__notice--error {
	border-top-color: var(--mc-error);
	color: var(--mc-error);
}

/* Honeypot: off-screen for people, still in the DOM for bots. */
.mc-contact__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
