.contact-page {
  --contact-ink: #1d1835;
  --contact-purple: #6f35a5;
  --contact-violet: #955bc7;
  --contact-orchid: #bb82d8;
  --contact-lilac: #e5d5f0;
  --contact-cream: #faf8f5;
  --contact-mist: #f5f0f8;
  --contact-line: rgba(71, 45, 101, 0.16);
  --contact-deep: #160f2d;
  --contact-plum: #2b1944;
  --contact-pearl: #fdfbf8;
  position: relative;
  overflow: clip;
  background: var(--contact-pearl);
  color: var(--contact-ink);
  font-family: "Alegreya Sans", "Helvetica Neue", sans-serif;
}

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

.contact-page .contact-shell {
  width: min(1180px, calc(100% - clamp(40px, 8vw, 112px)));
  margin-inline: auto;
}

.contact-page .contact-shell > *,
.contact-page .contact-hero__grid > *,
.contact-page .contact-route-grid > *,
.contact-page .contact-form-layout > *,
.contact-page .contact-faq-layout > * {
  min-width: 0;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page p,
.contact-page figure,
.contact-page .wp-block-buttons { margin-block: 0; }

.contact-page h1,
.contact-page h2,
.contact-page h3 {
  color: var(--contact-ink);
  font-family: "Literata", Georgia, serif;
  font-weight: 400;
}

.contact-page h1 em,
.contact-page h2 em {
  color: var(--contact-violet);
  font-style: normal;
}

.contact-page p {
  font-size: clamp(17px, 1.32vw, 18px);
  line-height: 1.68;
}

.contact-page a { text-underline-offset: 4px; }

.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-page input:focus-visible,
.contact-page select:focus-visible,
.contact-page textarea:focus-visible,
.contact-page summary:focus-visible {
  outline: 2px solid var(--contact-violet);
  outline-offset: 4px;
}

.contact-eyebrow {
  color: var(--contact-purple);
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.45 !important;
  text-transform: uppercase;
}

.contact-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 7vw, 96px) clamp(88px, 8vw, 116px);
  background: radial-gradient(circle at 92% 16%, rgba(187, 130, 216, 0.18), transparent 28%), linear-gradient(145deg, var(--contact-cream), #fff 72%);
  overflow: hidden;
}

.contact-hero::before,
.contact-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(111, 53, 165, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.contact-hero::before {
  width: min(52vw, 720px);
  aspect-ratio: 1;
  top: -42%;
  right: -18%;
}

.contact-hero::after {
  width: min(34vw, 480px);
  aspect-ratio: 1;
  right: -2%;
  bottom: -42%;
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 1.14fr);
  align-items: center;
  gap: clamp(54px, 7vw, 108px);
}

.contact-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}

.contact-hero h1 {
  max-width: 700px;
  font-size: clamp(50px, 5.6vw, 78px);
  letter-spacing: -0.047em;
  line-height: 1.04;
}

.contact-lede {
  max-width: 535px;
  color: #514860;
  font-size: clamp(19px, 1.65vw, 22px) !important;
  line-height: 1.58 !important;
}

.contact-page .wp-block-button__link,
.contact-submit {
  min-height: 52px;
  padding: 15px 27px;
  border: 0;
  border-radius: 999px;
  background: var(--contact-purple);
  box-shadow: 0 17px 34px -23px rgba(66, 28, 102, 0.82);
  color: #fff;
  cursor: pointer;
  font-family: "Alegreya Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-page .wp-block-button__link:hover,
.contact-submit:hover {
  background: #57267e;
  box-shadow: 0 20px 38px -22px rgba(66, 28, 102, 0.9);
  color: #fff;
  transform: translateY(-2px);
}

.contact-page .wp-block-button__link:active,
.contact-submit:active { transform: translateY(1px); }

.contact-hero__visual {
  position: relative;
  padding: 19px 19px 0 0;
}

.contact-hero__visual::before {
  position: absolute;
  inset: 0 0 58px 45px;
  z-index: -1;
  border-radius: 47% 53% 42% 58% / 39% 45% 55% 61%;
  background: var(--contact-lilac);
  content: "";
  transform: rotate(2.5deg);
}

.contact-hero__image {
  width: 100%;
  overflow: hidden;
  border-radius: 52% 48% 42% 58% / 38% 43% 57% 62%;
  box-shadow: 0 36px 70px -48px rgba(43, 25, 68, 0.72);
}

.contact-hero__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.34 / 1;
  object-fit: cover;
  object-position: 56% center;
}

