/* Sooqz Job Applications — zeta-compatible */

.szj-apply-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 8px 0;
  background: var(--mb-color-primary, #e31c23) !important;
  color: #fff !important;
  border: none;
  text-decoration: none !important;
  font-weight: 600;
}
.szj-apply-btn:hover { filter: brightness(0.95); color: #fff !important; text-decoration: none !important; }
.szj-apply-btn.szj-applied { background: #1e7a46 !important; }
.szj-apply-note {
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7e6;
  color: #8a5a00;
  font-size: 13px;
}
.szj-applicants-count {
  width: 100%;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mb-color7, #666);
  text-align: center;
}
.szj-applicants-count-page {
  text-align: left;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mb-color2, #2c2c2c);
}
html[dir="rtl"] .szj-applicants-count-page { text-align: right; }

#item-sticky-box .szj-apply-btn {
  width: auto;
  flex: 1 1 auto;
  margin: 0 4px;
  min-width: 120px;
}

.szj-page { max-width: 720px; }
.szj-page h1 { font-size: 22px; margin: 0 0 6px; }
.szj-job-title, .szj-intro { color: var(--mb-color7, #777); font-size: 15px; margin: 0 0 16px; font-weight: 500; }
.szj-back { margin: 0 0 12px; }
.szj-deadline { font-size: 13px; color: #8a5a00; margin: 0 0 16px; }

.szj-form .szj-field { margin: 0 0 14px; }
.szj-form label { display: block; font-weight: 600; margin: 0 0 6px; }
.szj-form label span { color: #e31c23; }
.szj-form input[type="text"],
.szj-form input[type="email"],
.szj-form input[type="tel"],
.szj-form input[type="url"],
.szj-form textarea,
.szj-form select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
}
.szj-form textarea { min-height: 120px; resize: vertical; }
.szj-form small { display: block; margin-top: 4px; color: #888; font-size: 12px; }
.szj-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--mb-color-primary, #e31c23);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.szj-tabs, .szj-job-pills, .szj-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.szj-tabs a, .szj-job-pills a, .szj-status-filters a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e3e6ea;
  border-radius: 999px;
  text-decoration: none;
  color: var(--mb-color2, #2c2c2c);
  background: #fff;
  font-size: 13px;
}
.szj-tabs a.active, .szj-job-pills a.active, .szj-status-filters a.active {
  background: var(--mb-color-primary, #e31c23);
  border-color: transparent;
  color: #fff;
}
.szj-tabs a span, .szj-job-pills a span {
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
}
.szj-tabs a.active span, .szj-job-pills a.active span { background: rgba(255,255,255,0.2); }

.szj-list { display: flex; flex-direction: column; gap: 10px; }
.szj-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  color: inherit;
}
.szj-card:hover { border-color: #ccc; text-decoration: none; }
.szj-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.szj-card-meta, .szj-card-date { color: #777; font-size: 13px; margin-top: 4px; }
.szj-empty { padding: 24px 8px; color: #777; }

.szj-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.szj-badge-pending { background: #eef6ff; color: #1d4f91; }
.szj-badge-viewed { background: #f3f4f6; color: #444; }
.szj-badge-shortlisted { background: #fff7e6; color: #8a5a00; }
.szj-badge-accepted { background: #e9f7ef; color: #1e7a46; }
.szj-badge-rejected { background: #fdecea; color: #a12622; }

.szj-detail { margin: 16px 0; }
.szj-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.szj-row span { width: 110px; color: #777; flex-shrink: 0; }
.szj-letter { background: #fafafa; border-radius: 8px; padding: 12px 14px; white-space: pre-wrap; }
.szj-files { list-style: none; padding: 0; margin: 0 0 16px; }
.szj-files li { margin: 0 0 8px; }

.szj-status-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.szj-status-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.szj-status-btn.active, .szj-status-accepted.active { background: #1e7a46; color: #fff; border-color: #1e7a46; }
.szj-status-shortlisted.active { background: #c47b00; color: #fff; border-color: #c47b00; }
.szj-status-rejected.active { background: #a12622; color: #fff; border-color: #a12622; }
.szj-withdraw { background: transparent; border: 1px solid #a12622; color: #a12622; border-radius: 8px; padding: 8px 12px; cursor: pointer; }

.szj-dash-nudge {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef6ff;
  border: 1px solid #d6e6fb;
}
.szj-dash-nudge a { font-weight: 600; text-decoration: none; }
.szj-user-item-apps { margin: 8px 0; font-size: 13px; }
.szj-user-item-apps a { font-weight: 600; }

.szj-listing-settings { margin: 8px 0 16px; padding-top: 8px; }
.szj-listing-settings h3 { margin: 0 0 6px; }
.szj-help { color: #777; font-size: 13px; margin: 0 0 10px; }

.szj-active #cv_uploader { display: none !important; }

html[dir="rtl"] .szj-row span { text-align: right; }
html[dir="rtl"] .szj-card-top { flex-direction: row-reverse; }
html[dir="rtl"] .szj-back { text-align: right; }
html[mode="dark"] .szj-card,
html[mode="dark"] .szj-form input,
html[mode="dark"] .szj-form textarea,
html[mode="dark"] .szj-form select { background: var(--mb-color12, #1c1c1c); border-color: #333; color: inherit; }
html[mode="dark"] .szj-letter { background: #222; }

@media (max-width: 760px) {
  .szj-page { max-width: 100%; }
  .szj-row { flex-direction: column; gap: 2px; }
  .szj-row span { width: auto; }
  #item-sticky-box .szj-apply-btn { min-width: 0; flex: 1 1 40%; }
}
