/* Contact page and pages made in the dashboard. Uses the site's tokens from style.css and the hero from about.css. */

.ct { padding-block: var(--section); background: linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.ct__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.25rem, 1rem + 2.5vw, 3rem); align-items: stretch; }

/* the school details: a dark card with the address, the phone numbers and the e-mail addresses */
.ct__details { display: grid; align-content: start; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: calc(var(--r-lg) * 1.25); background: var(--band); color: var(--on-dark); box-shadow: 0 1.5rem 4rem -2rem rgba(12, 74, 143, 0.5); }
.ct__block + .ct__block { padding-top: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-top: 1px solid var(--line-dark); }
.ct__label { margin: 0 0 0.9rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--flame); }
.ct__address { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.65rem); font-style: normal; font-weight: 320; line-height: 1.35; color: var(--base); }
.ct__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.ct__list li { color: var(--base); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); }
.ct__list a { color: var(--base); text-decoration: none; border-bottom: 1px solid rgba(254, 182, 40, 0.5); transition: color 0.2s, border-color 0.2s; }
.ct__list a:hover, .ct__list a:focus-visible { color: var(--flame); border-bottom-color: var(--flame); }
.ct__note { margin-left: 0.35rem; font-size: 0.9375rem; color: var(--flame); }

/* the form on a white sheet */
.ct__form { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: calc(var(--r-lg) * 1.25); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--flame); box-shadow: 0 1.5rem 3.5rem -2rem rgba(12, 74, 143, 0.35); }
.ct__intro { margin-bottom: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.ct__title { margin: 0 0 0.75rem; font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 290; line-height: 1.08; letter-spacing: -0.025em; color: var(--maroon); }
.ct__text { margin: 0; max-width: 36rem; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.7; color: var(--text); }
.ct__form form { display: grid; gap: 1.25rem; }
.ct__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ct__field { display: grid; gap: 0.45rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text); }
.ct__field input, .ct__field textarea { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--base); font: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.ct__field input:focus, .ct__field textarea:focus { outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(254, 182, 40, 0.3); }
.ct__field [aria-invalid="true"] { border-color: var(--red); }
.ct__err { font-weight: 500; letter-spacing: 0; color: var(--red); }
.ct__form .btn { justify-self: start; }
.ct__ok { margin: 0; padding: 1.1rem 1.25rem; border-radius: var(--r-sm); background: var(--mint-tint); border: 1px solid rgba(23, 128, 79, 0.35); color: var(--green); font-weight: 500; }
.ct__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the map */
.ct__map-wrap { margin-top: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.ct__map { position: relative; overflow: hidden; height: clamp(18rem, 14rem + 16vw, 30rem); border: 2px solid var(--flame); border-radius: calc(var(--r-lg) * 1.25); background: var(--surface); box-shadow: 0 1.5rem 3.5rem -2rem rgba(12, 74, 143, 0.4); }
.ct__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 1000px) { .ct__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .ct__row { grid-template-columns: minmax(0, 1fr); } }
/* Sections of pages made in the dashboard */
.cp-rich { padding-block: clamp(3rem, 2rem + 5vw, 7rem); background: var(--base); }
.cp-rich:nth-of-type(even) { background: var(--surface); }
.cp-rich__inner--image { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.cp-rich__img { margin: 0; overflow: hidden; border-radius: var(--r-lg); }
.cp-rich__img img { width: 100%; height: auto; display: block; }
.cp-rich__body { max-width: 46rem; margin-top: 1.25rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.7; color: var(--text); }
.cp-rich__body p { margin: 0 0 1em; }
.cp-rich__body ul, .cp-rich__body ol { margin: 0 0 1em; padding-left: 1.4em; }
.cp-rich__body a { color: var(--maroon); text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 3px; }
.cp-rich .btn { margin-top: 1rem; }
@media (max-width: 900px) { .cp-rich__inner--image { grid-template-columns: minmax(0, 1fr); } }

/* the thank-you line sits under the form after a message is sent */
.ct__ok--below { margin-top: 1.25rem; scroll-margin-top: calc(var(--header-c, 70px) + 2rem); }