.contact-hero__caption {
  position: relative;
  width: min(360px, calc(100% - 48px));
  margin: -29px 24px 0 auto !important;
  padding: 17px 20px;
  border: 1px solid rgba(71, 45, 101, 0.13);
  border-radius: 16px;
  background: rgba(253, 251, 248, 0.94);
  box-shadow: 0 24px 52px -39px rgba(43, 25, 68, 0.7);
  color: #4e455d;
  font-size: 15px !important;
  line-height: 1.48 !important;
}

.contact-routes {
  position: relative;
  padding-block: clamp(104px, 9vw, 132px);
  background: linear-gradient(135deg, var(--contact-deep), #35204e);
  color: #f8f3fb;
  overflow: hidden;
}

.contact-routes::after {
  position: absolute;
  width: 620px;
  aspect-ratio: 1;
  top: -330px;
  left: -240px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.025), 0 0 0 180px rgba(255, 255, 255, 0.018);
  content: "";
  pointer-events: none;
}

.contact-routes .contact-section-head {
  max-width: 790px;
  margin-bottom: 54px !important;
}

.contact-routes h2 {
  color: #fff;
  font-size: clamp(42px, 4.8vw, 64px);
  letter-spacing: -0.042em;
  line-height: 1.07;
}

.contact-routes h2 em { color: #d8b9ec; }

.contact-routes .contact-section-head p {
  max-width: 660px;
  margin-top: 20px;
  color: #ddd3e6;
  font-size: 19px;
}

.contact-route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 17px;
}

