@import url('./contact-open-v42.css');

/* A roomier closing chapter, with the contact routes and identity held together. */
.contact-page,
.site-shell .contact-page {
  padding: 69px clamp(28px, 7vw, 140px) 43px;
}
.contact-page .contact-panel { width: min(100%, 1240px); }
.contact-page .contact-main {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: clamp(38px, 5vw, 78px);
  padding-bottom: 26px;
}
.contact-page .contact-lead h2 {
  margin: 16px 0 14px;
  font-size: clamp(45px, 3.8vw, 58px);
}
html[lang="en"] .contact-page .contact-lead h2 { font-size: clamp(42px, 3.5vw, 56px); }
.contact-page .contact-options { gap: 12px; }
.contact-page .contact-option {
  min-height: 68px;
  padding: 12px 18px;
  border-radius: 15px;
}
.contact-page .contact-option-copy { gap: 3px; }
.contact-page .contact-social {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 6px;
}
.contact-page .contact-social-heading {
  flex: none;
  color: #35556f;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .05em;
}
.contact-page .contact-social-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-page .contact-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 5px 10px 5px 6px;
  border: 1px solid rgba(40, 91, 129, .2);
  border-radius: 999px;
  color: #173b60;
  background: rgba(255, 255, 255, .55);
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.contact-page .contact-social-button:hover,
.contact-page .contact-social-button:focus-visible {
  background: #fff;
  border-color: #2466a4;
  transform: translateY(-2px);
}
.contact-page .contact-social-icon {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #fff;
  background: #1a5d9b;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.07em;
}
.contact-page .contact-social-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-page .contact-brand-row {
  grid-template-columns: minmax(255px, .95fr) minmax(0, 1.3fr) minmax(165px, .62fr);
  gap: 20px;
  padding: 20px 0 17px;
}
.contact-page .contact-brand img { width: 72px; height: 72px; filter: none; }
.contact-page .contact-brand strong { font-size: 24px; }
.contact-page .contact-brand-row p { font-size: 15px; }
.contact-page .contact-brand-row > span { font-size: 13px; }
.contact-page .contact-meta-row { padding-top: 13px; }

.contact-qr-dialog {
  width: min(92vw, 404px);
  max-height: min(90vh, 680px);
  overflow: auto;
  padding: 25px 25px 27px;
  border: 0;
  border-radius: 22px;
  color: #173653;
  background: #f6fbff;
  box-shadow: 0 25px 80px rgba(11, 37, 71, .26);
  text-align: center;
}
.contact-qr-dialog:not([open]) { display: none; }
.contact-qr-dialog::backdrop { background: rgba(7, 31, 56, .6); backdrop-filter: blur(3px); }
.contact-qr-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 37px;
  height: 37px;
  border: 1px solid #c9ddee;
  border-radius: 50%;
  color: #173653;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.contact-qr-kicker { margin: 9px 0 6px; color: #4a6d8e; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.contact-qr-dialog h3 { margin: 0 0 7px; font-size: 27px; font-weight: 650; }
.contact-qr-dialog p { margin: 13px 0 0; color: #57738e; font-size: 14px; }
.contact-qr-image-shell {
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 11px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(30, 78, 115, .11);
}
.contact-qr-frame { position: relative; width: min(65vw, 290px); aspect-ratio: 1; overflow: hidden; background: #fff; }
.contact-qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.contact-qr-frame--wechat img,
.contact-qr-frame--whatsapp img { position: absolute; height: auto; max-width: none; }
.contact-qr-frame--wechat img { width: 138.75%; left: -19.53%; top: -46.09%; }
.contact-qr-frame--whatsapp img { width: 222.99%; left: -61.61%; top: -161.61%; }
.contact-qr-panel[hidden] { display: none !important; }

@media (max-width: 900px) {
  .contact-page,
  .site-shell .contact-page { padding-top: 65px; padding-bottom: 42px; }
  .contact-page .contact-main { grid-template-columns: 1fr; gap: 22px; padding-bottom: 30px; }
  .contact-page .contact-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page .contact-social { grid-column: 1 / -1; }
  .contact-page .contact-brand-row { grid-template-columns: minmax(235px, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 18px 0 15px; }
  .contact-page .contact-brand-row > span { grid-column: 1 / -1; text-align: right; }
}
@media (max-width: 600px) {
  .contact-page,
  .site-shell .contact-page { padding: 63px 22px 37px; }
  .contact-page .contact-main { gap: 18px; padding-bottom: 30px; }
  .contact-page .contact-lead h2 { margin: 13px 0 9px; font-size: clamp(34px, 8.2vw, 45px); }
  html[lang="en"] .contact-page .contact-lead h2 { font-size: clamp(33px, 8vw, 43px); }
  .contact-page .contact-options { grid-template-columns: 1fr; }
  .contact-page .contact-option { min-height: 58px; }
  .contact-page .contact-social { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 7px; }
  .contact-page .contact-social-actions { gap: 6px; }
  .contact-page .contact-social-button { font-size: 11px; }
  .contact-page .contact-brand-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0 18px; }
  .contact-page .contact-brand img { width: 64px; height: 64px; }
  .contact-page .contact-brand strong { font-size: 22px; }
  .contact-page .contact-brand-row p,
  .contact-page .contact-brand-row > span { font-size: 12px; text-align: left; grid-column: auto; }
  .contact-page .contact-meta-row { gap: 7px; padding-top: 11px; }
}

/* Use the supplied complete brand lockup in the footer at its native colours. */
.contact-page .contact-brand { display: block; min-width: 0; }
.contact-page .contact-brand img {
  display: block;
  width: min(100%, 300px);
  max-width: 100%;
  height: auto;
  filter: none;
}
@media (max-width: 600px) {
  .contact-page .contact-brand img { width: min(100%, 280px); }
}
