/* ==========================================================================
   Contact
   ========================================================================== */

.nsd-contact { padding: 56px 0 80px; }
.nsd-contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.nsd-contact__pill { margin-bottom: 28px; }
.nsd-contact__h1 { margin: 0 0 26px; max-width: 12ch; }
.nsd-contact__lead { margin: 0 0 48px; max-width: 46ch; }

/* Contact rows */
.nsd-rows { margin: 0; border-bottom: 1px solid var(--hl); }
.nsd-row {
	padding: 18px 0; border-top: 1px solid var(--hl);
	display: grid; grid-template-columns: 90px 1fr; gap: 16px; font-size: 15px;
}
.nsd-row dt { color: var(--hm); margin: 0; }
.nsd-row dd { margin: 0; }
.nsd-row a { font-weight: 600; overflow-wrap: anywhere; transition: color .2s; }
.nsd-row a:hover { color: var(--hacc); }
.nsd-row__social { display: flex; gap: 20px; }

/* Form card. The design sets it on the page background colour. */
.nsd-form-card { background: var(--bg); color: var(--text); border-radius: var(--nsd-radius-panel); padding: 44px; }
:root[data-theme="dark"] .nsd-form-card { border: 1px solid var(--line); }

.nsd-thanks { padding: 32px 0; animation: nsd-pop .3s ease-out; }
.nsd-thanks:focus { outline: none; }
.nsd-thanks__h { margin: 0 0 16px; max-width: none; }
.nsd-thanks p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; max-width: 44ch; }
.nsd-textlink { color: var(--text); border-bottom: 1px solid var(--text); }

.nsd-form { display: flex; flex-direction: column; gap: 22px; }
.nsd-form__needs { border: 0; padding: 0; margin: 0; min-width: 0; }
.nsd-form__needs legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.nsd-chipset { display: flex; flex-wrap: wrap; gap: 8px; }

/* Chips are real checkboxes, so they work without JavaScript and are
   keyboard and screen-reader friendly. The visible pill is the span. */
.nsd-chip { position: relative; display: inline-block; cursor: pointer; }
.nsd-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.nsd-chip span {
	display: inline-block; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px;
	border: 1px solid var(--line); background: transparent; color: var(--text);
	transition: background .2s, color .2s, border-color .2s;
}
.nsd-chip:hover span { border-color: var(--text); }
.nsd-chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.nsd-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.nsd-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nsd-field { display: block; }
.nsd-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.nsd-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.nsd-field input,
.nsd-field textarea {
	font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; padding: 14px 16px;
	border: 1px solid var(--line); border-radius: var(--nsd-radius-input);
	background: var(--bg); color: var(--text);
	transition: border-color .2s;
}
.nsd-field input:hover, .nsd-field textarea:hover { border-color: var(--muted); }
.nsd-field input:focus-visible, .nsd-field textarea:focus-visible { border-color: var(--text); outline-offset: 0; }
.nsd-field textarea { resize: vertical; line-height: 1.6; }

/* The honeypot sits off-screen rather than display:none, which some bots skip. */
.nsd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nsd-form__error {
	font-size: 14.5px; line-height: 1.5; font-weight: 600; color: var(--text);
	border: 1px solid var(--accent); border-radius: var(--nsd-radius-input); padding: 12px 16px; margin: 0;
}
.nsd-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nsd-form__note { font-size: 13px; color: var(--muted); max-width: 36ch; }
.nsd-form .nsd-btn[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 960px) {
	.nsd-contact { padding-bottom: 72px; }
	.nsd-contact__grid { grid-template-columns: 1fr; gap: 32px; }
	.nsd-form-card { padding: 48px 24px; }
}
@media (max-width: 560px) {
	.nsd-form__two { grid-template-columns: 1fr; }
}

/* ---------- Topics (email instead of a form) ---------- */
.nsd-topics__h { margin: 0 0 10px; }
.nsd-topics__lead { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.nsd-topics__list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nsd-topic {
	display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center;
	padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--nsd-radius-card);
	color: var(--text); text-decoration: none; background: transparent;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.nsd-topic__t { grid-column: 1; font-weight: 700; font-size: 16px; }
.nsd-topic__d { grid-column: 1; font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.nsd-topic__go { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; }
.nsd-topic:hover, .nsd-topic:focus-visible { background: #9400AA; border-color: #9400AA; color: #FFFFFF; transform: translateX(4px); }
.nsd-topic:hover .nsd-topic__d, .nsd-topic:focus-visible .nsd-topic__d { color: rgba(255, 255, 255, .88); }
.nsd-topics__alt { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.nsd-copy {
	margin-left: 8px; padding: 4px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
	color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px;
}
.nsd-copy:hover { border-color: var(--text); }
