/* Contact page */
.ct .ct-sec { padding: 120px 0; }
.ct-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.ct-reveal.in { opacity: 1; transform: none; }

/* hero: the two direct lines */
.ct-direct { display: flex; flex-direction: column; margin-top: 36px; border-top: 1px solid rgba(255,255,255,.22); max-width: 480px; }
/* the line above and the two rows below share one measure */
.ct .v3-splitin .v3-sub { max-width: 480px; }
@media (max-width: 575px) { .ct-direct, .ct .v3-splitin .v3-sub { max-width: none; } }
.ct-direct a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; }
.ct-direct a:hover { color: #fff; text-decoration: none; }
.ct-direct span { font-family: 'Gotham-m'; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ct-direct b { font-family: 'Gotham-l'; font-weight: normal; font-size: 18px; letter-spacing: .01em; }
.ct-direct a:hover b { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
/* the office hours sit under the number, inside the same row */
.ct-direct a.ct-call { border-bottom: 0; padding-bottom: 4px; }
/* after sending, the thank-you is brought up to sit below the header, not under it */
@media (min-width: 768px) { .ct-panel { scroll-margin-top: 96px; } }
.ct-direct .ct-hours { margin: 0; padding: 0 0 16px; border-bottom: 1px solid rgba(255,255,255,.22); text-align: right; color: rgba(255,255,255,.6); font-family: 'Gotham'; font-size: 14px; line-height: 1.55; }
.ct-direct .ct-hours span { font-family: inherit; font-size: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }
.ct-direct .ct-hours a { display: inline; padding: 0; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* how can we help */
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.ct-topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); position: sticky; top: 100px; }
.ct-topics li { border-bottom: 1px solid var(--rule); }
.ct-topics button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 16px; align-items: center; background: none; border: 0; padding: 20px 0; text-align: left; cursor: pointer; color: var(--ink); transition: padding .35s cubic-bezier(.2,.7,.2,1); }
.ct-topics .n { font-family: 'Gotham-l'; font-size: 12px; letter-spacing: .2em; color: var(--muted); align-self: start; padding-top: 6px; }
.ct-topics .tt b { display: block; font-family: 'Georgia'; font-weight: normal; font-size: 22px; line-height: 1.25; color: var(--muted); transition: color .3s; }
.ct-topics .tt small { display: block; font-family: 'Gotham-l'; font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 4px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s ease, margin .35s; }
.ct-topics .ar { width: 20px; height: 13px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s; }
.ct-topics button:hover .tt b { color: var(--ink); }
.ct-topics button.on { padding-left: 10px; }
.ct-topics button.on .tt b { color: var(--ink); }
.ct-topics button.on .tt small { max-height: 80px; opacity: 1; }
.ct-topics button.on .ar { opacity: 1; transform: none; }
.ct-topics button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.ct-panel { position: relative; border: 1px solid var(--rule); padding: clamp(28px, 3.4vw, 52px); background: #fff; min-height: 560px; }
.ct-panelhead { margin-bottom: 30px; }
.ct-panelhead .v3-kicker { margin-bottom: 12px; }
.ct-panelhead h3 { font-family: 'Georgia' !important; font-weight: normal; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.ct-panel.swap .ct-panelhead, .ct-panel.swap .ct-form, .ct-panel.swap .ct-info.on { animation: ctin .5s cubic-bezier(.2,.7,.2,1); }
@keyframes ctin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ct-info { display: none; }
.ct-info.on { display: block; }
.ct-info p { font-family: 'Gotham-l'; font-size: 17px; line-height: 1.75; color: #33363b; margin: 0 0 30px; max-width: 46ch; }
.ct-infolinks { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.ct-form[hidden] { display: none; }
.ct-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-form [hidden] { display: none !important; }
.ct-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
.ct-row.one { grid-template-columns: 1fr; }

/* campus cards */
.ct-campus { border: 0; padding: 0; margin: 0 0 26px; }
.ct-campus legend { font-family: 'Gotham-m'; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; float: none; width: auto; padding: 0; }
.ct-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ct-card { position: relative; margin: 0; cursor: pointer; }
.ct-card input { position: absolute; opacity: 0; pointer-events: none; }
.ct-cardin { display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 100%; min-height: 96px; padding: 16px 14px; border: 1px solid var(--rule); transition: border-color .25s, box-shadow .25s, background .25s; }
.ct-cardin img { height: 26px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.ct-cardin b { font-family: 'Georgia'; font-weight: normal; font-size: 17px; color: var(--ink); }
.ct-cardin small { font-family: 'Gotham-l'; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.ct-card:hover .ct-cardin { border-color: rgba(17,18,20,.4); }
.ct-card input:checked + .ct-cardin { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ct-card input:focus-visible + .ct-cardin { outline: 2px solid var(--ink); outline-offset: 2px; }

/* visit times */
.ct-times { border: 0; padding: 0; }
.ct-times > div { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.ct-times label { margin: 0; cursor: pointer; }
.ct-times input { position: absolute; opacity: 0; pointer-events: none; }
.ct-times b { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--rule); font-family: 'Gotham'; font-weight: normal; font-size: 14px; color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.ct-times input:checked + b { background: var(--ink); border-color: var(--ink); color: #fff; }
.ct-times input:focus-visible + b { outline: 2px solid var(--ink); outline-offset: 2px; }
.ct-form input[type="date"] { min-height: 39px; }

.ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 10px; }
.ct-send .v3-btn { min-width: 180px; justify-content: center; }
.ct-send .v3-btn[disabled] { opacity: .5; pointer-events: none; }
.ct-note { margin: 0; font-family: 'Gotham-l'; font-size: 14px; color: var(--muted); }
.ct-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ct-err { flex-basis: 100%; margin: 0; font-family: 'Gotham'; font-size: 14px; color: #b4231f; }
.ct-form .v3-f input.error, .ct-form .v3-f textarea.error, .ct-form .v3-f select.error { border-bottom-color: #b4231f; }
.ct-fielderr { font-family: 'Gotham'; font-size: 12px; color: #b4231f; }

/* sent */
.ct-done { text-align: left; padding: 24px 0; }
.ct-done[hidden] { display: none; }
.ct-tick { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ink); color: var(--ink); margin-bottom: 26px; }
.ct-tick svg { width: 28px; height: 28px; stroke-dasharray: 24; stroke-dashoffset: 24; animation: cttick .7s .15s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes cttick { to { stroke-dashoffset: 0; } }
.ct-done h3 { font-family: 'Georgia' !important; font-weight: normal; font-size: 34px; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0 0 12px; }
.ct-done p { font-family: 'Gotham-l'; font-size: 17px; line-height: 1.7; color: #33363b; margin: 0 0 28px; max-width: 44ch; }
.ct-done .lnk { background: none; border: 0; padding: 0 0 6px; cursor: pointer; }

/* visit us: the map beside the three campuses */
.ct-visit { border-top: 1px solid var(--rule); padding-bottom: 0 !important; }
.ct-mapgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: 1px solid var(--ink); }
.ct-map { position: relative; min-height: 600px; background: #eef0f1; }
.ct-places { display: flex; flex-direction: column; }
.ct-place { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 32px clamp(24px, 3.4vw, 56px); border-bottom: 1px solid var(--rule); border-left: 3px solid transparent; cursor: pointer; transition: background .3s, border-color .3s; outline: none; }
.ct-place:hover, .ct-place.on { background: #f6f6f7; border-left-color: var(--acc, var(--ink)); }
.ct-place:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.ct-placelogo { height: 34px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.ct-addr { font-family: 'Gotham-l'; font-size: 15px; line-height: 1.6; color: #33363b; margin: 0; max-width: 40ch; }
.ct-placelinks { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.ct-placelinks .lnk { font-size: 12px; background: none; border: 0; cursor: pointer; }
.ct-mapfall { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Gotham-l'; font-size: 14px; color: var(--muted); padding: 24px; text-align: center; }
/* the campus markers: each centre's own logo on a white plate, pointing to a dot in its colour */
.ct-map .ctm { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, calc(-100% + 9px)); cursor: pointer; transition: z-index 0s; z-index: 2; }
.ct-map .ctm .plate { display: block; background: #fff; padding: 10px 13px; box-shadow: 0 8px 22px rgba(17,18,20,.2), 0 1px 3px rgba(17,18,20,.12); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; transform-origin: bottom center; }
.ct-map .ctm .plate img { display: block; height: 30px; width: auto; }
.ct-map .ctm .tip { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #fff; margin-top: -1px; }
.ct-map .ctm .pt { width: 18px; height: 18px; border-radius: 50%; background: var(--acc); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); margin-top: 5px; }
.ct-map .ctm.on { z-index: 4; }
.ct-map .ctm.on .plate { transform: scale(1.12); box-shadow: 0 12px 30px rgba(17,18,20,.28), 0 0 0 2px var(--acc); }

@media (max-width: 991px) {
  .ct .ct-sec { padding: 88px 0; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-topics { position: static; }
  .ct-mapgrid { grid-template-columns: 1fr; }
  .ct-map { min-height: 420px; }
}
@media (max-width: 767px) {
  .ct .ct-sec { padding: 72px 0; }
  .ct-direct { margin-top: 28px; }
  .ct-direct b { font-size: 16px; }
  /* on a phone each row reads top to bottom, left-aligned: the label, the number or address, then its line */
  .ct-direct a { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ct-direct .ct-hours { text-align: left; }
  /* on a phone the choices are a row of tabs to swipe, the form straight beneath */
  .ct-topics { display: flex; gap: 8px; overflow-x: auto; border-top: 0; margin: 0 -15px 20px; padding: 0 15px 4px; scrollbar-width: none; }
  .ct-topics::-webkit-scrollbar { display: none; }
  .ct-topics li { border: 0; flex: 0 0 auto; }
  .ct-topics button { display: block; padding: 0 16px; height: 44px; border: 1px solid var(--rule); white-space: nowrap; }
  .ct-topics button.on { padding-left: 16px; background: var(--ink); border-color: var(--ink); }
  .ct-topics .n, .ct-topics .ar, .ct-topics .tt small { display: none; }
  .ct-topics .tt b { font-family: 'Gotham-m'; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); line-height: 42px; }
  .ct-topics button.on .tt b { color: #fff; }
  .ct-panel { border: 0; padding: 0; min-height: 0; }
  .ct-panelhead { margin-bottom: 24px; }
  .ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-row { grid-template-columns: 1fr; }
  .ct-send .v3-btn { width: 100%; }
  .ct-map { min-height: 360px; }
  .ct-place { padding: 26px 15px; }
}
.ct .ct-sec { scroll-margin-top: 70px; }

/* the hero film: keep both hands in view whatever the width */
.ct .v3-splitimg video { object-position: 38% 50%; }
