/* =========================================================
   Create Job — page-specific styles
   Reuses tokens from style.css (:root)
   ========================================================= */

body.cj-page {
  background: #EDEFF3;
  min-height: 100vh;
}

.cj-shell {
  max-width: 1240px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(11, 59, 54, 0.06);
}

/* =========================================================
   Top bar
   ========================================================= */
.cj-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid #ECEEF1;
}

.cj-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cj-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #E4E7EB;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}

.cj-icon-btn:hover {
  background: #F5F7F8;
  border-color: #D9DEE3;
}

.cj-icon-btn-dark {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.cj-icon-btn-dark:hover {
  background: #0f4a43;
}

.cj-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cj-brand .scribble-oval {
  width: 30px;
  height: 20px;
}

.cj-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}

.cj-divider {
  width: 1px;
  height: 22px;
  background: #E4E7EB;
}

.cj-page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.cj-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cj-btn-ghost {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #E4E7EB;
  background: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  transition: background .15s ease;
}

.cj-btn-ghost:hover {
  background: #F5F7F8;
}

/* =========================================================
   Body layout
   ========================================================= */
.cj-body {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 0;
  padding: 32px;
  align-items: start;
}

/* Step sidebar */
.cj-steps {
  padding-right: 24px;
}

.cj-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.cj-steps-list::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: 20px;
  width: 1.5px;
  background: #E4E7EB;
}

.cj-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  z-index: 1;
}

.cj-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #fff;
  border: 1.5px solid #D9DEE3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cj-step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-400);
}

.cj-step.is-active .cj-step-dot {
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(34, 197, 122, 0.18);
}

.cj-step.is-active .cj-step-label {
  color: var(--ink);
  font-weight: 700;
}

.cj-step.is-done .cj-step-dot {
  border-color: var(--mint);
  background: var(--mint);
}

.cj-step.is-done .cj-step-label {
  color: var(--ink);
  font-weight: 600;
}

.cj-step.is-done .cj-step-dot svg,
.cj-step.is-active .cj-step-dot svg {
  display: block;
}

.cj-step-dot svg {
  display: none;
}

/* Main form column */
.cj-form {
  padding: 0 28px;
  max-width: 700px;
}

.cj-card {
  border: 1px solid #ECEEF1;
  border-radius: 16px;
  padding: 26px 26px 30px;
  margin-bottom: 22px;
}

.cj-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.cj-card-head h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}

.cj-check-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cj-check-badge.is-pending {
  background: #EDEFF3;
}

.cj-field {
  margin-bottom: 20px;
}

.cj-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 7px;
}

.cj-field input[type="text"],
.cj-field input[type="tel"],
.cj-field input[type="password"],
.cj-field input[type="email"],
.cj-field input[type="number"],
.cj-field input[type="date"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #E4E7EB;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cj-field input[type="text"]::placeholder,
.cj-field input[type="tel"]::placeholder,
.cj-field input[type="password"]::placeholder,
.cj-field input[type="email"]::placeholder,
.cj-field input[type="number"]::placeholder,
.cj-field input[type="date"]::placeholder {
  color: var(--gray-400);
}

.cj-field input[type="text"]:focus,
.cj-field input[type="tel"]:focus,
.cj-field input[type="password"]:focus,
.cj-field input[type="email"]:focus,
.cj-field input[type="number"]:focus,
.cj-field input[type="date"]:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(34, 197, 122, 0.15);
}

.cj-select {
  position: relative;
}

.cj-select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--gray-400);
  border-bottom: 1.6px solid var(--gray-400);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.cj-select select {
  width: 100%;
  padding: 10px 34px 10px 14px;
  border-radius: 10px;
  border: 1px solid #E4E7EB;
  font-size: 0.92rem;
  color: var(--gray-600) !important;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cj-select select.is-placeholder,
.cj-select select:has(option:checked[value=""]) {
  color: var(--gray-400);
}

.cj-select select:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(34, 197, 122, 0.15);
}

