/* /forms/ pages only. site/styles.css is over the 1,500-line cap, so page-specific rules live here (same pattern as training.css and data.css). */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 22px;
}
.form-sheet {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px);
  margin: 0 0 32px;
  color: #111;
}
.form-sheet-head {
  border-bottom: 2px solid #111;
  margin: 0 0 18px;
  padding: 0 0 10px;
}
.form-sheet-head h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}
.form-sheet-head p,
.form-note,
.form-foot,
.form-source {
  margin: 0;
  font-size: 0.88rem;
  color: #333;
}
.form-sheet fieldset {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
  break-inside: avoid;
}
.form-sheet legend {
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0 0 8px;
  padding: 0;
}
.form-note {
  margin: 0 0 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: #333;
}
.form-field.wide,
.form-check.wide {
  grid-column: 1 / -1;
}
.form-field input,
.form-field textarea,
.form-table input[type="text"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #555;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: #111;
  padding: 5px 2px;
}
.form-field textarea {
  border: 1px solid #555;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus,
.form-table input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.4;
}
.form-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
}
.form-sign {
  padding-top: 26px;
}
.sign-line {
  display: block;
  border-bottom: 1px solid #111;
  height: 1px;
}
.form-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.form-table caption {
  text-align: left;
  font-size: 0.82rem;
  color: #333;
  padding: 0 0 6px;
}
.form-table th,
.form-table td {
  border: 1px solid #999;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.form-table thead th {
  background: #f1f3f1;
  font-weight: 700;
}
.form-table tbody th {
  font-weight: 500;
  width: 42%;
}
.form-table td {
  min-width: 88px;
}
.form-foot {
  border-top: 1px solid #999;
  padding-top: 10px;
  margin-top: 8px;
}
.form-source {
  margin-top: 6px;
  font-size: 0.76rem;
  color: #555;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  @page {
    margin: 14mm;
  }
  .nav,
  .footer,
  .skip-link,
  .no-print,
  .cta-band {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .article,
  .wrap,
  .prose-wrap,
  .prose {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .form-sheet {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }
  .table-scroll {
    overflow: visible;
  }
  .form-field input,
  .form-table input[type="text"] {
    padding: 3px 2px;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
