/* com_schoolcontact – contact page. Everything is scoped to .sc-contactpage (not .com-schoolcontact: templates
   such as Helix Ultimate put "com-schoolcontact" on <body>, so that selector would style the whole page). Values come from
   CSS custom properties set per page (validated server side, see PageLayout::cssVariables). */

.sc-contactpage {
	--sc-max-width: 1140px;
	--sc-section-gap: 3rem;
	--sc-icon-color: #0066cc;
	--sc-icon-size: 40px;
	--sc-icon-gap: 16px;
	--sc-icon-circle: 72px;
	--sc-icon-bg: transparent;
	box-sizing: border-box;
	max-width: var(--sc-max-width);
	margin-inline: auto;
	overflow-wrap: anywhere;
}

.sc-contactpage *,
.sc-contactpage *::before,
.sc-contactpage *::after {
	box-sizing: inherit;
}

.sc-contactpage .sc-section {
	margin-block: 0 var(--sc-section-gap);
}

.sc-contactpage .sc-section--contact { background: var(--sc-bg-contact, transparent); }
.sc-contactpage .sc-section--staff { background: var(--sc-bg-staff, transparent); }
.sc-contactpage .sc-section--map { background: var(--sc-bg-map, transparent); }
.sc-contactpage .sc-section--form { background: var(--sc-bg-form, transparent); }

.sc-contactpage .sc-section__inner {
	padding-block: 0.5rem;
}

.sc-contactpage .sc-section__inner {
	padding-inline: clamp(0rem, 2vw, 1rem);
}

/* Headings are aligned independently of the content (option "Heading alignment"). */
.sc-contactpage.sc-headings-left .sc-page__title,
.sc-contactpage.sc-headings-left .sc-section__title {
	text-align: left;
}

.sc-contactpage.sc-headings-center .sc-page__title,
.sc-contactpage.sc-headings-center .sc-section__title {
	text-align: center;
}

.sc-contactpage.sc-headings-right .sc-page__title,
.sc-contactpage.sc-headings-right .sc-section__title {
	text-align: right;
}

.sc-contactpage .sc-section__title {
	margin-block: 0 1.5rem;
}

/* ---- section 1: three equal columns on desktop, stacked on small screens ---- */
.sc-contactpage .sc-contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.sc-contactpage .sc-contact-grid {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	}
}

.sc-contactpage .sc-contact-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 0;
}

.sc-contactpage.sc-align-left .sc-contact-col {
	align-items: flex-start;
	text-align: start;
}

.sc-contactpage .sc-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--sc-icon-color);
	margin-block-end: var(--sc-icon-gap);
	line-height: 0;
}

.sc-contactpage .sc-icon-wrap--circle {
	width: var(--sc-icon-circle);
	height: var(--sc-icon-circle);
	border-radius: 50%;
	background: var(--sc-icon-bg);
}

.sc-contactpage .sc-icon {
	width: var(--sc-icon-size);
	height: var(--sc-icon-size);
	flex: none;
}

.sc-contactpage .sc-contact-col__title {
	font-size: 1.15rem;
	margin-block: 0 0.5rem;
}

.sc-contactpage .sc-contact-col__body {
	font-style: normal;
	margin: 0;
	line-height: 1.6;
}

.sc-contactpage .sc-list {
	list-style: none;
	padding: 0;
}

/* Telephone and fax lines start at the same position, also when the column is centred. */
.sc-contactpage .sc-contact-col--phone .sc-list {
	display: inline-block;
	text-align: start;
}

.sc-contactpage .sc-phone__label {
	display: inline-block;
	min-width: 2.75em;
	font-weight: 600;
	margin-inline-end: 0.35em;
}

.sc-contactpage .sc-contact-col a,
.sc-contactpage .sc-form a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.sc-contactpage a:focus-visible,
.sc-contactpage button:focus-visible,
.sc-contactpage input:focus-visible,
.sc-contactpage textarea:focus-visible,
.sc-contactpage [tabindex]:focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #fff;
}

/* ---- embeds and fallbacks ---- */
.sc-contactpage .sc-embed {
	min-width: 0;
}

.sc-contactpage .sc-fallback {
	padding: 1rem;
	border: 1px dashed #8a8f94;
	border-radius: 0.25rem;
	color: #3d4246;
}

.sc-contactpage.sc-align-center .sc-fallback {
	text-align: center;
}

/* ---- section 4: contact form (form styles: form.css, scoped to .sc-formbox) ---- */
.sc-contactpage .sc-form,
.sc-contactpage .sc-form-errors,
.sc-contactpage .sc-form-notice {
	margin-inline: auto;
}

.sc-contactpage.sc-align-left .sc-form,
.sc-contactpage.sc-align-left .sc-form-errors,
.sc-contactpage.sc-align-left .sc-form-notice {
	margin-inline: 0;
}

@media (prefers-reduced-motion: reduce) {
	.sc-contactpage * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
