/* =====================================================================
 * Contact page (newsberg/template-contact.php).
 * Uses the --sc-* tokens from site-chrome.css.
 * ===================================================================== */
#content.ct { padding: 0 !important; }
.ct { background: #faf7fd; color: var(--sc-text); overflow-x: clip; }
.ct-wrap { max-width: var(--sc-max); margin: 0 auto; padding: 0 24px; }
.ct a { text-decoration: none; }
.ct a:focus-visible, .ct button:focus-visible { outline: 2px solid var(--sc-purple); outline-offset: 3px; }

/* ---------- Hero ---------- */
.ct-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 44px 0 128px;
	background: linear-gradient(125deg, #3a0766 0%, #4b0880 45%, var(--sc-purple) 100%);
	color: #fff;
}
.ct-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(40% 80% at 95% 0%, rgba(214, 140, 255, .45), transparent 70%),
		radial-gradient(30% 70% at 0% 100%, rgba(245, 196, 81, .16), transparent 70%);
}
.ct-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.4px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(60% 90% at 80% 30%, #000, transparent 75%);
	mask-image: radial-gradient(60% 90% at 80% 30%, #000, transparent 75%);
}
.ct-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 26px; font-size: 13.5px !important; color: rgba(255, 255, 255, .7); }
.ct-crumbs a { color: rgba(255, 255, 255, .75) !important; font-weight: 600; }
.ct-crumbs a:hover { color: #fff !important; }
.ct-crumbs i { font-size: 9px !important; opacity: .6; }
.ct-crumbs span { color: #fff; font-weight: 600; }
.ct .ct-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12.5px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #e4c9ff; }
.ct .ct-eyebrow i { color: #f5c451; letter-spacing: 0; }
.ct .ct-title { margin: 0; font-size: clamp(34px, 5vw, 58px) !important; font-weight: 800; line-height: 1.15; color: #fff; }
.ct .ct-desc { max-width: 640px; margin: 16px 0 0; font-size: 17px !important; line-height: 1.75; color: rgba(255, 255, 255, .85); }

.ct-body { position: relative; margin-top: -84px; padding-bottom: 88px; }

/* ---------- Channels ---------- */
.ct-channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0 0 32px; padding: 0; }
.ct-channel {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 22px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--sc-line);
	box-shadow: 0 18px 40px rgba(31, 18, 51, .08);
	color: var(--sc-text) !important;
	transition: transform .25s ease, box-shadow .25s ease;
}
a.ct-channel:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(106, 13, 173, .16); }
.ct-channel-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; margin-bottom: 12px;
	border-radius: 14px;
	background: var(--sc-lavender);
	color: var(--sc-purple);
	transition: background .25s ease, color .25s ease, transform .25s ease;
}
.ct-channel-icon i { font-size: 18px !important; }
a.ct-channel:hover .ct-channel-icon { background: var(--sc-purple); color: #fff; transform: rotate(-6deg); }
.ct-channel-label { font-size: 12.5px !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sc-muted); }
.ct-channel strong { font-size: 18px !important; font-weight: 800; line-height: 1.4; color: var(--sc-ink); overflow-wrap: anywhere; }
.ct-channel-note { margin-top: 2px; font-size: 13px !important; color: var(--sc-muted); }
.ct-channel-note i { font-size: 10px !important; }

