.contact-page { background: #fff; }

.contact-page .button {
  border-radius: 6px;
  box-shadow: none;
}

.contact-hero {
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 82% 42%, #123d68 0, #081d35 30%, #050d18 66%);
}

.contact-hero-grid {
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 65px;
  align-items: center;
}

.contact-kicker,
.contact-label {
  color: #0868ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-hero .contact-kicker { color: #78edd0; }

.contact-hero h1 {
  max-width: 14ch;
  margin: 18px 0 26px;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.contact-hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: #b8c7d6;
  font-size: 19px;
  line-height: 1.66;
}

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 33px;
  color: #d6e4ef;
  font-size: 13px;
  font-weight: 600;
}

.contact-availability i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #72e7c9;
  box-shadow: 0 0 0 6px #72e7c918, 0 0 18px #72e7c999;
}

.contact-signal {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
  aspect-ratio: 1;
  border: 1px solid #72a9d13d;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 48px, #72b8e526 49px 50px),
    radial-gradient(circle at 38% 31%, #1a5d89, #092039 50%, #050d18 73%);
  box-shadow: 0 35px 90px #0007, inset 0 0 70px #0b75aa24;
}

.contact-signal::before,
.contact-signal::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: #7adfc65e;
}

.contact-signal::after {
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  height: auto;
}

.signal-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 132px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #b1fff08a;
  color: #fff;
  background: radial-gradient(circle at 35% 28%, #a4fbe9, #1685db 35%, #071a36 73%);
  box-shadow: inset -22px -25px 38px #020a17a8, 0 0 55px #45c8d756;
  font-size: 72px;
  font-weight: 800;
}

.signal-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88%;
  height: 38%;
  transform: translate(-50%, -50%) rotate(-24deg);
  border: 1px solid #82c8e85f;
  border-radius: 50%;
}

.orbit-b { width: 67%; height: 67%; transform: translate(-50%, -50%) rotate(48deg); }

.signal-point {
  position: absolute;
  z-index: 3;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #7df0d3;
  box-shadow: 0 0 18px #7df0d3;
}

.signal-point.p1 { left: 17%; top: 35%; }
.signal-point.p2 { right: 15%; top: 29%; }
.signal-point.p3 { right: 25%; bottom: 18%; }

.contact-routes {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -52px;
}

.contact-route-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid #d9e4eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 58px #17344d16;
}

.contact-route-visual {
  position: relative;
  aspect-ratio: 1586 / 992;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid #dbe5eb;
  background: #07192e;
}

.contact-route-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #04142110 48%, #04142154 100%);
}

