.wrapper {
  max-width: 900px;
  margin: 4px auto;
  background: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
}

.wrapper h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

/* Form Wrapper */
.zcj-admin-upload-form {
  display: grid !important;
  grid-template-columns: 77% 20.5%;
  gap: 10px !important;
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin: 0 !important;
}

.zcj-step-table th.zcj-th:last-child,
.zcj-step-table td.zcj-td:last-child {
  text-align: center;
  max-width: 150px;
  width: 150px;
}

.zcj-step-table th.zcj-th:nth-child(3),
.zcj-step-table td.zcj-td:nth-child(3) {
  max-width: 280px;
  width: 280px;
}

/* File Input Wrapper */
.zcj-admin-upload-form .upload-doc-file {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* File Input */
.zcj-admin-upload-form input[type="file"] {
  font-size: 12px;
  padding: 6px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: border 0.2s ease;
}

.zcj-admin-upload-form input[type="file"]:hover {
  border-color: #04722c;
}

/* Upload Button */
.zcj-admin-upload-form .upload-btns {
  height: 29px !important;
  padding: 0 0px !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #cf2d53 !important;
  font-size: 12px !important;
  font-weight: 500;
  border: 1px solid #cf2d53 !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.zcj-step-table tbody .zcj-tr:last-child .zcj-td {
  border: none;
}

.zcj-admin-upload-form .upload-btns:hover {
  background: #cf2d53 !important;
  color: #fff !important;
}

/* Disabled Button */
.zcj-admin-upload-form .upload-btns:disabled {
  background: #cf2d53 !important;
  cursor: not-allowed;
  color: #fff;
}

#zcj-manage-table tr th:last-child,
#zcj-manage-table tr td:last-child {
  padding-left: 60px !important;
  width: 200px;
  max-width: 200px;
}

/* Message Styling */
.zcj-admin-upload-form .zcj-upload-message {
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  grid-column: 1 / -1;
}

/* Error Message */
.zcj-admin-upload-form .zcj-upload-message:empty {
  display: none;
}

.zcj-admin-upload-form .zcj-upload-message[style*="red"] {
  background: #fee2e2;
  color: #b91c1c !important;
  border: 1px solid #fecaca;
}

/* Success Message */
.zcj-admin-upload-form .zcj-upload-message[style*="green"] {
  background: #dcfce7;
  color: #166534 !important;
  border: 1px solid #bbf7d0;
}

@media (max-width: 600px) {
  .zcj-admin-upload-form {
    flex-direction: column;
    align-items: stretch;
  }

  .zcj-admin-upload-form .upload-btns {
    width: 100%;
  }
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.progress-wrap {
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  height: 10px;
  margin-bottom: 25px;
}

.progress-bar {
  height: 10px;
  width: 0%;
  background: #d63638;
  transition: 0.3s ease;
}

.step-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.section-box {
  background: #f9fafb;
  padding: 18px 18px 15px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-bottom: 18px;
}

.field-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eaeaea;
}

.field-row:last-child {
  border-bottom: none;
}

.left-field {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
}

.left-field label {
  font-size: 14px;
  cursor: pointer;
}

.upload-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
}

.upload-wrap input[type="file"] {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  height: 42px;
  display: flex;
  align-items: center;
}

.upload-wrap input[type="file"]::file-selector-button {
  height: 32px;
  line-height: 32px;
  margin-right: 10px;
  border: none;
  background: #D44264;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  padding: 0 12px;
}

.small-note {
  font-size: 12px;
  color: #6b7280;
}

.btn-row {
  display: flex;
  margin-top: 20px;
  gap: 10px;
}

.btn-back {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: #e5e7eb;
}

.btn-next {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: #d63638;
  color: #fff;
}

.btn-submit {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: #16a34a;
  color: #fff;
}

.radio-wrap {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.review-box {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
}

.review-box ul {
  padding-left: 18px;
  margin: 0;
}

.step {
  display: block !important;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.step-title.zcj-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 14px 15px;
  background: #f3f4f6;
  margin: 0;
}

.zcj-step-content {
  padding: 15px;
  background: #fff;
}

.step .zcj-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.step.open .zcj-arrow {
  transform: rotate(180deg);
}

.step.active {
  display: block !important;
}

.review-box li {
  margin-bottom: 6px;
}

.progress-wrap {
  width: 100%;
  height: 10px;
  background: #e9e9e9;
  border-radius: 50px;
  overflow: hidden;
  margin: 15px 0 25px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #d63638;
  border-radius: 50px;
  transition: width 0.3s ease-in-out;
}

/* Container */
.zcj-review-docs {
  border: none;
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

/* Headings */
.zcj-review-docs h3,
.zcj-review-title {
  font-size: 20px;
  font-weight: 600;
  margin: 25px 0 25px !important;
  color: #222;
  font-family: 'Montserrat', sans-serif;
  border-left: 4px solid #cf2d53;
  padding-left: 12px;
  border-radius: 6px;
  padding-block: 6px;
}

.zcj-translation-admin-box {
  font-family: 'Montserrat', sans-serif;
}

/* Blocks */
.zcj-gf-block {
  background: #f9fafb;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-family: 'Montserrat', sans-serif;
  line-height: 24px;
}

.zcj-gf-block h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0 !important;
  color: #444;
  font-family: 'Montserrat', sans-serif;
}

.zcj-step-table th.zcj-th {
  background-color: transparent;
}

/* Complex values */
.zcj-gf-complex {
  font-size: 14px;
  color: #555;
}

/* Rows (Email / Phone etc.) */
.zcj-gf-row {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
}

.zcj-gf-label {
  width: 30%;
  font-weight: 600;
  color: #333;
}

.zcj-gf-value {
  width: 70%;
  color: #555;
  word-break: break-word;
}

/* Step Box */
.zcj-step-box {
  margin-bottom: 25px;
  border: 1px solid #efecec;
  border-radius: 10px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 0 20px #0000000f;
}

.zcj-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 6px;
  color: #222;
  font-family: 'Montserrat', sans-serif;
}

.zcj-ajax-content {
  margin-top: 20px;
}

/* Table */
.zcj-step-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
}

