/* /contact-us header (src/blocks/contact/ContactHeader.astro): one centred column, a simple and prominent form.
   Field shapes come from the site's own .form_input (pill fields, rounded text area); the button and the chosen
   Subject pill use the brand blue of the nav's Contact Us button. */
.s7-contact {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}
.s7-contact_head {
  margin-bottom: 2.5rem;
  text-align: center;
}
.s7-contact_head h1 {
  margin: 0 0 0.75rem;
  font-size: 2.8rem;
  line-height: 1.15;
}
.s7-contact_lead {
  margin: 0;
  color: var(--color-neutral--neutral-light);
  font-size: 1.1rem;
}
.s7-contact .form_contat {
  grid-row-gap: 1.25rem;
}
.s7-contact .form_field-wrapper {
  margin: 0;
}
.s7-contact .field_label-2 {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--color-neutral--white);
  font-size: 1rem;
}
.s7-contact .form_input {
  box-sizing: border-box;
  width: 100%;
  height: 3.5rem;
  min-height: 3.5rem;
  padding: 0 1.5rem;
  border: 1px solid var(--border--white-36);
  background-color: var(--brand--background);
  color: var(--color-neutral--white);
  font-size: 1.1rem;
}
.s7-contact .form_input:focus {
  border-color: var(--brand--accent);
}
.s7-contact textarea.form_input {
  height: 10rem;
  padding: 1rem 1.5rem;
  border-radius: 1.25rem;
}

/* Subject pills (public/js/s7/subject-pills.js adds .s7-pills-on and the pills). The select stays in the form,
   under the pills and invisible, so the browser's "please choose" message points at them. */
.s7-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.s7-pill {
  height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid var(--border--white-36);
  border-radius: 4rem;
  background-color: var(--brand--background);
  color: var(--color-neutral--white);
  font: inherit;
  font-size: 1.02rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.s7-pill:hover {
  border-color: var(--brand--accent);
}
.s7-pill:focus-visible {
  outline: 2px solid var(--brand--accent);
  outline-offset: 2px;
}
.s7-pill[aria-checked="true"] {
  border-color: var(--brand--blue);
  background-color: var(--brand--blue);
  font-weight: 600;
}
.s7-pills-on {
  position: relative;
}
.s7-pills-on select.form_input {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Job title, company and phone: optional, behind a link. */
.s7-contact_more summary {
  display: inline-block;
  padding: 0.2rem 0;
  color: var(--brand--accent);
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.s7-contact_more summary::-webkit-details-marker {
  display: none;
}
.s7-contact_more summary::before {
  content: "+ ";
}
.s7-contact_more[open] summary::before {
  content: "\2212  ";
}
.s7-contact_more summary:focus-visible {
  outline: 2px solid var(--brand--accent);
  outline-offset: 2px;
}
.s7-contact_more-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.s7-contact .button_submit {
  width: 100%;
  height: 4rem;
  min-height: 4rem;
  border: 0;
  background-color: var(--brand--blue);
  color: var(--color-neutral--white);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
}
.s7-contact .button_submit:hover {
  background-color: var(--brand--accent);
}
.s7-contact .form-note-2 {
  color: var(--color-neutral--neutral-light);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .s7-contact {
    padding: 1.5rem 1.25rem 2rem;
  }
  .s7-contact_head {
    margin-bottom: 1.25rem;
  }
  .s7-contact_head h1 {
    margin-bottom: 0.4rem;
    font-size: 2rem;
  }
  .s7-contact_lead {
    font-size: 1rem;
  }
  .s7-pills {
    gap: 0.5rem;
  }
  .s7-pill {
    height: 2.75rem;
    padding: 0 1rem;
    font-size: 0.95rem;
  }
  .s7-contact textarea.form_input {
    height: 8rem;
  }
}

/* The Turnstile slot takes no room until the check renders (it left a gap of about 100px above the button). */
.s7-contact .cf-turnstile:empty { display: none; }
