@layer base, site, components, utilities;
@import url("/site/css/styles_header.css") layer(site);

section#contact-us .section-wr .info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(var(--spacing) * 6);
  width: 100%;
  min-width: 0;
  flex-basis: auto;
  padding-top: 0;
}

#contact-us .contact-detail-card {
  min-width: 0;
  padding: calc(var(--spacing) * 6);
  border-width: calc(var(--spacing) / 4);
  border-style: solid;
  border-radius: var(--radius-2xl);
  border-color: var(--color-border-default);
  overflow-wrap: anywhere;
}

/* Preserve the requested 20px headings using the design-system spacing scale. */
#contact-us .contact-detail-card h2 {
  font-size: calc(var(--spacing) * 5) !important;
}

@media (min-width: 1024px) {
  section#contact-us .section-wr .info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#hero.contact-hero .form {
  align-self: flex-start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: calc(var(--spacing) * 6);
  border-width: calc(var(--spacing) / 4);
  border-style: solid;
  border-color: var(--color-border-default);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--color-bg-surface) 70%, transparent);
}

#hero.contact-hero .hero-content {
  min-width: 0;
}

#hero.contact-hero .hero-text {
  gap: 0;
  max-width: none;
}

#hero.contact-hero .hero-text p {
  margin-block: 0;
}

#hero.contact-hero h1 {
  font-size: var(--text-h1);
  line-height: var(--text-h1--line-height);
  margin-bottom: calc(var(--spacing) * 6);
}

@media (max-width: 767px) {
  #hero.contact-hero h1 {
    font-size: var(--text-h2);
    line-height: var(--text-h2--line-height);
  }
}

@media (min-width: 768px) {
  section#contact-us .section-wr .info {
    margin-inline: 100px;
    width: calc(100% - 200px);
    flex-grow: 0;
  }

  #hero.contact-hero .hero-text {
    margin-inline: 100px;
    width: calc(100% - 200px);
  }

  #hero.contact-hero .form {
    margin-inline: 100px;
    width: calc(100% - 200px);
    padding: calc(var(--spacing) * 10);
    border-radius: var(--radius-2xl);
  }
}

#hero {
  padding-top: var(--header-height);
}

#hero .hero-main .hero-wr {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding-top: calc(var(--spacing) * 8);
  padding-bottom: calc(var(--spacing) * 6);
}

#contact-us .section-wr {
  padding-top: calc(var(--spacing) * 8);
  align-items: flex-start;
}