/* Foundation override (kept from original) */
.visible-xs-block .page-container {
  padding-bottom: 0;
}

/* Wrapper: two tiles side by side on desktop */
.contact-methods {
  margin-bottom: 1em;
}
.flex {
  display: flex;
}
.contact-method {
  flex-direction: row;
  gap: 0 30px; /* row-gap column-gap */
}

/* Tile (DESKTOP): row 1 = icon + heading centred together, row 2 = text, row 3 = button */
.rsa-tile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: flex-start;
  width: 100%;
  min-width: 0;
  padding: 0.5em 1em 1.5em;
  border: solid 1px #E5E5E5;
  border-top: 4px solid #ffd100; /* yellow top edge */
  border-radius: 3px;
  color: #425563;
  background-color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Icon: fixed width so the gap to the heading is predictable */
.imgcon {
  flex: 0 0 auto;
  width: 70px; /* icon size on desktop: make larger or smaller to taste */
  margin: 0 0.6em 0 0; /* the right margin is the gap between icon and heading */
}
.imgcon img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Heading: always one line, sits level with the middle of the icon */
.rsa-tile p.h3 {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

/* Body text: centred, narrower than the tile on desktop */
.rsa-tile p {
  flex: 0 0 55%; /* the dial: lower = narrower text, higher = wider text */
  max-width: 55%;
  margin: 0.75em auto 0;
  text-align: center;
}

/* Button: full tile width */
.rsa-tile .btn {
  flex: 0 0 100%;
  margin-top: 1em;
}
.rsa-block {
  display: block;
  width: 100%;
}

/* MOBILE: tiles stack, icon + heading stay centred, text is left-aligned and runs full width */
@media (max-width: 768px) {
  .contact-method {
    flex-direction: column;
    row-gap: 15px;
  }

  .imgcon {
    width: 64px;
  }

  .rsa-tile p {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: left;
  }
}

/* Very small phones: tighten the icon + heading so the one-line heading still fits */
@media (max-width: 380px) {
  .rsa-tile {
    padding-left: 0.75em;
    padding-right: 0.75em;
  }
  .imgcon {
    width: 52px;
    margin-right: 0.4em;
  }
  .rsa-tile p.h3 {
    font-size: 19px;
  }
}
