/*
 * The Contact page (card 28). Figma V12: desktop 3596:17402, mobile 3596:32993.
 * The form section is the shared contact block (contact.css) with the class contact-block--page:
 * it starts 24 px under the header's clearance (104 px from the top at 390, 120 at 1512), its
 * title is the page's h1, and on desktop "What happens next" keeps the h2 size, as drawn.
 * Then Direct contact: three tiles. Mobile under 768 px, tablet 768 to 1279, desktop from 1280.
 * Every value from tokens.css.
 */

.contact-block--page {
  padding-top: var(--space-24);
}

.contact-block--page .t-h1 {
  color: var(--color-petrol-900);
}

/* --- 03 Direct contact ---------------------------------------------------------------------- */

.direct-contact {
  padding-block: var(--space-64);
  background: var(--color-white);
}

.direct-contact__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.direct-contact__title {
  color: var(--color-petrol-900);
}

.direct-contact__tiles {
  display: grid;
  gap: var(--space-16);
}

.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
  min-width: 0;
  padding: 28px var(--space-32);
  border-radius: var(--space-16);
  background: var(--color-grey-100);
}

.contact-tile__label {
  color: var(--color-slate-500);
  font-size: var(--text-label-size);
  line-height: var(--text-label-line);
  font-weight: var(--weight-medium);
}

.contact-tile__value {
  max-width: 100%;
  color: var(--color-petrol-900);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}

.contact-tile__line {
  color: var(--color-petrol-900);
}

/* Under 1280 px the link is a 48 px tall tap area (Figma "tap area 44"), its text centred. */
.contact-tile__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--button-height);
  color: var(--color-petrol-900);
  font-weight: var(--weight-semibold);
}

@media (hover: hover) {
  .contact-tile__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* --- Tablet: as many tiles side by side as fit (two at 768, three at 1024) ------------------ */

@media (min-width: 768px) {
  .direct-contact {
    padding-block: var(--space-80);
  }

  .direct-contact__tiles {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-24);
  }
}

/* --- Desktop: as drawn at 1512 -------------------------------------------------------------- */

@media (min-width: 1280px) {
  .contact-block--page {
    padding-bottom: 0;
  }

  .contact-block--page .contact-block__next-title {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line);
    font-weight: var(--weight-bold);
  }

  .direct-contact {
    padding-block: 120px;
  }

  .direct-contact__body {
    gap: 56px;
  }

  .direct-contact__tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-tile__link {
    min-height: 0;
  }
}
