/* مرفقات نموذج «سجل معنا» — مناطق سحب/إفلات واضحة مع شريط تقدم */
.hub-reg-attach {
  margin: 8px 0 4px;
  padding: 16px 14px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 48%);
}

.hub-reg-attach h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #111827;
}

.hub-reg-attach-lead {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.hub-reg-drop {
  margin-bottom: 12px;
}

.hub-reg-drop-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 118px;
  padding: 18px 14px;
  border: 2px dashed #d1d5db;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.hub-reg-drop-face:hover,
.hub-reg-drop.is-dragover .hub-reg-drop-face {
  border-color: #9b1c1c;
  background: #fff7f7;
  transform: translateY(-1px);
}

.hub-reg-drop-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3f4f6;
  color: #9b1c1c;
  font-size: 1.2rem;
}

.hub-reg-drop-face strong {
  font-size: 1rem;
  font-weight: 900;
  color: #111827;
}

.hub-reg-drop-face small {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 36ch;
}

.hub-reg-drop-limit {
  display: block;
  margin-top: 2px;
  color: #9b1c1c;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.hub-reg-file-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hub-reg-file-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.hub-reg-file-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.hub-reg-file-thumb.is-icon {
  display: grid;
  place-items: center;
  color: #9b1c1c;
  background: #f3f4f6;
  font-size: 1.2rem;
}

.hub-reg-file-meta {
  min-width: 0;
}

.hub-reg-file-meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-reg-file-meta small {
  display: block;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 2px;
}

.hub-reg-file-progress {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.hub-reg-file-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #9b1c1c, #dc2626);
  transition: width 0.15s ease;
}

.hub-reg-file-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-reg-file-actions button {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.hub-reg-file-actions button.is-danger {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}

.hub-reg-file-item.is-error {
  border-color: #fecaca;
  background: #fff7f7;
}

.hub-reg-file-item.is-ok {
  border-color: #a7f3d0;
}

.hub-reg-attach-status {
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: #065f46;
}

.hub-reg-attach-status.is-error {
  color: #991b1b;
}

.hub-reg-success-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 800;
  line-height: 1.6;
}

.hub-reg-success-box code {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 900;
}

@media (max-width: 640px) {
  .hub-reg-file-item {
    grid-template-columns: auto 1fr;
  }

  .hub-reg-file-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hub-reg-drop-face {
    min-height: 104px;
  }
}
