/* Editorial contact page, aligned with the thinking AI page. */
.p1-contact-page .p1-header { box-shadow: 0 1px 12px rgba(23, 45, 56, .035); }
.p1-contact-page .p1-header-inner { min-height: 82px; }
.p1-contact-page .p1-desktop-nav a { font-weight: 500; }
.p1-contact-page .p1-header-cta[aria-current="page"] { background: #103d51; }
.p1-contact-page .p1-main { padding-bottom: 0; }

.p1-contact-page .p1-hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100svh - 82px); margin: 0; padding: 108px 8px 100px;
  border: 0; border-radius: 0; background: transparent;
}
.p1-contact-page .p1-hero::before {
  position: absolute; z-index: -1; top: 0; bottom: 0;
  right: calc(50% - 50vw); left: calc(50% - 50vw);
  background-color: #f2f4f0;
  background-image: linear-gradient(90deg, rgba(247,249,247,.98) 0%, rgba(247,249,247,.93) 32%, rgba(247,249,247,.68) 50%, rgba(247,249,247,0) 72%), url("/assets/images/contact-hero.webp");
  background-size: cover; background-position: center;
  content: "";
}
.p1-contact-page .p1-hero .p1-breadcrumbs {
  position: absolute; top: 0; left: 8px; right: 8px;
  padding-top: 26px; color: #4c626d;
}
.p1-contact-page .p1-hero .p1-breadcrumbs a { color: #4c626d; }
.p1-contact-page .p1-hero .p1-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px; font-size: 13px; letter-spacing: .14em;
}
.p1-contact-page .p1-hero .p1-eyebrow::before {
  width: 28px; height: 1px; flex: none;
  background: var(--p1-brand); content: "";
}
.p1-contact-page .p1-hero h1 {
  max-width: 740px; margin-bottom: 28px;
  font-size: clamp(40px, 5vw, 62px); line-height: 1.28;
  letter-spacing: -.035em; font-weight: 650;
}
.p1-contact-page .p1-hero .p1-lead {
  max-width: 650px; font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.92;
}
.p1-contact-page .p1-hero .p1-actions { align-items: center; margin-top: 34px; }
.p1-contact-page .p1-hero .p1-button { min-height: 48px; padding: 11px 23px; }
.p1-contact-page .p1-contact-email-link {
  display: inline-flex; align-items: center; padding: 10px 4px;
  color: var(--p1-brand); font-size: 15px; font-weight: 650;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
}

.p1-contact-page .p1-section {
  position: relative; isolation: isolate;
  padding: clamp(76px, 8.5vw, 112px) 8px;
  border-bottom: 0;
}
.p1-contact-page .p1-section + .p1-section { border-top: 1px solid var(--p1-line); }
.p1-contact-page .p1-section:nth-of-type(2)::before,
.p1-contact-page .p1-section:nth-of-type(4)::before {
  position: absolute; z-index: -1; top: 0; bottom: 0;
  right: calc(50% - 50vw); left: calc(50% - 50vw);
  background: var(--p1-white); content: "";
}
.p1-contact-page .p1-section-head { max-width: none; margin-bottom: 42px; }
.p1-contact-page .p1-section-head .p1-eyebrow {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  margin: 0 0 25px; font-size: 16px; line-height: 1.65;
  letter-spacing: .06em;
}
.p1-contact-page .p1-section-head .p1-eyebrow::before {
  width: 30px; height: 1px; background: var(--p1-brand); content: "";
}
.p1-contact-page .p1-section h2 {
  max-width: 1024px; font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.42; letter-spacing: -.025em; font-weight: 620;
}
.p1-contact-page .p1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 60px; }
.p1-contact-page .p1-card {
  min-height: 190px; padding: 27px 12px 10px 0;
  border: 0; border-top: 1px solid var(--p1-line);
  border-radius: 0; background: transparent;
}
.p1-contact-page .p1-card h3 {
  margin-bottom: 15px; font-size: 21px; line-height: 1.42; font-weight: 650;
}
.p1-contact-page .p1-card p { font-size: 15px; line-height: 1.88; }
.p1-contact-page .p1-card .text-link { padding-bottom: 4px; }
.p1-contact-page .p1-contact-methods { padding-top: 88px; padding-bottom: 88px; scroll-margin-top: 82px; }
.p1-contact-page .p1-contact-methods .p1-section-head { margin-bottom: 36px; }
.p1-contact-page .p1-contact-methods-layout {
  display: grid; grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
  align-items: center; gap: clamp(36px, 6vw, 90px);
}
.p1-contact-page .p1-wechat-qr {
  margin: 0; padding: 20px 20px 24px;
  background: #fff; border: 1px solid var(--p1-line);
  box-shadow: 0 18px 40px rgba(23, 45, 56, .07);
  text-align: center;
}
.p1-contact-page .p1-wechat-qr img { display: block; width: 100%; height: auto; }
.p1-contact-page .p1-wechat-qr figcaption {
  margin-top: 8px; color: var(--p1-ink);
  font-size: 16px; font-weight: 650; line-height: 1.5;
}
.p1-contact-page .p1-contact-alternative > p:first-child {
  margin: 0 0 18px; color: var(--p1-brand);
  font-size: 16px; font-weight: 700;
}
.p1-contact-page .p1-contact-methods .p1-copy {
  max-width: 920px; margin: 0;
  color: var(--p1-ink); font-size: clamp(16px, 1.6vw, 19px);
  line-height: 2.1; overflow-wrap: anywhere;
}
.p1-contact-page .p1-contact-methods .p1-copy a {
  color: var(--p1-brand); text-decoration-thickness: 1px;
  text-underline-offset: 5px; font-weight: 650;
}
.p1-contact-page .p1-contact-image-link {
  display: inline-block; margin-top: 26px; font-size: 14px;
  text-underline-offset: 5px;
}