.contact-route-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-route-visual > span {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  min-width: 42px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff38;
  border-radius: 999px;
  color: #f5fbff;
  background: #06192db8;
  box-shadow: 0 7px 22px #04111d2e;
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.contact-route-copy {
  min-width: 0;
  padding: 27px 27px 31px;
}

.contact-routes h2 {
  margin: 14px 0 11px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.contact-routes p {
  margin: 0;
  color: #52677c;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1000px) {
  .contact-routes {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    scrollbar-color: #8aa1af #dce6eb;
    padding-bottom: 16px;
  }

  .contact-route-card {
    flex: 0 0 clamp(340px, 68vw, 430px);
    scroll-snap-align: start;
  }

  .contact-routes::-webkit-scrollbar { height: 6px; }
  .contact-routes::-webkit-scrollbar-track { background: #dce6eb; }
  .contact-routes::-webkit-scrollbar-thumb { border-radius: 999px; background: #8aa1af; }
}

.contact-form-band {
  margin-top: 115px;
  padding: 115px 0;
  background: #eef3f6;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: start;
}

.contact-form-intro {
  position: sticky;
  top: 35px;
  padding-top: 30px;
}

.contact-form-intro h2 {
  max-width: 520px;
  margin: 17px 0 23px;
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.contact-form-intro > p {
  margin: 0;
  color: #52677c;
  font-size: 16px;
  line-height: 1.72;
}

.contact-expectations {
  display: grid;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid #cad6de;
}

.contact-expectations span {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #d5dfe5;
}

.contact-expectations b { color: #0868ed; font-size: 12px; }
.contact-expectations small { color: #344c61; font-size: 13px; font-weight: 700; }

.enquiry-card {
  padding: clamp(30px, 4.6vw, 56px);
  border: 1px solid #dbe4ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 56px #15334c0d;
}

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

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

.field > span {
  color: #31495d;
  font-size: 12px;
  font-weight: 700;
}

.field em {
  margin-left: 5px;
  color: #52677c;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cad6df;
  border-radius: 8px;
  outline: 0;
  background: #fbfcfd;
  color: #14283a;
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input,
.field select { height: 50px; padding: 0 14px; }
.field textarea { min-height: 150px; padding: 14px; resize: vertical; line-height: 1.6; }
.field select { appearance: auto; }
.phone-control {
  display: grid;
  grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
  gap: 8px;
}
.phone-control select,
.phone-control input { min-width: 0; }
.phone-error {
  margin-top: -2px;
  color: #b53b3b;
  font-size: 12px;
  line-height: 1.45;
}
.phone-field.phone-invalid select,
.phone-field.phone-invalid input {
  border-color: #c94949;
  background: #fffafa;
}
.field input::placeholder,
.field textarea::placeholder { color: #667b8e; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #1678e8;
  background: #fff;
  box-shadow: 0 0 0 4px #1678e813;
}

.was-validated .field input:invalid,
.was-validated .field select:invalid,
.was-validated .field textarea:invalid {
  border-color: #c94949;
  background: #fffafa;
}

.was-validated .consent input:invalid {
  outline: 2px solid #c94949;
  outline-offset: 2px;
}

.field-wide { grid-column: 1 / -1; }

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 25px;
  color: #465d70;
  font-size: 12px;
  line-height: 1.55;
}

.consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: #0868ed; }

.sensitive-note {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-left: 3px solid #e6ac43;
  border-radius: 4px;
  background: #fff8e8;
  color: #6a531f;
  font-size: 12px;
  line-height: 1.55;
}

.form-submit {
  width: 100%;
  height: 54px;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  background: #0868ed;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}

.form-submit:hover { transform: translateY(-2px); background: #0059cf; }
.form-submit:disabled { cursor: wait; opacity: .75; transform: none; }
.submit-loading { display: none; }
.form-submit i { display: none; width: 15px; height: 15px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: contact-spin .7s linear infinite; }
.form-submit.is-loading .submit-idle { display: none; }
.form-submit.is-loading .submit-loading,
.form-submit.is-loading i { display: block; }

.form-status {
  display: none;
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.form-status.is-visible { display: flex; flex-direction: column; gap: 5px; }
.success-status { color: #165c4a; background: #e9faf4; border: 1px solid #b9e9d9; }
.error-status { color: #812d2d; background: #fff0f0; border: 1px solid #f0caca; }
.form-status b { font-size: 13px; }

.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.contact-next {
  padding-top: 120px;
  padding-bottom: 120px;
}

.contact-next > h2 {
  max-width: 1000px;
  margin: 15px 0 0;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 65px;
  border-top: 1px solid #cfd9e1;
}

.next-grid article {
  min-height: 250px;
  padding: 22px 27px 22px 0;
  border-right: 1px solid #dbe3e9;
}

.next-grid article:not(:first-child) { padding-left: 27px; }
.next-grid article:last-child { border-right: 0; }
.next-grid b { color: #0868ed; font-size: 12px; }
.next-grid h3 { margin: 70px 0 12px; font-size: 23px; letter-spacing: -.04em; }
.next-grid p { margin: 0; color: #52677c; font-size: 14px; line-height: 1.65; }

@keyframes contact-spin { to { transform: rotate(360deg); } }

:lang(zh-cn) .contact-hero h1,
:lang(zh-tw) .contact-hero h1 { letter-spacing: 0; line-height: 1.08; }
:lang(th) .contact-hero h1 { font-size: clamp(42px, 4.7vw, 62px); letter-spacing: 0; line-height: 1.12; }
:lang(th) .contact-kicker,
:lang(th) .contact-label { letter-spacing: .06em; }
:lang(th) .field > span,
:lang(th) .contact-routes p,
:lang(th) .contact-form-intro > p { line-height: 1.8; }
:lang(ms) .contact-form-intro h2 { font-size: clamp(37px, 3.6vw, 46px); }
:lang(th) .contact-form-intro h2 { font-size: clamp(36px, 3.45vw, 44px); line-height: 1.14; }
:lang(ms) .contact-next > h2 { font-size: clamp(37px, 4vw, 50px); }
:lang(th) .contact-next > h2 { font-size: clamp(36px, 3.8vw, 48px); line-height: 1.14; }
:lang(ms) .contact-routes h2 { font-size: 26px; }
:lang(th) .contact-routes h2 { font-size: 24px; line-height: 1.18; }

@media (max-width: 900px) {
  .contact-hero-grid { grid-template-columns: 1fr 340px; gap: 35px; }
  .contact-routes { margin-top: -25px; }
  .contact-form-layout { grid-template-columns: 1fr; gap: 45px; }
  .contact-form-intro { position: static; padding-top: 0; }
  .contact-expectations { grid-template-columns: repeat(3, 1fr); }
  .contact-expectations span { display: flex; flex-direction: column; }
}

@media (max-width: 780px) {
  .contact-hero-grid { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 85px; }
  .contact-hero h1,
  :lang(th) .contact-hero h1 { font-size: clamp(45px, 13vw, 66px); white-space: normal; }
  .contact-hero-copy > p { font-size: 17px; }
  .contact-signal { width: min(330px, 84vw); justify-self: center; margin-top: 20px; }
  .signal-core { width: 105px; font-size: 55px; }
  .contact-routes { margin-top: -28px; }
  .contact-form-band { margin-top: 75px; padding: 78px 0; }
  .contact-form-intro h2,
  .contact-next > h2,
  :lang(ms) .contact-form-intro h2,
  :lang(th) .contact-form-intro h2,
  :lang(ms) .contact-next > h2,
  :lang(th) .contact-next > h2 { font-size: clamp(34px, 9vw, 46px); }
  .contact-expectations { grid-template-columns: 1fr; }
  .contact-expectations span { display: grid; grid-template-columns: 38px 1fr; }
  .enquiry-card { padding: 28px 20px; border-radius: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .contact-next { padding-top: 80px; padding-bottom: 80px; }
  .next-grid { grid-template-columns: 1fr; }
  .next-grid article,
  .next-grid article:not(:first-child) { min-height: 0; padding: 22px 0 28px; border-right: 0; border-bottom: 1px solid #dbe3e9; }
  .next-grid h3 { margin-top: 34px; }
}

@media (max-width: 620px) {
  .contact-routes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .contact-route-card { width: auto; }
  .contact-route-copy { padding: 24px 23px 28px; }
  .contact-route-visual > span { top: 13px; left: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .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; }
}

/* Locale resilience for long enquiry labels and Southeast Asian scripts. */
:where(:lang(vi),:lang(id),:lang(fil),:lang(tet)) .contact-hero h1 { font-size: clamp(46px, 4.8vw, 64px); }
:where(:lang(lo),:lang(my),:lang(km)) .contact-hero h1 { font-size: clamp(41px, 4.2vw, 56px); }
:where(:lang(vi),:lang(id),:lang(fil),:lang(tet)) :is(.contact-form-intro h2,.contact-next>h2) { font-size: clamp(35px, 3.4vw, 46px); }
:where(:lang(lo),:lang(my),:lang(km)) :is(.contact-form-intro h2,.contact-next>h2) { font-size: clamp(32px, 3.1vw, 42px); }
:where(:lang(vi),:lang(id),:lang(fil),:lang(tet)) .contact-routes h2 { font-size: 25px; }
:where(:lang(lo),:lang(my),:lang(km)) .contact-routes h2 { font-size: 23px; }
:where(:lang(vi),:lang(id),:lang(fil),:lang(tet),:lang(lo),:lang(my),:lang(km)) :is(.field>span,.contact-routes p,.contact-form-intro>p,.contact-expectations small) {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 780px) {
  :where(:lang(vi),:lang(id),:lang(fil),:lang(tet)) .contact-hero h1 { font-size: clamp(39px, 10.8vw, 52px); }
  :where(:lang(lo),:lang(my),:lang(km)) .contact-hero h1 { font-size: clamp(35px, 9.8vw, 46px); }
  :where(:lang(vi),:lang(id),:lang(fil),:lang(tet),:lang(lo),:lang(my),:lang(km)) :is(.contact-form-intro h2,.contact-next>h2) { font-size: clamp(30px, 8.2vw, 41px); }
}
