/* Shared contact form primitives used by both the home page section and the
   archive side-contact sidebar. Per-placement wrappers (.contact-form,
   .side-contact) add their own layout on top. */

.vp-contact-form {
	display: block;
}

.vp-contact-form__field {
	display: block;
	width: 100%;
	margin: 0 0 20px;
}

.vp-contact-form__field:last-of-type {
	margin-bottom: 0;
}

.vp-contact-form__input,
.vp-contact-form__textarea {
	width: 100%;
	padding: 16px 20px;
	font-family: var(--font-family-body);
	font-size: 15px;
	font-weight: 400;
	color: var(--color-vintage-grape-800);
	background-color: var(--color-alabaster-gray-100);
	border: 1px solid var(--color-alabaster-gray-500);
	border-radius: 2px;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.vp-contact-form__input::placeholder,
.vp-contact-form__textarea::placeholder {
	font-family: var(--font-family-body);
	font-size: 15px;
	font-weight: 400;
	color: var(--color-vintage-grape-600);
	opacity: 1;
}

.vp-contact-form__input:focus,
.vp-contact-form__textarea:focus {
	outline: none;
	border-color: var(--color-vintage-grape-800);
}

.vp-contact-form__input:invalid:not(:placeholder-shown),
.vp-contact-form__textarea:invalid:not(:placeholder-shown) {
	border-color: var(--color-wine-plum-600);
}

.vp-contact-form__textarea {
	min-height: 140px;
	resize: vertical;
}

/* Honeypot — offscreen but still rendered. The input itself has tabindex=-1
   so keyboard users skip it. */
.vp-contact-form__honeypot {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vp-contact-form__submit {
	width: 100%;
	padding: 18px 24px;
	font-family: var(--font-family-body);
	font-size: 16px;
	font-weight: 500;
	color: var(--color-alabaster-gray-100);
	background-color: var(--color-vintage-grape-900);
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.vp-contact-form__submit:hover,
.vp-contact-form__submit:focus-visible {
	background-color: var(--color-vintage-grape-800);
	outline: none;
}

.vp-contact-form__message {
	font-family: var(--font-family-body);
	font-size: 14px;
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 2px;
}

.vp-contact-form__message--error {
	color: var(--color-wine-plum-700);
	background-color: var(--color-wine-plum-100);
}

.vp-contact-form__message--success {
	color: var(--color-muted-teal-800);
	background-color: var(--color-muted-teal-200);
}
