[data-v7301-collaboration-mode="partnership-request"] {
  --dbc-form-hero-space: clamp(1.375rem, 2.6vw, 2.375rem);
}

/* Match the shared application layout in the partnership mode of sample.html. */
@layer dbc-form-layout {
  [data-v7301-collaboration-mode="partnership-request"] .request-hero-copy {
    width: 100% !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  [data-v7301-collaboration-mode="partnership-request"]
    :is(.request-hero .request-kicker, .request-hero .about-hero-title > span, .v281-path__intro > span) {
    display: none !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .request-hero h1 {
    max-inline-size: none !important;
    white-space: normal !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .v770-language-boundary {
    margin-block: 0 !important;
    padding: .5rem 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--dbc-form-muted) !important;
    text-wrap: pretty;
  }

  [data-dbc-form-layout="preflight"][data-v7301-collaboration-mode="partnership-request"]
    .request-shell > [data-bp7140-intake-context]:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] [data-bp7140-intake-context]::before {
    content: none !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .request-shell .request-intro h2 {
    font-size: clamp(1.375rem, 2.25vw, 1.875rem) !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] #paper-sample-title {
    scroll-margin-top: calc(var(--dbc-preflight-scroll-offset) - .875rem) !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .cl7301-partner-fields > legend {
    gap: .65rem !important;
    padding: .55rem .65rem !important;
    background: var(--dbc-form-tint) !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .cl7301-partner-fields > legend > span {
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .cl7301-partner-fields > legend > b {
    color: inherit !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .cl7301-field-note {
    margin: 0 0 .75rem !important;
    color: var(--dbc-form-muted) !important;
    font-size: .875rem !important;
    line-height: 1.6 !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] form[data-bioten-request-form] .cl7301-consent {
    display: grid !important;
    grid-template-columns: 1.375rem minmax(0, 1fr);
    align-items: start !important;
    gap: .55rem;
    margin: 1rem 0 .45rem !important;
    padding: .65rem .75rem !important;
    border: 1px solid var(--dbc-form-line) !important;
    border-radius: var(--dbc-form-radius) !important;
    background: var(--dbc-form-surface) !important;
    color: var(--dbc-form-ink) !important;
    font-size: .875rem !important;
    line-height: 1.6 !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .cl7301-consent > input[type="checkbox"] {
    align-self: start !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .cl7301-consent > span {
    font-weight: 500 !important;
  }

  [data-v7301-collaboration-mode="partnership-request"] .cl7301-submit-boundary {
    margin: 0 0 .75rem !important;
    color: var(--dbc-form-muted) !important;
    font-size: .875rem !important;
    line-height: 1.6 !important;
  }

  html:not(:lang(zh)) [data-v7301-collaboration-mode="partnership-request"] .request-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 3rem) !important;
    overflow-wrap: anywhere;
  }

  html:not(:lang(zh)) [data-v7301-collaboration-mode="partnership-request"] .request-hero .about-hero-title {
    max-width: 49rem !important;
  }

  html:not(:lang(zh)) [data-v7301-collaboration-mode="partnership-request"] .v281-path {
    margin-block: 0 !important;
  }

  html:not(:lang(zh)) [data-v7301-collaboration-mode="partnership-request"] .request-card:first-of-type > legend {
    display: flex !important;
    align-items: center !important;
    gap: .65rem !important;
  }

  html:not(:lang(zh)) [data-v7301-collaboration-mode="partnership-request"] .request-card:first-of-type > legend > span {
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    white-space: nowrap;
  }

  @media (min-width: 900px) {
    [data-v7301-collaboration-mode="partnership-request"] .cl7301-partner-fields .request-grid > .request-wide {
      grid-column: auto !important;
    }

    [data-v7301-collaboration-mode="partnership-request"] #main-content .cl7301-partner-fields textarea {
      min-height: 8.5rem !important;
    }
  }

  @media (max-width: 430px) {
    [data-v7301-collaboration-mode="partnership-request"] .request-hero h1 {
      font-size: clamp(1.75rem, 8vw, 2rem) !important;
    }

    html:not(:lang(zh)) [data-v7301-collaboration-mode="partnership-request"] .request-hero h1 {
      font-size: clamp(1.625rem, 7vw, 2rem) !important;
    }

    html:not(:lang(zh)) [data-v7301-collaboration-mode="partnership-request"] .request-hero .about-hero-title p {
      font-size: .9375rem !important;
      line-height: 1.6 !important;
    }
  }

  @media (min-width: 375px) and (max-width: 680px) {
    [data-v7301-collaboration-mode="partnership-request"] .cl7301-partner-fields .request-options {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }
}
