/* ============================================================
   MONSTERS OF TYPE — Contact page
   Template: template-contact.php
   Reconstructed to match the MoT design system (mot.css tokens).
   ============================================================ */

/* Inner wrapper — restores max-width + side gutters (page margins) */
html.mot-template .mot-contact__inner {
	width: 100%;
	max-width: var(--mot-max);
	margin-inline: auto;
	padding-inline: var(--mot-gutter);
	padding-top: clamp(2.5rem, 4vw, 4.5rem);
	padding-bottom: clamp(5rem, 10vw, 9rem);
}

/* Two-column: intro (left) · form (right) */
.mot-contact__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
}

/* Intro column */
.mot-contact__heading {
	margin: 0 0 clamp(1rem, 2vw, 1.5rem);
	font-family: var(--mot-display);
	font-size: clamp(2.75rem, 6vw, 5rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--mot-white);
}

.mot-contact__blurb {
	max-width: 46ch;
	color: var(--mot-light-gray);
}

.mot-contact__blurb p {
	margin: 0 0 1rem;
	font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
	line-height: 1.7;
}

.mot-contact__blurb p:last-child {
	margin-bottom: 0;
}

/* Form column */
.mot-contact__form {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

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

.mot-contact__label {
	font-family: var(--mot-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mot-off-white);
}

.mot-contact__control {
	display: block;
}

/* Beat Kadence/browser form defaults (dark text on light fields) */
html.mot-template body.mot-contact-page .mot-contact__input,
html.mot-template body.mot-contact-page .mot-contact__textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.875rem 1rem;
	font-family: var(--mot-sans);
	font-size: 1rem;
	line-height: 1.5;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	caret-color: #ffffff;
	background-color: var(--mot-dark) !important;
	border: 1px solid var(--mot-border) !important;
	border-radius: 0;
	box-shadow: none !important;
	transition: border-color var(--mot-dur) var(--mot-ease);
}

/* Placeholders must set -webkit-text-fill-color too, or they inherit white */
html.mot-template body.mot-contact-page .mot-contact__input::placeholder,
html.mot-template body.mot-contact-page .mot-contact__textarea::placeholder {
	color: var(--mot-muted) !important;
	-webkit-text-fill-color: var(--mot-muted) !important;
	opacity: 1 !important;
}

html.mot-template body.mot-contact-page .mot-contact__input:focus,
html.mot-template body.mot-contact-page .mot-contact__textarea:focus {
	outline: none;
	border-color: var(--mot-brand-accent) !important;
}

html.mot-template body.mot-contact-page .mot-contact__textarea {
	resize: vertical;
	min-height: 8rem;
}

/* Keep autofilled name/email on the dark field treatment */
html.mot-template body.mot-contact-page .mot-contact__input:-webkit-autofill,
html.mot-template body.mot-contact-page .mot-contact__input:-webkit-autofill:hover,
html.mot-template body.mot-contact-page .mot-contact__input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px var(--mot-dark) inset !important;
	box-shadow: 0 0 0 1000px var(--mot-dark) inset !important;
	-webkit-text-fill-color: #ffffff !important;
	color: #ffffff !important;
	caret-color: #ffffff;
	transition: background-color 99999s ease-out 0s;
}

.mot-contact__error {
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	color: var(--mot-error);
	border-left: 2px solid var(--mot-error);
	background: rgba(224, 82, 82, 0.08);
}

.mot-contact__submit {
	align-self: flex-start;
}

.mot-contact__success {
	margin: 0;
	font-family: var(--mot-display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.1;
	color: var(--mot-brand-accent);
}

/* Responsive — stack columns */
@media (max-width: 820px) {
	.mot-contact__grid {
		grid-template-columns: 1fr;
		gap: clamp(1.75rem, 6vw, 2.5rem);
	}
}
