/* ============================================================
   site-v42.css — Button standardization + job detail popup (v2.2.0)
   Loaded LAST. Guarantees readable button hover states across the
   (now white) site, and styles the redesigned job detail modal.
   ============================================================ */

/* ── BUTTONS: one consistent, readable system everywhere ─── */
.btn { transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease, box-shadow .25s ease !important; }

/* Primary — solid blue, white text — in every context (hero, dark CTA, sticky, cards) */
.btn.btn-primary,
.hero .btn.btn-primary,
.cta-dark .btn.btn-primary,
.sticky-cta .btn.btn-primary,
.entry-employers .btn,
.page-hero .btn.btn-primary {
  background: #4F8EDC !important;
  color: #ffffff !important;
  border-color: #4F8EDC !important;
  box-shadow: 0 4px 14px -4px rgba(79,142,220,0.45) !important;
}
.btn.btn-primary:hover,
.hero .btn.btn-primary:hover,
.cta-dark .btn.btn-primary:hover,
.sticky-cta .btn.btn-primary:hover,
.entry-employers .btn:hover,
.page-hero .btn.btn-primary:hover {
  background: #3A73BD !important;
  color: #ffffff !important;
  border-color: #3A73BD !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px -6px rgba(58,115,189,0.55) !important;
}
.btn.btn-primary .arrow,
.btn.btn-primary:hover .arrow { color: #ffffff !important; }

/* Ghost — transparent w/ ink text; hover keeps text visible (blue) */
.btn.btn-ghost {
  background: transparent !important;
  color: #14213D !important;
  border: 1.5px solid rgba(20,33,61,0.22) !important;
}
.btn.btn-ghost:hover {
  background: rgba(79,142,220,0.08) !important;
  color: #3A73BD !important;
  border-color: #4F8EDC !important;
}

/* ── JOB DETAIL POPUP ──────────────────────────────────── */
.cj-job-modal .modal.cj-jm {
  max-width: 640px !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.cj-jm-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(20,33,61,0.12);
  background: #fff; color: #14213D;
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s; z-index: 3;
}
.cj-jm-close:hover { background: #f3f4f6; border-color: rgba(20,33,61,0.22); }

.cj-jm-head {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 32px 0;
}
.cj-jm-co {
  width: 46px; height: 46px; flex: none;
  border-radius: 10px;
  background: #4F8EDC; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.cj-jm-co-name { font-size: 14px; font-weight: 600; color: #14213D; display: flex; align-items: center; gap: 8px; }
.cj-jm-verified { font-size: 11px; font-weight: 500; color: #1F8A5B; }
.cj-jm-co-ind { font-size: 12px; color: #6B7280; margin-top: 2px; }

.cj-jm-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 22px !important; font-weight: 600 !important;
  color: #14213D !important; line-height: 1.2 !important;
  margin: 18px 32px 0 !important;
}
.cj-jm-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 32px 20px;
  border-bottom: 1px solid rgba(20,33,61,0.08);
}
.cj-jm-pills .pill {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: #F3F5F8; color: #14213D; border: 1px solid rgba(20,33,61,0.06);
  display: inline-flex; align-items: center; gap: 5px;
}
.cj-jm-pills .pill.blue { background: rgba(79,142,220,0.12); color: #3A73BD; border-color: rgba(79,142,220,0.2); }
.cj-jm-pills .pill.amber { background: rgba(217,119,87,0.10); color: #B45F3A; border-color: rgba(217,119,87,0.18); }

.cj-jm-body {
  flex: 1 1 auto; overflow-y: auto;
  padding: 22px 32px;
}
.cj-jm-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 15px !important; font-weight: 600 !important;
  color: #14213D !important; margin: 18px 0 8px !important;
}
.cj-jm-body h3:first-child { margin-top: 0 !important; }
.cj-jm-body p { font-size: 14px !important; line-height: 1.7 !important; color: #4B5563 !important; margin: 0 !important; }
.cj-jm-sub { color: #6B7280 !important; margin-bottom: 16px !important; }
.cj-jm-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.cj-jm-skills .pill { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(79,142,220,0.12); color: #3A73BD; }
.cj-jm-facts { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; font-size: 12px; color: #6B7280; }
.cj-jm-facts strong { color: #14213D; }

.cj-jm-foot {
  display: flex; gap: 12px;
  padding: 18px 32px 0;
  border-top: 1px solid rgba(20,33,61,0.08);
}
.cj-jm-foot .btn { flex: 1 1 0; justify-content: center; }
.cj-jm-apply { flex: 2 1 0 !important; }
.cj-jm-note { font-size: 11px; color: #9CA3AF; text-align: center; padding: 12px 32px 24px; margin: 0; }

/* Apply form */
.cj-form-sec {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important; font-weight: 600 !important;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #4F8EDC !important;
  margin: 4px 0 14px !important; padding-bottom: 8px;
  border-bottom: 1px solid rgba(20,33,61,0.08);
}
.cj-form-sec:not(:first-child) { margin-top: 28px !important; }
.cj-apply-form { display: flex; flex-direction: column; gap: 14px; }
.cj-apply-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: #14213D; }
.cj-apply-form input, .cj-apply-form textarea {
  font-size: 14px; padding: 10px 12px;
  border: 1px solid rgba(20,33,61,0.18); border-radius: 8px;
  background: #fff; color: #14213D; font-family: 'Source Sans 3', sans-serif;
}
.cj-apply-form input:focus, .cj-apply-form textarea:focus { outline: none; border-color: #4F8EDC; box-shadow: 0 0 0 3px rgba(79,142,220,0.15); }
.cj-af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cj-af-file input { padding: 8px; font-size: 13px; }
.cj-af-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 4px; }
.cj-af-actions .btn { flex: 1 1 0; justify-content: center; }
.cj-af-success { text-align: center; padding: 24px 12px; }
.cj-af-tick { width: 56px; height: 56px; border-radius: 50%; background: rgba(31,138,91,0.12); color: #1F8A5B; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .cj-job-modal .modal.cj-jm { max-width: 100% !important; max-height: calc(100vh - 20px) !important; }
  .cj-jm-head { padding: 24px 20px 0; }
  .cj-jm-title { margin: 14px 20px 0 !important; font-size: 20px !important; }
  .cj-jm-pills { padding: 12px 20px 16px; }
  .cj-jm-body { padding: 18px 20px; }
  .cj-jm-foot { flex-direction: column; padding: 16px 20px 0; }
  .cj-jm-foot .btn, .cj-jm-apply { flex: none !important; width: 100%; }
  .cj-jm-note { padding: 12px 20px 20px; }
  .cj-af-row { grid-template-columns: 1fr; }
}
