/* Contact page form (2026-09-23, Jax: "more complete, more modern").
   Visible labels instead of placeholder-only fields, an optional topic picker,
   and a full-width primary button. Scoped to .cf-* so the modal and the other
   forms keep their own styling. */
.page-contact .cf-panel {
	align-items: stretch;
	text-align: left;
	padding: clamp(32px, 4vw, 60px);
}
.cf-eyebrow {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #716e84;
}
.cf-panel h2 {
	margin: 0 0 12px;
	text-align: left;
	text-wrap: balance;
}
.cf-intro {
	margin: 0 0 28px;
	max-width: 46ch;
	font-size: 16px;
	line-height: 1.6;
	color: #3d3b45;
}
.cf-panel .wpcf7 { width: 100%; }

.cf-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 16px;
}
.cf-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.cf-full { grid-column: 1 / -1; }
.cf-field > label,
.cf-topics legend {
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #272531;
}
.cf-req { color: #8a3b3b; }
.cf-opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: #5d5a66; }

.cf-form input.wpcf7-form-control,
.cf-form textarea.wpcf7-form-control {
	width: 100%;
	max-width: none;   /* overrides.css caps every input at 220px */
	min-width: 0;
	max-height: none;
	margin: 0;
	padding: 14px 16px;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px !important; /* overrides.css forces 18px; 16px+ still stops iOS zoom */
	line-height: 1.4;
	color: #1c1c1c;
	background: #fff;
	border: 1px solid #aeabb4;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(28, 28, 28, .05);
	transition: border-color .15s ease, box-shadow .15s ease;
	appearance: none;
}
.cf-form input.wpcf7-form-control { height: 52px; }
.cf-form textarea.wpcf7-form-control { min-height: 140px; resize: vertical; }
.cf-form input.wpcf7-form-control::placeholder,
.cf-form textarea.wpcf7-form-control::placeholder { color: #6f6c78; opacity: 1; }
.cf-form input.wpcf7-form-control:hover,
.cf-form textarea.wpcf7-form-control:hover { border-color: #716e84; }
.cf-form input.wpcf7-form-control:focus,
.cf-form textarea.wpcf7-form-control:focus {
	outline: none;
	border-color: #272531;
	box-shadow: 0 0 0 3px rgba(113, 110, 132, .35);
}
/* Only flag a field after the visitor has interacted with it */
.cf-form input.wpcf7-form-control:user-invalid { border-color: #a14545; }

/* Topic picker: radio buttons drawn as chips */
.cf-topics { border: 0; padding: 0; min-width: 0; }
.cf-topics legend { margin-bottom: 9px; }
.cf-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cf-chip { position: relative; margin: 0; cursor: pointer; }
.cf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cf-chip span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 8px 14px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: #272531;
	background: rgba(255, 255, 255, .55);
	border: 1px solid #aeabb4;
	border-radius: 8px;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cf-chip:hover span { border-color: #716e84; background: #fff; }
.cf-chip input:checked + span { color: #fff; background: #272531; border-color: #272531; }
.cf-chip input:focus-visible + span { outline: 2px solid #272531; outline-offset: 2px; }

.cf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 56px;
	margin-top: 24px;
	padding: 0 24px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
	background: #272531;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.cf-submit:hover { background: #3a3748; }
.cf-submit:active { transform: translateY(1px); }
.cf-submit:focus-visible { outline: 3px solid #716e84; outline-offset: 3px; }
.cf-arrow { width: 18px; height: 18px; transition: transform .2s ease; }
.cf-submit:hover .cf-arrow { transform: translateX(4px); }
.cf-form.sending .cf-submit { opacity: .6; cursor: progress; }

.cf-form .form-status { margin-top: 16px; border-width: 1px; border-radius: 8px; font-size: 15px; }

.cf-alt {
	margin: 20px 0 0;
	font-size: 15px;
	color: #3d3b45;
	text-align: center;
}
.cf-alt a { white-space: nowrap; color: #272531; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cf-alt a:hover { color: #716e84; }

/* Two stacked photos beside the form, so the photo column matches the taller form.
   The photos are absolutely positioned so the FORM sets the row height, never the images. */
.page-contact .forty-sixty { align-items: stretch; }
.page-contact .cf-photos { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-width: 0; }
.page-contact .cf-photo { position: relative; min-height: 0; overflow: hidden; }
.page-contact .cf-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
	.page-contact .cf-photos { flex: 1 1 0; }
}
@media (max-width: 899px) {
	/* stacked layout: one photo under the form is plenty */
	.page-contact .cf-photos { grid-template-rows: auto; }
	.page-contact .cf-photo { aspect-ratio: 4 / 3; }
	.page-contact .cf-photo-2 { display: none; }
}

@media (max-width: 600px) {
	.cf-grid { grid-template-columns: 1fr; }
	.cf-chip span { font-size: 13px; padding: 8px 10px; }
}
