/* Contact-page banner only; preserve the existing form and theme layout. */
#contact.page-contact #wrapper {
  padding-top: 24px;
}

#contact.page-contact .ss-contact-hero {
  margin-bottom: 24px;
}

#contact.page-contact .ss-contact-hero-frame {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(280px, 1fr);
  align-items: stretch;
  gap: 20px;
}

#contact.page-contact .ss-contact-hero-visual {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffd3e4;
  border-radius: 18px;
}

#contact.page-contact .ss-contact-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
}

#contact.page-contact .ss-contact-hero-quick {
  min-width: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #ffd3e4;
  border-radius: 18px;
  background: #ffffff;
}

#contact.page-contact .ss-contact-hero-quick h2 {
  margin: 0 0 8px;
  color: #202020;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

#contact.page-contact .ss-contact-hero-quick p {
  margin: 0 0 14px;
  color: #626068;
  font-size: 13px;
  line-height: 1.5;
}

#contact.page-contact .ss-contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#contact.page-contact .ss-contact-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid #ffd3e4;
  border-radius: 10px;
  background: #fff5f9;
  color: #b8004a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}

#contact.page-contact .ss-contact-hero-actions a:hover,
#contact.page-contact .ss-contact-hero-actions a:focus-visible {
  border-color: #b8004a;
  background: #ffe8f1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#contact.page-contact .ss-contact-hero-actions a:focus-visible {
  outline: 2px solid #b8004a;
  outline-offset: 2px;
}

/* Remove the theme's mobile top gap now that the banner supplies the spacing. */
#contact.page-contact .ss-contact-hero + #left-column {
  padding-top: 0;
}

@media (max-width: 767px) {
  #contact.page-contact .ss-contact-hero-frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #contact.page-contact .ss-contact-hero-visual {
    border-radius: 12px;
  }

  #contact.page-contact .ss-contact-hero-quick {
    padding: 12px;
    border-radius: 12px;
  }

  #contact.page-contact .ss-contact-hero-quick h2 {
    display: none;
  }

  #contact.page-contact .ss-contact-hero-quick p {
    margin-bottom: 8px;
    font-size: 12px;
  }

  #contact.page-contact .ss-contact-hero-actions {
    gap: 8px;
  }

  #contact.page-contact .ss-contact-hero-actions a {
    flex: 1 1 140px;
    padding: 8px;
    font-size: 14px;
  }
}
