/* Talent Track — Public Apply Form Styles */
.tt-pub-jobs { max-width: 760px; margin: 0 auto 32px; }
.tt-pub-heading { font-size: 24px; font-weight: 700; margin: 0 0 20px; color: #1e293b; }

.tt-pub-job-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .15s;
}
.tt-pub-job-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.tt-pub-job-card.selected { border-color: #4f46e5; box-shadow: 0 0 0 2px rgba(79,70,229,.2); }

.tt-pub-job-title { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.tt-pub-job-meta  { font-size: 13px; color: #64748b; margin-bottom: 6px; }
.tt-pub-job-salary{ font-size: 13px; color: #059669; font-weight: 600; margin-bottom: 10px; }

.tt-pub-apply-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: #4f46e5; color: #fff;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  margin-top: 8px;
  transition: background .15s;
}
.tt-pub-apply-btn:hover { background: #4338ca; }

.tt-pub-form-section {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.tt-pub-job-desc { background: #f8fafc; border-radius: 8px; padding: 14px 16px; margin-bottom: 24px; font-size: 14px; color: #475569; }
.tt-pub-job-desc h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #1e293b; }
.tt-pub-job-desc p { margin: 0; }

.tt-pub-form { display: flex; flex-direction: column; gap: 18px; }

.tt-pub-field { display: flex; flex-direction: column; gap: 6px; }
.tt-pub-label { font-size: 13px; font-weight: 600; color: #1e293b; }

.tt-pub-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; color: #1e293b;
  outline: none; box-sizing: border-box;
  font-family: inherit;
  transition: border-color .15s;
}
.tt-pub-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
textarea.tt-pub-input { resize: vertical; min-height: 100px; }

.tt-pub-upload {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 2px dashed #e2e8f0; border-radius: 8px;
  cursor: pointer; color: #64748b; font-size: 13px;
  transition: border-color .15s;
}
.tt-pub-upload:hover { border-color: #4f46e5; color: #4f46e5; }

.tt-pub-link { font-size: 12px; color: #4f46e5; text-decoration: none; margin-top: 4px; }
.tt-pub-link:hover { text-decoration: underline; }

.tt-pub-error { color: #ef4444; font-size: 13px; font-weight: 500; background: #fee2e2; padding: 10px 14px; border-radius: 8px; }

.tt-pub-submit {
  padding: 12px 24px;
  background: #4f46e5; color: #fff;
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}
.tt-pub-submit:hover:not(:disabled) { background: #4338ca; }
.tt-pub-submit:disabled { opacity: .6; cursor: not-allowed; }

.tt-pub-success {
  text-align: center; padding: 32px 16px;
}
.tt-pub-success-icon { display:flex; justify-content:center; margin-bottom:14px; }
.tt-pub-success h3 { font-size: 22px; font-weight: 700; color: #1e293b; margin: 0 0 10px; }
.tt-pub-success p { color: #475569; margin: 0; font-size: 15px; }

.tt-pub-loading { text-align: center; padding: 40px; color: #64748b; }
.tt-pub-empty   { text-align: center; padding: 40px; color: #64748b; font-style: italic; }

/* ── Job listing search bar ── */
.tt-pub-jobs-bar {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap;
}
.tt-pub-search-wrap {
  position: relative; flex: 1; min-width: 180px; display: block;
}
.tt-pub-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  display: block;
  line-height: 0;
}
.tt-pub-search-wrap input[type="text"] {
  padding: 10px 30px;
}
.tt-pub-search {
  width: 100%; padding: 9px 12px 9px 36px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; outline: none; box-sizing: border-box;
  transition: border-color .15s; background: #fff; color: #111827;
}
.tt-pub-search:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.08); }
.tt-pub-dept-sel {
  padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; background: #fff; color: #374151;
  cursor: pointer; outline: none; flex-shrink: 0;
}
.tt-pub-dept-sel:focus { border-color: #4f46e5; }

/* ── Job card description + actions ── */
.tt-pub-job-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 8px 0 0;
  line-height: 1.6;
}
.tt-pub-job-actions {
  margin-top: 12px;
}
.tt-pub-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #4f46e5;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.tt-pub-read-more-btn:hover {
  background: #4f46e5;
  color: #fff;
}

/* ── Multi-section form layout ── */
.tt-pub-section-head {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #4f46e5;
  margin: 28px 0 14px; padding-bottom: 6px;
  border-bottom: 2px solid #eef2ff;
}
.tt-pub-section-head:first-child { margin-top: 0; }
.tt-pub-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 560px) { .tt-pub-two-col { grid-template-columns: 1fr; } }
.tt-pub-hint { font-size: 12px; color: #9ca3af; margin: 4px 0 0; }
.tt-pub-radio-group { display: flex; flex-wrap: wrap; gap: 16px; padding: 6px 0; }
.tt-pub-radio-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: #374151; cursor: pointer;
}
.tt-pub-radio-label input[type="radio"],
.tt-pub-radio-label input[type="checkbox"] { accent-color: #4f46e5; width: 15px; height: 15px; }
.tt-pub-consent { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 16px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .tt-pub-jobs { padding: 12px; }
  .tt-pub-two-col { grid-template-columns: 1fr; }
  .tt-pub-form { padding: 16px; }
  .tt-pub-section-head { margin: 20px 0 10px; }
}

/* ── Rich text content in job listings ── */
.tt-job-rich-content { line-height: 1.7; color: #374151; }
.tt-job-rich-content p  { margin: 0 0 10px; }
.tt-job-rich-content ul,
.tt-job-rich-content ol { margin: 0 0 10px; padding-left: 20px; }
.tt-job-rich-content li { margin-bottom: 4px; }
.tt-job-rich-content h1,
.tt-job-rich-content h2,
.tt-job-rich-content h3 { margin: 12px 0 6px; font-weight: 600; }
.tt-job-rich-content strong { font-weight: 600; }
.tt-job-rich-content a { color: #4f46e5; }

/* ── References section on public apply form ────────────────────────────── */
.tt-pub-ref-card { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.tt-pub-ref-card-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tt-pub-ref-card-title { font-size: 13px; font-weight: 600; color: #374151; }
.tt-pub-ref-remove { background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 16px; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.tt-pub-ref-remove:hover { color: #ef4444; background: #fef2f2; }
.tt-pub-ref-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.tt-pub-ref-field { display: flex; flex-direction: column; gap: 3px; }
.tt-pub-ref-field-lbl { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.tt-pub-ref-inp { width: 100%; }
.tt-pub-ref-add { display: inline-flex; align-items: center; gap: 6px; background: #eff6ff; color: #1d4ed8; border: 1px dashed #bfdbfe; border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 13px; font-weight: 500; margin-top: 4px; width: 100%; justify-content: center; }
.tt-pub-ref-add:hover { background: #dbeafe; }
.tt-pub-hint { font-size: 12px; color: #6b7280; margin: 2px 0 10px; }
@media (max-width: 540px) {
  .tt-pub-ref-row { grid-template-columns: 1fr; }
}

/* ── Job meta row on apply page ── */
.tt-job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 8px 0 18px;
}
.tt-job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}
.tt-job-meta-item .tt-icon {
  display: inline-flex;
  align-items: center;
  color: #6366f1;
  flex-shrink: 0;
}