/* Contact Us methods only; form layout and original field markup remain unchanged. */
.gl-contact-methods-panel {
  text-align: center;
}

.gl-contact-methods-panel > .inner-column {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.gl-contact-methods-panel > .inner-column > .text {
  max-width: 410px;
  margin-inline: auto;
  text-align: center;
  text-wrap: pretty;
}

.gl-contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
  margin: 28px auto 26px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.gl-contact-methods > .gl-contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 20px 18px;
  border: 1px solid rgb(2 40 61 / .11);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, rgb(134 188 2 / .035));
  color: var(--blue, #02283D);
  box-shadow: 0 7px 24px rgb(2 40 61 / .035);
  text-align: center;
}

.gl-contact-methods > .gl-contact-method > p {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.7;
}

.gl-contact-methods .icon {
  position: static;
  display: inline-block;
  color: var(--green, #12471D);
}

/* The old icon-font placeholders have no visible glyph in the new theme. */
.gl-contact-methods > .gl-contact-method > p:has(> .icon:only-child:empty) { display: none; }

.gl-contact-methods strong {
  display: block;
  color: var(--green, #12471D);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.gl-contact-methods a,
.gl-contact-methods .gl-contact-hours {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
  text-align: center;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.gl-contact-methods .gl-contact-phone {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  letter-spacing: .025em;
}

.gl-contact-methods .gl-contact-email {
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

.gl-contact-methods .gl-contact-hours {
  direction: ltr;
  unicode-bidi: isolate;
  text-wrap: balance;
}

.gl-contact-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.gl-contact-socials > li {
  display: flex;
  margin: 0;
  padding: 0;
}

.gl-contact-socials .gl-contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid rgb(2 40 61 / .15);
  border-radius: 50%;
  background: #fff;
  color: var(--blue, #02283D);
  box-shadow: 0 4px 15px rgb(2 40 61 / .04);
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.gl-contact-socials .gl-social-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}

.gl-contact-methods a:focus-visible,
.gl-contact-socials .gl-contact-social-link:focus-visible {
  outline: 3px solid var(--lime, #86BC02);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .gl-contact-methods a:hover { color: var(--green, #12471D); text-decoration: underline; }
  .gl-contact-socials .gl-contact-social-link:hover {
    transform: translateY(-3px);
    border-color: var(--green, #12471D);
    background: var(--green, #12471D);
    color: #fff;
  }
}

@media (max-width: 600px) {
  .gl-contact-methods-panel { width: 100%; }
  .gl-contact-methods { grid-template-columns: minmax(0, 1fr); margin-block: 24px; gap: 12px; }
  .gl-contact-methods > .gl-contact-method { padding: 19px 15px; }
  .gl-contact-socials { margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .gl-contact-socials .gl-contact-social-link { transition: none; }
  .gl-contact-socials .gl-contact-social-link:hover { transform: none; }
}
