/* Contact page — scoped to the bilingual Contact pages only */
.contact-page {
  --contact-canvas: #f7f3e8;
  --contact-card: #fcfaf5;
  --contact-green: #0e493d;
  --contact-green-dark: #0e332c;
  --contact-gold: #a67c38;
  --contact-text: #5f6862;
  --contact-border: #d7ccb8;
  background: var(--contact-canvas);
  color: var(--contact-text);
}

.contact-page main [id] {
  scroll-margin-top: 96px;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--contact-border);
  background: linear-gradient(135deg, #f7f3e8 0%, #f1ebdd 100%);
}

.contact-hero-grid {
  min-height: 480px;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: clamp(48px, 5vw, 82px);
  align-items: center;
}

.contact-hero-copy {
  min-width: 0;
  max-width: 520px;
}

.contact-hero-choices {
  min-width: 0;
  width: 100%;
  max-width: 650px;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-hero-choices.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.contact-choice-card {
  position: relative;
  width: 84%;
  min-width: 0;
  min-height: 170px;
  padding: 24px 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 13px;
  border: 1px solid var(--contact-border);
  color: var(--contact-green);
  background: var(--contact-card);
  box-shadow: 0 12px 28px rgba(14, 73, 61, .055);
  transition:
    opacity 620ms ease,
    translate 620ms cubic-bezier(.22, .72, .24, 1),
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.contact-hero-choices.reveal .contact-choice-card {
  opacity: 0;
  translate: 0 18px;
}

.contact-hero-choices.reveal.visible .contact-choice-card {
  opacity: 1;
  translate: 0 0;
}

.contact-hero-choices.reveal.visible .contact-choice-card--form {
  transition-delay: 160ms, 160ms, 0ms, 0ms, 0ms;
}

.contact-choice-card--wechat {
  align-self: flex-start;
  border-color: var(--contact-green);
  background: var(--contact-green);
  color: #f7f3e8;
  box-shadow: 0 14px 30px rgba(14, 51, 44, .1);
}

.contact-choice-card--form {
  align-self: flex-end;
}

.contact-choice-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.contact-choice-card__number {
  color: var(--contact-gold);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

.contact-choice-card__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .86;
}

.contact-choice-card--form .contact-choice-card__icon {
  color: var(--contact-green);
}

.contact-choice-card__body {
  align-self: center;
  display: grid;
  min-height: clamp(54.4px, calc(2.4725vw + 29.1px), 62.45px);
  align-content: start;
}

.contact-choice-card__title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.15vw, 29px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.contact-choice-card__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .11em;
}

.contact-choice-card__action > span {
  display: inline-block;
  color: var(--contact-gold);
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.contact-choice-card:focus-visible {
  outline: 2px solid var(--contact-gold);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .contact-choice-card:hover {
    transform: translateY(-4px);
    border-color: rgba(166, 124, 56, .72);
    box-shadow: 0 18px 36px rgba(14, 73, 61, .11);
  }

  .contact-choice-card:hover .contact-choice-card__action > span {
    transform: translateX(4px);
  }

  .contact-choice-card--wechat:hover {
    border-color: var(--contact-gold);
    box-shadow: 0 18px 38px rgba(14, 51, 44, .16);
  }
}

.contact-kicker,
.contact-section-label {
  margin: 0;
  color: var(--contact-gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 16px 0 0;
  color: var(--contact-green);
  font-family: var(--serif);
  font-size: clamp(58px, 6vw, 86px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.contact-hero-copy > p:last-child {
  margin: 22px 0 0;
  max-width: 34rem;
  color: var(--contact-text);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.7;
}

.contact-section {
  padding: 112px 0;
  border-bottom: 1px solid var(--contact-border);
  background: var(--contact-canvas);
}

#submit-enquiry {
  scroll-margin-top: 90px;
}

.contact-section-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 68px;
}

.contact-section-number {
  display: block;
  color: rgba(166, 124, 56, .62);
  font-family: var(--serif);
  font-size: clamp(64px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

.contact-section-heading h2 {
  margin: 16px 0 0;
  color: var(--contact-green);
  font-family: var(--serif);
  font-size: clamp(44px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.contact-section-heading > p:not(.contact-section-label) {
  margin: 22px 0 0;
  max-width: 740px;
  color: var(--contact-text);
  font-size: 17px;
  line-height: 1.8;
}

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

.contact-consultant-card {
  min-width: 0;
  min-height: 410px;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  grid-template-rows: auto 1fr;
  gap: 32px 34px;
  border: 1px solid var(--contact-border);
  border-top: 4px solid var(--contact-green);
  background: rgba(255, 255, 255, .42);
}

.contact-consultant-card--with-avatar {
  grid-template-rows: auto auto 1fr;
  row-gap: 14px;
}

.contact-consultant-info {
  min-width: 0;
}

.contact-consultant-name {
  margin: 0;
  color: var(--contact-green);
  font-family: var(--serif);
  font-size: clamp(36px, 3vw, 46px);
  font-weight: 600;
  line-height: 1.08;
}

.contact-consultant-role {
  margin: 12px 0 0;
  color: var(--contact-gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-consultant-avatar {
  width: 112px;
  height: auto;
  aspect-ratio: 1;
  display: block;
  grid-column: 1;
  grid-row: 2;
  object-fit: contain;
}

.contact-consultant-scope {
  align-self: end;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--contact-border);
  color: var(--contact-text);
  font-size: 15px;
  line-height: 1.85;
}

.contact-consultant-card--with-avatar .contact-consultant-scope {
  grid-column: 1;
  grid-row: 3;
}

.contact-qr-block {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  text-align: center;
}

.contact-consultant-card--with-avatar .contact-qr-block {
  grid-row: 1 / span 3;
}

.contact-qr-image {
  width: 176px;
  height: 176px;
  display: block;
  object-fit: contain;
  background: #fff;
}

.contact-qr-placeholder {
  width: 176px;
  aspect-ratio: 1;
  padding: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--contact-border);
  background: var(--contact-card);
  color: var(--contact-text);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: .06em;
  text-align: center;
}

.contact-qr-placeholder::before {
  content: "";
  position: absolute;
}

.contact-qr-caption {
  margin: 14px 0 0;
  color: var(--contact-green);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.contact-enquiry-intro {
  margin-top: 14px;
}

.contact-email-note {
  margin: 14px 0 0;
  color: var(--contact-text);
  font-size: 14px;
  line-height: 1.7;
}

.contact-email-note a {
  color: var(--contact-green);
  text-decoration: underline;
  text-decoration-color: rgba(166, 124, 56, .62);
  text-underline-offset: 4px;
}

.contact-email-note a:hover {
  color: var(--contact-gold);
}

.contact-form-shell {
  margin-left: 206px;
  padding: 48px;
  border: 1px solid var(--contact-border);
  border-top: 4px solid var(--contact-green);
  background: var(--contact-card);
}

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

.contact-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-field--full,
.contact-form-actions,
.contact-form-status,
.contact-honeypot {
  grid-column: 1 / -1;
}

.contact-field label {
  color: var(--contact-green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .035em;
}

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

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--contact-border);
  border-radius: 0;
  background: #fffef9;
  color: #2f3c37;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.contact-field input,
.contact-field select {
  min-height: 54px;
  padding: 0 16px;
}

.contact-field select {
  cursor: pointer;
}

.contact-field textarea {
  min-height: 150px;
  padding: 15px 16px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #8a918c;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--contact-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(166, 124, 56, .14);
}

.contact-form-status[hidden] {
  display: none;
}

.contact-optional {
  color: #858d88;
  font-weight: 500;
  letter-spacing: 0;
}

.contact-choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-choice-field legend {
  margin: 0 0 12px;
  padding: 0;
  color: var(--contact-green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .035em;
}

.contact-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-choice-option {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--contact-border);
  background: #fffef9;
  color: #3f4b46;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.contact-choice-option:hover {
  border-color: rgba(14, 73, 61, .55);
}

.contact-choice-option:has(input:checked) {
  border-color: var(--contact-green);
  background: #eef2ec;
  color: var(--contact-green);
}

.contact-choice-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--contact-green);
}

.contact-choice-option input:focus-visible {
  outline: 2px solid var(--contact-gold);
  outline-offset: 3px;
}

.contact-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;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-submit {
  min-height: 54px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--contact-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.contact-submit:hover:not(:disabled) {
  background: var(--contact-green-dark);
  transform: translateY(-2px);
}

.contact-submit:active:not(:disabled) {
  transform: translateY(0);
}

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

.contact-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.contact-form-status {
  margin-top: 4px;
  padding: 24px 26px;
  border-left: 3px solid var(--contact-green);
  background: #e8efea;
}

.contact-form-status.is-error {
  border-left-color: #9b553f;
  background: #f4e9e2;
}

.contact-form-status h3 {
  margin: 0;
  color: var(--contact-green);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.contact-form-status.is-error h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

.contact-form-status p {
  margin: 8px 0 0;
  color: var(--contact-text);
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 1050px) {
  .contact-hero-grid {
    min-height: 450px;
    padding: 56px 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .contact-hero-choices {
    max-width: 580px;
  }

  .contact-choice-card {
    width: 92%;
    min-height: 166px;
    padding: 23px 25px;
  }

  .contact-section {
    padding: 92px 0;
  }

  .contact-section-head {
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 56px;
  }

  .contact-section-number {
    font-size: 54px;
  }

  .contact-consultant-card {
    min-height: 0;
    padding: 32px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 26px;
  }

  .contact-consultant-card--with-avatar {
    grid-template-rows: auto auto auto auto;
  }

  .contact-consultant-card--with-avatar .contact-consultant-avatar {
    width: min(148px, 44vw);
    grid-row: 2;
  }

  .contact-qr-block {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .contact-consultant-card--with-avatar .contact-qr-block {
    grid-column: 1;
    grid-row: 3;
  }

  .contact-consultant-scope {
    grid-row: 3;
  }

  .contact-consultant-card--with-avatar .contact-consultant-scope {
    grid-row: 4;
  }

  .contact-form-shell {
    margin-left: 166px;
    padding: 40px;
  }
}

@media (max-width: 850px) {
  .contact-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-hero-grid {
    min-height: 430px;
    padding: 52px 0;
    gap: 30px;
  }

  .contact-hero-copy > p:last-child {
    font-size: clamp(17px, 2.1vw, 20px);
  }

  .contact-section {
    padding: 84px 0;
  }

  .contact-section-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 48px;
  }

  .contact-section-heading h2 {
    margin-top: 12px;
  }

  .contact-form-shell {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .contact-hero-grid {
    min-height: auto;
    padding: 58px 0 44px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-hero-copy {
    max-width: 640px;
  }

  .contact-hero-choices {
    width: min(100%, 640px);
    max-width: none;
    justify-self: center;
    gap: 20px;
  }

  .contact-choice-card,
  .contact-choice-card--form {
    width: 100%;
    min-height: 156px;
    align-self: stretch;
  }
}

@media (max-width: 620px) {
  .contact-hero-grid {
    padding: 48px 0 36px;
    gap: 24px;
  }

  .contact-hero h1 {
    font-size: clamp(46px, 15vw, 62px);
  }

  .contact-hero-copy > p:last-child {
    margin-top: 20px;
    max-width: 100%;
    font-size: 17px;
    line-height: 1.7;
  }

  .contact-hero-choices {
    width: 100%;
    gap: 16px;
  }

  .contact-choice-card {
    min-height: 148px;
    padding: 20px 22px;
    gap: 10px;
  }

  .contact-choice-card__number {
    font-size: 32px;
  }

  .contact-choice-card__icon {
    width: 46px;
    height: 46px;
  }

  .contact-choice-card__title {
    font-size: clamp(21px, 7vw, 26px);
  }

  .contact-choice-card__body {
    min-height: clamp(51.6px, calc(8.05vw + 27.45px), 57.35px);
  }

  .contact-choice-card__action {
    font-size: 10px;
  }

  .contact-section {
    padding: 68px 0;
  }

  .contact-section-head {
    margin-bottom: 40px;
  }

  .contact-section-number {
    font-size: 44px;
  }

  .contact-section-heading h2 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .contact-section-heading > p:not(.contact-section-label) {
    font-size: 16px;
  }

  .contact-consultants {
    grid-template-columns: 1fr;
  }

  .contact-consultant-card {
    padding: 28px 24px;
  }

  .contact-qr-placeholder {
    width: min(176px, 62vw);
  }

  .contact-qr-image {
    width: min(176px, 62vw);
    height: auto;
    aspect-ratio: 1;
  }

  .contact-form-shell {
    padding: 30px 22px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-choice-grid {
    grid-template-columns: 1fr;
  }


  .contact-field--full,
  .contact-form-actions,
  .contact-form-status,
  .contact-honeypot {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .contact-hero-choices.reveal .contact-choice-card {
    opacity: 1;
    translate: none;
  }
}
