.dc211 {
  --dc-border: #d6d9e3;
  --dc-accent: #1f2a5c;
  --dc-muted: #6b7084;
  max-width: 900px;
  color: #1f2233;
}

.dc211-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--dc-accent);
}

.dc211-subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--dc-muted);
}

/* --- sections --- */
.dc211-section {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border: 1px solid var(--dc-border);
  border-radius: 10px;
}

.dc211-section legend {
  padding: 0 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dc-accent);
}

.dc211-section h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--dc-accent);
}

/* --- fields --- */
.dc211-field {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.dc211-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.dc211 input[type="text"],
.dc211 input[type="tel"],
.dc211 input[type="number"],
.dc211 input[type="date"],
.dc211 select,
.dc211 textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  border: 1px solid var(--dc-border);
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.dc211 input:focus,
.dc211 select:focus,
.dc211 textarea:focus {
  outline: 2px solid rgba(31, 42, 92, 0.25);
  border-color: var(--dc-accent);
}

.dc211 input[readonly] {
  background: #f3f4f8;
  font-weight: 700;
}

.dc211-field--money { max-width: 320px; }
.dc211-field--short { max-width: 220px; }

/* --- rows --- */
.dc211-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
  align-items: end;
}

.dc211-row--3 {
  grid-template-columns: 2fr 1fr 1fr;
}

.dc211-indent {
  margin: 0 0 1rem 1.75rem;
}

/* --- checkboxes / radios (CF7 markup) --- */
.dc211 .wpcf7-list-item {
  display: block;
  margin: 0 0 0.4rem;
}

.dc211 .wpcf7-list-item label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
}

.dc211 .wpcf7-list-item input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

/* --- two-column tables (Defendant / Spouse) --- */
.dc211-table {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem 1rem;
  align-items: center;
}

.dc211-table input { margin-top: 0 !important; }

.dc211-table--employment {
  grid-template-columns: 110px minmax(0, 2fr) auto minmax(0, 1.5fr);
  margin-bottom: 1rem;
}

.dc211-th {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dc-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dc211-td-label { font-size: 0.95rem; }
.dc211-td-label input { margin-top: 0.3rem !important; }

.dc211-span2 { grid-column: span 2; }

.dc211-total { font-weight: 700; }

/* --- notes / oath --- */
.dc211-note {
  font-size: 0.9rem;
  color: var(--dc-muted);
}

.dc211-warning {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
  background: #fff6e5;
  border-left: 4px solid #c47f00;
  border-radius: 4px;
}

.dc211-oath .wpcf7-acceptance { display: block; margin-bottom: 1rem; }

.dc211-submit input[type="submit"] {
  padding: 0.8rem 2rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--dc-accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

/* --- mobile --- */
@media (max-width: 640px) {
  .dc211-section { padding: 1rem; }

  .dc211-row,
  .dc211-row--3 {
    grid-template-columns: 1fr;
  }

  .dc211-table {
    grid-template-columns: 1fr 1fr;
  }

  /* row label takes full width, two inputs below it */
  .dc211-table > .dc211-td-label { grid-column: 1 / -1; margin-top: 0.5rem; }
  .dc211-table > span:first-child { display: none; }

  .dc211-table--employment { grid-template-columns: 1fr; }
  .dc211-table--employment .dc211-th { display: none; }
  .dc211-span2 { grid-column: 1 / -1; }
  .dc211-indent { margin-left: 0.75rem; }
}
