/* Forms: required marks, segmented choices, stepper, parent cards. */

.req { color: var(--root); font-weight: 700; }
.draft-status { font-size: var(--fs-xs); min-height: 1.2em; }

/* Segmented radio choice (works without JS) */
.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { font-size: var(--fs-sm); font-weight: 600; padding: 0; margin-bottom: 6px; }
.choice__options { display: flex; flex-wrap: wrap; gap: var(--s2); }
.choice__options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__options label {
  min-height: var(--tap); display: inline-flex; align-items: center; padding: 8px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-2);
  cursor: pointer; font-weight: 500; font-size: var(--fs-sm);
}
.choice__options input:checked + label { background: color-mix(in srgb, var(--leaf) 18%, var(--surface)); border-color: var(--leaf); color: var(--text); box-shadow: 0 0 0 1px var(--leaf) inset; }
.choice__options input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Stepper */
.stepper { display: flex; flex-direction: column; gap: var(--s2); }
.stepper__bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.stepper__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--gold)); box-shadow: 0 0 10px var(--glow); }
.stepper__fill--1of2 { width: 50%; }
.stepper__fill--2of2 { width: 100%; }
.stepper__steps { display: flex; justify-content: space-between; gap: var(--s3); list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.stepper__step { display: flex; align-items: center; gap: var(--s2); }
.stepper__num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; border: 1px solid var(--border); background: var(--surface); }
.stepper__step.is-current { color: var(--text); font-weight: 600; }
.stepper__step.is-current .stepper__num { background: var(--leaf); border-color: var(--leaf); color: var(--on-accent); }
.stepper__step.is-done .stepper__num { border-color: var(--leaf); color: var(--leaf); }

/* Parent cards in gate step 2 */
.parent-card { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-2); }
.parent-card__title { font-size: var(--fs-md); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
fieldset.form-section { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
fieldset.form-section > legend { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--s2); padding: 0; }
.check { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--leaf); flex: none; }
.card--danger { border-color: color-mix(in srgb, var(--root) 45%, var(--border)); }
.check--inline { font-size: var(--fs-sm); color: var(--muted); margin-top: -4px; }
.field__row--date { display: flex; flex-direction: column; gap: 6px; }
