/* Contact section and form card. Field styles are in components/form.css; behavior in js/contact-form.js. */

@layer sections {
  .contact-section {
    padding: 96px 0;
    background: var(--ink);
    color: var(--white);
    scroll-margin-top: 0;
  }

  .contact-grid-contact {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 56px;
    display: grid;
    grid-template-columns: minmax(0,5fr) minmax(0,7fr);
    gap: 72px;
    align-items: start;
  }

  .contact-label-contact {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #8FA9FF;
    margin-bottom: 20px;
  }

  .contact-heading-field-capability {
    font-weight: 600;
    font-size: 38px;
    line-height: 1.12;
    letter-spacing: -.025em;
    margin: 0;
  }

  .contact-copy-tell-us {
    margin: 22px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,.78);
    max-width: 42ch;
  }

  .contact-box-someone-team {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,.14);
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 44px 1fr;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  .contact-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #8FA9FF;
    padding-top: 2px;
  }

  .contact-text {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,.85);
  }

  .contact-formcard {
    background: var(--white);
    color: var(--ink);
    padding: 40px 40px 36px;
  }

  .contact-rv-contact-title {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -.02em;
    margin: 0 0 6px;
  }

  .contact-copy-fields-marked {
    margin: 0 0 26px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
  }

  .contact-grid-first-name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 18px;
  }

  .contact-box {
    grid-column: 1/-1;
  }

  .contact-rv-msg-note {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #7a8594;
  }

  .contact-layer-leave-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .contact-rv-challenge {
    margin-top: 24px;
    min-height: 65px;
  }

  .contact-row-send-message {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .contact-rv-form-err {
    margin: 0;
  }

  .contact-rv-contact-done {
    outline: none;
    padding: 24px 0 12px;
  }

  .contact-dot-thanks-message {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1F9D6B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    margin-bottom: 22px;
  }

  .contact-rv-done-title {
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -.02em;
  }

  .contact-copy-someone-team {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 44ch;
  }

  .contact-rv-again {
    margin-top: 28px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
  }
}

/* Breakpoint and state overrides: these win over the section styles above. */
@layer overrides {
  @media (max-width:760px) {
    .rv-formcard {
      padding: 24px 18px 22px;
    }
  }
}
