.apx-academy-contact,
.apx-academy-contact main,
.contact-page,
.contact-layout,
.contact-layout > * {
  min-width: 0;
  max-width: 100%;
}

.apx-academy-contact {
  overflow-x: hidden;
  overflow-x: clip;
}

.contact-page {
  width: 100%;
  background: var(--white);
  overflow-x: hidden;
  overflow-x: clip;
  scroll-margin-top: 122px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  min-height: calc(100vh - 122px);
}

.contact-story {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(64px, 8vw, 126px) clamp(36px, 6vw, 92px);
  background:
    linear-gradient(rgba(164, 141, 85, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 141, 85, .10) 1px, transparent 1px),
    var(--cream);
  background-size: 48px 48px;
}

.contact-story-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 530px);
}

.contact-story-heading {
	margin: 24px 0 22px;
	color: var(--black);
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: -.025em;
	line-height: 1;
	font-size: clamp(45px, 4.6vw, 72px);
	overflow-wrap: anywhere;
}

.contact-story-text,
.contact-intro {
  color: var(--muted);
  font-size: 17px;
}

.contact-story-text {
  max-width: 490px;
}

.contact-story-text p:last-child,
.contact-intro p:last-child,
.contact-payment__text p:last-child,
.contact-payment__note p:last-child {
  margin-bottom: 0;
}

.contact-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.contact-back:hover {
  color: var(--gold);
}

.contact-mark {
  position: absolute;
  right: clamp(-110px, -7vw, -50px);
  bottom: clamp(-90px, -5vw, -30px);
  width: min(33vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(164, 141, 85, .30);
  border-radius: 50%;
  color: rgba(164, 141, 85, .12);
  pointer-events: none;
}

.contact-mark::before,
.contact-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(164, 141, 85, .24);
  border-radius: 50%;
}

.contact-mark::before { inset: 13%; }
.contact-mark::after { inset: 28%; }

.contact-mark span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 500 clamp(150px, 18vw, 270px)/1 var(--serif);
  letter-spacing: -.08em;
}

.contact-mark i {
  position: absolute;
  top: 50%;
  right: -12%;
  left: -12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(164, 141, 85, .55), transparent);
  transform: rotate(-22deg);
}

.contact-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 7vw, 112px) clamp(32px, 7vw, 110px);
}

.contact-form-panel > .label,
.contact-form-panel > h1,
.contact-form-panel > .contact-intro,
.contact-form-panel > .contact-message,
.contact-form-panel > .academy-contact-form {
  width: min(100%, 760px);
}

.contact-form-panel h1 {
  margin: 22px 0 20px;
  color: var(--black);
  font-size: clamp(48px, 5vw, 78px);
  overflow-wrap: anywhere;
}

.contact-intro {
  margin-bottom: 42px;
}

.academy-contact-form {
  display: grid;
  gap: 22px;
}

.contact-fields {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.contact-fields--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.academy-contact-form label {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.academy-contact-form input,
.academy-contact-form select,
.academy-contact-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font: 500 15px/1.45 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.academy-contact-form input,
.academy-contact-form select {
  min-height: 54px;
  padding: 13px 15px;
}

.academy-contact-form select {
  text-overflow: ellipsis;
}

.academy-contact-form textarea {
  min-height: 136px;
  padding: 14px 15px;
  resize: vertical;
}

.academy-contact-form input::placeholder,
.academy-contact-form textarea::placeholder {
  color: #8b877e;
  opacity: 1;
}

.academy-contact-form input:hover,
.academy-contact-form select:hover,
.academy-contact-form textarea:hover {
  border-color: rgba(164, 141, 85, .70);
}

.academy-contact-form input:focus,
.academy-contact-form select:focus,
.academy-contact-form textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(164, 141, 85, .22);
  outline-offset: 2px;
  box-shadow: none;
}

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

.contact-consent {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 11px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.55;
  text-transform: none !important;
}

.contact-consent input {
  width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.contact-consent a {
  color: var(--black);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.contact-submit {
  width: fit-content;
  min-width: 230px;
  margin-top: 4px;
  cursor: pointer;
}

.contact-submit:focus-visible,
.contact-back:focus-visible,
.contact-payment__button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.contact-message {
  padding: 25px 27px;
  margin: 6px 0 30px;
  border: 1px solid var(--line);
  background: var(--cream);
  scroll-margin-top: 132px;
}

.contact-message:focus {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.contact-message h2 {
  margin: 8px 0 10px;
  font-size: clamp(31px, 3vw, 43px);
}

.contact-message p:last-child {
  margin-bottom: 0;
}

.contact-error-list {
  padding-left: 20px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.contact-error-list li + li {
  margin-top: 3px;
}

.contact-message--success {
  border-color: rgba(164, 141, 85, .55);
}

.contact-message--success > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
}

.contact-message--error {
  border-color: rgba(159, 49, 43, .45);
  background: #fff5f4;
  color: #72231f;
}

.apx-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-payment {
  padding: clamp(72px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.contact-payment__inner {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
}

.contact-payment .label {
  justify-content: center;
}

.contact-payment h2 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 5vw, 66px);
  overflow-wrap: anywhere;
}

.contact-payment__text {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 17px;
}

.contact-payment__button {
  margin-inline: auto;
}

.contact-payment__note {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 840px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .contact-story {
    min-height: 430px;
    padding: 72px max(30px, 8vw);
  }

  .contact-story-copy {
    width: min(70%, 540px);
  }

  .contact-mark {
    right: -70px;
    bottom: -100px;
    width: min(58vw, 420px);
  }

  .contact-form-panel {
    padding: 76px max(30px, 8vw) 90px;
  }
}

@media (max-width: 600px) {
  .contact-story {
    min-height: 390px;
    padding: 58px 15px 66px;
  }

  .contact-story-copy {
    width: 100%;
  }

  .contact-story-heading {
	font-size: 43px;
  }

  .contact-story-text,
  .contact-intro,
  .contact-payment__text {
    font-size: 16px;
  }

  .contact-mark {
    right: -98px;
    bottom: -82px;
    width: 310px;
    opacity: .75;
  }

  .contact-form-panel {
    padding: 58px 15px 72px;
  }

  .contact-form-panel h1 {
    font-size: 46px;
  }

  .contact-intro {
    margin-bottom: 34px;
  }

  .contact-fields--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .academy-contact-form {
    gap: 19px;
  }

  .academy-contact-form input,
  .academy-contact-form select,
  .academy-contact-form textarea {
    font-size: 16px;
  }

  .contact-message {
    padding: 22px 18px;
  }

  .contact-submit,
  .contact-payment__button {
    width: 100%;
    min-width: 0;
  }

  .contact-payment {
    padding: 66px 0 76px;
  }

  .contact-payment__inner {
    width: calc(100% - 30px);
  }

  .contact-payment h2 {
	font-size: 43px;
  }

  .apx-academy-contact {
	padding-bottom: 0;
  }

  .apx-academy-contact .mobile-cta {
	display: none;
  }
}

@media (forced-colors: active) {
  .academy-contact-form input,
  .academy-contact-form select,
  .academy-contact-form textarea,
  .contact-message {
    border: 1px solid CanvasText;
  }
}
