/* Flight details form — extends /styles.css (the passport check-in design). */
.fx .hidden, .fx-admin .hidden { display: none !important; }

.fx .card > h2 { display: flex; align-items: center; gap: 0.6rem; }
.step-n {
  display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-foreground); font: 600 0.85rem/1 var(--font-sans);
}
#form > .card:first-child, #form > .card:not(.hidden) { margin-top: 1.5rem; }
.fx .card > .muted { margin: 0.5rem 0 0; }

/* labels inside .field (same look as the passport form's <span> labels) */
.field > label { font-size: 0.875rem; font-weight: 500; line-height: 1.2; color: var(--foreground); }
.req { color: var(--destructive); }
input[type=time] {
  width: 100%; height: 2.5rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px);
  background: transparent; color: var(--foreground); font: 400 0.95rem/1.2 var(--font-mono); box-shadow: var(--shadow-sm);
}
input[type=time]:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 35%, transparent); }

/* name row: prefix + first + middle + last */
.grid.name { margin-top: 1.5rem; }
@media (min-width: 640px) { .grid.name { grid-template-columns: 7rem 1fr 1fr 1fr; } }

/* additional travelers */
.pax { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 1.25rem 0; background: var(--background); }
.pax .grid.name { margin-top: 0.75rem; }
.pax-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
#add-pax { margin-top: 1.25rem; }

/* upload */
.drops.invalid .drop { border-color: var(--destructive); background: var(--danger-bg); }
.drops.over .drop { border-color: var(--accent); background: var(--muted); }
#upload-card .drops { margin-top: 1.25rem; }
#file-status { margin-top: 1.25rem; }
#file-status .notice { margin: 0 0 0.75rem; }
.file-chip { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--muted); font-size: 0.9rem; }
.file-chip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice.notice-ok { background: var(--ok-bg); color: var(--ok); }

/* missing required fields after Submit */
input.invalid, select.invalid, textarea.invalid { border-color: var(--destructive); background: var(--danger-bg); }
.field.has-error > label { color: var(--destructive); }

/* done */
.summary { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: 0.95rem; }
.summary td { padding: 0.6rem 1rem 0.6rem 0; border-top: 1px solid var(--border); vertical-align: top; white-space: normal; font-family: var(--font-sans); }
.summary td:first-child { color: var(--muted-foreground); white-space: nowrap; width: 1%; }
.summary tr { cursor: default; }
.summary tr:hover { background: none; }
#done { margin-top: 2rem; }
.file-chip + .file-chip { margin-top: 0.5rem; }
.file-more { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.75rem; }
.fx-files { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.fx-files button[aria-pressed="true"] { border-color: var(--primary); }
