body.contact-page {
  background: #fff;
  color: #111;
}

.contact-page [hidden] { display: none !important; }

.contact-page .site-header .desktop-nav a[aria-current="page"] { color: #fff; }

.contact-page .site-header {
  background: #000;
  border-radius: 0;
}

.contact-main {
  background: #fff;
  min-height: 0;
  padding: 20px 0 32px;
}

.contact-layout {
  align-items: start;
  background: #fff;
  background-image: none;
  border-radius: 28px;
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  grid-template-columns: 1fr;
  height: auto;
  min-height: 760px;
  overflow: hidden;
  /* Keep the contact title aligned to the same header-to-content rhythm as
     the homepage and Partners hero. Internal title/form spacing stays intact. */
  padding: clamp(26px, 2.2vw, 34px) clamp(30px, 4vw, 58px) clamp(60px, 7vw, 96px);
  max-width: none;
  width: calc(100% - 48px);
}

@media (min-width: 761px) {
  .contact-layout { margin-top: -80px; }
  .contact-intro h1 { position: relative; top: 50px; }
  .contact-intro h1 { white-space: nowrap; }
}

.contact-intro {
  background: transparent;
  border-radius: 0;
  max-width: 980px;
  min-width: 0;
  padding: 0;
}
.contact-eyebrow { color: #245c4c; font-size: .76rem; font-weight: 700; letter-spacing: .16em; margin-bottom: 26px; }
.contact-intro h1 { color: #000; font-size: clamp(2.8rem, 4vw, 4.5rem); letter-spacing: -.06em; line-height: .98; margin-bottom: 28px; max-width: 100%; width: 100%; }
.contact-intro__body { color: #4d4d4d; font-size: clamp(.98rem, 1.15vw, 1.12rem); line-height: 1.38; max-width: 500px; }
.contact-support { margin-top: 64px; }
.contact-support__label { color: #666; font-size: .82rem; letter-spacing: .04em; margin-bottom: 16px; }
.contact-support ul { list-style: none; margin: 0; padding: 0; }
.contact-support li { align-items: center; color: #333; display: flex; font-size: .98rem; gap: 12px; margin-bottom: 13px; }
.contact-support li span { align-items: center; border: 1px solid rgba(36,92,76,.44); border-radius: 50%; color: #245c4c; display: inline-flex; font-size: 1rem; height: 20px; justify-content: center; width: 20px; }
.contact-email { color: #245c4c; display: inline-block; font-size: .96rem; margin-top: 34px; text-decoration: underline; text-underline-offset: 4px; }

.contact-form-card { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.08); color: #111; min-height: 545px; padding: clamp(30px, 4vw, 58px); justify-self: start; width: 50%; }
.contact-form { min-height: 430px; }
.contact-form__step { animation: contact-step-in .24s var(--ease-out) both; }
.contact-form__heading { align-items: start; display: flex; justify-content: space-between; margin-bottom: 38px; }
.contact-form__heading h2 { color: #000; font-size: clamp(1.8rem, 2.5vw, 2.75rem); letter-spacing: -.06em; line-height: 1; margin: 0; }
.contact-form__heading > span { color: #555; font-size: .8rem; margin-top: 7px; }
.contact-fields-grid { display: grid; gap: 28px 22px; grid-template-columns: 1fr 1fr; }
.contact-field { display: grid; gap: 11px; }
.contact-field--full { grid-column: 1 / -1; }
.contact-field > span { color: #111; font-size: .94rem; }
.contact-field__optional { color: #666; font-size: .82em; font-weight: 400; }
.contact-field b { color: #245c4c; font-weight: 500; }
.contact-field input, .contact-field select, .contact-field textarea { background: #fff; border: 1px solid #d6d6d6; border-radius: 5px; color: #111; font: inherit; font-size: 1rem; min-height: 48px; outline: none; padding: 12px 14px; width: 100%; }
.contact-phone-control { display: grid; gap: 8px; grid-template-columns: minmax(156px, .56fr) minmax(0, 1fr); }
.contact-phone-control select { min-width: 0; overflow: hidden; padding-right: 30px; text-overflow: ellipsis; white-space: nowrap; }
.contact-field textarea { min-height: 128px; resize: vertical; }
.contact-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 13px) 21px; background-repeat: no-repeat; background-size: 6px 6px, 6px 6px; }
.contact-field select option { background: #fff; color: #111; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #777; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: #245c4c; box-shadow: 0 0 0 3px rgba(36,92,76,.12); }
.contact-consent { align-items: start; color: #444; display: flex; font-size: .87rem; gap: 12px; line-height: 1.45; margin-top: 28px; max-width: 720px; }
.contact-consent input { accent-color: #111; flex: 0 0 auto; height: 16px; margin: 3px 0 0; width: 16px; }
.contact-form__error { color: #ffb4a8; font-size: .84rem; min-height: 18px; margin: 18px 0 0; }
.contact-form__button { align-items: center; background: #000; border-radius: 999px; color: #fff; display: inline-flex; font-size: .95rem; font-weight: 700; gap: 22px; justify-content: center; margin-top: 22px; min-height: 52px; padding: 10px 12px 10px 22px; transition: background-color .16s ease, transform .16s ease; }
.contact-form__button:hover, .contact-form__button:focus-visible { background: #1a1a1a; transform: translateY(-2px); }
.contact-form__button span { align-items: center; border-left: 1px solid rgba(255,255,255,.24); display: flex; height: 28px; padding-left: 13px; }
.contact-form__button svg { height: 19px; width: 19px; }
.contact-help { color: #777; font-size: .85rem; margin: 70px 0 0; }
.contact-help--mobile { display: none; }
.contact-help a { color: #333; text-decoration: underline; text-underline-offset: 3px; }
.contact-form__actions { align-items: center; display: flex; justify-content: space-between; margin-top: 18px; }
.contact-form__actions .contact-form__button { margin-top: 0; }
.contact-form__back { background: transparent; color: #555; font-size: .9rem; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.contact-form__back:hover, .contact-form__back:focus-visible { color: #000; }
.contact-form__success { align-items: flex-start; display: flex; flex-direction: column; justify-content: center; min-height: 430px; }
.contact-success__mark { align-items: center; border: 1px solid #245c4c; border-radius: 50%; color: #245c4c; display: flex; font-size: 1.25rem; height: 44px; justify-content: center; margin-bottom: 28px; width: 44px; }
.contact-form__success h2 { color: #000; font-size: clamp(2rem, 3.3vw, 3.3rem); margin-bottom: 18px; }
.contact-form__success p { color: #555; max-width: 440px; }

.contact-page .site-footer {
  background: var(--paper);
  color: var(--ink);
}

@keyframes contact-step-in { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .contact-layout { gap: 50px; grid-template-columns: 1fr; }
  .contact-intro { max-width: 760px; min-height: 0; padding-top: 0; }
  .contact-intro h1 { max-width: 720px; }
  .contact-support { margin-top: 38px; }
  .contact-form-card { max-width: 760px; width: 100%; }
}

@media (max-width: 760px) {
  .contact-page .site-header { width: 100%; }
  .contact-main { background: #fff; min-height: calc(100svh - var(--site-header-height)); padding: 0; }
  .contact-layout { background: #fff; background-image: none; border-radius: 0; gap: 24px; height: auto; min-height: calc(100svh - var(--site-header-height)); padding: 16px 20px 56px; width: 100%; }
  .contact-intro h1 { font-size: clamp(2.15rem, 9vw, 3.15rem); line-height: .98; }
  .contact-intro__body { font-size: .92rem; line-height: 1.4; }
  .contact-support { margin-top: 36px; }
  .contact-intro { border-radius: 0; }
  .contact-form-card { background: #fff; border: 0; border-radius: 0; box-shadow: none; min-height: 0; padding: 0; width: 100%; }
  .contact-form__heading { margin-bottom: 30px; }
  .contact-form__heading h2 { font-size: 1.8rem; }
  .contact-fields-grid { gap: 22px; grid-template-columns: 1fr; }
  .contact-field--full { grid-column: auto; }
  .contact-consent {
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    min-height: 44px;
    padding: 4px 0;
  }
  .contact-consent input { height: 20px; margin: 0; width: 20px; }
  .contact-help { margin-top: 48px; }
  .contact-form__actions { align-items: flex-start; flex-direction: column-reverse; gap: 15px; }
  .contact-form__actions .contact-form__button { width: 100%; }
  .contact-form__back { align-self: flex-start; }

  .contact-form--mobile-single .contact-form__step[data-contact-step="1"],
  .contact-form--mobile-single .contact-form__step[data-contact-step="2"] { animation: none; display: block !important; }
  .contact-form--mobile-single .contact-form__step[data-contact-step="2"] { margin-top: 16px; }
  .contact-form--mobile-single .contact-form__step[data-contact-step="2"] .contact-form__heading { display: none; }
  .contact-form--mobile-single .contact-form__heading > span,
  .contact-form--mobile-single [data-contact-next],
  .contact-form--mobile-single .contact-form__actions .contact-form__back { display: none; }
  .contact-form--mobile-single .contact-help--desktop { display: none; }
  .contact-form--mobile-single .contact-help--mobile { display: block; grid-column: 1 / -1; margin: 0; }
  .contact-form--mobile-single .contact-form__actions { align-items: stretch; display: block; margin-top: 24px; }
  .contact-form--mobile-single .contact-form__actions .contact-form__button { width: 100%; }
  .contact-form-card.is-complete .contact-form--mobile-single .contact-form__step { display: none !important; }
  .contact-form--mobile-single .contact-form__success { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form__step { animation: none; }
  .contact-form__button { transition: none; }
}
