/* ============================================================
   Contact Us page styles
   Loaded on /contact/ via functions.php (sgls_enqueue_styles)
   Rendered by page-contact.php (server-side, no WP editor)
   ============================================================ */

/* Page header (rendered by the template) */
.sgls-contact-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
}
.sgls-contact-page__header {
	margin: 2rem 0 1.5rem;
}
.sgls-contact-page__title {
	font-family: "Merriweather", Georgia, serif;
	font-size: clamp(28px, 3.2vw, 38px);
	color: #1a4d2e;
	line-height: 1.15;
	margin: 0;
}

/* Page intro — short, clear, with response-time expectation */
.sgls-contact-intro {
	font-size: 1.05rem;
	color: #333;
	line-height: 1.65;
	max-width: 720px;
	margin: 0 0 1.5rem;
}
.sgls-contact-intro strong { color: #1a4d2e; }

/* ── 1. Deflection cards — "Before you contact us, check…" ────────────────
   A 4-card grid that lets visitors self-serve common questions before
   emailing the Secretariat. Reduces unnecessary enquiries.
   ─────────────────────────────────────────────────────────────────────── */
.sgls-contact-deflect {
	margin: 0 0 2.5rem;
}
.sgls-contact-deflect__label {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a4d2e;
	margin: 0 0 0.85rem;
	line-height: 1.5;
}
.sgls-contact-deflect__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.sgls-contact-deflect__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e5e5e0;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.sgls-contact-deflect__card:hover {
	border-color: #2e7d32;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(46,125,50,0.08);
}
.sgls-contact-deflect__card svg {
	width: 22px;
	height: 22px;
	color: #2e7d32;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
}
.sgls-contact-deflect__card-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a4d2e;
}
.sgls-contact-deflect__card-sub {
	font-size: 0.82rem;
	color: #666;
	line-height: 1.45;
}

/* ── 2. Two-column layout: contact details (left) + form (right) ──────── */
.sgls-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 2.5rem;
	margin: 0 0 2rem;
}
/* When the form is hidden, the template adds --single — keep the details
   block at a readable width instead of stretching across the page. */
.sgls-contact-grid--single {
	grid-template-columns: minmax(0, 560px);
}

/* ── 3. Structured contact details block ──────────────────────────────── */
.sgls-contact-details {
	background: #f4f8f5;
	border-radius: 8px;
	padding: 1.5rem 1.5rem 1.25rem;
}
.sgls-contact-details__heading {
	font-family: "Merriweather", Georgia, serif;
	font-size: 1.15rem;
	color: #1a4d2e;
	margin: 0 0 0.25rem;
}
.sgls-contact-details__org {
	font-size: 0.85rem;
	color: #666;
	margin: 0 0 1.25rem;
}
.sgls-contact-details__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
/* Defend against WordPress block editor wrapping list items in <p> tags —
   without these resets, GeneratePress paragraph margins create huge gaps. */
.sgls-contact-details__list p,
.sgls-contact-details__list li > p {
	margin: 0 !important;
}
.sgls-contact-details__list li {
	margin: 0 !important;
}
.sgls-contact-details__row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.sgls-contact-details__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #d8e4dc;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2e7d32;
}
.sgls-contact-details__icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}
.sgls-contact-details__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 2px;
}
.sgls-contact-details__value {
	display: block;
	font-size: 0.95rem;
	color: #222;
	line-height: 1.5;
}
.sgls-contact-details__value a {
	color: #1a4d2e;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s;
}
.sgls-contact-details__value a:hover { border-bottom-color: #2e7d32; }

/* Embedded map — optional, sits below the contact details */
.sgls-contact-map {
	margin-top: 1.25rem;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #d8e4dc;
}
.sgls-contact-map iframe {
	display: block;
	width: 100%;
	height: 220px;
	border: 0;
}

/* ── 4. Form column ─────────────────────────────────────────────────────── */
.sgls-contact-form {
	padding-top: 0.25rem;
}
.sgls-contact-form__heading {
	font-family: "Merriweather", Georgia, serif;
	font-size: 1.15rem;
	color: #1a4d2e;
	margin: 0 0 0.5rem;
}
.sgls-contact-form__sub {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.55;
	margin: 0 0 1.25rem;
}

/* Style the WPForms output to match the site — without fighting the plugin */
.sgls-contact-form .wpforms-field-label {
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	color: #1a4d2e !important;
	margin-bottom: 6px !important;
}
.sgls-contact-form .wpforms-field input[type="text"],
.sgls-contact-form .wpforms-field input[type="email"],
.sgls-contact-form .wpforms-field select,
.sgls-contact-form .wpforms-field textarea {
	border: 1px solid #d8ded9 !important;
	border-radius: 6px !important;
	padding: 10px 12px !important;
	font-size: 0.95rem !important;
	font-family: inherit !important;
}
.sgls-contact-form .wpforms-field input:focus,
.sgls-contact-form .wpforms-field select:focus,
.sgls-contact-form .wpforms-field textarea:focus {
	border-color: #2e7d32 !important;
	outline: 2px solid rgba(46,125,50,0.15) !important;
	outline-offset: 0 !important;
}
.sgls-contact-form .wpforms-submit {
	background: #2e7d32 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 11px 22px !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
	cursor: pointer !important;
	transition: background 0.15s !important;
}
.sgls-contact-form .wpforms-submit:hover {
	background: #1a4d2e !important;
}

/* Fallback "form coming soon" notice — used if WPForms isn't set up yet */
.sgls-contact-form__notice {
	background: #fff;
	border: 1px dashed #d8e4dc;
	border-radius: 8px;
	padding: 1.25rem;
	font-size: 0.92rem;
	color: #555;
	line-height: 1.6;
}
.sgls-contact-form__notice a {
	color: #1a4d2e;
	font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.sgls-contact-deflect__grid { grid-template-columns: repeat(2, 1fr); }
	.sgls-contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 480px) {
	.sgls-contact-deflect__grid { grid-template-columns: 1fr; }
}