@media (max-width: 1000px) {
  .p1-contact-page .p1-header-inner { min-height: 76px; }
  .p1-contact-page .p1-hero { min-height: calc(100svh - 76px); }
  .p1-contact-page .p1-hero::before {
    background-image: linear-gradient(90deg, rgba(247,249,247,.98) 0%, rgba(247,249,247,.9) 48%, rgba(247,249,247,.46) 100%), url("/assets/images/contact-hero.webp");
    background-position: 65% center;
  }
}
@media (max-width: 760px) {
  .p1-contact-page .p1-hero { padding-top: 112px; padding-bottom: 82px; }
  .p1-contact-page .p1-section { padding-top: 72px; padding-bottom: 72px; }
  .p1-contact-page .p1-section-head { margin-bottom: 36px; }
  .p1-contact-page .p1-grid { gap: 24px 34px; }
  .p1-contact-page .p1-contact-methods-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .p1-contact-page .p1-wechat-qr { width: min(100%, 390px); }
}
@media (max-width: 640px) {
  .p1-contact-page .p1-header-inner { min-height: 64px; }
  .p1-contact-page .p1-hero { min-height: calc(100svh - 64px); padding: 118px 2px 70px; }
  .p1-contact-page .p1-hero .p1-breadcrumbs { left: 2px; right: 2px; padding-top: 20px; }
  .p1-contact-page .p1-hero::before {
    background-image: linear-gradient(180deg, rgba(247,249,247,.8), rgba(247,249,247,.89) 40%, rgba(247,249,247,.96) 76%), url("/assets/images/contact-hero.webp");
    background-position: 69% center;
  }
  .p1-contact-page .p1-hero .p1-eyebrow { gap: 10px; font-size: 11px; }
  .p1-contact-page .p1-hero .p1-eyebrow::before { width: 18px; }
  .p1-contact-page .p1-hero h1 { font-size: clamp(34px, 8vw, 42px); line-height: 1.34; }
  .p1-contact-page .p1-hero .p1-lead { font-size: 15px; line-height: 1.82; }
  .p1-contact-page .p1-section { padding: 62px 2px; }
  .p1-contact-page .p1-section-head { margin-bottom: 31px; }
  .p1-contact-page .p1-section-head .p1-eyebrow { gap: 12px; margin-bottom: 24px; }
  .p1-contact-page .p1-section h2 { font-size: 28px; }
  .p1-contact-page .p1-grid { grid-template-columns: 1fr; gap: 20px; }
  .p1-contact-page .p1-card { min-height: 0; padding: 23px 0 3px; }
  .p1-contact-page .p1-card h3 { font-size: 19px; }
  .p1-contact-page .p1-contact-methods { padding-top: 62px; padding-bottom: 62px; scroll-margin-top: 64px; }
  .p1-contact-page .p1-contact-methods .p1-section-head { margin-bottom: 28px; }
  .p1-contact-page .p1-contact-methods .p1-copy { font-size: 16px; }
  .p1-contact-page .p1-wechat-qr { margin-inline: auto; padding: 14px 14px 20px; }
}
