/*
 * Contact form usability, layered over style1.css.
 *
 * Scoped to the contact form by its action attribute so no other page shifts.
 * style1.css styles "#submit", but this form uses a plain <button> with no id,
 * so none of that applied and the button rendered as a 21px browser default.
 */

/* 16px is the threshold below which iOS Safari zooms the page on focus. */
form[action="/api/contact"] input,
form[action="/api/contact"] textarea {
	font-size: 16px;
}

form[action="/api/contact"] button[type="submit"] {
	display: inline-block;
	min-height: 48px;
	padding: 0.75em 2.5em;
	margin: 1.5em 0;
	background: #b20000;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	font-style: normal;
	text-transform: uppercase;
	border: 0;
	border-radius: 0.625em;
	box-shadow: 0 0.125em 0.125em #666;
	cursor: pointer;
}

form[action="/api/contact"] button[type="submit"]:hover {
	background: rgb(139, 1, 1);
}

form[action="/api/contact"] button[type="submit"]:focus-visible {
	outline: 3px solid #333;
	outline-offset: 2px;
}

/* turnstile-init.js disables the button until a token is issued. */
form[action="/api/contact"] button[type="submit"][disabled] {
	background: #8a8a8a;
	box-shadow: none;
	cursor: not-allowed;
}

@media (max-width: 760px) {
	form[action="/api/contact"] button[type="submit"] {
		display: block;
		width: 100%;
		margin: 1.25em 0;
	}
}