.cj-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cj-toggle-group {
  display: flex;
  gap: 12px;
}

.cj-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid #E4E7EB;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.cj-toggle.is-active {
  border-color: var(--mint);
  color: var(--teal-dark);
  background: var(--mint-light);
}

.cj-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 26px;
  margin-top: -4px;
  user-select: none;
}

.cj-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cj-checkbox-box {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #D9DEE3;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.cj-checkbox input:checked+.cj-checkbox-box {
  background: var(--mint);
  border-color: var(--mint);
}

.cj-checkbox input:checked+.cj-checkbox-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

.cj-checkbox input:focus-visible+.cj-checkbox-box {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.cj-subhead {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  margin: 6px 0 18px;
}

/* Note panel */
.cj-note {
  padding-left: 28px;
}

.cj-note-card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 20px;
}

.cj-note-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.cj-note-body {
  font-size: 0.83rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   Footer actions
   ========================================================= */
.cj-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-top: 1px solid #ECEEF1;
  position: sticky;
  bottom: 0;
  background: #fff;
}

.cj-btn-text {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gray-600);
  padding: 10px 6px;
}

.cj-btn-text:hover {
  color: var(--ink);
}

.cj-continue {
  padding: 12px 22px;
  font-size: 0.92rem;
}

.cj-continue .arrow {
  margin-left: 2px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .cj-body {
    grid-template-columns: 190px 1fr;
  }

  .cj-note {
    grid-column: 1 / -1;
    padding-left: 0;
    margin-top: 24px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .cj-note-card {
    max-width: 620px;
  }
}

@media (max-width: 800px) {
  .cj-topbar {
    padding: 14px 18px;
  }

  .cj-btn-ghost span {
    display: none;
  }

  .cj-body {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .cj-steps {
    padding-right: 0;
  }

  .cj-steps-list {
    display: flex;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 6px;
  }

  .cj-steps-list::before {
    display: none;
  }

  .cj-step {
    flex: 0 0 auto;
    padding: 6px 0;
  }

  .cj-form {
    padding: 0;
    max-width: none;
  }

  .cj-note {
    margin-top: 0;
  }

  .cj-actions {
    padding: 14px 18px;
  }
}

@media (max-width: 520px) {
  .cj-grid-2 {
    grid-template-columns: 1fr;
  }

  .cj-card {
    padding: 20px 18px 24px;
  }
}

/* =========================================================
   Multi-step panels
   ========================================================= */
.cj-panel {
  display: none;
}

.cj-panel.is-visible {
  display: block;
}

.cj-field-last {
  margin-bottom: 0;
}

.cj-card-note {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin: -10px 0 18px;
}

/* Textareas (Job Requirement) */
.cj-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #E4E7EB;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.55;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cj-field textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(34, 197, 122, 0.15);
}

/* Tag / chip inputs (skills) */
.cj-tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E4E7EB;
  background: #fff;
}

.cj-tag-input:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(34, 197, 122, 0.15);
}

.cj-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--mint-light);
  color: var(--teal-dark);
  font-size: 0.83rem;
  font-weight: 600;
}

.cj-tag.is-outline {
  background: #fff;
  border: 1.5px solid #E4E7EB;
  color: var(--gray-600);
}

.cj-tag-remove {
  border: none;
  background: none;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  padding: 0 0 0 2px;
}

.cj-tag-remove:hover {
  opacity: 1;
}

.cj-tag-field {
  flex: 1;
  min-width: 160px;
  border: none;
  outline: none;
  font-size: 0.88rem;
  padding: 6px 4px;
  color: var(--ink);
}

.cj-tag-field::placeholder {
  color: var(--gray-400);
}

/* Rows shared by stages / criteria / questions */
.cj-stage-row,
.cj-criteria-row,
.cj-question-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F3F5;
}

.cj-stage-row:last-child,
.cj-criteria-row:last-child,
.cj-question-row:last-child {
  border-bottom: none;
}

