/*
 * Contact page (/contact/) — design handoff "Contact.dc.html".
 * Loaded only on /contact/, after trm-redesign.css (inc/contact.php).
 * Colours, type and spacing are final values from the handoff.
 */

/* ---------- Hero: the theme's inner hero, with this page's differences ---------- */

.trm-hero--contact .trm-hero__shell {
	padding-top: clamp(36px, 6vw, 88px);
	padding-bottom: clamp(36px, 5vw, 72px);
}

.trm-hero--contact .trm-hero__content { max-width: 820px; }
.trm-hero--contact .trm-hero__eyebrow { margin-bottom: 30px; }
.trm-hero--contact .trm-hero__title { margin-bottom: 30px !important; }

.trm-hero--contact .trm-hero__intro {
	margin: 0 !important;
	text-wrap: pretty;
}

/* ---------- Compose section ---------- */

.trm-compose-section {
	background: #ffffff;
	padding-top: clamp(34px, 5vw, 72px);
	padding-bottom: clamp(34px, 5vw, 72px);
}

.trm-compose {
	max-width: 720px;
	margin: 0 auto;
	font-family: var(--trm-font);
}

/* 1. Intent label */
.trm-compose__intents {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.trm-compose__eyebrow {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	font: 600 11px/1 var(--trm-font);
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: #8a5a00;
}

.trm-compose__hint {
	margin: 0 0 16px !important;
	font: 400 14.5px/1.6 var(--trm-font);
	color: #5b6580;
}

/* 2. Intent selector: real radio buttons styled as cards */
.trm-intents {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.trm-intent {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	box-sizing: border-box;
	min-height: 44px;
	padding: 15px 18px;
	background: #ffffff;
	border: 1px solid rgba(18, 42, 99, 0.16);
	border-radius: 11px;
	font: 600 15px var(--trm-font);
	letter-spacing: -0.015em;
	color: #122a63;
	text-align: left;
	cursor: pointer;
}

.trm-intent__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.trm-intent__dot {
	flex: none;
	box-sizing: border-box;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	border: 1px solid rgba(18, 42, 99, 0.28);
	background: transparent;
}

.trm-intent__input:checked + .trm-intent__dot {
	border-color: #f5a81c;
	background: #f5a81c;
}

.trm-intent:has(.trm-intent__input:checked),
.trm-intent.is-selected {
	background: #f4f6fb;
	border-color: #122a63;
}

.trm-intent:has(.trm-intent__input:focus-visible) {
	outline: 2px solid #122a63;
	outline-offset: 2px;
}

/* 3. Draft block */
.trm-compose__draft {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid rgba(18, 42, 99, 0.14);
}

/* Only the checked intent's draft shows. Works without JavaScript via
   :has(); the script also sets .is-active, and browsers without :has()
   fall back to the default draft. */
.trm-draft { display: none; }
.trm-draft.is-active { display: block; }

@supports selector(:has(*)) {
	.trm-draft.is-active { display: none; }

	.trm-compose:has(#trm-intent-knowledge:checked) .trm-draft--knowledge,
	.trm-compose:has(#trm-intent-partnership:checked) .trm-draft--partnership,
	.trm-compose:has(#trm-intent-speaking:checked) .trm-draft--speaking,
	.trm-compose:has(#trm-intent-hello:checked) .trm-draft--hello {
		display: block;
	}
}

.trm-draft__label {
	display: block;
	margin: 0 0 8px !important;
	font: 600 11px var(--trm-font);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #5b6580;
}

/* Subject: editable (owner's request, after the handoff), styled like
   the message box, keeping the handoff's 600 17px/1.4 subject type. */
.trm-draft__subject {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 22px;
	padding: 12px 16px;
	border: 1px solid rgba(18, 42, 99, 0.16);
	border-radius: 10px;
	background: #ffffff;
	font: 600 17px/1.4 var(--trm-font);
	color: #122a63;
	outline: none;
	box-shadow: none;
}

.trm-draft__subject:focus { border-color: #122a63; }

.trm-draft__message {
	display: block;
	width: 100%;
	box-sizing: border-box;
	resize: vertical;
	margin: 0;
	padding: 16px;
	border: 1px solid rgba(18, 42, 99, 0.16);
	border-radius: 10px;
	background: #ffffff;
	font: 400 15px/1.75 var(--trm-font);
	color: #122a63;
	outline: none;
	box-shadow: none;
}

.trm-draft__message:focus { border-color: #122a63; }

/* 4. Action row */
.trm-draft__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
}

.trm-draft__send {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 16px 28px;
	border-radius: 11px;
	background: #f5a81c;
	font: 600 15.5px var(--trm-font);
	color: #122a63 !important;
	text-decoration: none !important;
	transition: background-color 0.2s;
}

.trm-draft__send:hover {
	background: #e09a13;
	color: #122a63 !important;
}

.trm-draft__send:focus-visible,
.trm-draft__copy:focus-visible {
	outline: 2px solid #122a63;
	outline-offset: 2px;
}

.trm-draft__copy {
	box-sizing: border-box;
	min-height: 44px;
	padding: 15px 22px;
	border: 1px solid rgba(18, 42, 99, 0.25);
	border-radius: 11px;
	background: #ffffff;
	font: 600 15px var(--trm-font);
	color: #122a63;
	cursor: pointer;
	transition: border-color 0.2s;
}

.trm-draft__copy:hover { border-color: #122a63; }
.trm-draft__copy[hidden] { display: none; }

.trm-compose__helper {
	margin: 14px 0 0 !important;
	font: 400 13.5px/1.6 var(--trm-font);
	color: #5b6580;
}

.trm-compose__address {
	color: #8a5a00;
	font-weight: 600;
	overflow-wrap: anywhere;
	user-select: text;
}

/* 5. Signed note */
.trm-note {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 30px;
	padding: 16px 18px;
	background: #f4f6fb;
	border-radius: 12px;
}

.trm-note__photo {
	display: block;
	flex: none;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 30%;
}

.trm-note__body {
	min-width: 0;
	font: 400 14.5px/1.6 var(--trm-font);
	color: #5b6580;
}

.trm-note__text { margin: 0 !important; }

.trm-note__sign {
	color: #122a63;
	font-weight: 600;
}

.trm-note__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 22px;
}

.trm-note__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 600 14px var(--trm-font);
	color: #122a63 !important;
	text-decoration: none !important;
}

.trm-note__link:hover { color: #0b4ca8 !important; }

.trm-note__arrow { color: #8a5a00; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
	.trm-intents { grid-template-columns: minmax(0, 1fr); }

	.trm-draft__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.trm-draft__actions > * {
		justify-content: center;
		text-align: center;
	}
}
