/* Formosa lower page: contact. Shared header/footer styles are loaded separately. */
.fm-contact-page {
  --ctp-blue: #0868f5;
  --ctp-blue-dark: #064fc3;
  --ctp-cyan: #08aeb4;
  --ctp-green: #78ad22;
  --ctp-orange: #f47632;
  --ctp-ink: #050a18;
  --ctp-text: #273449;
  --ctp-muted: #617087;
  --ctp-line: #dce6f1;
  width: min(100%, 1717px);
  margin-inline: auto;
  overflow: clip;
  color: var(--ctp-text);
  background: #fff;
  font-family: var(--fm-font);
}

.fm-contact-page *,
.fm-contact-page *::before,
.fm-contact-page *::after {
  box-sizing: border-box;
}

.fm-contact-page :where(h1, h2, h3, p, figure, ol, ul) {
  margin: 0;
}

.fm-contact-page :where(ol, ul) {
  padding: 0;
}

.fm-contact-page img {
  display: block;
  max-width: 100%;
}

.ctp-shell {
  width: min(calc(100% - 160px), 1280px);
  margin-inline: auto;
}

.ctp-eyebrow {
  color: var(--ctp-blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .17em;
}

.ctp-breadcrumb {
  width: min(calc(100% - 160px), 1280px);
  margin: 22px auto 0;
  color: #526177;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.ctp-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.ctp-breadcrumb li + li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctp-breadcrumb li + li::before {
  color: #b3bfce;
  content: "/";
}

.ctp-breadcrumb a:hover,
.ctp-breadcrumb a:focus-visible {
  color: var(--ctp-blue);
}

.ctp-hero {
  position: relative;
  min-height: 515px;
  padding: 34px 0 76px;
  overflow: clip;
  background: #fff;
  border-bottom: 1px solid #e7eef7;
}

.ctp-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: 56px;
}

.ctp-hero__copy {
  padding-left: 14px;
}

.ctp-hero h1 {
  margin-top: 18px;
  color: var(--ctp-ink);
  font-size: clamp(50px, 4.7vw, 72px);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: .055em;
}

.ctp-hero__copy > p:not(.ctp-eyebrow) {
  max-width: 520px;
  margin-top: 25px;
  color: #35435a;
  font-size: 16px;
  font-weight: 650;
  line-height: 2;
}

.ctp-hero__copy .ctp-hero__note {
  margin-top: 9px;
  color: #617087;
  font-size: 14px;
}

.ctp-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 390px;
}

.ctp-hero__advisor {
  position: absolute;
  right: 0;
  bottom: -18px;
  width: min(100%, 570px);
  height: 428px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #dce7f2;
  border-radius: 34px 34px 92px 34px;
  box-shadow: 0 22px 54px rgba(30, 74, 112, .14);
}

.ctp-hero__message {
  position: absolute;
  top: 18px;
  right: 0;
  z-index: 2;
  max-width: 215px;
  padding: 23px 25px;
  color: #182740;
  background: #fff;
  border: 1px solid #e2e9f3;
  border-radius: 28px;
  box-shadow: 0 16px 38px rgba(36, 78, 118, .12);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.75;
  text-align: center;
  transform: rotate(2deg);
}

.ctp-hero__wave {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(75%, 1120px);
  max-width: none !important;
  height: auto;
  opacity: .5;
  pointer-events: none;
}

.ctp-contact-nav {
  padding: 42px 0 50px;
  background: #fff;
}

.ctp-contact-nav__lead {
  margin-bottom: 18px;
  color: var(--ctp-ink);
  font-size: 15px;
  font-weight: 850;
}

