.contact-page {
  overflow: hidden;
  background: var(--ap-bg);
}

.contact-main {
  position: relative;
  min-height: max(760px, calc(100svh - 104px));
  padding: clamp(78px, 8vw, 118px) 0 clamp(92px, 9vw, 132px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--ap-line-soft);
  background-color: #f2f4f3;
  background-image:
    linear-gradient(rgba(10, 114, 199, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 114, 199, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
}

.contact-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -32%;
  right: -15%;
  width: min(62vw, 940px);
  aspect-ratio: 1;
  border: 1px solid rgba(10, 114, 199, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 105px rgba(255, 255, 255, 0.18),
    0 0 0 106px rgba(10, 114, 199, 0.055);
  pointer-events: none;
}

.contact-main__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(500px, 1.16fr);
  align-items: start;
  gap: clamp(70px, 10vw, 156px);
}

.contact-intro {
  padding-top: 22px;
}

.contact-intro .ap-kicker {
  margin-bottom: 30px;
}

.contact-intro h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ap-ink);
  font-size: clamp(64px, 6vw, 94px);
  font-weight: 390;
  letter-spacing: -0.062em;
  line-height: 0.92;
}

.contact-intro > p:not(.ap-kicker) {
  max-width: 590px;
  margin: 36px 0 0;
  color: var(--ap-ink-soft);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
}

.contact-details {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-style: normal;
}

.contact-details a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ap-ink-soft);
  font-size: 14px;
  font-weight: 560;
  transition: color 180ms ease;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--ap-blue-deep);
}

.contact-details a:focus-visible {
  outline: 2px solid var(--ap-blue);
  outline-offset: 4px;
}

.contact-details svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--ap-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.contact-intro .contact-details + aside {
  margin-top: 42px;
}

.contact-intro aside {
  position: relative;
  max-width: 470px;
  margin-top: clamp(68px, 8vw, 105px);
  padding: 25px 0 25px 28px;
  border-top: 1px solid var(--ap-line);
  border-bottom: 1px solid var(--ap-line);
}

.contact-intro aside::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--ap-blue);
}

.contact-intro aside span,
.contact-intro aside strong {
  display: block;
}

.contact-intro aside span {
  color: #747d84;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-intro aside strong {
  margin-top: 8px;
  color: var(--ap-ink);
  font-size: 22px;
  font-weight: 480;
  letter-spacing: -0.025em;
}

.contact-form-panel {
  position: relative;
  padding: 30px 0 0;
  border-top: 1px solid rgba(10, 114, 199, 0.5);
  background: transparent;
}

.contact-form-panel::after {
  display: none;
}

.contact-form-wrap,
.contact-form-placeholder {
  padding: 0;
}

.contact-form-privacy {
  max-width: 570px;
  margin: 20px 0 0;
  color: #7b8388;
  font-size: 11px;
  line-height: 1.55;
}

.contact-form-privacy a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(10, 114, 199, 0.45);
  color: var(--ap-blue-deep);
  font-weight: 620;
}

.contact-form-privacy a:hover,
.contact-form-privacy a:focus-visible {
  border-color: var(--ap-blue);
}

.contact-form-placeholder__eyebrow {
  margin: 0 0 18px;
  color: var(--ap-blue-deep);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form-placeholder h2 {
  max-width: 530px;
  margin: 0;
  color: var(--ap-ink);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 420;
  letter-spacing: -0.05em;
  line-height: 1;
}

.contact-form-placeholder > p:not(.contact-form-placeholder__eyebrow) {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--ap-muted);
  font-size: 14px;
}

.contact-form-placeholder code {
  color: var(--ap-ink);
  font-size: 0.9em;
}