.contact-route {
  min-height: 250px;
  padding: clamp(30px, 3.6vw, 45px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-route--programs {
  display: flex;
  grid-row: span 2;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 517px;
  background: radial-gradient(circle at 82% 14%, rgba(187, 130, 216, 0.25), transparent 34%), rgba(255, 255, 255, 0.085);
}

.contact-route--support { background: rgba(229, 213, 240, 0.12); }
.contact-route--teams { background: rgba(255, 255, 255, 0.045); }

.contact-route__context {
  margin-bottom: 20px !important;
  color: #d8b9ec;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.contact-route h3 {
  max-width: 460px;
  color: #fff;
  font-size: clamp(25px, 2.3vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.contact-route p:last-child {
  max-width: 550px;
  margin-top: 15px;
  color: #ddd3e6;
  font-size: 17px;
}

.contact-form-section {
  padding-block: clamp(106px, 9vw, 138px);
  background: #fff;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(500px, 1.3fr);
  align-items: start;
  gap: clamp(55px, 8vw, 112px);
}

.contact-form-intro {
  position: sticky;
  top: 112px;
}

.contact-form-intro h2,
.contact-faq-intro h2 {
  font-size: clamp(41px, 4.4vw, 61px);
  letter-spacing: -0.041em;
  line-height: 1.07;
}

.contact-form-intro > p {
  margin-top: 22px;
  color: #5c5269;
  font-size: 19px;
}

.contact-direct {
  margin-top: 44px !important;
  padding-top: 26px;
  border-top: 1px solid var(--contact-line);
}

.contact-direct h3 { font-size: 23px; }

.contact-direct p {
  margin-top: 9px;
  color: #5c5269;
  font-size: 17px;
}

.contact-direct a {
  color: var(--contact-purple);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-form-card {
  padding: clamp(28px, 4.5vw, 54px);
  border: 1px solid var(--contact-line);
  border-radius: 32px;
  background: linear-gradient(145deg, var(--contact-cream), #fff 72%);
  box-shadow: 0 32px 72px -56px rgba(43, 25, 68, 0.72);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field label {
  color: #332741;
  font-size: 15px;
  font-weight: 800;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 51px;
  padding: 13px 15px;
  border: 1px solid rgba(71, 45, 101, 0.26);
  border-radius: 12px;
  background: #fff;
  color: var(--contact-ink);
  font: 500 17px/1.45 "Alegreya Sans", "Helvetica Neue", sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover { border-color: rgba(111, 53, 165, 0.52); }

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--contact-purple);
  box-shadow: 0 0 0 3px rgba(111, 53, 165, 0.12);
}

.contact-field__help {
  color: #61566f;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.contact-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  color: #4f455d;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.55;
}

.contact-consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--contact-purple);
}

.contact-consent a {
  color: var(--contact-purple);
  font-weight: 700;
}

.contact-submit {
  align-self: flex-start;
  min-width: 190px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.contact-form__required {
  color: #61566f;
  font-size: 13px !important;
}

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

.contact-form-notice {
  margin-bottom: 23px;
  padding: 15px 17px;
  border: 1px solid rgba(134, 51, 70, 0.3);
  border-radius: 12px;
  background: #fff4f5;
  color: #70273a;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form-notice a { color: inherit; font-weight: 800; }

.contact-form-state {
  padding: clamp(8px, 2vw, 20px) 0;
  outline: none;
}

.contact-form-state__label {
  margin-bottom: 20px !important;
  color: var(--contact-purple);
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.contact-form-state h3 {
  font-size: clamp(29px, 3.2vw, 39px);
  line-height: 1.18;
}

.contact-form-state > p:not(.contact-form-state__label) {
  margin-top: 18px;
  color: #554a63;
}

.contact-form-state > a {
  display: inline-block;
  margin-top: 25px;
  color: var(--contact-purple);
  font-weight: 800;
}

.contact-faq-section {
  padding-block: clamp(104px, 9vw, 132px);
  background: linear-gradient(180deg, var(--contact-mist), var(--contact-pearl));
}

.contact-faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(55px, 8vw, 110px);
}

.contact-faq-intro p {
  max-width: 420px;
  margin-top: 21px;
  color: #5c5269;
}

.contact-faq {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.contact-faq .wp-block-details {
  padding: 3px 25px;
  border: 1px solid var(--contact-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.contact-faq summary {
  position: relative;
  min-height: 62px;
  padding: 19px 42px 18px 0;
  color: var(--contact-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

.contact-faq summary::-webkit-details-marker { display: none; }

.contact-faq summary::before,
.contact-faq summary::after {
  position: absolute;
  top: 29px;
  right: 4px;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--contact-purple);
  content: "";
  transition: transform 0.22s ease;
}

.contact-faq summary::after { transform: rotate(90deg); }
.contact-faq details[open] summary::after { transform: rotate(0); }

.contact-faq details > p {
  max-width: 690px;
  padding: 0 35px 22px 0;
  color: #5a5067;
  font-size: 16px;
}

@media (max-width: 1020px) {
  .contact-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    gap: 48px;
  }

  .contact-form-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(430px, 1.22fr);
    gap: 55px;
  }
}

@media (max-width: 800px) {
  .contact-hero__grid,
  .contact-route-grid,
  .contact-form-layout,
  .contact-faq-layout { grid-template-columns: 1fr; }

  .contact-hero__grid { gap: 52px; }
  .contact-hero__copy { max-width: 670px; }

  .contact-hero__visual {
    width: min(100%, 650px);
    margin-inline: auto !important;
  }

  .contact-route--programs {
    grid-row: auto;
    min-height: 310px;
  }

  .contact-route { min-height: 0; }
  .contact-form-intro { position: static; }
  .contact-form-card { margin-top: 4px !important; }
}

@media (max-width: 580px) {
  .contact-page .contact-shell { width: min(100% - 40px, 1180px); }

  .contact-hero { padding-block: 70px 86px; }

  .contact-hero h1 {
    font-size: clamp(43px, 13vw, 55px);
    letter-spacing: -0.045em;
  }

  .contact-page .wp-block-buttons,
  .contact-page .wp-block-button,
  .contact-page .wp-block-button__link,
  .contact-submit { width: 100%; }

  .contact-page .wp-block-button__link,
  .contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .contact-hero__visual { padding: 11px 10px 0 0; }
  .contact-hero__image img { aspect-ratio: 1.1 / 1; }

  .contact-hero__caption {
    width: calc(100% - 24px);
    margin: 16px 0 0 24px !important;
  }

  .contact-routes,
  .contact-form-section,
  .contact-faq-section { padding-block: 86px; }

  .contact-routes .contact-section-head { margin-bottom: 39px !important; }

  .contact-routes h2,
  .contact-form-intro h2,
  .contact-faq-intro h2 { font-size: clamp(38px, 11.5vw, 48px); }

  .contact-route {
    padding: 28px 24px;
    border-radius: 24px;
  }

  .contact-route--programs { min-height: 280px; }

  .contact-form-card {
    padding: 27px 20px;
    border-radius: 25px;
  }

  .contact-form__row { grid-template-columns: 1fr; }
  .contact-faq .wp-block-details { padding-inline: 20px; }
  .contact-faq summary { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .contact-page .wp-block-button__link:hover,
  .contact-submit:hover { transform: none; }
}
