/* ============================================================
   Contact page. Only main.css loads alongside this, so the container,
   eyebrow and headings are defined here rather than borrowed from
   site-home.css (which is front-page only).
   ============================================================ */
.ctc {
	display: block;
	background: var(--bg);
	color: var(--ink);
}

.ctc__wrap {
	width: min(1240px, 100% - clamp(28px, 6vw, 96px));
	margin-inline: auto;
}

.ctc__eyebrow {
	display: inline-flex;
	margin: 0;
	font-size: clamp(11px, 1.1vw, 12.5px);
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent-text);
}

.ctc__hero {
	position: relative;
	padding-block: clamp(96px, 11vw, 150px) clamp(28px, 3.4vw, 44px);
	overflow: hidden;
}

.ctc__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(54% 48% at 80% 6%, rgba(30, 158, 47, .16), transparent 72%);
}

.ctc__hero > .ctc__wrap { position: relative; }

.ctc__h1 {
	margin: 14px 0 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.95rem, 4.6vw, 3.2rem);
	line-height: 1.05;
	letter-spacing: -.036em;
	max-width: 20ch;
	color: var(--ink);
}

.ctc__lede {
	margin: 18px 0 0;
	font-size: clamp(15px, 1.5vw, 17px);
	line-height: 1.66;
	color: var(--muted-hi);
	max-width: 62ch;
}

.ctc__body { padding-block: clamp(28px, 3vw, 44px) clamp(64px, 7vw, 104px); }

.ctc__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(26px, 3.4vw, 56px);
	align-items: start;
}

/* ---------- form ---------- */
.ctc__form {
	display: grid;
	gap: 18px;
	padding: clamp(22px, 2.6vw, 34px);
	border-radius: 22px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.ctc__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ctc__field { display: grid; gap: 7px; }

.ctc__field label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--muted-hi);
}

.ctc__req { color: var(--accent-text); }

.ctc__field input,
.ctc__field select,
.ctc__field textarea {
	width: 100%;
	padding: 13px 15px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--surface-2);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.4;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.ctc__field textarea { resize: vertical; min-height: 110px; }

/* a native select arrow would sit on the wrong background in dark mode */
.ctc__field select {
	background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 38px;
}

.ctc__field input::placeholder,
.ctc__field textarea::placeholder { color: var(--dim); }

.ctc__field input:focus-visible,
.ctc__field select:focus-visible,
.ctc__field textarea:focus-visible {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(124, 224, 42, .22);
}

.ctc__field .is-invalid {
	border-color: #E2574C;
	box-shadow: 0 0 0 3px rgba(226, 87, 76, .18);
}

/* keeps the honeypot out of sight and out of the tab order */
.ctc__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ctc__error {
	margin: 0;
	padding: 11px 14px;
	border-radius: 10px;
	border: 1px solid rgba(226, 87, 76, .45);
	background: rgba(226, 87, 76, .10);
	color: #E2574C;
	font-size: 14px;
	font-weight: 600;
}

:root[data-theme="light"] .ctc__error { color: #B3362B; }
:root[data-theme="light"] .ctc__field .is-invalid { border-color: #B3362B; }

.ctc__submit { justify-self: start; }
.ctc__submit[disabled] { opacity: .6; cursor: progress; }

.ctc__small {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--dim);
}

/* ---------- success ---------- */
.ctc__done {
	display: grid;
	justify-items: start;
	gap: 14px;
	padding: clamp(26px, 3vw, 40px);
	border-radius: 22px;
	border: 1px solid var(--edge-lit);
	background: var(--surface);
}

.ctc__done:focus { outline: none; }

.ctc__tick {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--on-accent);
}

.ctc__tick svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ctc__h2 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.4rem, 2.6vw, 1.95rem);
	letter-spacing: -.03em;
	color: var(--ink);
}

.ctc__p {
	margin: 0;
	font-size: 15px;
	line-height: 1.66;
	color: var(--read);
	max-width: 52ch;
}

/* ---------- side rail ---------- */
.ctc__side {
	display: grid;
	gap: 10px;
	align-content: start;
	padding: clamp(22px, 2.4vw, 30px);
	border-radius: 22px;
	border: 1px solid var(--line);
	background: rgba(var(--ink-rgb), .03);
}

.ctc__sideh {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -.025em;
	color: var(--ink);
}

.ctc__item {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	border-radius: 13px;
	border: 1px solid var(--edge);
	background: rgba(var(--ink-rgb), .04);
	transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.ctc__item:hover,
.ctc__item:focus-visible {
	border-color: var(--edge-lit);
	background: rgba(var(--ink-rgb), .08);
}

.ctc__item-k {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-text);
}

.ctc__item-v {
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.ctc__where {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--muted);
}

.ctc__expect {
	margin-top: 12px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.ctc__expect h3 {
	margin: 0 0 10px;
	font-family: var(--font-body);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted-hi);
}

.ctc__expect ol {
	display: grid;
	gap: 8px;
	margin: 0;
	padding-left: 18px;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.55;
}

@media (max-width: 900px) {
	.ctc__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.ctc__row { grid-template-columns: 1fr; }
	.ctc__form { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.ctc__field input,
	.ctc__field select,
	.ctc__field textarea,
	.ctc__item { transition: none; }
}
