/* Beta application: the contact page's card with five question groups.
   Options are pills; the checked one fills navy. */
.beta-form .fields { gap: 20px; }
.q { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.q legend { display: flex; align-items: baseline; gap: 10px; padding: 0; margin-bottom: 10px; font-weight: 500; font-size: 14px; line-height: 20px; color: var(--text-primary); }
.q legend .n { flex: none; font: 500 12px/16px var(--font-mono); color: var(--text-tertiary); }
.q legend small, .field > span small { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--text-tertiary); }
.q .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q .opts label { position: relative; cursor: pointer; }
.q .opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.q .opts span { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border: 1px solid var(--border-primary); border-radius: 999px; background: var(--surface-primary); font-size: 14px; line-height: 20px; color: var(--text-primary); transition: background-color .15s, border-color .15s, color .15s; }
.q .opts span small { font-size: 12px; color: var(--text-tertiary); }
.q .opts label:hover span { border-color: var(--border-secondary); }
.q .opts input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.q .opts input:checked + span { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.q .opts input:checked + span small { color: rgba(255, 255, 255, .7); }
.q .err { font-style: normal; font-size: 12px; line-height: 16px; color: var(--red); opacity: 0; transition: opacity .2s; }
.q.invalid .err { opacity: 1; }
.q.invalid .opts span { border-color: var(--red-20); }
.field textarea:not(:required) { height: 92px; }

/* After a successful submit the form is replaced by this */
.beta-form[hidden], .beta-done[hidden] { display: none; }
.beta-done { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 32px; background: var(--surface-subtle); box-shadow: inset 1px 0 0 var(--border-primary), inset 0 1px 0 var(--border-primary), inset 0 -1px 0 var(--border-primary), inset -1px 0 0 var(--border-primary); }
.beta-done .btn { margin-top: 8px; }
.beta-done a:not(.btn) { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 809px) {
  .beta-done { padding: 20px; box-shadow: inset 0 1px 0 var(--border-primary), inset 0 -1px 0 var(--border-primary); }
}
