/**
 * Contact Us template styles.
 *
 * Loaded only on templates/contact.php. Renders a split-screen layout: a white
 * left rail (logo, heading, injected form, support links, customer logos) beside
 * a scrolling right column that stacks the dark marketing panel and the
 * addresses band. The site header/footer chrome is hidden (this template
 * provides its own logo); wp_head() / wp_footer() scripts still run since they
 * sit outside the hidden elements.
 *
 * Breakpoints: 48em (768px) reveals the decorative marketing panel (hidden on
 * mobile); 64em (1024px) turns the page into the two-column split, where the
 * left rail stays pinned (sticky) while the right column scrolls (panel then
 * addresses).
 */

html:has(.admin-bar) {
  margin-top: 0 !important;
}

/* Hide the shared site chrome; this template supplies its own logo + footer. */
body.contact-template .site-header,
body.contact-template .site-footer {
  display: none;
}

body.contact-template .wp-site-blocks {
  background-color: var(--color-white, #fff);
}

.contact {
  margin: 0;
  color: var(--color-polar-night, #002133);
  font-family: var(--arctic-body-font, "Source Sans 3", sans-serif);
}

/* ---------------------------------------------------------------- Left rail */

.contact__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 1.5rem + 5vw, 3rem);
  padding: 3rem clamp(0.625rem, 0.25rem + 1.5vw, 1.5rem);
  background-color: var(--color-white, #fff);
}

.contact__logo {
  display: block;
  flex-shrink: 0;
}

.contact__logo svg {
  display: block;
  height: 2.375rem;
  width: auto;
}

.contact__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  container: contact-center / inline-size;
}

.contact__heading {
  margin: 0;
  font-family: var(--arctic-heading-font, "Source Sans 3", sans-serif);
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

/* Form slot: the multi-step contact form is injected here at runtime. */
.contact__form {
  width: 100%;
}

.contact__form:empty {
  min-height: 20rem;
  border: 1px dashed var(--color-polar-fog-300, #ccd6e0);
  border-radius: 0.5rem;
}

.contact__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact__link {
  color: var(--color-arctic-blue, #1d6de2);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.contact__link:hover,
.contact__link:focus-visible {
  text-decoration: underline;
}

.contact__link-divider {
  display: none;
  width: 1px;
  height: 1.5rem;
  background-color: var(--color-polar-fog-300, #ccd6e0);
}

/* Lay the links out in a row only when their container (the rail's center
   column) is wide enough to fit them; otherwise they stay stacked. */
@container contact-center (min-width: 24rem) {
  .contact__links {
    flex-direction: row;
    gap: 1rem;
  }

  .contact__link-divider {
    display: block;
  }
}

/* ------------------------------------------------------------ Marketing panel */

/* Purely decorative graphic. It cannot reflow, so it is hidden on mobile and
   revealed at the tablet breakpoint (see below). */
.contact__panel {
  display: none;
  padding: clamp(1.5rem, 0.5rem + 4vw, 3rem);
  background-color: var(--color-polar-night, #002133);
}

.contact__panel-image {
  display: block;
  width: 100%;
  max-width: 76rem;
  height: auto;
  margin-inline: auto;
}

/* --------------------------------------------------------------- Addresses */

.contact__blocks {
  background-color: var(--color-mosaic-blue-100, #eef4fa);
}

.contact__blocks-inner {
  margin-inline: auto;
}

/* Addresses list: a heading above a responsive grid of city/detail pairs. */
.contact__addresses {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__addresses-heading {
  margin: 0;
  font-family: var(--arctic-heading-font, "Source Sans 3", sans-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-polar-night, #002133);
}

.contact__addresses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__address {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact__address-city {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-polar-night, #002133);
}

.contact__address-detail {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-polar-night-1000, #3a4c5f);
}

.contact__address-detail strong {
  font-weight: 600;
}

/* ---------------------------------------------------------------- Tablet up */

@media (min-width: 48em) {
  .contact__panel {
    align-items: center;
    display: flex;
    flex: 1;
  }

  .contact__addresses-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact__address--wide {
    grid-column: span 2;
  }
}

/* -------------------------------------------------------------- Desktop up */

@media (min-width: 64em) {
  .contact {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }

  /* Rail pins to the left while the right column (panel then addresses)
     scrolls past it. */
  .contact__rail {
    position: sticky;
    top: 0;
    justify-content: space-between;
    min-height: 100vh;
  }

  /* Right column spans at least the viewport so it never falls short of the
     pinned rail when its content is short. */
  .contact__scroll {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  /* Addresses band grows to fill any leftover space so its blue background
     reaches the bottom of the viewport. */
  .contact__blocks {
    flex: 1;
  }
}

.marketo-step-container::before {
  display: none;
}

.marketo-step-container .MarketoStepForm {
  margin-inline: auto;
  max-width: 24rem;
  padding: 0;
}

.MarketoStepFormStep h1,
.MarketoStepFormStep h1 + p {
  text-align: center;
}

.steps__options.steps__options--cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.steps__option-card {
  grid-column: span 2;
}

.steps__option-card:nth-child(4),
.steps__option-card:nth-child(5) {
  grid-column: span 3;
}

.Logos {
  padding: 0 !important;
}