.cj-drag-handle {
  color: var(--gray-400);
  font-size: 1rem;
  cursor: grab;
  flex: 0 0 auto;
  user-select: none;
}

.cj-stage-name,
.cj-criteria-name,
.cj-question-text {
  flex: 1;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid #E4E7EB;
  font-size: 0.9rem;
  color: var(--ink);
  min-width: 0;
}

.cj-stage-name:focus,
.cj-criteria-name:focus,
.cj-question-text:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(34, 197, 122, 0.15);
}

.cj-select-sm select {
  padding: 9px 30px 9px 12px;
  font-size: 0.86rem;
  min-width: 140px;
}

.cj-row-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #F1F3F5;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}

.cj-row-remove:hover {
  background: #FFE1D2;
  color: var(--coral);
}

.cj-add-row {
  margin-top: 16px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1.5px dashed #D9DEE3;
  background: #fff;
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.cj-add-row:hover {
  border-color: var(--mint);
  color: var(--teal-dark);
  background: var(--bg-light);
}

/* Score card specifics */
.cj-weight-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--mint-light);
  color: var(--teal-dark);
}

.cj-weight-badge.is-off {
  background: #FFE1D2;
  color: var(--coral);
}

.cj-weight-input {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  border: 1px solid #E4E7EB;
  border-radius: 9px;
  padding: 0 10px;
}

.cj-weight-input input {
  width: 42px;
  border: none;
  outline: none;
  padding: 9px 0;
  text-align: right;
  font-size: 0.9rem;
  color: var(--ink);
  -moz-appearance: textfield;
}

.cj-weight-input input::-webkit-outer-spin-button,
.cj-weight-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cj-weight-input span {
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* Evaluators */
.cj-evaluator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.cj-evaluator-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.cj-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
}

/* Application form field rows */
.cj-field-list {
  border-top: 1px solid #F1F3F5;
}

.cj-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #F1F3F5;
}

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

.cj-field-row-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.cj-toggle-group-sm .cj-toggle {
  padding: 6px 14px;
  font-size: 0.8rem;
}


/* =========================================================
   Card note / hint text
   ========================================================= */
.cj-card-note {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin: -12px 0 20px;
}

.cj-field-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin: 6px 0 0;
}

.cj-field-last {
  margin-bottom: 0;
}

/* =========================================================
   Geolocation search
   ========================================================= */
.cj-geo-search {
  position: relative;
}

.cj-geo-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cj-geo-pin {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.cj-geo-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1px solid #E4E7EB;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cj-geo-input-wrap input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(34, 197, 122, 0.15);
}

.cj-geo-suggestions {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E4E7EB;
  border-radius: 12px;
  box-shadow: 0 16px 32px -14px rgba(11, 59, 54, 0.25);
  max-height: 220px;
  overflow-y: auto;
}

.cj-geo-suggestions li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}

.cj-geo-suggestions li:hover,
.cj-geo-suggestions li.is-active {
  background: var(--bg-light);
}

.cj-geo-suggestions li .cj-geo-flag {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--mint);
  margin-top: 2px;
}

.cj-geo-suggestions .cj-geo-empty {
  color: var(--gray-400);
  cursor: default;
}

.cj-geo-suggestions .cj-geo-empty:hover {
  background: none;
}

.cj-map-preview {
  margin-top: 14px;
  border: 1px solid #ECEEF1;
  border-radius: 14px;
  overflow: hidden;
}

.cj-map-canvas {
  position: relative;
  height: 120px;
}

.cj-map-grid {
  width: 100%;
  height: 100%;
  display: block;
}

.cj-map-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 34px;
  transform: translate(-50%, -85%);
  filter: drop-shadow(0 6px 8px rgba(11, 59, 54, 0.25));
}

.cj-map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  gap: 10px;
}

.cj-map-pin-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.cj-map-coords {
  font-size: 0.76rem;
  color: var(--gray-400);
  white-space: nowrap;
}

