/* PhaseGrid Bio v3: only (1) the outbound PhaseGrid AI header action and
   (2) a Bio-skinned inquiry form, borrowing the PhaseGrid v16 form structure. */

/* Desktop secondary header CTA: same height as Contact us, inverse treatment. */
.header-ecosystem-cta {
  height: 43px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  background: #fff;
  color: #0c1412;
  border: 1.5px solid #111b17;
  border-radius: 3px;
  white-space: nowrap;
  font: 600 11px/1.2 var(--sans);
  transition: background .2s, border-color .2s, transform .2s;
}
.header-ecosystem-cta:hover { background: #eaf4ee; border-color: #0b201a; transform: translateY(-1px); }
.header-ecosystem-cta:focus-visible { outline: 3px solid #a2dcc0; outline-offset: 3px; }
.header-external-arrow { font-size: 16px; line-height: 1; font-weight: 500; }
@media (min-width: 981px) and (max-width: 1300px) {
  .header-inner { gap: 17px; }
  .main-nav { gap: 19px; }
  .header-actions { gap: 13px; }
}
@media (max-width: 980px) { .header-actions { gap: 12px; } }
@media (max-width: 670px) { .header-ecosystem-cta { display: none; } }

/* Bio-styled adaptation of the primary PhaseGrid v16 inquiry dialog. */
.bio-contact-modal[hidden] { display: none !important; }
.bio-contact-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.bio-contact-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 22, 16, .69); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.bio-contact-modal__dialog {
  position: relative; z-index: 1; width: min(680px, 100%);
  max-height: min(820px, calc(100dvh - 44px));
  overflow: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid #c5d7c9; border-radius: 4px;
  box-shadow: 0 30px 90px rgba(3, 22, 16, .32); padding: 30px;
  color: var(--ink);
}
.bio-contact-modal__close { position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; border: 1px solid #c7d5c9; background: #fff; color: #173e2e; font-size: 24px; line-height: 1; cursor: pointer; }
.bio-contact-modal__close:hover { background: #edf5ef; }
.bio-contact-modal__kicker { font: 600 10px/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: #246747; margin: 0 48px 11px 0; }
.bio-contact-modal h2 { font-family: var(--serif); font-weight: 500; font-size: 43px; line-height: 1.02; letter-spacing: -.045em; color: #0c2119; margin: 0 48px 12px 0; }
.bio-contact-modal__intro { font: 400 13px/1.65 var(--sans); color: #51645a; margin: 0 0 22px; max-width: 560px; }
.bio-contact-modal__intro strong { font-weight: 600; color: #153b2c; }
.bio-contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bio-contact-field { display: grid; gap: 6px; min-width: 0; }
.bio-contact-field--full { grid-column: 1 / -1; }
.bio-contact-field label { font: 600 12px/1.3 var(--sans); color: #203f30; }
.bio-contact-field input, .bio-contact-field select, .bio-contact-field textarea {
  display: block; width: 100%; min-width: 0;
  border: 1px solid #bfd0c3; background: #fff; color: #0d241a;
  padding: 11px 12px; border-radius: 3px;
  font: 500 14px/1.4 var(--sans); outline: none;
}
.bio-contact-field input, .bio-contact-field select { min-height: 46px; }
.bio-contact-field textarea { min-height: 124px; resize: vertical; }
.bio-contact-field input:focus, .bio-contact-field select:focus, .bio-contact-field textarea:focus { border-color: #1e8a5f; box-shadow: 0 0 0 3px rgba(30, 138, 95, .11); }
.bio-contact-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 4px; }
.bio-contact-note { max-width: 365px; font: 400 10px/1.55 var(--sans); color: #6c7d71; }
.bio-contact-submit { min-width: 150px; border-radius: 3px; flex: none; }
body.bio-contact-open { overflow: hidden; }
@media (max-width: 640px) {
  .bio-contact-modal { padding: 12px; }
  .bio-contact-modal__dialog { padding: 24px 18px 20px; max-height: calc(100dvh - 24px); }
  .bio-contact-modal h2 { font-size: 35px; }
  .bio-contact-form { grid-template-columns: 1fr; }
  .bio-contact-field--full, .bio-contact-actions { grid-column: 1; }
  .bio-contact-actions { flex-direction: column-reverse; align-items: flex-start; }
  .bio-contact-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .header-ecosystem-cta { transition: none !important; } }
