/* =====================================================================
   D - Contact Offer — regional support cards (Figma 10159:19220).
   Full-width light-blue band. Responsive grid of region cards: up to 3
   per row on desktop, 2 on tablet, stacked on mobile. Cards are separated
   by thin dividers drawn as CSS borders (border-left between columns,
   border-top between stacked rows) so the layout adapts to any number of
   cards. Card stack: flag (100x100), location, email, phone + hours.
   Tokens only; BEM.
   ===================================================================== */

.contact-support {
  background: var(--pale-blue);
}

.contact-support__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 350px));
  justify-content: center;
  row-gap: 40px;
  padding-block: 80px;
}

/* ---- Card ---- */
.contact-support__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 20px;
  text-align: center;
}

/* Vertical dividers between columns; the first card in each row of three
   has no left border. */
.contact-support__card + .contact-support__card {
  border-left: 1px solid var(--light-border);
}
.contact-support__card:nth-child(3n + 1) {
  border-left: 0;
}

.contact-support__flag {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
}
/* The new FR/IT/EU flags are flat full-bleed SVGs; give them the same
   rounded corners + soft lift the baked PNG flags (US/DE/UK) already have. */
.contact-support__flag[src$=".svg"] {
  filter: drop-shadow(0 2px 4px rgba(10, 22, 35, 0.15));
}

/* ---- Location label (OG Desktop H4, Axiforma SemiBold 20, charcoal) ---- */
.contact-support__location {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  padding-block: 5px;
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
  line-height: normal;
  color: var(--charcoal);
  text-align: center;
  word-break: break-word;
}

/* ---- Email + phone (OG Desktop Large Body, Brand Blue) ---- */
.contact-support__email,
.contact-support__phone {
  font-size: var(--fs-18);
  font-weight: var(--fw-regular);
  line-height: var(--lh-25);
  color: var(--brand-blue);
  word-break: break-word;
}
.contact-support__email {
  text-decoration: underline;
  text-underline-position: from-font;
}

.contact-support__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ---- Hours (Large Body, charcoal) ---- */
.contact-support__hours {
  font-size: var(--fs-18);
  font-weight: var(--fw-regular);
  line-height: var(--lh-25);
  color: var(--charcoal);
}

/* ---- Tablet: 2 columns (canonical 1023.98 breakpoint) ---- */
@media (max-width: 1023.98px) {
  .contact-support__inner {
    grid-template-columns: repeat(2, minmax(0, 350px));
  }
  /* Re-base the column separators for a 2-up grid (first card in each
     row of two has no left border). */
  .contact-support__card:nth-child(3n + 1) {
    border-left: 1px solid var(--light-border);
  }
  .contact-support__card:nth-child(2n + 1) {
    border-left: 0;
  }
}

/* ---- Mobile: single column, horizontal rules between stacked cards ---- */
@media (max-width: 767.98px) {
  .contact-support__inner {
    grid-template-columns: minmax(0, 350px);
    justify-content: center;
    row-gap: 0;
    padding-inline: var(--pad-mobile);
    padding-block: 40px;
  }
  .contact-support__card {
    padding-block: 24px;
  }
  .contact-support__card:nth-child(3n + 1) {
    border-left: 0;
  }
  .contact-support__card + .contact-support__card {
    border-left: 0;
    border-top: 1px solid var(--light-border);
  }
  .contact-support__location {
    min-width: 240px;
  }
}
