/* Complete glyph coverage for the contact headings; the homepage font is a
 * separate subset and does not contain all the characters used here. */
@font-face {
  font-family: OmniContactSerif;
  src: url("/visuals/thumbs/omnitwin-contact-serif-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.contact-page {
  --serif: OmniContactSerif, "Songti SC", STSong, SimSun, serif;
  background: #f6f9ff;
}
.contact-page .site-header {
  background: #ffffffc7;
  border-bottom: 1px solid var(--line);
}
.contact-page .header-inner {
  width: min(var(--page-width), calc(100% - 96px));
}
.contact-page .desktop-nav {
  margin-left: auto;
  margin-right: 24px;
}
.contact-back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 6px 22px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  white-space: nowrap;
}
.contact-back:hover {
  background: var(--blue-light);
}
.contact-page main {
  flex: 1;
  background: linear-gradient(120deg, #f8fbff, #f4f8ff);
}
.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.contact-hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 40%, #d9e8ff8c, transparent 58%),
    linear-gradient(110deg, #eaf3ff 0%, #f0f6ff 70%, #e6f0ff 100%);
}
.contact-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 252px;
  gap: 28px;
  padding-block: 32px;
}
.contact-hero-copy {
  margin-left: 0;
}
.contact-eyebrow {
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.contact-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.contact-intro {
  margin-top: 17px;
  font-size: 18px;
  color: var(--ink);
}
.contact-mascot {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 270px;
  height: 190px;
  margin-right: 36px;
}
.contact-mascot img {
  position: relative;
  width: 200px;
  height: 200px;
  object-fit: contain;
  transform: rotate(9deg);
}
.contact-mascot--left {
  position: absolute;
  top: 14px;
  right: 306px;
  width: 92px;
  height: 92px;
  margin: 0;
}
.contact-mascot--left img {
  width: 92px;
  height: 92px;
  transform: rotate(-14deg);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(32px, 4vw, 60px);
  padding-block: 28px 40px;
  align-items: start;
}
.contact-information {
  padding-top: 9px;
}
.contact-information h2,
.contact-form-panel h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}
.contact-description {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.9;
  max-width: 420px;
  color: var(--ink);
}
.contact-methods {
  display: grid;
  gap: 26px;
  margin-block: 42px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 22px;
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
}
.contact-method:hover .contact-method-value {
  color: var(--blue);
}
.contact-method-icon {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  height: 50px;
  color: var(--blue);
  border: 1px solid #97b9ff;
  border-radius: 12px;
  background: #fff8;
}
.contact-method-icon .icon {
  width: 29px;
  height: 29px;
  stroke-width: 1.5;
}
.contact-method > span:last-child {
  min-width: 0;
}
.contact-method-label,
.contact-method-value {
  display: block;
}
.contact-method-label {
  font-size: 16px;
  font-weight: 600;
}
.contact-method-value {
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contact-topics {
  padding: 24px;
  border-radius: 16px;
  background: #e8f1ff;
}
.contact-topics h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
}
.contact-topics li {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-top: 11px;
  font-size: 16px;
  color: var(--ink);
}
.contact-topics .icon {
  color: var(--blue);
  margin-top: 2px;
  stroke-width: 2.5;
}
.contact-form-panel {
  padding: 20px 28px;
  background: #ffffffc7;
  border: 1px solid #bfd4fc;
  border-radius: 18px;
  box-shadow: 0 5px 16px #1559e806;
}
.contact-form-panel h2 {
  font-size: 28px;
}
.contact-form-intro {
  margin-top: 3px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--ink);
}
#contact-form {
  display: grid;
  gap: 12px;
}
.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.contact-field {
  display: grid;
  gap: 4px;
}
.contact-field label,
.contact-intents legend {
  font-size: 15px;
  font-weight: 600;
}
.contact-required {
  color: #d52d48;
}
.contact-field input,
.contact-field textarea,
#contact-email-content {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #bccfee;
  border-radius: 8px;
  background: #fff9;
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-field input {
  min-height: 40px;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #77839a;
  opacity: 1;
}
.contact-field textarea,
#contact-email-content {
  resize: vertical;
  min-height: 88px;
  max-height: 440px;
}
.contact-field textarea {
  height: 76px;
  min-height: 76px;
}
.contact-field input:focus,
.contact-field textarea:focus,
#contact-email-content:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #1559e812;
}
.contact-field input[aria-invalid="true"] {
  border-color: #d52d48;
}
.contact-intents {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.contact-intents legend {
  padding: 0;
  margin-bottom: 6px;
}
.contact-intent-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.contact-intent-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid #bccfee;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}
.contact-intent-options label:has(input:checked) {
  background: #e9f2ff;
  border-color: var(--blue);
  color: #1244ac;
}
.contact-intent-options label:hover {
  border-color: #719ef4;
}
.contact-intent-options input,
.contact-consent input {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}
.contact-intent-options input:focus-visible,
.contact-consent input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.contact-consent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  min-height: 24px;
}
.contact-consent input {
  margin-right: 7px;
}
.contact-consent label {
  cursor: pointer;
}
.contact-consent a,
.contact-footer-inner > a:last-child {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-submit {
  width: 100%;
  min-height: 42px;
  border-radius: 9px;
  padding: 8px 22px;
  gap: 16px;
}
.contact-submit:disabled {
  cursor: default;
  opacity: 0.72;
}
.contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-submit-status {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  background: #eaf2ff;
  color: var(--ink);
}
.contact-submit-status[data-state="success"] {
  background: #eaf7ef;
  color: #245e3a;
}
.contact-submit-status[data-state="error"] {
  background: #fff1ef;
  color: #9a3434;
}
.contact-form-note {
  margin-top: -5px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.contact-privacy {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.contact-privacy summary {
  cursor: pointer;
  width: fit-content;
}
.contact-privacy p {
  margin-top: 8px;
  line-height: 1.8;
}
.contact-footer {
  background: #f6f9ff;
}
.contact-footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink);
}
.contact-footer .brand {
  gap: 6px;
  font-size: 17px;
}
.contact-footer .brand img {
  width: 30px;
  height: 30px;
}
.contact-footer .brand-english {
  border: 0;
  padding: 0;
  font-size: 17px;
}
.contact-footer-tagline {
  border-left: 1px solid #b8c7e3;
  padding-left: 20px;
}
.contact-copyright {
  margin-left: auto;
}
@media (max-width: 1100px) {
  .contact-page .container,
  .contact-page .header-inner {
    width: calc(100% - 64px);
  }
  .contact-page .desktop-nav {
    gap: 24px;
    margin-right: 0;
  }
  .contact-page .brand-english {
    display: none;
  }
  .contact-mascot {
    margin-right: 0;
    flex-basis: 220px;
  }
  .contact-mascot--left {
    right: 220px;
  }
  .contact-form-panel {
    padding: 20px 24px;
  }
  .contact-layout {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    gap: 28px;
  }
  .contact-intent-options {
    gap: 8px;
  }
  .contact-intent-options label {
    gap: 7px;
    font-size: 14px;
  }
  .contact-topics {
    padding: 22px 18px;
  }
  .contact-topics h3 {
    font-size: 22px;
  }
  .contact-topics li {
    font-size: 14px;
  }
  .contact-footer-tagline {
    display: none;
  }
}
@media (max-width: 800px) {
  .contact-page .desktop-nav {
    display: none;
  }
  .contact-page .menu-toggle {
    display: inline-flex;
  }
  .contact-page .header-actions {
    gap: 12px;
  }
  .contact-hero-inner {
    min-height: 235px;
  }
  .contact-mascot {
    flex-basis: 150px;
    height: 150px;
  }
  .contact-mascot img {
    width: 150px;
    height: 150px;
  }
  .contact-mascot--left,
  .contact-mascot--left img {
    width: 68px;
    height: 68px;
  }
  .contact-mascot--left {
    right: 156px;
  }
  .contact-intro {
    font-size: 16px;
    max-width: 370px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-information {
    padding-top: 0;
  }
  .contact-description {
    max-width: 580px;
  }
  .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-block: 24px;
  }
  .contact-method {
    gap: 12px;
  }
  .contact-method-value {
    font-size: 18px;
  }
}
@media (max-width: 540px) {
  .contact-page .container,
  .contact-page .header-inner {
    width: calc(100% - 40px);
  }
  .contact-page .brand {
    font-size: 19px;
  }
  .contact-page .brand img {
    width: 34px;
    height: 34px;
  }
  .contact-back {
    min-height: 36px;
    padding: 5px 14px;
    font-size: 13px;
  }
  .contact-page .header-inner {
    gap: 8px;
  }
  .contact-page .header-actions {
    gap: 4px;
  }
  .contact-hero-inner {
    min-height: 240px;
    padding-block: 32px;
  }
  .contact-eyebrow {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .contact-hero h1 {
    font-size: clamp(30px, 7.8vw, 40px);
    position: relative;
    z-index: 1;
  }
  .contact-intro {
    font-size: 15px;
    max-width: 285px;
    position: relative;
    z-index: 1;
  }
  .contact-mascot {
    position: absolute;
    top: 4px;
    right: 0;
    width: 70px;
    height: 70px;
  }
  .contact-mascot img {
    width: 70px;
    height: 70px;
  }
  .contact-mascot--left,
  .contact-mascot--left img {
    width: 44px;
    height: 44px;
  }
  .contact-mascot--left {
    top: 0;
    right: 80px;
  }
  .contact-layout {
    padding-block: 26px 32px;
  }
  .contact-information h2 {
    font-size: 29px;
  }
  .contact-description {
    margin-top: 10px;
    font-size: 15px;
  }
  .contact-methods {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-block: 26px;
  }
  .contact-method {
    gap: 16px;
  }
  .contact-method-value {
    font-size: 21px;
  }
  .contact-form-panel {
    padding: 20px 18px;
    border-radius: 14px;
  }
  .contact-form-panel h2 {
    font-size: 26px;
  }
  .contact-form-intro {
    font-size: 14px;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-field input,
  .contact-field textarea {
    font-size: 16px;
  }
  .contact-field input,
  .contact-submit {
    min-height: 44px;
  }
  .contact-intent-options label {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    min-height: 44px;
    padding: 8px 4px;
  }
  .contact-intent-options input {
    width: 16px;
    height: 16px;
  }
  .contact-footer-inner {
    column-gap: 14px;
    row-gap: 12px;
    padding-block: 20px;
  }
  .contact-footer .brand {
    width: 100%;
    font-size: 17px;
  }
  .contact-footer .brand-english {
    display: inline;
  }
  .contact-copyright {
    margin-left: 0;
    margin-right: auto;
  }
}

/* Privacy text appears only when its link is opened. */
dialog.contact-privacy {
  margin: auto;
  width: min(560px, calc(100% - 40px));
  max-height: 80svh;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}
dialog.contact-privacy::backdrop { background: #14234666; }
dialog.contact-privacy form { margin-top: 20px; }