.ctp-contact-nav ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.ctp-contact-nav a {
  display: flex;
  min-height: 102px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px;
  color: var(--ctp-ink);
  background: #fff;
  border: 1px solid var(--ctp-line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(40, 81, 121, .06);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ctp-contact-nav a:hover,
.ctp-contact-nav a:focus-visible {
  border-color: var(--ctp-blue);
  box-shadow: 0 14px 30px rgba(35, 91, 153, .12);
  transform: translateY(-2px);
}

.ctp-contact-nav img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ctp-form-section {
  padding: 84px 0 96px;
  background: #f5f8fc;
  scroll-margin-top: 24px;
}

.ctp-section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.ctp-section-heading h2 {
  margin-top: 12px;
  color: var(--ctp-ink);
  font-size: clamp(32px, 3.3vw, 48px);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: .03em;
}

.ctp-section-heading > p:last-child {
  margin-top: 14px;
  color: var(--ctp-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.8;
}

.ctp-section-heading--center {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.ctp-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 28px;
}

.ctp-form,
.ctp-direct {
  background: #fff;
  border: 1px solid #e0e8f2;
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(43, 77, 112, .08);
}

.ctp-form {
  display: grid;
  gap: 24px;
  padding: 40px;
}

.ctp-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ctp-field {
  min-width: 0;
}

.ctp-field label,
.ctp-consent label {
  color: var(--ctp-ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.55;
}

.ctp-required,
.ctp-optional {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  vertical-align: 2px;
}

.ctp-required {
  color: #fff;
  background: var(--ctp-blue);
}

.ctp-optional {
  color: #5e6a7b;
  background: #eef2f6;
  border: 1px solid #dbe3ec;
}

.ctp-field :where(input, select, textarea) {
  width: 100%;
  margin-top: 9px;
  color: var(--ctp-ink);
  background: #fff;
  border: 1px solid #cbd7e5;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ctp-field :where(input, select) {
  min-height: 52px;
  padding: 12px 14px;
}

.ctp-field textarea {
  min-height: 190px;
  padding: 14px;
  resize: vertical;
}

.ctp-field :where(input, select, textarea):focus {
  border-color: var(--ctp-blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(8, 104, 245, .13);
}

.ctp-field__help {
  margin-top: 8px !important;
  color: #68778b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.ctp-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 17px 18px;
  background: #f7faff;
  border: 1px solid #dce8f8;
  border-radius: 10px;
}

.ctp-consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ctp-blue);
}

.ctp-consent a {
  color: var(--ctp-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.ctp-consent a:hover {
  color: #0457d8;
}

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

.ctp-submit {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 22px;
  color: #fff;
  background: var(--ctp-blue);
  border: 1px solid var(--ctp-blue);
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(8, 104, 245, .22);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ctp-submit:hover,
.ctp-submit:focus-visible {
  background: var(--ctp-blue-dark);
  border-color: var(--ctp-blue-dark);
  transform: translateY(-1px);
}

.ctp-submit:disabled {
  opacity: .68;
  cursor: wait;
  transform: none;
}

.ctp-submit img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ctp-submit-note {
  margin-top: -13px !important;
  color: #35445a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.ctp-submit-help {
  margin-top: -18px !important;
  color: #6c798c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
  text-align: center;
}

.ctp-submit-help a {
  color: var(--ctp-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ctp-direct {
  position: sticky;
  top: 22px;
  padding: 34px 30px;
}

.ctp-direct > h2 {
  margin-top: 12px;
  color: var(--ctp-ink);
  font-size: 25px;
  font-weight: 950;
  line-height: 1.55;
  letter-spacing: .025em;
}

.ctp-direct > h2 + p {
  margin-top: 13px;
  color: var(--ctp-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.8;
}

.ctp-direct__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  padding: 25px 0;
  border-bottom: 1px dashed #d5dfeb;
}

.ctp-direct__item > img {
  width: 48px;
  height: 48px;
  padding: 8px;
  object-fit: contain;
  background: #edf5ff;
  border-radius: 50%;
}

.ctp-direct__item--mail > img {
  background: #ebfbfb;
}

.ctp-direct__item p {
  color: #4c5b70;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.ctp-direct__item a {
  display: inline-block;
  max-width: 100%;
  margin-top: 5px;
  color: var(--ctp-blue);
  font-size: 23px;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ctp-direct__item--mail a {
  color: var(--ctp-cyan);
  font-size: 15px;
}

.ctp-direct__item small {
  display: block;
  margin-top: 5px;
  color: #5f6d80;
  font-size: 11px;
  font-weight: 700;
}

.ctp-direct__support {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin-top: 26px;
  padding: 20px;
  background: #f4fbfb;
  border: 1px solid #d5eeee;
  border-radius: 12px;
}

.ctp-direct__support img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.ctp-direct__support p {
  color: #526176;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.75;
}

.ctp-direct__support strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ctp-ink);
  font-size: 13px;
  font-weight: 900;
}

.ctp-related {
  padding: 90px 0 104px;
  background: #fff;
}

.ctp-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ctp-related-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  padding: 30px 24px 25px;
  color: var(--ctp-text);
  background: #fff;
  border: 1px solid var(--ctp-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(41, 76, 113, .06);
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ctp-related-card:hover,
.ctp-related-card:focus-visible {
  border-color: var(--ctp-blue);
  box-shadow: 0 16px 34px rgba(35, 91, 153, .12);
  transform: translateY(-3px);
}

.ctp-related-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.ctp-related-card h3 {
  margin-top: 18px;
  color: var(--ctp-ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.45;
}

.ctp-related-card p {
  margin-top: 10px;
  color: var(--ctp-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.75;
}

.ctp-related-card span {
  margin-top: auto;
  padding-top: 20px;
  color: var(--ctp-blue);
  font-size: 12px;
  font-weight: 900;
}

.ctp-contact-nav a:focus-visible,
.ctp-submit:focus-visible,
.ctp-related-card:focus-visible,
.ctp-direct a:focus-visible,
.ctp-submit-help a:focus-visible {
  outline: 3px solid rgba(8, 104, 245, .28);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .ctp-shell,
  .ctp-breadcrumb {
    width: min(calc(100% - 72px), 1040px);
  }

  .ctp-hero__inner {
    grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
    gap: 26px;
  }

  .ctp-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ctp-form-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .ctp-form {
    padding: 32px;
  }

  .ctp-direct {
    padding: 30px 24px;
  }
}

@media (max-width: 820px) {
  .ctp-hero {
    padding-bottom: 44px;
  }

  .ctp-hero__inner {
    grid-template-columns: 1fr;
  }

  .ctp-hero__copy {
    padding-left: 0;
  }

  .ctp-hero__visual {
    min-height: 350px;
  }

  .ctp-hero__advisor {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 350px;
  }

  .ctp-hero__message {
    top: 6px;
    right: 2%;
  }

  .ctp-form-layout {
    grid-template-columns: 1fr;
  }

  .ctp-direct {
    position: static;
  }
}

@media (max-width: 620px) {
  .ctp-shell,
  .ctp-breadcrumb {
    width: calc(100% - 32px);
  }

  .ctp-breadcrumb {
    margin-top: 14px;
    font-size: 11px;
  }

  .ctp-hero {
    min-height: 0;
    padding: 28px 0 30px;
  }

  .ctp-hero h1 {
    margin-top: 12px;
    font-size: clamp(38px, 12vw, 50px);
  }

  .ctp-hero__copy > p:not(.ctp-eyebrow) {
    margin-top: 19px;
    font-size: 14px;
    line-height: 1.85;
  }

  .ctp-hero__visual {
    min-height: 275px;
  }

  .ctp-hero__advisor {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 270px;
    border-radius: 22px 22px 58px 22px;
  }

  .ctp-hero__message {
    top: 6px;
    right: 0;
    max-width: 160px;
    padding: 15px 17px;
    border-radius: 20px;
    font-size: 12px;
  }

  .ctp-hero__wave {
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .ctp-contact-nav {
    padding: 32px 0 38px;
  }

  .ctp-contact-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ctp-contact-nav li:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 5px);
    justify-self: center;
  }

  .ctp-contact-nav a {
    min-height: 96px;
    flex-direction: column;
    gap: 7px;
    padding: 14px 9px;
    font-size: 12px;
  }

  .ctp-contact-nav img {
    width: 36px;
    height: 36px;
  }

  .ctp-form-section {
    padding: 62px 0 68px;
  }

  .ctp-section-heading {
    margin-bottom: 26px;
  }

  .ctp-section-heading h2 {
    font-size: 30px;
  }

  .ctp-form {
    gap: 21px;
    padding: 23px 18px;
    border-radius: 13px;
  }

  .ctp-field-row {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .ctp-field label,
  .ctp-consent label {
    font-size: 13px;
  }

  .ctp-field :where(input, select, textarea) {
    font-size: 16px;
  }

  .ctp-consent {
    padding: 14px;
  }

  .ctp-submit {
    min-height: 58px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .ctp-submit-help {
    overflow-wrap: anywhere;
  }

  .ctp-direct {
    padding: 27px 20px;
    border-radius: 13px;
  }

  .ctp-direct > h2 {
    font-size: 23px;
  }

  .ctp-direct__item {
    grid-template-columns: 43px minmax(0, 1fr);
  }

  .ctp-direct__item > img {
    width: 43px;
    height: 43px;
  }

  .ctp-direct__item a {
    font-size: 21px;
  }

  .ctp-direct__item--mail a {
    font-size: 14px;
  }

  .ctp-direct__support {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 17px;
  }

  .ctp-direct__support img {
    width: 42px;
    height: 42px;
  }

  .ctp-related {
    padding: 68px 0 76px;
  }

  .ctp-related__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ctp-related-card {
    min-height: 0;
    align-items: flex-start;
    padding: 22px 21px;
    text-align: left;
  }

  .ctp-related-card img {
    width: 46px;
    height: 46px;
  }

  .ctp-related-card h3 {
    margin-top: 12px;
  }

  .ctp-related-card span {
    margin-top: 0;
    padding-top: 14px;
  }
}

/* Keep in-page contact links aligned below the compact mobile header.
   The shared stylesheet still reserves space for the former two-row menu. */
@media (max-width: 1023px) {
  html.fm-bubble-menu-ready {
    scroll-padding-top: 84px;
  }

  html.fm-bubble-menu-ready .ctp-form-section {
    scroll-margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ctp-contact-nav a,
  .ctp-submit,
  .ctp-related-card,
  .ctp-field :where(input, select, textarea) {
    transition: none;
  }
}
