@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0B4AA8;
  --blue-dark: #083A85;
  --blue-night: #062B63;
  --orange: #FF6700;
  --orange-dark: #E05A00;
  --ink: #14213D;
  --muted: #4A5568;
  --line: #CCD6E6;
  --line-soft: #E3E9F3;
  --tint: #EEF3FB;
  --error: #B42318;
  --error-tint: #FDECEA;
  --success: #17663A;
  --success-tint: #E8F5EC;
  --white: #FFFFFF;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Montserrat", "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-family: var(--font-title);
  font-weight: 700;
}

h1 {
  font-size: 1.625rem;
  line-height: 1.2;
}

h2 {
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

hr,
.separator {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.625rem 1rem;
  background: var(--blue);
  border-bottom: 4px solid var(--orange);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.site-name:hover {
  color: var(--white);
}

.site-name img {
  width: 1.75rem;
  height: 1.75rem;
}

.site-name span {
  color: var(--orange);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
}

.site-nav form {
  margin: 0;
}

.site-nav a,
.link-button {
  padding: 0;
  color: var(--white);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover,
.link-button:hover {
  color: var(--white);
  text-decoration: underline;
}

.public-nav {
  display: flex;
  gap: 0.75rem;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
}

.public-nav a {
  flex: none;
  padding: 0.625rem 0;
  color: var(--blue);
  border-bottom: 3px solid transparent;
  font-weight: 600;
  text-decoration: none;
}

.public-nav a:hover {
  color: var(--blue-dark);
  border-bottom-color: var(--line);
}

.public-nav [aria-current="page"] {
  border-bottom-color: var(--orange);
  font-weight: 700;
}

.space-nav {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--blue-night);
  font-size: 0.9375rem;
}

.space-nav a {
  flex: none;
  padding: 0.625rem 0;
  color: #D5E2F6;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.space-nav a:hover {
  color: var(--white);
}

.space-nav [aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--orange);
  font-weight: 700;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.site-footer {
  padding: 1.5rem 1rem;
  color: #D5E2F6;
  background: var(--blue-night);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0 0 0.375rem;
}

.site-footer strong {
  color: var(--white);
  font-family: var(--font-title);
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--white);
}

main form {
  max-width: 28rem;
  margin-bottom: 1rem;
}

main form p {
  margin: 0 0 1rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

select,
textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

select:hover,
textarea:hover,
input:not([type="checkbox"]):not([type="radio"]):hover {
  border-color: var(--blue);
}

input[type="checkbox"] {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--blue);
}

p:has(> input[type="checkbox"]):not(:has(> input[type="file"])) {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
}

p:has(> input[type="checkbox"]):not(:has(> input[type="file"])) label {
  margin: 0;
  font-weight: 400;
}

p:has(> input[type="file"]) {
  overflow-wrap: anywhere;
}

p:has(> input[type="file"]) > a {
  display: block;
}

p:has(> input[type="file"]) > input[type="checkbox"] {
  display: inline-block;
  margin: 0.5rem 0.25rem 0.5rem 0;
  vertical-align: middle;
}

p:has(> input[type="file"]) > input[type="checkbox"] + label {
  display: inline;
  font-weight: 400;
}

p:has(> input[type="file"]) > input[type="file"] {
  margin-top: 0.25rem;
}

.helptext {
  display: block;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
}

main form ul:not(.errorlist) {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.errorlist {
  margin: 0 0 0.25rem;
  padding: 0;
  color: var(--error);
  font-size: 0.875rem;
  list-style: none;
}

main button,
.button {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.625rem 1.5rem;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

main button:hover,
.button:hover {
  color: var(--white);
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button-accent {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.button-accent:hover {
  color: var(--ink);
  background: #FF8433;
  border-color: #FF8433;
}

main .button-secondary,
main .google-button {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue);
}

main .button-secondary:hover,
main .google-button:hover {
  color: var(--blue-dark);
  background: var(--tint);
  border-color: var(--blue-dark);
}

main .google-button {
  width: 100%;
}

main .danger-button {
  background: var(--error);
  border-color: var(--error);
}

main .danger-button:hover {
  background: #8F1C13;
  border-color: #8F1C13;
}

main form .consent-note {
  margin-bottom: 1rem;
}

.consent-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.messages {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.messages li,
.notice {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--blue-night);
  background: var(--tint);
  border-radius: 6px;
  font-size: 0.9375rem;
}

.messages .success {
  color: var(--success);
  background: var(--success-tint);
}

.messages .error {
  color: var(--error);
  background: var(--error-tint);
}

.notice {
  margin-bottom: 1rem;
}

.hero {
  position: relative;
  padding: 2rem 1rem 2.5rem;
  overflow: hidden;
  background: var(--white) url("../img/circuit.svg") right top / 40rem auto no-repeat;
  border-bottom: 1px solid var(--line-soft);
}

.hero-inner {
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
}

.hero-crescent {
  position: absolute;
  top: -1rem;
  right: -5rem;
  width: 15rem;
  height: 15rem;
  opacity: 0.18;
}

.hero-brand {
  margin: 0 0 1rem;
  color: var(--blue);
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-brand span {
  display: block;
  color: var(--orange-dark);
  font-size: 1.375rem;
  letter-spacing: 0.32em;
}

.hero h1 {
  position: relative;
  max-width: 36rem;
  font-size: 2rem;
  line-height: 1.15;
}

.hero-lead {
  position: relative;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-topics {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.hero-topics li {
  padding: 0.25rem 0.75rem;
  color: var(--blue-dark);
  background: var(--tint);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero .button {
  position: relative;
  width: 100%;
}

.hero-actions {
  position: relative;
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.hero .button-secondary {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue);
}

.hero .button-secondary:hover {
  color: var(--blue-dark);
  background: var(--tint);
}

.section-link {
  margin-top: 1rem;
}

.card-grid .session-card {
  margin-bottom: 0;
}

.card-grid .session-card .button,
.card-grid .session-card button {
  width: 100%;
}

.steps-title {
  margin-top: 0.5rem;
  font-size: 1.375rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  background: var(--tint);
  border-radius: 8px;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink);
  background: var(--orange);
  border-radius: 50%;
  content: counter(step);
  font-family: var(--font-title);
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.space-band {
  position: relative;
  padding: 1.5rem 1rem;
  overflow: hidden;
  background: var(--blue);
}

.space-band-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.space-band::after {
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 10rem;
  height: 10rem;
  background: url("../img/crescent-light.svg") center / contain no-repeat;
  content: "";
  opacity: 0.55;
}

.space-band h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--white);
}

.band-label {
  position: relative;
  z-index: 1;
  margin: 0 0 0.25rem;
  color: #D5E2F6;
  font-size: 0.875rem;
  font-weight: 600;
}

.band-label a {
  color: #FFFFFF;
}

.page-auth {
  background: var(--tint) url("../img/circuit.svg") right top / 44rem auto no-repeat;
}

.page-auth .site-main {
  flex: 0 1 auto;
  max-width: 30rem;
  margin: 1.5rem auto 3rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.page-auth .site-footer {
  margin-top: auto;
}

.muted {
  color: var(--muted);
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li + li {
  margin-top: 0.75rem;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  color: var(--blue);
  background: var(--tint);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.link-list a::after {
  color: var(--orange-dark);
  content: "\203A";
  font-size: 1.5rem;
  line-height: 1;
}

.link-list a:hover {
  color: var(--blue-dark);
  background: #E2EBF8;
}

.account {
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}

.account h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.account p {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
}

.account form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: none;
  margin: 0;
  padding: 0.375rem 0;
}

.account form p {
  margin: 0;
}

.account button {
  min-height: 2.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

.search-form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: none;
  margin-bottom: 1.5rem;
}

.search-form p {
  flex: 1;
  margin: 0;
}

main button:disabled {
  color: var(--muted);
  background: var(--line-soft);
  border-color: var(--line-soft);
  cursor: not-allowed;
}

.filter-form {
  display: grid;
  gap: 0.75rem;
  max-width: none;
  margin-bottom: 1.5rem;
}

.filter-form p {
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.course-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.course-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.course-card-body {
  padding: 1rem;
}

.course-card h2,
.course-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.course-card p {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
}

.course-card .course-theme {
  color: var(--orange-dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

.course-facts {
  color: var(--muted);
}

.session-card {
  margin-bottom: 0.75rem;
  padding: 1rem;
  background: var(--tint);
  border-radius: 8px;
}

.session-card h2,
.session-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.session-card p {
  margin: 0 0 0.25rem;
}

.session-card .session-dates {
  font-weight: 700;
}

.session-card .session-price {
  color: var(--blue);
  font-family: var(--font-title);
  font-size: 1.125rem;
  font-weight: 700;
}

.session-card .button,
.session-card button {
  width: 100%;
  margin-top: 0.75rem;
}

main form.wide-form {
  max-width: none;
}

.contact-trap {
  position: absolute;
  left: -9999px;
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.session-actions .button {
  min-height: 2.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

.tag {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  color: var(--blue-dark);
  background: var(--tint);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.tag-accent {
  color: var(--ink);
  background: #FFD9BF;
}

.tag-muted {
  color: var(--muted);
  background: var(--line-soft);
}

.course-preview {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.pagination {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 2rem;
  }

  .site-header,
  .public-nav,
  .space-nav,
  .site-footer {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .hero {
    padding: 3.5rem 2rem 4rem;
  }

  .hero-crescent {
    top: -2rem;
    right: 2rem;
    width: 22rem;
    height: 22rem;
    opacity: 1;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero .button {
    width: auto;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .public-nav {
    gap: 1.5rem;
    font-size: 0.9375rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps li {
    padding: 4rem 1rem 1rem;
  }

  .space-band {
    padding: 2rem;
  }

  .space-band::after {
    right: 3rem;
    width: 12rem;
    height: 12rem;
  }

  .page-home .site-main,
  .page-wide .site-main {
    max-width: 62rem;
  }

  .filter-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .session-card .button,
  .session-card button {
    width: auto;
  }
}

.payment-proof {
  display: block;
  max-width: 100%;
  max-height: 24rem;
  height: auto;
}

.account form.payment-refusal {
  display: block;
}

.account form.payment-refusal p {
  margin-bottom: 0.5rem;
}