/* =========================================================
   Tag input (skills)
   ========================================================= */
.cj-tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #E4E7EB;
  border-radius: 10px;
  background: #fff;
}

.cj-tag-input:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(34, 197, 122, 0.15);
}

.cj-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--mint-light);
  color: var(--teal-dark);
  white-space: nowrap;
}

.cj-tag.is-outline {
  background: #fff;
  border: 1.5px solid #E4E7EB;
  color: var(--gray-600);
}

.cj-tag-remove {
  border: none;
  background: none;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  padding: 0;
  cursor: pointer;
}

.cj-tag-remove:hover {
  opacity: 1;
}

.cj-tag-field {
  border: none;
  outline: none;
  flex: 1;
  min-width: 160px;
  font-size: 0.9rem;
  padding: 6px 2px;
  color: var(--ink);
}

/* =========================================================
   Stage / criteria / question rows
   ========================================================= */
.cj-stage-list,
.cj-criteria-list,
.cj-question-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cj-stage-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cj-drag-handle {
  color: var(--gray-400);
  cursor: grab;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.cj-stage-name,
.cj-criteria-name,
.cj-question-text {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #E4E7EB;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
}

.cj-stage-name:focus,
.cj-criteria-name:focus,
.cj-question-text:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(34, 197, 122, 0.15);
}

.cj-select-sm select {
  padding: 9px 30px 9px 12px;
  font-size: 0.86rem;
  min-width: 140px;
}

.cj-row-remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #E4E7EB;
  background: #fff;
  color: var(--gray-400);
  font-size: 1rem;
  flex: 0 0 auto;
  transition: all .15s ease;
}

.cj-row-remove:hover {
  background: #FFE1D2;
  border-color: #FFCBA8;
  color: var(--coral);
}

.cj-criteria-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cj-weight-input {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #E4E7EB;
  border-radius: 10px;
  padding: 0 10px;
  flex: 0 0 auto;
  width: 84px;
}

.cj-weight-input input {
  border: none;
  outline: none;
  width: 100%;
  padding: 9px 0;
  font-size: 0.9rem;
  text-align: right;
  color: var(--ink);
  -moz-appearance: textfield;
}

.cj-weight-input input::-webkit-outer-spin-button,
.cj-weight-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cj-weight-input span {
  color: var(--gray-400);
  font-size: 0.86rem;
}

.cj-weight-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--mint-light);
  color: var(--teal-dark);
}

.cj-weight-badge.is-off {
  background: #FFE1D2;
  color: var(--coral);
}

.cj-add-row {
  align-self: flex-start;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1.5px dashed #D9DEE3;
  background: none;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color .15s ease, color .15s ease;
}

.cj-add-row:hover {
  border-color: var(--mint);
  color: var(--teal-dark);
}

.cj-evaluator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.cj-evaluator-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid #ECEEF1;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}

.cj-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  flex: 0 0 auto;
}

textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #E4E7EB;
  font-size: 0.92rem;
  color: var(--ink);
  font-family: var(--font-body);
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(34, 197, 122, 0.15);
}

/* =========================================================
   Applicant field toggle rows
   ========================================================= */
.cj-field-list {
  display: flex;
  flex-direction: column;
}

.cj-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #F1F3F5;
}

.cj-field-row-last {
  border-bottom: none;
  padding-bottom: 0;
}

.cj-field-row-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.cj-toggle-group-sm .cj-toggle {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* =========================================================
   Document upload dropzones
   ========================================================= */
.cj-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cj-upload-field {
  position: relative;
}

.cj-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 20px 14px 16px;
  border: 1.5px dashed #D9DEE3;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  min-height: 118px;
  justify-content: center;
}

.cj-upload-box:hover {
  border-color: var(--mint);
  background: var(--bg-light);
}

.cj-upload-field.has-file .cj-upload-box {
  border-style: solid;
  border-color: var(--mint);
  background: var(--mint-light);
}