.zcj-th {
  text-align: left;
  padding: 10px;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.zcj-td {
  padding: 10px;
  border-top: 1px solid #eee;
  font-size: 13px;
  vertical-align: middle;
}

/* Alternate row color */
.zcj-tr:nth-child(even) {
  background: #fafafa;
}

/* Files */
.zcj-files-list {
  font-size: 13px;
  color: #666;
}

.zcj-no-file {
  color: #999;
}

/* Upload form alignment */
.zcj-admin-upload-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.zcj-admin-upload-form input[type="file"] {
  font-size: 12px;
}

/* Disabled text */
.zcj-disabled {
  color: #aaa;
  font-style: italic;
}

/* Submission section */
.zcj-submission-box {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.zcj-field {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.zcj-field label {
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

.zcj-admin-input {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
}

/* Checkbox */
.zcj-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: normal;
}

/* Save button */
.zcj-save-submission {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  height: fit-content;
}

.zcj-save-submission:hover {
  background: #15803d;
}

input.zcj-admin-input {
  height: 30px !important;
}

.zcj-file-row.files-download {
  display: grid;
  margin-left: -10px;
}

.upload-data {
  margin-left: -5px;
}

.zcj-delete-file {
  background: #c0392b;
  color: #fff;
  border: 1px solid #c0392b;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.zcj-delete-file:hover {
  background: #a93226;
  border-color: #a93226;
}

table.dataTable tbody th,
table.dataTable tbody td {
  padding: 8px 10px !important;
}

.zcj-gf-block {
  margin-bottom: 15px;
}

.zcj-gf-row {
  margin-bottom: 15px;
}

.user-recent-table tbody td form.zcj-action-form {
  margin-bottom: 0;
}

#zcj-manage-table tr td:first-child {
  padding-left: 10px !important;
}

.zcj-file-actions a.zcj-btn,
.zcj-file-actions .zcj-delete-file {
  font-size: 12px !important;
  padding: 0 7px !important;
  line-height: 26px !important;
  height: 26px !important;
  border-radius: 5px !important;
  border-width: 1px !important;
  font-weight: 500;
}


.zcj-approve-btn,
button.zcj-approve-all-translations {
  padding: 5px 0;
  margin: 0;
  width: 110px;
  border-radius: 5px;
  border: 1px solid #C0392B;
  background-color: #C0392B;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.zcj-approve-btn:hover,
button.zcj-approve-all-translations:hover {
  background-color: #a93226;
  border-color: #a93226;
}

.zcj-unapprove-btn,
button.zcj-unapprove-all-translations {
  padding: 5px 0;
  margin: 0;
  width: 110px;
  border-radius: 5px;
  background-color: #d2182524;
  border: 1px solid #d21825;
  color: #d21825;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.zcj-unapprove-btn:hover,
button.zcj-unapprove-all-translations:hover {
  background-color: #f8d0d2;
}

.zcj-translation-admin-box .zcj-file-actions {
  justify-content: start;
}

.zcj-translation-admin-box td.zcj-ajax-td {
  position: relative;
}

.zcj-translation-admin-box input.zcj-admin-translation-doc {
  position: absolute;
  top: 8px;
  left: 0;
  margin: 0;
}

.zcj-translation-admin-box th {
  font-weight: 600;
}

.zcj-translation-admin-box .zcj-file-name {
  font-weight: 500;
  color: #666666;
}

.zcj-translation-admin-box .zcj-step-table tr th,
.zcj-translation-admin-box .zcj-step-table tr td {
  padding-left: 0 !important;
}

.zcj-translation-admin-box button.zcj-unapprove-all-translations {
  background-color: #d21825 !important;
  /* background-color: #d2182524 !important; */
  border-color: #d21825 !important;
  color: #fff !important;
  width: 148px;
  height: 36px;
}

.zcj-translation-admin-box button.zcj-approve-all-translations {
  border: 1px solid #C0392B !important;
  background-color: #C0392B !important;
  color: #fff !important;
  width: 148px;
  height: 36px;
}

.email-translator {
  margin-top: 50px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 84% 14%;
  gap: 0 20px;
}

.email-translator label {
  grid-column: 1/-1;
  margin-bottom: 10px;
}

.email-translator input {
  width: 100%;
  font-weight: 500;
}

.email-translator .zcj-send-to-translator {
  margin: 0 !important;
  padding-block: 3px;
}

.zcj-tr:nth-child(even) form.zcj-admin-upload-form {
  background-color: #fff;
}

.zcj-tr:nth-child(even) form.zcj-admin-upload-form .upload-doc-file input {
  background-color: #fafafa;
}

/* Responsive */
@media only screen and (max-width: 1800px) {

  .zcj-step-table th.zcj-th:nth-child(1),
  .zcj-step-table td.zcj-td:nth-child(1) {
    width: 140px;
  }

  .zcj-admin-upload-form {
    grid-template-columns: 75% 22%;
  }
}

@media (max-width: 768px) {
  .zcj-gf-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .zcj-gf-label,
  .zcj-gf-value {
    width: 100%;
  }

  .zcj-submission-box {
    flex-direction: column;
  }
}

@media(max-width:700px) {
  .field-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-wrap {
    min-width: 100%;
    width: 100%;
  }
}

/* ---- Completed stage: subtle checkmark only, no green borders ---- */
.step.zcj-section-complete > .step-title.zcj-toggle {
  border-bottom: none;
}

.step.zcj-section-complete {
  border-color: #e5e7eb;
}

.zcj-stage-badge {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  padding: 0 4px;
  margin-right: 4px;
  white-space: nowrap;
}

/* =========================================================================
   Client-facing family tree
   ========================================================================= */
.zcj-client-tree {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.zcj-client-tree-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.zcj-client-tree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.zcj-client-gen-label {
  width: 80px;
  flex-shrink: 0;
  font-size: 11px;
  color: #bbb;
  padding-top: 10px;
  text-align: right;
}

.zcj-client-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.zcj-client-node {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 140px;
  max-width: 200px;
}

.zcj-client-node-path {
  border-color: #c5d8f0;
  background: #f4f9ff;
}

.zcj-client-node-applicant {
  border-color: #185FA5;
  background: #e6f1fb;
}

.zcj-client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  position: relative;
  overflow: visible;
}

.zcj-client-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.zcj-client-star {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 11px;
  color: #185FA5;
  background: #fff;
  border: 1px solid #c5d8f0;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.zcj-client-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.zcj-cdot-green  { background: #3aaa35; }
.zcj-cdot-amber  { background: #BA7517; }
.zcj-cdot-grey   { background: #ccc; }

.zcj-client-node-info {
  flex: 1;
  min-width: 0;
}

.zcj-client-node-name {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zcj-client-node-detail {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zcj-client-node-docs {
  font-size: 11px;
  color: #3aaa35;
  font-weight: 500;
  margin-top: 2px;
}

/* ---- Client-facing family tree ---- */
.zcj-client-tree {
  padding: 8px 0;
}

.zcj-client-tree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.zcj-tree-gen-label-client {
  width: 80px;
  flex-shrink: 0;
  font-size: 11px;
  color: #999;
  padding-top: 10px;
  text-align: right;
}

.zcj-tree-nodes-client {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.zcj-client-node {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 140px;
  max-width: 200px;
}

.zcj-client-node-path {
  border-color: #185FA5;
  background: #f0f6ff;
}

.zcj-client-node-applicant {
  border-color: #185FA5;
  background: #e6f1fb;
}

.zcj-client-name-path {
  color: #185FA5;
  font-weight: 600;
}

/* Cover Documents — Download All button */
.zcj-download-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary, #c0392b);
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 2px 10px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.zcj-download-all-btn:hover {
  background: var(--primary, #c0392b);
  color: #fff;
  text-decoration: none;
}

/* Approved field row — subtle green tint, files show inline */
.zcj-row-approved {
  background: #f6fef6;
  border-color: #c3e6cb !important;
}

.zcj-row-approved .zcj-label-text strong,
.zcj-row-approved .zcj-label-text {
  color: #1a5c36;
}

/* Uploaded files inside field row — no separate box */
.zcj-row .zcj-uploaded-files {
  border-top: 1px dashed #d0e8d0;
  margin-top: 8px;
  padding-top: 6px;
  background: none;
  border-radius: 0;
}

.zcj-row-approved .zcj-uploaded-files {
  border-top-color: #b2dfca;
}

/* Pre-approval uploaded files - compact inline (matches post-approval look) */
.zcj-row:not(.zcj-row-approved) .zcj-uploaded-files {
  border-top: 1px dashed #e0e0e0;
  margin-top: 8px;
  padding-top: 6px;
  background: none;
  border-radius: 0;
  border: none;
}

.zcj-row:not(.zcj-row-approved) .zcj-uploaded-item {
  background: #f8f8f8;
  border-color: #e8e8e8;
}

/* Uploaded item compact row for inline display */
.zcj-row .zcj-uploaded-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 4px;
  width: 100%;
  box-sizing: border-box;
}

.zcj-row .zcj-file-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.zcj-row .zcj-file-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.zcj-row .zcj-file-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}


/* Fix field-row item label wrapping */
.field-row.zcj-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.field-row.zcj-row .left-field {
  min-width: 160px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.field-row.zcj-row .zcj-label-text {
  display: block;
  width: 100%;
}

/* Upload wrap and uploaded files take full width within the row */
.field-row.zcj-row .upload-wrap,
.field-row.zcj-row .zcj-uploaded-files {
  width: 100%;
}

/* Space between sections */


/* Locked section — grey the step text only */



/* ── DROP ZONE ──────────────────────────────────────────────────────────────── */
.zcj-drop-zone-wrapper {
    margin: 10px 0 4px;
    position: relative;
    overflow: hidden;
    max-height: 160px;
    transition: max-height 0.4s ease;
}
.zcj-drop-zone-wrapper.zcj-dz-expanded {
    max-height: 4000px;
}
.zcj-dz-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--zcj-bg, #f5f5f5));
    pointer-events: none;
    transition: opacity 0.3s;
}
.zcj-drop-zone-wrapper.zcj-dz-expanded .zcj-dz-fade {
    opacity: 0;
}
.zcj-dz-toggle {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    padding: 4px 0 8px;
    user-select: none;
}
.zcj-dz-toggle:hover { color: #555; }

.zcj-drop-zone-separator {
    margin: 12px 0 8px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.zcj-drop-zone-separator::before,
.zcj-drop-zone-separator::after {
    display: none;
}

.zcj-drop-zone-box {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    transition: background .15s, border-color .15s;
    cursor: pointer;
    max-width: 600px;
}
.zcj-drop-zone-box.zcj-dz-dragover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.zcj-drop-zone-icon {
    color: #9ca3af;
    flex-shrink: 0;
    margin-top: 2px;
}

.zcj-drop-zone-text {
    flex: 1;
    min-width: 160px;
}
.zcj-drop-zone-text strong {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 3px;
}
.zcj-drop-zone-text p {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

.zcj-drop-zone-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.zcj-drop-zone-btn {
    display: inline-block;
    padding: 7px 14px;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.zcj-drop-zone-btn:hover {
    background: #f3f4f6;
}
.zcj-drop-zone-upload {
    padding: 7px 14px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.zcj-drop-zone-upload:hover {
    background: #1e40af;
}
.zcj-drop-zone-upload:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.zcj-drop-zone-selected {
    width: 100%;
    margin-top: 8px;
}
.zcj-dz-preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.zcj-dz-preview-list li {
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 500;
}

.zcj-drop-zone-status {
    width: 100%;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* ── Client: uploaded files list ─────────────────────────────────────────── */
.zcj-drop-zone-uploaded {
    margin-top: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.zcj-dz-uploaded-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 10px;
}
.zcj-dz-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.zcj-dz-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
}
.zcj-dz-file-item.zcj-dz-assigned {
    opacity: .75;
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.zcj-dz-file-icon { flex-shrink: 0; }
.zcj-dz-file-name { flex: 1; color: #374151; }
.zcj-dz-badge-assigned {
    font-size: 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 600;
}
.zcj-dz-file-actions { margin-left: auto; }
.zcj-dz-file-actions .zcj-btn-preview {
    font-size: 11px;
    color: #185FA5;
    text-decoration: none;
}

/* ── Admin: Drop Zone panel ──────────────────────────────────────────────── */
.zcj-admin-dz-wrapper {
    margin-top: 16px;
}
.zcj-no-dz {
    color: #9ca3af;
    font-size: 12px;
    margin: 0;
}
.zcj-admin-dz-panel { }
.zcj-admin-dz-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.zcj-admin-dz-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.zcj-admin-dz-item.zcj-admin-dz-filed {
    background: #f0fdf4;
    border-color: #bbf7d0;
    opacity: .85;
}
.zcj-admin-dz-file-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.zcj-admin-dz-icon { flex-shrink: 0; }
.zcj-admin-dz-fname {
    font-size: 12px;
    color: #185FA5;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    word-break: break-all;
}
.zcj-admin-dz-badge {
    font-size: 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 4px;
    padding: 2px 7px;
    font-weight: 600;
}
.zcj-admin-dz-assign-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.zcj-admin-dz-section-select {
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    max-width: 280px;
    flex: 1;
}
.zcj-admin-dz-assign-btn {
    font-size: 12px !important;
}
.zcj-admin-dz-delete-btn {
    font-size: 12px !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}
/* ── END DROP ZONE ──────────────────────────────────────────────────────────── */

/* ── DASHBOARD ──────────────────────────────────────────────────────────────── */
.zcj-dashboard {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 22px 24px 18px;
    margin-top: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* Top row: greeting + case manager */
.zcj-dash-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.zcj-dash-greeting { display: flex; flex-direction: column; gap: 2px; }
.zcj-dash-hello { font-size: 13px; color: #9ca3af; }
.zcj-dash-name  { font-size: 22px; font-weight: 700; color: #1f2937; line-height: 1.2; }
.zcj-dash-sub   { font-size: 12px; color: #6b7280; margin-top: 4px; }

.zcj-dash-manager { text-align: right; }
.zcj-dash-manager-label { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.zcj-dash-manager-inner { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.zcj-dash-manager-photo {
    width: 56px; height: 56px; border-radius: 50%;
    overflow: hidden; border: 2px solid #e5e7eb;
    flex-shrink: 0;
}
.zcj-dash-manager-photo img { width: 100%; height: 100%; object-fit: cover; }
.zcj-dash-manager-initials {
    width: 100%; height: 100%;
    background: #185FA5; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
}
.zcj-dash-manager-info { text-align: right; }
.zcj-dash-manager-info strong { display: block; font-size: 14px; color: #1f2937; }
.zcj-dash-manager-info span  { font-size: 12px; color: #6b7280; }

/* Progress bar inside dashboard */
.zcj-dash-progress {
    margin-bottom: 18px;
}

/* Milestones */
.zcj-milestones-title {
    font-size: 13px; font-weight: 700; color: #c03b2b;
    margin-bottom: 16px; letter-spacing: .01em;
}
.zcj-milestones-track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 4px;
}
.zcj-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 90px;
    position: relative;
}
.zcj-ms-circle {
    width: 40px; height: 40px;
    min-width: 40px; min-height: 40px;
    max-width: 40px; max-height: 40px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
}
.zcj-ms-circle svg { width: 40px; height: 40px; display: block; }
.zcj-ms-done   .zcj-ms-circle { color: #3aaa35; }
.zcj-ms-active .zcj-ms-circle { color: #c03b2b; }
.zcj-ms-future .zcj-ms-circle { color: #d1d5db; }

.zcj-ms-connector {
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 20px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.zcj-ms-connector-done { background: #3aaa35; }

.zcj-ms-label {
    font-size: 11px; font-weight: 600; color: #374151;
    text-align: center; margin-top: 8px;
    line-height: 1.3; max-width: 90px;
}
.zcj-ms-future .zcj-ms-label { color: #9ca3af; }
.zcj-ms-status {
    font-size: 10px; color: #9ca3af; text-align: center; margin-top: 3px;
}
.zcj-ms-done   .zcj-ms-status { color: #3aaa35; }
.zcj-ms-active .zcj-ms-status { color: #c03b2b; font-weight: 600; }

@media (max-width: 600px) {
    .zcj-milestones-track { flex-direction: column; gap: 12px; align-items: flex-start; }
    .zcj-milestone { flex-direction: row; gap: 12px; min-width: unset; flex: none; }
    .zcj-ms-connector { display: none; }
    .zcj-ms-label, .zcj-ms-status { text-align: left; max-width: none; }
    .zcj-dash-top { flex-direction: column; }
    .zcj-dash-manager { text-align: left; }
    .zcj-dash-manager-inner { justify-content: flex-start; }
}

/* ── WELCOME MESSAGE ─────────────────────────────────────────────────────────── */
.zcj-welcome-msg {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}
.zcj-welcome-dismiss {
    position: absolute;
    top: 12px; right: 14px;
    font-size: 11px; color: #9ca3af;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px; padding: 3px 10px;
    cursor: pointer; transition: all .15s;
    box-shadow: none !important;
    text-transform: none !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    min-height: unset !important;
    height: auto !important;
}
.zcj-welcome-dismiss:hover { color: #c03b2b !important; border-color: #c03b2b !important; background: #fff !important; }

/* ── CATEGORY WRAPPERS ───────────────────────────────────────────────────────── */
.zcj-category {
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    overflow: hidden;
}

/* Meta-category header: slightly darker than sub-accordion headers to distinguish */
.zcj-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px 18px;
    background: #e9eaec;
    margin: 0;
    user-select: none;
    position: relative;
    transition: background .15s;
    border-bottom: 1px solid #d1d5db;
}
.zcj-category-header:hover { background: #e2e3e6; }
.zcj-category.zcj-cat-collapsed .zcj-category-header {
    border-bottom: none;
}

/* Hide emoji icon and complete badge on meta-categories */
.zcj-cat-icon { display: none; }
.zcj-cat-badge-done { display: none !important; }

/* Title: centred absolutely like .zcj-step-text */
.zcj-cat-title {
    position: absolute;
    left: 0; right: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    pointer-events: none;
    letter-spacing: 0.01em;
}
.zcj-cat-arrow {
    font-size: 14px;
    color: #6b7280;
    transition: transform 0.2s ease;
    position: relative; z-index: 1;
    margin-left: auto;
}
.zcj-category.zcj-cat-collapsed .zcj-cat-arrow { transform: rotate(-90deg); }
.zcj-category:not(.zcj-cat-collapsed) .zcj-cat-arrow { transform: rotate(180deg); }

/* Body: white background, sub-steps stacked flush inside */
.zcj-category-body {
    padding: 0;
    background: #fff;
}
.zcj-category.zcj-cat-collapsed .zcj-category-body { display: none; }

/* Sub-steps inside: no outer border (card handles that), just dividers between them */
.zcj-category-body > .step.zcj-collapsible,
.zcj-category-body > div > .step.zcj-collapsible {
    margin: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Referral gold section */
.zcj-referral-gold .step-title.zcj-toggle {
    background: linear-gradient(135deg, #c9a227, #e8c84a) !important;
}
/* ── END CATEGORY/DASHBOARD ─────────────────────────────────────────────────── */

/* ── MY JOURNEY PAGE: escape theme container width ───────────────────────────
   The theme wraps page content in a narrow container. We break the journey
   content out of it using a well-known "full-bleed inside constrained container"
   technique, then re-centre at a wider max-width.
   ─────────────────────────────────────────────────────────────────────────── */
.wrapper {
    /* Break out of whatever the theme container is */
    width: 100vw;
    max-width: 1200px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* Re-centre */
    transform: translateX(calc(50vw - 50%));
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
/* ── END WIDTH OVERRIDE ──────────────────────────────────────────────────────── */
.zcj-category.zcj-cat-collapsed .zcj-category-body { display: none; }


/* ── ZIP chapter-style refinement (2026-06-06) ──────────────────────────────
   Creates a clear chapter hierarchy: master categories are prominent chapters;
   accordion rows are smaller/actionable. Icons are red-only and one folk SVG
   motive is reused as a subtle decorative watermark. */
:root {
    --zcj-brand-red: #c03b2b;
    --zcj-brand-red-dark: #9f2f23;
    --zcj-ink: #1f2937;
    --zcj-muted: #6b7280;
    --zcj-line: #eadfd8;
    --zcj-warm: #fff8f5;
}

.zcj-category {
    position: relative;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid var(--zcj-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .055);
}

.zcj-category::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 58px;
    width: 112px;
    height: 52px;
    opacity: .075;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 280'%3E%3Cg fill='%23c03b2b'%3E%3Cpath d='M58.84 174.25c.77-.18 1.72-.13 2.33.42l20.19 19.95c1.85 1.96.23 4.68-2.37 4.27-.71-.11-2.88-2.19-3.58-2.83-5.39-4.95-10.31-10.67-15.67-15.68l-18.05 17.81c-2.84 2.08-5.63-.5-3.92-3.44l20.18-19.95c.25-.24.53-.46.89-.54Z'/%3E%3Cpath d='M96.86 149.91c-.09-.31-2.23-2.14-2.69-2.54-4.07-3.57-8.79-7.65-13.06-10.93-2.23-1.71-2.12-1.86-4.78-.52l-16.58 9.69c-6.35-3.25-12.23-7.38-18.63-10.5l-1.02-.05c-5.95 4.79-11.94 9.59-17.53 14.78-.4.59-.27 1.39-.12 2.04l5.47 18.75c.97 1.76 2.27 1.84 3.98 1.12 5-2.11 9.98-5.56 14.99-7.81 2.71-1.74 1.08-5.45-2.05-4.66l-12.99 6.6-3.94-13.76c-.02-.41.56-.82.84-1.09 3.58-3.39 8.06-6.28 11.65-9.72l.82-.36 13.96 8.04c.07.04.15.08.22.13l.43.25v.03c.59.36 1.19.65 1.81.91l-.15 26.44c.86 3.29 4.67 3.14 5.2-.34l.17-25.36.29-.17 15.09-8.67 13.14 10.72-4.12 14.2-12.88-6.59c-3.01-.63-4.69 2.77-2.05 4.66 3.81 1.82 7.47 3.97 11.24 5.86 2.39 1.2 6.2 4.17 7.85.72 1.43-5.68 3.51-11.25 4.91-16.94.26-1.07.81-2.62.49-3.68Z'/%3E%3Cpath d='M179.15 174.25c.77-.18 1.72-.13 2.33.42l20.19 19.95c1.85 1.96.23 4.68-2.37 4.27-.71-.11-2.88-2.19-3.58-2.83-5.39-4.95-10.31-10.67-15.67-15.68L162 198.19c-2.84 2.08-5.63-.5-3.92-3.44l20.18-19.95c.25-.24.53-.46.89-.54Z'/%3E%3Cpath d='M299.26 174.25c.77-.18 1.72-.13 2.33.42l20.19 19.95c1.85 1.96.23 4.68-2.37 4.27-.71-.11-2.88-2.19-3.58-2.83-5.39-4.95-10.31-10.67-15.67-15.68l-18.05 17.81c-2.84 2.08-5.63-.5-3.92-3.44l20.18-19.95c.25-.24.53-.46.89-.54Z'/%3E%3C/g%3E%3C/svg%3E");
}

.zcj-category-header {
    min-height: 72px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    background: linear-gradient(90deg, #fff8f5 0%, #fff 62%);
    border-bottom: 1px solid rgba(192, 59, 43, .12);
    color: var(--zcj-ink);
}

.zcj-cat-letter {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--zcj-brand-red);
    background: rgba(192, 59, 43, .08);
    font-weight: 800;
    font-size: 16px;
}

.zcj-cat-symbol {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--zcj-brand-red);
}
.zcj-cat-symbol svg { width: 30px; height: 30px; display: block; }
.zcj-cat-icon { display: none !important; }

.zcj-cat-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.zcj-cat-title {
    position: static !important;
    text-align: left !important;
    pointer-events: auto !important;
    font-size: 18px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: .01em;
    color: var(--zcj-ink);
}
.zcj-cat-subtitle {
    font-size: 13px;
    line-height: 1.35;
    color: var(--zcj-muted);
    font-weight: 400;
}
.zcj-cat-arrow {
    margin-left: auto;
    color: var(--zcj-brand-red);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}
.zcj-cat-badge-done { margin-left: auto; }
.zcj-cat-badge-done + .zcj-cat-arrow { margin-left: 8px; }

/* Keep sub-items visually subordinate to the chapter. */
.zcj-category-body { background: #fff; padding: 0; }
.zcj-category-body > .step.zcj-collapsible,
.zcj-category-body > div > .step.zcj-collapsible {
    margin: 0;
    border: 0;
    border-top: 1px solid #eceff3;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: #fff;
}
.zcj-category-body .step-title.zcj-toggle {
    min-height: 46px;
    padding: 10px 16px;
    background: #fff !important;
    color: var(--zcj-ink);
    justify-content: flex-start;
    gap: 10px;
}
.zcj-category-body .step-title.zcj-toggle:hover { background: #fffafa !important; }
.zcj-category-body .zcj-folk-motive {
    width: 42px;
    opacity: .55;
    color: var(--zcj-brand-red);
}
.zcj-category-body .zcj-folk-motive svg {
    max-width: 38px;
    height: 24px;
}
.zcj-category-body .zcj-folk-motive svg *,
.zcj-category-body .zcj-folk-motive svg .cls-1,
.zcj-category-body .zcj-folk-motive svg .cls-2,
.zcj-category-body .zcj-folk-motive svg .cls-3,
.zcj-category-body .zcj-folk-motive svg .cls-4 {
    fill: var(--zcj-brand-red) !important;
}
.zcj-category-body .zcj-step-text {
    position: static !important;
    flex: 1 1 auto;
    text-align: left !important;
    pointer-events: auto !important;
    font-size: 14px;
    font-weight: 650;
    color: #374151;
}
.zcj-category-body .step .zcj-arrow {
    margin-left: auto;
    color: #6b7280;
    font-size: 14px;
}
.zcj-category-body .zcj-stage-badge { margin-left: auto !important; }

/* Expanded content should feel nested under the sub-item, not larger than the chapter. */
.zcj-category-body .zcj-step-content {
    padding: 12px 14px 16px;
    background: #fff;
}
.zcj-category-body .section-boxs,
.zcj-category-body .section-box {
    border: 1px solid #edf0f3;
    border-radius: 10px;
    background: #fbfbfc;
    padding: 12px;
}
.zcj-category-body .field-row {
    padding: 9px 0;
    gap: 10px;
}
.zcj-category-body .zcj-label-text,
.zcj-category-body .left-field label {
    font-size: 14px;
    line-height: 1.35;
}
.zcj-category-body .upload-wrap input[type="file"] {
    height: 38px;
    font-size: 12px;
}

/* Make the fallback Drop Zone compact, inside Gathering Documents, and visually secondary. */
.zcj-drop-zone-wrapper {
    margin: 12px 14px 16px;
    max-height: none;
}
.zcj-drop-zone-separator {
    margin: 12px 0 8px;
    color: #a3a3a3;
    font-size: 10px;
    letter-spacing: .12em;
}
.zcj-drop-zone-box {
    max-width: none;
    width: 100%;
    padding: 12px 16px;
    border: 1px dashed rgba(192, 59, 43, .35);
    background: #fffdfc;
    align-items: center;
    cursor: default;
}
.zcj-drop-zone-icon { color: var(--zcj-brand-red); opacity: .95; margin-top: 0; }
.zcj-drop-zone-text strong { color: var(--zcj-ink); font-size: 14px; }
.zcj-drop-zone-text p { color: var(--zcj-muted); font-size: 12px; }
.zcj-drop-zone-btn,
.zcj-drop-zone-upload {
    border-color: var(--zcj-brand-red) !important;
    color: var(--zcj-brand-red) !important;
    background: #fff !important;
    border-radius: 7px;
    font-weight: 700;
}
.zcj-drop-zone-btn:hover,
.zcj-drop-zone-upload:hover {
    background: #fff4f2 !important;
}

/* Subtle side folk borders so the pattern remains part of the page without competing with cards. */
.wrapper::before,
.wrapper::after {
    content: '';
    position: fixed;
    top: 78px;
    bottom: 0;
    width: 80px;
    opacity: .16;
    pointer-events: none;
    background-repeat: repeat-y;
    background-size: 72px auto;
    background-position: top center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 240'%3E%3Cg fill='%23c03b2b'%3E%3Cpath d='M60 24 42 42l18 18 18-18L60 24Zm0 96-18 18 18 18 18-18-18-18Z' opacity='.55'/%3E%3Cpath d='M20 84c18-18 62-18 80 0-18 18-62 18-80 0Zm0 96c18-18 62-18 80 0-18 18-62 18-80 0Z' opacity='.35'/%3E%3Cpath d='M60 68c10 0 18 8 18 18s-8 18-18 18-18-8-18-18 8-18 18-18Z' opacity='.20'/%3E%3C/g%3E%3C/svg%3E");
}
.wrapper::before { left: 0; }
.wrapper::after { right: 0; transform: scaleX(-1); }
@media (max-width: 900px) {
    .wrapper::before, .wrapper::after { display: none; }
    .zcj-category-header { min-height: 64px; padding: 12px 14px; }
    .zcj-cat-symbol { display: none; }
    .zcj-cat-title { font-size: 16px; }
    .zcj-cat-subtitle { font-size: 12px; }
}
/* ── END ZIP chapter-style refinement ─────────────────────────────────────── */

/* ── ZIP chapter refinement follow-up (2026-06-06) ──────────────────────── */
/* Remove the failed side/watermark folk ornaments. Keep folk motives only as
   deliberate chapter markers in the left corner of each master category. */
.wrapper::before,
.wrapper::after,
.zcj-category::after {
    display: none !important;
    content: none !important;
}

/* Welcome card: make the greeting feel more substantial and remove the
   milestone-count line from the markup. */
.zcj-dash-greeting,
.zcj-dash-greeting * {
    font-family: inherit;
}
.zcj-dash-hello {
    font-size: 18px !important;
    line-height: 1.25;
    color: #374151;
}
.zcj-dash-name {
    font-size: 30px !important;
    line-height: 1.15;
    font-weight: 800 !important;
    color: #1f2937;
}

/* Larger progress bar with a visible percentage bubble. */
.zcj-dash-progress .progress-wrap,
.zcj-progress-container .progress-wrap {
    height: 16px !important;
    border-radius: 999px !important;
    overflow: visible !important;
    background: #eef0f3 !important;
}
.zcj-dash-progress .progress-bar,
.zcj-progress-container .progress-bar {
    height: 16px !important;
    border-radius: 999px !important;
    position: relative;
}
.zcj-progress-badge {
    min-width: 46px !important;
    height: 30px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #c03b2b !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 14px rgba(192, 59, 43, .22) !important;
}

/* Master chapters: centered text, same family/feel as the accordion rows,
   no A/B/C/D text, no subtitles, and red folk SVG motive as the left marker. */
.zcj-category-header {
    min-height: 62px !important;
    padding: 12px 58px 12px 82px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #eceff3 !important;
    font-family: inherit !important;
}
.zcj-cat-letter,
.zcj-cat-symbol,
.zcj-cat-subtitle {
    display: none !important;
}
.zcj-cat-motif {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c03b2b;
    opacity: .95;
}
.zcj-cat-motif svg {
    max-width: 40px;
    max-height: 40px;
    display: block;
}
.zcj-cat-motif svg *,
.zcj-cat-motif svg .cls-1,
.zcj-cat-motif svg .cls-2,
.zcj-cat-motif svg .cls-3,
.zcj-cat-motif svg .cls-4 {
    fill: #c03b2b !important;
    stroke: #c03b2b !important;
}
.zcj-cat-copy {
    flex: 0 1 auto !important;
    min-width: 0;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
}
.zcj-cat-title {
    font-family: inherit !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #374151 !important;
    letter-spacing: 0 !important;
}
.zcj-cat-arrow {
    position: absolute !important;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    color: #c03b2b !important;
    font-size: 18px !important;
}
.zcj-category.zcj-cat-collapsed .zcj-cat-arrow { transform: translateY(-50%) rotate(-90deg) !important; }
.zcj-category:not(.zcj-cat-collapsed) .zcj-cat-arrow { transform: translateY(-50%) rotate(180deg) !important; }
.zcj-cat-badge-done {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
}

/* Sub-accordions: centered labels; rows remain visually smaller than chapters. */
.zcj-category-body .step-title.zcj-toggle {
    position: relative;
    min-height: 48px !important;
    padding: 10px 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.zcj-category-body .zcj-folk-motive {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px !important;
    height: 26px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .45 !important;
    color: #c03b2b !important;
}
.zcj-category-body .zcj-folk-motive svg {
    max-width: 26px !important;
    height: 18px !important;
}
.zcj-category-body .zcj-step-text {
    flex: 0 1 auto !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.3;
    font-weight: 600 !important;
    color: #374151 !important;
}
.zcj-category-body .step .zcj-arrow,
.zcj-email-prefs-step .zcj-arrow {
    position: absolute !important;
    right: 22px;
    margin: 0 !important;
}
.zcj-category-body .zcj-stage-badge {
    position: absolute;
    right: 54px;
    margin: 0 !important;
}

/* Expanded blocks/files should not visually overpower their accordion row. */
.zcj-category-body .zcj-step-content {
    padding: 10px 12px 14px !important;
}
.zcj-category-body .section-boxs,
.zcj-category-body .section-box,
.zcj-category-body .uploaded-file,
.zcj-category-body .file-card,
.zcj-category-body .zcj-file-card {
    font-size: 13px !important;
}

/* Fallback upload: keep uploaded files hidden until the user expands them.
   The toggle appears immediately after the upload option. */
.zcj-drop-zone-wrapper {
    margin: 10px 12px 14px !important;
}
.zcj-drop-zone-separator {
    margin: 8px 0 6px !important;
    font-size: 10px !important;
    text-align: center;
}
.zcj-drop-zone-box {
    min-height: 54px !important;
    padding: 10px 14px !important;
    display: flex !important;
    gap: 12px !important;
}
.zcj-drop-zone-icon {
    color: #c03b2b !important;
}
.zcj-drop-zone-text strong {
    font-size: 13px !important;
}
.zcj-drop-zone-text p {
    font-size: 12px !important;
    margin: 2px 0 0 !important;
}
.zcj-drop-zone-uploaded {
    margin: 8px 0 0 !important;
    border: 1px solid #eceff3 !important;
    border-radius: 9px !important;
    background: #fff !important;
    padding: 0 !important;
}
.zcj-drop-zone-uploaded > summary.zcj-dz-uploaded-title {
    list-style: none;
    cursor: pointer;
    padding: 10px 14px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-align: center;
}
.zcj-drop-zone-uploaded > summary.zcj-dz-uploaded-title::-webkit-details-marker { display: none; }
.zcj-drop-zone-uploaded > summary.zcj-dz-uploaded-title::after {
    content: ' ▾';
    color: #c03b2b;
    font-weight: 800;
}
.zcj-drop-zone-uploaded[open] > summary.zcj-dz-uploaded-title::after { content: ' ▴'; }
.zcj-dz-file-list {
    padding: 8px 12px 12px !important;
    margin: 0 !important;
}

/* Email preferences: quieter utility row. */
.zcj-email-prefs-step {
    margin: 14px 0 0 !important;
    border: 1px solid #eceff3 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    background: #fff !important;
}
.zcj-email-prefs-step .step-title.zcj-toggle {
    min-height: 38px !important;
    padding: 8px 42px !important;
    background: #fafafa !important;
    color: #6b7280 !important;
    justify-content: center !important;
    position: relative;
}
.zcj-email-prefs-step .zcj-step-text {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
}
.zcj-email-prefs-step .zcj-step-content {
    padding: 10px 14px !important;
    background: #fff !important;
}

/* Referral should be visible and consistent with the portal, not gold/hidden-looking. */
.zcj-referral-gold {
    margin: 14px 0 !important;
    border: 1px solid rgba(192,59,43,.25) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
}
.zcj-referral-gold .step-title.zcj-toggle {
    background: #fff8f5 !important;
    color: #c03b2b !important;
    min-height: 48px !important;
    justify-content: center !important;
    position: relative;
}
.zcj-referral-gold .zcj-step-text {
    color: #c03b2b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

@media (max-width: 900px) {
    .zcj-category-header { padding-left: 66px !important; padding-right: 48px !important; }
    .zcj-cat-motif { left: 16px; width: 34px; height: 34px; }
    .zcj-cat-motif svg { max-width: 34px; max-height: 34px; }
    .zcj-dash-name { font-size: 24px !important; }
}
/* ── END ZIP chapter refinement follow-up ───────────────────────────────── */

/* ── ZIP chapter refinement v2 (2026-06-06) ────────────────────────────────
   Fixes chapter hierarchy after review: no side ornaments, two alternating
   folk motifs only, same motif inherited by each sub-accordion in its chapter,
   truly centred titles, larger chapter text, roomier progress bubble, and
   quieter email preferences. */

/* Kill the previous side/watermark ornament completely. */
.zcj-category::after,
.zcj-category::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Master chapter cards */
.zcj-category {
    margin: 18px 0 !important;
    border: 1px solid #e7e1dd !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(31, 41, 55, .035) !important;
    overflow: hidden !important;
    background: #fff !important;
}

.zcj-category-header {
    position: relative !important;
    min-height: 68px !important;
    padding: 12px 68px 12px 82px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border-bottom: 1px solid #eceff3 !important;
    font-family: inherit !important;
}

.zcj-cat-copy {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    text-align: center !important;
}

.zcj-cat-title {
    position: absolute !important;
    left: 92px !important;
    right: 92px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: block !important;
    width: auto !important;
    text-align: center !important;
    font-family: inherit !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #2f3746 !important;
    letter-spacing: 0 !important;
    pointer-events: none !important;
}

.zcj-cat-subtitle,
.zcj-cat-letter,
.zcj-cat-symbol,
.zcj-cat-icon {
    display: none !important;
}

.zcj-cat-motif {
    position: absolute !important;
    left: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    color: #c03b2b !important;
}
.zcj-cat-motif svg {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    display: block !important;
}
.zcj-cat-motif svg *,
.zcj-cat-motif svg .cls-1,
.zcj-cat-motif svg .cls-2,
.zcj-cat-motif svg .cls-3,
.zcj-cat-motif svg .cls-4 {
    fill: #c03b2b !important;
    stroke: #c03b2b !important;
}

.zcj-cat-arrow {
    position: absolute !important;
    right: 24px !important;
    top: 50% !important;
    margin: 0 !important;
    color: #c03b2b !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}
.zcj-category.zcj-cat-collapsed .zcj-cat-arrow { transform: translateY(-50%) rotate(-90deg) !important; }
.zcj-category:not(.zcj-cat-collapsed) .zcj-cat-arrow { transform: translateY(-50%) rotate(180deg) !important; }

/* Sub-accordion rows: smaller than chapter, but centred reliably. */
.zcj-category-body > .step.zcj-collapsible,
.zcj-category-body > div > .step.zcj-collapsible {
    margin: 0 !important;
    border: 0 !important;
    border-top: 1px solid #eceff3 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
}

.zcj-category-body .step-title.zcj-toggle {
    position: relative !important;
    min-height: 48px !important;
    padding: 10px 78px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    font-family: inherit !important;
}

.zcj-category-body .zcj-step-text {
    position: absolute !important;
    left: 82px !important;
    right: 82px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: block !important;
    width: auto !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
    color: #374151 !important;
    pointer-events: none !important;
}

/* Existing inline folk icons are ignored; a chapter-specific motif is injected
   as the row icon, so rows in the same chapter use the same motif. */
.zcj-category-body .zcj-folk-motive {
    position: absolute !important;
    left: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    opacity: .52 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}
.zcj-category-body .zcj-folk-motive svg { display: none !important; }
#zcj-cat-profile .zcj-category-body .zcj-folk-motive,
#zcj-cat-prepare .zcj-category-body .zcj-folk-motive {
    background-image: url('../img/ZIP_Citizenship_Kvietok_tehlovy.svg') !important;
}
#zcj-cat-collect .zcj-category-body .zcj-folk-motive,
#zcj-cat-file .zcj-category-body .zcj-folk-motive {
    background-image: url('../img/ZIP_Citizenship_Stvorlistok_tehlovy_bez_pozadia.svg') !important;
}

.zcj-category-body .step .zcj-arrow,
.zcj-category-body .step-title.zcj-toggle > .zcj-arrow {
    position: absolute !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    color: #6b7280 !important;
    font-size: 14px !important;
}
.zcj-category-body .zcj-stage-badge,
.zcj-category-body .step-title.zcj-toggle > [title="Locked"] {
    position: absolute !important;
    right: 54px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

/* Progress: avoid cramped two-line percentage bubble. */
.zcj-progress-container {
    position: relative !important;
    padding-right: 64px !important;
}
.zcj-dash-progress .progress-wrap,
.zcj-progress-container .progress-wrap {
    height: 18px !important;
    border-radius: 999px !important;
    overflow: visible !important;
}
.zcj-dash-progress .progress-bar,
.zcj-progress-container .progress-bar {
    height: 18px !important;
    border-radius: 999px !important;
}
.zcj-progress-badge {
    min-width: 56px !important;
    width: auto !important;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-height: 36px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-sizing: border-box !important;
}

/* Fallback upload: uploaded list remains hidden behind the toggle immediately
   after the upload box. */
.zcj-drop-zone-uploaded {
    margin-top: 8px !important;
}
.zcj-drop-zone-uploaded:not([open]) .zcj-dz-file-list {
    display: none !important;
}

/* Email preferences: utility control, visually separated and quiet. */
.zcj-email-prefs-step {
    margin: 34px 0 0 !important;
    border: 1px solid #edf0f3 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: #fff !important;
    opacity: .88 !important;
}
.zcj-email-prefs-step .step-title.zcj-toggle {
    min-height: 34px !important;
    padding: 7px 44px !important;
    background: #fbfbfb !important;
    color: #7b8492 !important;
    position: relative !important;
    justify-content: center !important;
}
.zcj-email-prefs-step .zcj-step-text {
    position: static !important;
    transform: none !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    color: #7b8492 !important;
}
.zcj-email-prefs-step .zcj-step-content {
    padding: 10px 14px 12px !important;
    font-size: 12px !important;
    color: #4b5563 !important;
}

@media (max-width: 760px) {
    .zcj-category-header { padding-left: 68px !important; padding-right: 54px !important; }
    .zcj-cat-title { left: 72px !important; right: 54px !important; font-size: 17px !important; }
    .zcj-cat-motif { left: 18px !important; width: 36px !important; height: 36px !important; }
    .zcj-cat-motif svg { width: 36px !important; height: 36px !important; }
    .zcj-category-body .zcj-step-text { left: 62px !important; right: 62px !important; }
    .zcj-category-body .zcj-folk-motive { left: 18px !important; }
}
/* ── END ZIP chapter refinement v2 ───────────────────────────────────────── */

/* ── ZIP chapter refinement v3: requested follow-up changes ─────────────── */
/* Dashboard: place case manager next to timeline, as a compact side panel. */
.zcj-dash-top {
    margin-bottom: 14px !important;
}
.zcj-dash-main-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 210px !important;
    gap: 22px !important;
    align-items: stretch !important;
    margin-top: 10px !important;
}
.zcj-dash-main-row .zcj-milestones {
    min-width: 0 !important;
}
.zcj-dash-manager-card {
    border-left: 1px solid #e7e1dd !important;
    padding-left: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
}
.zcj-dash-manager-card .zcj-dash-manager-label {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #2f3746 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-bottom: 4px !important;
}
.zcj-dash-manager-card .zcj-dash-manager-photo {
    width: 72px !important;
    height: 72px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: #f4ebe7 !important;
}
.zcj-dash-manager-card .zcj-dash-manager-initials {
    background: #f4ebe7 !important;
    color: #c03b2b !important;
}
.zcj-dash-manager-card .zcj-dash-manager-info {
    text-align: center !important;
}
.zcj-dash-manager-card .zcj-dash-manager-info strong {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
}
.zcj-dash-manager-card .zcj-dash-manager-info span {
    display: block !important;
    margin-top: 2px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    word-break: break-word !important;
}

/* Milestone icons: match the screenshot style with outline circles and icons. */
.zcj-ms-circle,
.zcj-ms-circle svg.zcj-ms-svg {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    color: #aeb4bf !important;
}
.zcj-ms-done .zcj-ms-circle,
.zcj-ms-done .zcj-ms-svg { color: #2ca84a !important; }
.zcj-ms-active .zcj-ms-circle,
.zcj-ms-active .zcj-ms-svg { color: #d0342c !important; }
.zcj-ms-future .zcj-ms-circle,
.zcj-ms-future .zcj-ms-svg { color: #aeb4bf !important; }
.zcj-ms-connector {
    top: 24px !important;
    left: calc(50% + 24px) !important;
    width: calc(100% - 48px) !important;
    height: 2px !important;
    background: #cbd0d8 !important;
}
.zcj-ms-connector-done { background: #2ca84a !important; }
.zcj-ms-label {
    margin-top: 9px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    max-width: 116px !important;
    color: #2f3746 !important;
}
.zcj-ms-status {
    font-size: 11px !important;
    margin-top: 7px !important;
}

/* Progress bubble: do not let the number wrap or look cramped. */
.zcj-progress-container {
    padding-right: 84px !important;
}
.zcj-progress-badge {
    min-width: 62px !important;
    height: 42px !important;
    padding: 0 14px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Chapter rows: A/B/C/D is part of the title, motifs alternate left, all text truly centred. */
.zcj-category-header {
    min-height: 70px !important;
    padding: 12px 72px 12px 86px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border-bottom: 1px solid #eceff3 !important;
}
.zcj-cat-title {
    position: absolute !important;
    left: 86px !important;
    right: 86px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: block !important;
    text-align: center !important;
    font-family: inherit !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 850 !important;
    color: #2f3746 !important;
    letter-spacing: -0.01em !important;
}
.zcj-cat-motif {
    left: 28px !important;
    width: 40px !important;
    height: 40px !important;
}
.zcj-cat-motif svg {
    width: 40px !important;
    height: 40px !important;
}
.zcj-cat-arrow {
    right: 28px !important;
    color: #c03b2b !important;
}

/* Sub-accordions: use the matching category motif and keep row labels centered. */
.zcj-category-body .step-title.zcj-toggle {
    min-height: 50px !important;
    padding: 10px 82px !important;
    justify-content: center !important;
}
.zcj-category-body .zcj-step-text {
    position: absolute !important;
    left: 86px !important;
    right: 86px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #374151 !important;
}
.zcj-category-body .zcj-folk-motive {
    left: 28px !important;
    width: 26px !important;
    height: 26px !important;
    opacity: .5 !important;
}
.zcj-category-body .step .zcj-arrow,
.zcj-category-body .step-title.zcj-toggle > .zcj-arrow {
    right: 28px !important;
}
.zcj-category-body .zcj-stage-badge,
.zcj-category-body .step-title.zcj-toggle > [title="Locked"] {
    right: 62px !important;
}

/* Drop the separate Show Drop Zone control entirely. */
.zcj-dz-toggle,
.zcj-dz-fade {
    display: none !important;
}
.zcj-drop-zone-wrapper {
    max-height: none !important;
    overflow: visible !important;
}

/* Email preferences: fully separate utility card, less prominent than journey chapters. */
.zcj-email-prefs-step {
    margin: 48px 0 28px !important;
    border: 1px solid #edf0f3 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background: #fcfcfc !important;
    opacity: .82 !important;
    overflow: hidden !important;
    clear: both !important;
}
.zcj-email-prefs-step .step-title.zcj-toggle {
    min-height: 38px !important;
    padding: 8px 48px !important;
    background: #fcfcfc !important;
    border: 0 !important;
}
.zcj-email-prefs-step .zcj-step-text {
    font-size: 11px !important;
    font-weight: 650 !important;
    color: #7b8492 !important;
    text-align: center !important;
}
.zcj-email-prefs-step .zcj-arrow {
    color: #9aa3af !important;
}

@media (max-width: 860px) {
    .zcj-dash-main-row {
        grid-template-columns: 1fr !important;
    }
    .zcj-dash-manager-card {
        border-left: 0 !important;
        border-top: 1px solid #e7e1dd !important;
        padding-left: 0 !important;
        padding-top: 16px !important;
    }
}
@media (max-width: 760px) {
    .zcj-category-header { padding-left: 66px !important; padding-right: 54px !important; }
    .zcj-cat-title { left: 66px !important; right: 54px !important; font-size: 18px !important; }
    .zcj-cat-motif { left: 18px !important; width: 34px !important; height: 34px !important; }
    .zcj-cat-motif svg { width: 34px !important; height: 34px !important; }
    .zcj-category-body .zcj-step-text { left: 62px !important; right: 58px !important; }
    .zcj-category-body .zcj-folk-motive { left: 20px !important; }
}
/* ── END ZIP chapter refinement v3 ─────────────────────────────────────── */

/* ── REFERRAL HEADER ─────────────────────────────────────────────────────────── */
.zcj-referral-header {
    background: linear-gradient(135deg, #c9a227, #e8c84a) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 20px !important;
    min-height: 64px !important;
    position: relative !important;
}
.zcj-referral-motif {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 24px;
    opacity: 0.85;
    position: relative; z-index: 1;
}
.zcj-referral-motif svg {
    width: 56px;
    height: 24px;
}
.zcj-referral-header .zcj-step-text {
    position: absolute !important;
    left: 0; right: 0;
    text-align: center !important;
    font-weight: 700;
    font-size: 16px;
    color: #5c3a00;
    pointer-events: none;
}
.zcj-referral-header .zcj-arrow {
    color: #5c3a00 !important;
    font-size: 14px;
    flex-shrink: 0;
    margin-left: auto;
    position: relative; z-index: 1;
}

/* ── MILESTONE ICONS: green fill when done ───────────────────────────────────── */
.zcj-ms-done .zcj-ms-circle,
.zcj-ms-done .zcj-ms-svg {
    color: #3aaa35 !important;
    stroke: #3aaa35 !important;
}
.zcj-ms-done .zcj-ms-svg circle,
.zcj-ms-done .zcj-ms-svg path {
    stroke: #3aaa35 !important;
}
/* Fill the done milestone circle */
.zcj-ms-done .zcj-ms-svg > circle:first-child {
    fill: #3aaa35 !important;
    stroke: #3aaa35 !important;
}
.zcj-ms-done .zcj-ms-svg path {
    stroke: #fff !important;
}

/* ── HERO/WRAPPER TOP GAP ────────────────────────────────────────────────────── */
.wrapper {
    margin-top: 0 !important;
}
/* ── END ADDITIONS ───────────────────────────────────────────────────────────── */

/* Ensure the drop zone wrapper inside cat body doesn't lose step borders */
.zcj-category-body .zcj-drop-zone-wrapper {
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}
/* Other Evidence — ensure it always has a visible border like other steps */
.step.zcj-collapsible[data-step="6"] {
    border-top: 1px solid #e5e7eb !important;
}

/* Email Preferences — flush with neighbours */
.zcj-email-prefs-step {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
