.haystack-cf7-contact {
	--haystack-teal: #3a8c84;
	--haystack-ink: #191919;
	--haystack-line: #d9d7d0;
	--haystack-wash: #f7f6f2;
	max-width: 920px;
	margin: 1.5rem auto 0;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--haystack-wash);
	border-top: 3px solid var(--haystack-teal);
}

.haystack-cf7-contact .haystack-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem 1.5rem;
}

.haystack-cf7-contact label,
.haystack-cf7-contact fieldset {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
}

.haystack-cf7-contact .haystack-field-label,
.haystack-cf7-contact legend {
	display: block;
	margin: 0 0 6px;
	color: var(--haystack-ink);
	font-family: "Area Normal", sans-serif;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 1.2px;
	line-height: 20px;
	text-transform: uppercase;
}

.haystack-cf7-contact .required {
	color: var(--haystack-teal);
}

.haystack-cf7-contact input[type="text"],
.haystack-cf7-contact input[type="email"],
.haystack-cf7-contact input[type="tel"],
.haystack-cf7-contact textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.8rem 0.9rem;
	color: var(--haystack-ink);
	background: #fff;
	border: 1px solid var(--haystack-line);
	border-radius: 0;
	font: inherit;
	line-height: 1.4;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.haystack-cf7-contact textarea {
	min-height: 130px;
	resize: vertical;
}

.haystack-cf7-contact input:focus,
.haystack-cf7-contact textarea:focus {
	outline: 0;
	border-color: var(--haystack-teal);
	box-shadow: 0 0 0 2px rgb(47 143 134 / 18%);
}

.haystack-cf7-contact .haystack-field-full {
	grid-column: 1 / -1;
}

.haystack-cf7-contact .wpcf7-radio,
.haystack-cf7-contact .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem 1.4rem;
}

.haystack-cf7-contact .wpcf7-list-item {
	margin: 0;
}

.haystack-cf7-contact .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	cursor: pointer;
}

.haystack-cf7-contact input[type="radio"],
.haystack-cf7-contact input[type="checkbox"] {
	accent-color: var(--haystack-teal);
}

.haystack-cf7-contact .haystack-submit-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	grid-column: 1 / -1;
}

.haystack-cf7-contact input[type="submit"] {
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 16px;
	color: #fff;
	background: var(--haystack-teal);
	border: 1px solid var(--haystack-teal);
	border-radius: 48px;
	font-family: "Area Normal", sans-serif;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 1.8px;
	line-height: 14px;
	text-transform: uppercase;
	cursor: pointer;
}

.haystack-cf7-contact input[type="submit"]:hover,
.haystack-cf7-contact input[type="submit"]:focus {
	color: var(--haystack-teal);
	background: #fff;
}

.haystack-cf7-contact .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.45rem;
	color: #9b2c2c;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.haystack-cf7-contact .haystack-inline-error {
	margin: 0.45rem 0 0;
	color: #9b2c2c;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.haystack-cf7-contact .haystack-field-invalid input,
.haystack-cf7-contact .haystack-field-invalid textarea,
.haystack-cf7-contact .wpcf7-not-valid {
	border-color: #9b2c2c;
	box-shadow: 0 0 0 1px rgb(155 44 44 / 12%);
}

.haystack-cf7-contact .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.9rem 1rem;
	color: var(--haystack-ink);
	background: #fff;
	border-width: 2px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.wpcf7-form.sent .wpcf7-response-output {
	display: none;
}

.haystack-cf7-contact.haystack-form-sent {
	display: flex;
	align-items: center;
	justify-content: center;
}

.haystack-cf7-contact.haystack-form-sent .haystack-form-grid {
	display: none !important;
}

.haystack-form-success {
	max-width: 660px;
	padding: clamp(1rem, 3vw, 2rem);
	text-align: center;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 220ms ease, transform 220ms ease;
}

.haystack-form-success.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.haystack-form-success:focus {
	outline: none;
}

.haystack-form-success-kicker {
	margin: 0 0 14px;
	color: var(--haystack-teal);
	font-family: "Area Normal", sans-serif;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 1.8px;
	line-height: 14px;
	text-transform: uppercase;
}

.haystack-form-success h3 {
	margin: 0 0 18px;
	color: var(--haystack-ink);
	font-family: "Area Normal", sans-serif;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 400;
	line-height: 1.08;
}

.haystack-form-success > p:last-child {
	max-width: 540px;
	margin: 0 auto;
	color: var(--haystack-ink);
	font-family: "Area Normal", sans-serif;
	font-size: 18px;
	line-height: 1.55;
}

.page-section.haystack-contact-details-section {
	margin-bottom: 48px;
}

@media (max-width: 700px) {
	.page-section.haystack-contact-details-section {
		margin-bottom: 32px;
	}

	.haystack-cf7-contact .haystack-form-grid {
		grid-template-columns: 1fr;
	}

	.haystack-cf7-contact .haystack-field-full,
	.haystack-cf7-contact .haystack-submit-row {
		grid-column: auto;
	}
}