/* ---------- Form + office ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }

.ct-form-card { padding: 36px 40px; border-radius: 24px; background: #fff; border: 1px solid var(--sc-line); box-shadow: 0 18px 44px rgba(31, 18, 51, .06); scroll-margin-top: 110px; }
.ct .ct-form-card h2 { margin: 0 0 6px; font-size: 26px !important; font-weight: 800; color: var(--sc-ink); scroll-margin-top: 110px; }
.ct .ct-form-intro { margin: 0 0 24px; font-size: 15px !important; color: var(--sc-muted); }

.ct-alert { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 22px; padding: 16px 18px; border-radius: 16px; }
.ct-alert i { margin-top: 2px; font-size: 20px !important; }
.ct-alert div { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px !important; }
.ct-alert.is-ok { background: #e9f9ef; color: #13824a; }
.ct-alert.is-error { background: #fdecec; color: #b42318; }
.ct-alert strong { font-size: 15.5px !important; }

.ct-form { display: flex; flex-direction: column; gap: 18px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; }
.ct-field label, .ct-label { font-size: 14px !important; font-weight: 700; color: var(--sc-ink); }
.ct-field label span { color: var(--sc-purple); }
.ct .ct-field input,
.ct .ct-field textarea {
	width: 100%;
	height: auto;
	padding: 13px 16px !important;
	border-radius: 14px !important;
	border: 1.5px solid #e6dcf2 !important;
	background: #fcfaff !important;
	font-size: 15.5px !important;
	line-height: 1.5;
	color: var(--sc-ink);
	box-shadow: none !important;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ct .ct-field textarea { min-height: 150px; resize: vertical; }
.ct .ct-field input:hover,
.ct .ct-field textarea:hover { border-color: #d3bfee !important; }
.ct .ct-field input:focus,
.ct .ct-field textarea:focus { outline: none; border-color: var(--sc-purple) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(106, 13, 173, .12) !important; }

.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-topic { position: relative; cursor: pointer; }
.ct-topic input { position: absolute; opacity: 0; pointer-events: none; }
.ct-topic span {
	display: inline-flex;
	padding: 8px 15px;
	border-radius: 999px;
	border: 1.5px solid #e6dcf2;
	background: #fff;
	font-size: 13.5px !important;
	font-weight: 600;
	color: var(--sc-text);
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.ct-topic:hover span { border-color: #d3bfee; color: var(--sc-purple); }
.ct-topic input:checked + span { background: var(--sc-purple); border-color: var(--sc-purple); color: #fff; }
.ct-topic input:focus-visible + span { outline: 2px solid var(--sc-purple); outline-offset: 2px; }

.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.ct .ct-privacy { margin: 0; font-size: 13px !important; color: var(--sc-muted); }
.ct-privacy i { color: var(--sc-purple); margin-right: 4px; }
.ct .ct-submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px !important;
	border: 0;
	border-radius: 999px !important;
	background: linear-gradient(120deg, #7b1fd1, var(--sc-purple) 50%, #4b0880) !important;
	color: #fff !important;
	font-size: 15.5px !important;
	font-weight: 700;
	box-shadow: 0 12px 26px rgba(106, 13, 173, .3) !important;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ct .ct-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(106, 13, 173, .38) !important; }
.ct-submit i { font-size: 14px !important; transition: transform .25s ease; }
.ct-submit:hover i { transform: translate(3px, -3px); }

.ct-office { position: sticky; top: 96px; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--sc-line); box-shadow: 0 18px 44px rgba(31, 18, 51, .06); }
.admin-bar .ct-office { top: 128px; }
.ct-map { position: relative; aspect-ratio: 4 / 3; background: var(--sc-lavender); }
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.ct-office-body { padding: 24px 26px 26px; }
.ct .ct-office-label { margin: 0 0 8px; font-size: 12.5px !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sc-muted); }
.ct .ct-office-addr { margin: 0 0 20px; font-size: 15px !important; line-height: 1.8; color: var(--sc-ink); }
.ct-links { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--sc-line); display: flex; flex-direction: column; gap: 4px; }
.ct-links a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; font-size: 14.5px !important; font-weight: 600; color: var(--sc-text) !important; transition: background .2s ease, color .2s ease; }
.ct-links a:hover { background: #faf6fe; color: var(--sc-purple) !important; }
.ct-links i { width: 18px; text-align: center; color: var(--sc-purple); font-size: 14px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ct-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.ct-grid { grid-template-columns: 1fr; }
	.ct-office { position: static; }
}
@media (max-width: 640px) {
	.ct-wrap { padding: 0 16px; }
	.ct-hero { padding: 28px 0 104px; }
	.ct .ct-desc { font-size: 15.5px !important; }
	.ct-body { margin-top: -72px; padding-bottom: 56px; }
	.ct-channels { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
	.ct-channel {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 14px;
		row-gap: 0;
		align-items: center;
		padding: 14px 16px;
		border-radius: 18px;
	}
	.ct-channel-icon { grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; }
	.ct-channel strong { font-size: 16px !important; }
	.ct-channel-note { font-size: 12.5px !important; margin-top: 0; }
	.ct-form-card { padding: 24px 20px; border-radius: 20px; }
	.ct-row { grid-template-columns: 1fr; }
	.ct-submit-row { flex-direction: column-reverse; align-items: stretch; }
	.ct .ct-submit { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ct *, .ct *::before, .ct *::after { transition: none !important; }
}
