.contact-page {
  background: #fff;
}

.contact-main {
  overflow: clip;
}

.contact-hero {
  position: relative;
  height: 25vw;
  min-height: 300px;
  overflow: hidden;
  color: #fff;
  background: #1b242b;
}

.contact-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 29%;
  opacity: 0.72;
}

.contact-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
}

.contact-hero h1 {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: min(clamp(50.4px, 6.48vw, 118.8px), var(--site-title-cap));
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.contact-breadcrumb {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.contact-breadcrumb__inner {
  display: flex;
  width: 94%;
  max-width: 1600px;
  align-items: center;
  margin-inline: auto;
  padding-block: 20px;
}

.contact-breadcrumb a {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.contact-breadcrumb svg {
  width: 16px;
  height: 16px;
  fill: #000;
  stroke: #000;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.contact-breadcrumb__separator {
  margin-inline: 10px;
  color: #999;
  font-size: 18px;
  line-height: 1;
}

.contact-breadcrumb__current {
  color: #222;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.contact-body {
  padding-block: 5%;
  background-color: #f2f2f2;
  background-image: linear-gradient(rgba(242, 242, 242, 0.87), rgba(242, 242, 242, 0.94)), url("assets/course-motion-bg.svg");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-body__inner {
  display: flex;
  width: 90%;
  max-width: 1600px;
  margin-inline: auto;
}

.contact-details {
  flex: 0 0 55%;
  padding-right: 6%;
}

.contact-details > h2 {
  position: relative;
  margin: 0 0 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid #999;
  color: #333;
  font-size: min(26px, var(--site-title-cap));
  font-weight: 800;
  line-height: normal;
  text-align: left;
}

.contact-details > h2::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 1px;
  background: #000;
  content: "";
}

.contact-detail {
  padding-block: 15px;
}

.contact-detail h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #000;
  font-size: min(16px, var(--site-title-cap));
  font-weight: 800;
  line-height: 1.5;
}

.contact-detail h3 svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #000;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-detail > a,
.contact-detail > p {
  display: block;
  margin: 10px 0 0;
  color: #111;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  transition: opacity 180ms ease;
}

.contact-detail > a:hover {
  opacity: 0.55;
}

.contact-social h3 {
  margin: 20px 0;
  color: #191919;
  font-size: min(30px, var(--site-title-cap));
  font-weight: 800;
  line-height: normal;
}

.contact-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-social__links > a {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: #000;
  transition: transform 220ms ease, opacity 220ms ease;
}

.contact-social__links > a:hover {
  transform: translateY(-3px);
  opacity: 0.72;
}

.contact-social svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-social svg .contact-social__dot {
  fill: currentColor;
  stroke: none;
}

.contact-social svg .contact-social__fill {
  fill: currentColor;
  stroke: none;
}

.contact-form-card {
  flex: 1 1 auto;
  align-self: flex-start;
  margin-left: 5%;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 30px rgb(0 0 0 / 10%);
}

.contact-form-card__title {
  padding: 15px;
  background: #000;
}

.contact-form-card__title h2 {
  margin: 0;
  color: #fff;
  font-size: 48px !important;
  font-weight: 800;
  line-height: normal;
  text-align: center;
}

.contact-form-card__body {
  padding: 30px 40px 50px;
}

.contact-form-card__body > p {
  margin: 0 0 20px;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form {
  display: grid;
}

.contact-form label {
  margin-bottom: 6px;
  color: #666;
  font-size: 16px;
  line-height: 1.45;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding-inline: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: 0;
  color: #666;
  background: #f3f3f3;
  font: inherit;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
  height: 46px;
  margin-bottom: 15px;
}

.contact-form textarea {
  min-height: 100px;
  margin-bottom: 13px;
  padding-block: 10px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #000;
  background: #fff;
  box-shadow: 0 0 0 2px rgb(0 0 0 / 8%);
}

.contact-form [aria-invalid="true"] {
  border-color: #c62828;
}

.contact-form button {
  position: relative;
  display: block;
  width: 200px;
  margin: 17px auto 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #000;
  border-radius: 50px;
  color: #fff;
  background: #000;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  color: #000;
  background: #fff;
}

.contact-form__status {
  min-height: 22px;
  margin: 14px 0 -22px;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.contact-form__status.is-error {
  color: #a21818;
}

@media (min-width: 769px) {
  .contact-details > h2 {
    margin-top: 15px;
  }
}

.contact-details > h2 {
  font-size: 48px !important;
}

@media (max-width: 900px) {
  .contact-details > h2,
  .contact-form-card__title h2 {
    font-size: 40px !important;
  }
}

@media (max-width: 600px) {
  .contact-details > h2,
  .contact-form-card__title h2 {
    font-size: 34px !important;
  }
}

@media (max-width: 1440px) and (min-width: 1025px) {
  .contact-hero {
    height: 30vw;
  }

  .contact-hero h1 {
    top: 65%;
  }

  .contact-details > h2,
  .contact-social h3 {
    font-size: min(28px, var(--site-title-cap));
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .contact-hero {
    height: 35vw;
  }

  .contact-hero h1 {
    top: 70%;
  }

  .contact-details > h2 {
    font-size: min(24px, var(--site-title-cap));
    line-height: 1;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 150px;
    min-height: 150px;
  }

  .contact-hero img {
    object-position: 50% 30%;
  }

  .contact-hero h1 {
    top: 50%;
    width: 100%;
  }

  .contact-breadcrumb__inner {
    padding-block: 10px;
  }

  .contact-breadcrumb__current {
    font-size: 14px;
  }

  .contact-body {
    padding-block: 30px 40px;
  }

  .contact-body__inner {
    flex-direction: column;
  }

  .contact-details {
    flex-basis: auto;
    padding-right: 0;
  }

  .contact-details > h2 {
    font-size: min(22px, var(--site-title-cap));
    line-height: 1;
  }

  .contact-detail {
    padding-block: 10px;
  }

  .contact-detail > a,
  .contact-detail > p {
    font-size: 18px;
  }

  .contact-social h3 {
    font-size: min(20px, var(--site-title-cap));
    line-height: 1.5;
  }

  .contact-form-card {
    width: 100%;
    margin-top: 30px;
    margin-left: 0;
  }

  .contact-form-card__title {
    padding: 10px;
  }

  .contact-form-card__title h2 {
    font-size: min(22px, var(--site-title-cap));
  }

  .contact-form-card__body {
    padding: 20px;
  }

  .contact-form-card__body > p {
    font-size: 14px;
  }
}

/* Mobile contact ergonomics. */
@media (max-width: 768px) {
  .contact-breadcrumb__inner {
    min-height: 56px;
  }
  .contact-breadcrumb a {
    width: 44px;
    height: 44px;
    margin-block: -8px;
  }
  .contact-detail > a {
    min-height: 44px;
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
  }
  .contact-social__links > a {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .contact-form input {
    min-height: 48px;
  }
  .contact-form textarea {
    min-height: 128px;
  }
  .contact-form button {
    width: min(220px, 100%);
    min-height: 48px;
    padding: 10px 18px;
  }
}