.cj-upload-icon {
  margin-bottom: 4px;
}

.cj-upload-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.cj-upload-sub {
  font-size: 0.74rem;
  color: var(--gray-400);
}

.cj-upload-filename {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
  word-break: break-all;
  margin-top: 2px;
}

.cj-upload-required {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FFE1D2;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cj-upload-field.has-file .cj-upload-required {
  background: var(--mint);
  color: #fff;
}

.cj-upload-clear {
  display: block;
  margin: 8px auto 0;
  border: none;
  background: none;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
}

/* =========================================================
   Radio groups (Gender / Job placement)
   ========================================================= */
.cj-radio-group {
  display: flex;
  gap: 22px;
  align-items: center;
  padding-top: 4px;
}

.cj-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.cj-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cj-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #D9DEE3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease;
}

.cj-radio-dot::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  transform: scale(0);
  transition: transform .12s ease;
}

.cj-radio input:checked+.cj-radio-dot {
  border-color: var(--mint);
}

.cj-radio input:checked+.cj-radio-dot::after {
  transform: scale(1);
}

.cj-radio input:focus-visible+.cj-radio-dot {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* =========================================================
   Responsive tweaks for new components
   ========================================================= */
@media (max-width: 640px) {
  .cj-upload-grid {
    grid-template-columns: 1fr;
  }

  .cj-radio-group {
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* =========================================================
   MOBILE RESPONSIVE OVERHAUL
   (appended last so it wins the cascade at each breakpoint)
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.cj-page {
  overflow-x: hidden;
}

.cj-shell {
  width: 100%;
}

.cj-body,
.cj-form,
.cj-card {
  min-width: 0;
}

img,
svg {
  max-width: 100%;
}

/* ---- Tablet / narrow desktop: single column, steps become a scroll strip ---- */
@media (max-width: 900px) {
  .cj-body {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 18px;
  }

  .cj-steps {
    padding-right: 0;
  }

  .cj-steps-list {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .cj-steps-list::before {
    display: none;
  }

  .cj-step {
    flex: 0 0 auto;
    padding: 4px 0;
    white-space: nowrap;
  }

  .cj-form {
    padding: 0;
    max-width: none;
  }

  .cj-note {
    padding-left: 0;
    margin-top: 4px;
  }

  .cj-note-card {
    max-width: none;
  }
}

/* ---- Phones ---- */
@media (max-width: 700px) {
  .cj-topbar {
    padding: 12px 16px;
  }

  .cj-topbar-left {
    gap: 10px;
  }

  .cj-page-title,
  .cj-divider {
    display: none;
  }

  .cj-btn-ghost {
    padding: 8px 10px;
  }

  .cj-btn-ghost span {
    display: none;
  }

  .cj-topbar-right {
    gap: 8px;
  }

  .cj-card {
    padding: 20px 16px 22px;
  }

  .cj-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cj-toggle-group {
    flex-wrap: wrap;
  }

  .cj-radio-group {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Applicant field rows: label above its toggle, toggle fills width */
  .cj-field-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cj-field-row .cj-toggle-group-sm {
    width: 100%;
  }

  .cj-field-row .cj-toggle-group-sm .cj-toggle {
    flex: 1;
    justify-content: center;
  }

  /* Stage rows: name/remove on top, reviewer select on its own full-width line */
  .cj-stage-row {
    display: grid;
    grid-template-columns: 22px 1fr 28px;
    grid-template-areas: "handle name remove" "select select select";
    row-gap: 8px;
    column-gap: 8px;
    align-items: center;
  }

  .cj-stage-row .cj-drag-handle {
    grid-area: handle;
  }

  .cj-stage-row .cj-stage-name {
    grid-area: name;
  }

  .cj-stage-row .cj-row-remove {
    grid-area: remove;
  }

  .cj-stage-row .cj-select-sm {
    grid-area: select;
  }

  .cj-stage-row .cj-select-sm select {
    width: 100%;
    min-width: 0;
  }

  /* Question rows: same pattern, no drag handle */
  .cj-question-row {
    display: grid;
    grid-template-columns: 1fr 28px;
    grid-template-areas: "name remove" "select select";
    row-gap: 8px;
    column-gap: 8px;
    align-items: center;
  }

  .cj-question-row .cj-question-text {
    grid-area: name;
  }

  .cj-question-row .cj-row-remove {
    grid-area: remove;
  }

  .cj-question-row .cj-select-sm {
    grid-area: select;
  }

  .cj-question-row .cj-select-sm select {
    width: 100%;
    min-width: 0;
  }

  .cj-upload-grid {
    grid-template-columns: 1fr;
  }

  .cj-map-caption {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .cj-actions {
    padding: 14px 16px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 420px) {
  .cj-brand-text {
    font-size: 0.92rem;
  }

  .cj-body {
    padding: 14px;
  }

  .cj-card {
    padding: 18px 14px 20px;
  }

  .cj-continue {
    padding: 11px 16px;
    font-size: 0.86rem;
  }

  .cj-btn-text {
    font-size: 0.86rem;
  }

  .cj-weight-input {
    width: 72px;
  }

  .cj-evaluator-chip {
    font-size: 0.8rem;
  }
}

/* ---- Keep inputs at 16px on touch screens so iOS Safari doesn't auto-zoom on focus ---- */
@media (max-width: 700px) {

  .cj-field input[type="text"],
  .cj-field input[type="email"],
  .cj-field input[type="tel"],
  .cj-field input[type="date"],
  .cj-field input[type="number"],
  .cj-field input[type="password"],
  .cj-select select,
  .cj-geo-input-wrap input,
  .cj-field textarea,
  textarea,
  .cj-tag-field,
  .cj-stage-name,
  .cj-criteria-name,
  .cj-question-text,
  .cj-weight-input input {
    font-size: 16px;
  }
}

/* =========================================================
   Fix: CSS Grid/Flex "automatic minimum size" overflow bug.
   Grid/flex items default to min-width:auto (their content's
   intrinsic width), which lets a wide child (e.g. the
   horizontally-scrolling step list) force its *parent track*
   to grow instead of scrolling internally. Explicitly zeroing
   min-width on every such item lets tracks honor 1fr/100% and
   pushes the overflow handling down to the intended scroller.
   ========================================================= */
.cj-body>*,
.cj-steps,
.cj-note,
.cj-grid-2>*,
.cj-toggle-group>*,
.cj-radio-group>*,
.cj-stage-row>*,
.cj-stage-row,
.cj-criteria-row>*,
.cj-criteria-row,
.cj-question-row>*,
.cj-question-row,
.cj-field-row>*,
.cj-upload-grid>*,
.cj-tag-input,
.cj-evaluator-list {
  min-width: 0;
}






/* Application review layout — new, page-specific, so nothing here
       fights create-job.css / style.css / Bootstrap. */
.cj-review-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cj-review-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #EEF1F0;
}

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

.cj-review-label {
  color: #6B7A78;
  font-size: 0.85rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.cj-review-value {
  color: #0F1B1A;
  font-size: 0.9rem;
  text-align: right;
  flex: 1 1 auto;
}

.cj-review-empty {
  color: #B7C0BE;
  font-style: italic;
}

.cj-review-subcard {
  border: 1px solid #E5E9E8;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.cj-review-subcard h5 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Required-field validation — page-specific classes, won't collide
       with anything already defined in create-job.css / style.css. */
.cj-has-error input,
.cj-has-error select,
.cj-has-error .cj-select select {
  border-color: #DC2626 !important;
}

.cj-upload-field.cj-has-error .cj-upload-box {
  border-color: #DC2626 !important;
}

.cj-field-error {
  display: block;
  color: #DC2626;
  font-size: 0.78rem;
  margin-top: 4px;
}

/* "Optional — can be added later" badge for Nursing/TB certificates,
       styled distinctly from the existing red "Required" badge. */
.cj-upload-optional {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0369A1;
  background: #E0F2FE;
  border-radius: 999px;
  padding: 2px 8px;
}

/* Banner shown when a saved draft is restored from localStorage. */
.cj-draft-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  color: #7C2D12;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.cj-draft-banner span.cj-draft-banner-text {
  flex: 1 1 260px;
}

.cj-draft-banner-close,
.cj-draft-banner-discard {
  border: 1px solid #FDBA74;
  background: #fff;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 0.78rem;
  color: #7C2D12;
}

.cj-draft-banner-close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.25rem;
}

#backBtn.is-disabled,
#backBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Profile photo — circular avatar upload/preview widget.
       Reuses the existing generic .cj-upload-field JS wiring (no JS
       changes needed); these rules only affect layout/visuals. */
.cj-avatar-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0F1B1A;
  margin-bottom: 0.5rem;
}

.cj-upload-field-photo {
  text-align: center;
}

.cj-upload-box.cj-avatar-circle {
  width: 116px !important;
  height: 96px !important;
  border-radius: 50% !important;
  border: 2px dashed #C9D2D0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  background: #F7F9F8 !important;
  cursor: pointer;
  padding: 0 !important;
  position: relative;
}

.cj-upload-field-photo.has-file .cj-upload-box.cj-avatar-circle {
  border-style: solid !important;
  border-color: #22C57A !important;
}

.cj-upload-field-photo .cj-upload-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block;
}

.cj-upload-field-photo.has-file .cj-upload-icon {
  display: none !important;
}

.cj-avatar-caption {
  display: block;
  font-size: 0.78rem;
  color: #6B7A78;
  margin-top: 0.5rem;
  max-width: 96px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cj-upload-field-photo .cj-upload-filename:empty {
  display: none;
}

.cj-avatar-remove {
  display: inline-block;
  margin-top: 0.35rem;
  border: none;
  background: transparent;
  color: #DC2626;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* States Licensed — multi-select combobox (50 US states). Self
       contained so it renders consistently regardless of what
       create-job.css / style.css define. */
.cj-state-select {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  border: 1px solid #D7DEDC;
  border-radius: 10px;
  padding: 8px 40px 8px 10px;
  background: #fff;
  cursor: pointer;
}

.cj-has-error .cj-state-select {
  border-color: #DC2626 !important;
}

.cj-state-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
}

.cj-state-tags .cj-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0B3D91;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.cj-state-tags .cj-tag-remove {
  border: none;
  background: transparent;
  color: #fff;
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.cj-state-tags .cj-tag-remove:hover {
  opacity: 1;
}

.cj-state-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.cj-state-chevron {
  transition: transform 0.15s ease;
}

.cj-state-toggle[aria-expanded="true"] .cj-state-chevron {
  transform: rotate(180deg);
}

.cj-state-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #D7DEDC;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 27, 26, 0.12);
  padding: 8px;
  cursor: default;
}

.cj-state-search {
  width: 100%;
  border: 1px solid #D7DEDC;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.cj-state-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.cj-state-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #0F1B1A;
  cursor: pointer;
}

.cj-state-option:hover {
  background: #F1F5F4;
}

.cj-state-option.is-selected {
  background: #E7EEFB;
  font-weight: 600;
}

.cj-state-check {
  width: 14px;
  display: inline-block;
  color: #0B3D91;
  font-weight: 700;
}

.cj-state-empty {
  padding: 6px 8px;
  color: #6B7A78;
  font-size: 0.82rem;
  font-style: italic;
}

/* "I have a Compact Nursing License (NLC)" checkbox */
.cj-checkbox-field {
  margin-top: 0.5rem;
}

.cj-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #0F1B1A;
  cursor: pointer;
  font-weight: 500;
}

.cj-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}