/* TIP Mẫu đơn & Tạo đơn ly hôn */
.maudon-wrap, .taodon-wrap { max-width: 960px; margin: 0 auto; font-family: inherit; }
.maudon-hero, .taodon-hero { background: linear-gradient(135deg, #14532d, #16a34a); color: #fff; border-radius: 12px; padding: 26px 24px; margin-bottom: 18px; }
.taodon-hero { background: linear-gradient(135deg, #1e3a5f, #2d6a9f); }
.maudon-hero h1, .taodon-hero h1 { margin: 0 0 10px; font-size: 24px; color: #fff; }
.maudon-hero p, .taodon-hero p { margin: 0 0 8px; opacity: .93; font-size: 14px; line-height: 1.6; }
.maudon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.maudon-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; background: #fff; display: flex; flex-direction: column; }
.maudon-cat { font-size: 12px; color: #15803d; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.maudon-ten { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.45; margin-bottom: 6px; }
.maudon-mota { font-size: 13px; color: #6b7280; line-height: 1.55; margin-bottom: 12px; flex: 1; }
.maudon-actions { display: flex; gap: 8px; }
.maudon-btn { padding: 8px 14px; border: none; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 600; }
.maudon-view { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.maudon-view:hover { background: #dcfce7; }
.maudon-dl { background: #15803d; color: #fff; }
.maudon-dl:hover { background: #16a34a; }
.maudon-note { margin-top: 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #1e3a5f; }
.maudon-note a { color: #1d4ed8; }

/* Wizard tạo đơn */
.taodon-progress { background: #e5e7eb; border-radius: 999px; height: 10px; margin-bottom: 18px; overflow: hidden; }
.taodon-progress-bar { height: 100%; background: linear-gradient(90deg, #1e3a5f, #2d6a9f); width: 14%; transition: width .3s; border-radius: 999px; }
.taodon-step-label { font-size: 13px; color: #6b7280; margin-bottom: 8px; text-align: center; font-weight: 600; }
.taodon-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px; margin-bottom: 14px; }
.taodon-step-title { font-size: 19px; color: #111827; margin: 0 0 6px; }
.taodon-step-desc { font-size: 14px; color: #6b7280; margin: 0 0 16px; }
.taodon-field { margin-bottom: 14px; }
.taodon-field label { display: block; font-weight: 600; font-size: 14px; color: #374151; margin-bottom: 5px; }
.taodon-req { color: #dc2626; }
.taodon-field input[type=text], .taodon-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.taodon-field textarea { resize: vertical; }
.taodon-radio-group { display: flex; flex-direction: column; gap: 8px; }
/* Radio ngắn (Có/Không) xếp cùng 1 hàng cho gọn */
.taodon-radio-group.row { flex-direction: row; flex-wrap: wrap; }
.taodon-radio-group.row .taodon-radio { flex: 1 1 90px; justify-content: center; align-items: center; min-height: 40px; text-align: center; }
.taodon-radio { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #374151; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; background: #fafafa; }
.taodon-radio:hover { background: #f3f4f6; }
.taodon-nav { display: flex; gap: 10px; justify-content: center; }
.taodon-btn { padding: 11px 24px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 700; }
.taodon-prev { background: #f3f4f6; color: #374151; }
.taodon-next { background: #1e3a5f; color: #fff; }
.taodon-next:hover { background: #2d6a9f; }
.taodon-dl { background: #16a34a; color: #fff; }
.taodon-dl:hover { background: #15803d; }
.taodon-err { color: #dc2626; font-size: 14px; text-align: center; margin-top: 10px; min-height: 20px; }
.taodon-summary { font-size: 14px; }
.taodon-sum-table { width: 100%; border-collapse: collapse; }
.taodon-sum-table td { border: 1px solid #e5e7eb; padding: 8px 10px; font-size: 13.5px; vertical-align: top; }
.taodon-sum-table td:first-child { width: 140px; font-weight: 600; color: #374151; background: #f9fafb; }
@media (max-width: 600px) {
  .taodon-nav { flex-direction: column; align-items: stretch; }
}

/* Danh sách động (con chung, tài sản, nợ) */
.taodon-list { display: flex; flex-direction: column; gap: 8px; }
.taodon-list-item { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 8px; padding: 10px; }
.taodon-list-item input[type=text] { flex: 1; min-width: 180px; }
.taodon-list-del { flex: 0 0 auto; width: 34px; height: 34px; border: none; border-radius: 8px; background: #fee2e2; color: #b91c1c; font-size: 14px; cursor: pointer; }
.taodon-list-del:hover { background: #fecaca; }
.taodon-list-add { align-self: flex-start; padding: 9px 16px; border: 1.5px dashed #2d6a9f; border-radius: 8px; background: #eff6ff; color: #1e3a5f; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.taodon-list-add:hover { background: #dbeafe; }

/* Gợi ý nhanh (quick pick) cho textarea */
.taodon-quickpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.taodon-qp-btn { padding: 8px 12px; border: 1.5px solid #d1d5db; border-radius: 10px; background: #f9fafb; color: #374151; font-size: 13px; line-height: 1.4; text-align: left; cursor: pointer; transition: all .15s; }
.taodon-qp-btn:hover { border-color: #2d6a9f; background: #eff6ff; color: #1e3a5f; }
.taodon-qp-btn:active { transform: scale(.98); }
/* Gợi ý Tòa án từ địa chỉ */
.taodon-hint { margin-top: 6px; padding: 8px 12px; border-left: 4px solid #f59e0b; background: #fffbeb; border-radius: 6px; font-size: 13px; color: #78350f; }
.taodon-hint-apply { margin-left: 8px; padding: 4px 10px; border: none; border-radius: 6px; background: #f59e0b; color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.taodon-hint-apply:hover { background: #d97706; }
.taodon-field input[type=date] { min-height: 42px; }

/* Ô nhập ngày có mask dd/mm/yyyy — đẹp, gõ số tự chèn dấu / */
.taodon-field .taodon-maskdate {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.6px;
  color: #1e293b;
  background: #fff;
}
.taodon-field .taodon-maskdate::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0;
  color: #9ca3af;
  font-size: 14px;
}

/* Gom field ngắn về chung 1 hàng (half/third/wide) */
.taodon-field { box-sizing: border-box; }
.taodon-field.half { width: 48%; float: none; display: inline-block; vertical-align: top; margin-right: 1.5%; }
.taodon-field.third { width: 31.5%; display: inline-block; vertical-align: top; margin-right: 1.2%; }
.taodon-field.wide { width: 66%; display: inline-block; vertical-align: top; margin-right: 1.2%; }
@media (max-width: 640px) {
  .taodon-field.half, .taodon-field.third, .taodon-field.wide { width: 100%; margin-right: 0; display: block; }
}

/* Input date đẹp, gọn */
.taodon-field input[type=date].taodon-date {
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid #d1d5db;
  font-size: 14px;
  padding: 8px 12px;
  background: #fff;
  color: #1e293b;
  width: 100%;
  box-sizing: border-box;
}
.taodon-field input[type=date].taodon-date:focus {
  border-color: #2d6a9f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45,106,159,.15);
}

/* Input date đẹp, gọn */
.taodon-field input[type=date].taodon-date {
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid #d1d5db;
  font-size: 14px;
  padding: 8px 12px;
  background: #fff;
  color: #1e293b;
  width: 100%;
  box-sizing: border-box;
}
.taodon-field input[type=date].taodon-date:focus {
  border-color: #2d6a9f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45,106,159,.15);
}