.contact-form-placeholder > div {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.contact-form-placeholder > div span {
  color: #606a71;
  font-size: 11px;
  font-weight: 620;
}

.contact-form-placeholder > div i,
.contact-form-placeholder > div b {
  height: 47px;
  margin-top: -15px;
  border: 1px solid #ccd2d3;
  background: #fff;
}

.contact-form-placeholder > div span:nth-of-type(5),
.contact-form-placeholder > div b {
  grid-column: 1 / -1;
}

.contact-form-placeholder > div b {
  height: 100px;
}

.contact-decoration {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.contact-decoration i {
  position: absolute;
  display: block;
  background: rgba(10, 114, 199, 0.18);
}

.contact-decoration i:nth-child(1) {
  top: 17%;
  right: 7%;
  width: 1px;
  height: 28%;
}

.contact-decoration i:nth-child(2) {
  top: 31%;
  right: 3%;
  width: 18%;
  height: 1px;
}

.contact-decoration i:nth-child(3) {
  right: 11%;
  bottom: 11%;
  width: 1px;
  height: 18%;
}

.contact-decoration span {
  position: absolute;
  width: 8px;
  height: 8px;
  display: block;
  border: 1px solid var(--ap-blue);
  border-radius: 50%;
  background: #f2f4f3;
}

.contact-decoration span:nth-of-type(1) { top: calc(31% - 4px); right: calc(7% - 4px); }
.contact-decoration span:nth-of-type(2) { right: calc(11% - 4px); bottom: 20%; }
.contact-decoration span:nth-of-type(3) { top: 22%; right: 17%; }

/* Contact Form 7, scoped to the Contact page. */
.contact-page .wpcf7-form {
  margin: 0;
}

.contact-page .contact-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
}

.contact-page .contact-field {
  margin: 0;
}

.contact-page .contact-field--wide,
.contact-page .contact-submit-row,
.contact-page .wpcf7-response-output {
  grid-column: 1 / -1;
}

.contact-page .contact-field label {
  display: block;
  color: var(--ap-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.contact-page .contact-field label > em {
  color: var(--ap-blue-deep);
  font-style: normal;
}

.contact-page .wpcf7-form-control-wrap {
  display: block;
  margin-top: 9px;
}

.contact-page .wpcf7-text,
.contact-page .wpcf7-email,
.contact-page .wpcf7-select,
.contact-page .wpcf7-textarea {
  width: 100%;
  border: 1px solid #c8cecf;
  border-radius: 1px;
  outline: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ap-ink);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-page .wpcf7-text,
.contact-page .wpcf7-email,
.contact-page .wpcf7-select {
  min-height: 54px;
  padding: 0 15px;
}

.contact-page .wpcf7-select {
  appearance: auto;
}

.contact-page .wpcf7-textarea {
  height: 175px;
  min-height: 175px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.5;
}

.contact-page .wpcf7-text:hover,
.contact-page .wpcf7-email:hover,
.contact-page .wpcf7-select:hover,
.contact-page .wpcf7-textarea:hover {
  border-color: #9fa9ad;
}

.contact-page .wpcf7-text:focus,
.contact-page .wpcf7-email:focus,
.contact-page .wpcf7-select:focus,
.contact-page .wpcf7-textarea:focus {
  border-color: var(--ap-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 114, 199, 0.11);
}

.contact-page .contact-helper {
  margin: 8px 0 0;
  color: #758087;
  font-size: 11px;
  font-weight: 400;
}

.contact-page .contact-submit-row {
  position: relative;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-page .wpcf7-submit {
  min-width: 190px;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid var(--ap-blue);
  border-radius: 3px;
  background: var(--ap-blue);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 620;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-page .wpcf7-submit:hover {
  transform: translateY(-2px);
  border-color: var(--ap-blue-deep);
  background: var(--ap-blue-deep);
  box-shadow: 0 8px 0 rgba(7, 89, 150, 0.12);
}

.contact-page .wpcf7-submit:focus-visible {
  outline: 2px solid var(--ap-blue-deep);
  outline-offset: 4px;
}

.contact-page .wpcf7-spinner {
  margin: 0;
  background-color: var(--ap-blue-deep);
}

.contact-page .wpcf7-form.submitting .wpcf7-submit {
  cursor: wait;
  opacity: 0.68;
}

.contact-page .wpcf7-not-valid {
  border-color: #a34438;
  background: #fffafa;
}

.contact-page .wpcf7-not-valid-tip {
  margin-top: 7px;
  color: #8a3027;
  font-size: 11px;
  font-weight: 560;
}

.contact-page .wpcf7 form .wpcf7-response-output {
  margin: 4px 0 0;
  padding: 14px 16px;
  border: 1px solid #8d5f28;
  border-radius: 2px;
  background: #fff8ea;
  color: #5f431f;
  font-size: 13px;
  line-height: 1.5;
}

.contact-page .wpcf7 form.sent .wpcf7-response-output {
  border-color: #4e7767;
  background: #eef7f2;
  color: #315548;
}

.contact-page .wpcf7 form.failed .wpcf7-response-output,
.contact-page .wpcf7 form.aborted .wpcf7-response-output,
.contact-page .wpcf7 form.spam .wpcf7-response-output {
  border-color: #914a42;
  background: #fff2f0;
  color: #702f29;
}

@media (max-width: 1060px) {
  .contact-main__grid {
    grid-template-columns: minmax(0, 0.74fr) minmax(470px, 1.26fr);
    gap: 55px;
  }

  .contact-intro h1 {
    font-size: clamp(58px, 6.6vw, 76px);
  }
}

@media (max-width: 860px) {
  .contact-main {
    min-height: 0;
  }

  .contact-main__grid {
    grid-template-columns: 1fr;
    gap: 76px;
  }

  .contact-intro {
    max-width: 720px;
  }

  .contact-intro h1 {
    font-size: clamp(62px, 10vw, 86px);
  }

  .contact-intro aside {
    margin-top: 58px;
  }

  .contact-form-panel {
    width: min(100%, 720px);
    margin-left: auto;
  }

  .contact-decoration {
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  .contact-main {
    padding: 68px 0 80px;
    background-size: 44px 44px;
  }

  .contact-main::before {
    top: -8%;
    right: -55%;
    width: 130vw;
  }

  .contact-main__grid {
    gap: 58px;
  }

  .contact-intro {
    padding-top: 0;
  }

  .contact-intro .ap-kicker {
    margin-bottom: 24px;
  }

  .contact-intro h1 {
    font-size: clamp(52px, 15.5vw, 68px);
  }

  .contact-intro > p:not(.ap-kicker) {
    margin-top: 28px;
    font-size: 17px;
  }

  .contact-details {
    margin-top: 22px;
    flex-direction: column;
    gap: 0;
  }

  .contact-intro .contact-details + aside {
    margin-top: 34px;
  }

  .contact-intro aside {
    margin-top: 48px;
  }

  .contact-intro aside strong {
    font-size: 20px;
  }

  .contact-form-panel {
    margin-inline: 0;
    padding: 26px 0 0;
  }

  .contact-form-panel::after,
  .contact-decoration {
    display: none;
  }

  .contact-form-wrap,
  .contact-form-placeholder {
    padding: 0;
  }

  .contact-form-placeholder > div,
  .contact-page .contact-form-fields {
    grid-template-columns: 1fr;
  }

  .contact-form-placeholder > div span:nth-of-type(5),
  .contact-form-placeholder > div b,
  .contact-page .contact-field--wide,
  .contact-page .contact-submit-row,
  .contact-page .wpcf7-response-output {
    grid-column: 1;
  }

  .contact-page .wpcf7-text,
  .contact-page .wpcf7-email,
  .contact-page .wpcf7-select {
    min-height: 56px;
  }

  .contact-page .wpcf7-textarea {
    height: 165px;
    min-height: 165px;
  }

  .contact-page .contact-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-page .wpcf7-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page .wpcf7-submit {
    transition: none;
  }
}
