/* ============================================================
   SANFORGE STUDIO - SHARED APPLICATION PROCESS
   This component is intentionally independent from job content.
   A job JSON only selects process_tier: 1, 2 or 3.
   ============================================================ */

#roleProcessPane .career-process-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#roleProcessPane .career-process-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

#roleProcessPane .career-process-heading .eyebrow {
  margin-bottom: 15px;
}

#roleProcessPane .career-process-heading h3 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.5vw, 40px);
}

#roleProcessPane .career-process-heading p {
  margin: 0;
  color: #8d8d8d;
  font-size: 14px;
  line-height: 1.7;
}

.career-process-shared {
  --process-node: 54px;
  position: relative;
  margin-top: 8px;
  padding: 0;
}

.career-process-shared-line {
  position: absolute;
  z-index: 0;
  top: calc(var(--process-node) / 2);
  bottom: calc(var(--process-node) / 2);
  left: calc(var(--process-node) / 2 - 1px);
  width: 2px;
  overflow: hidden;
  background: #2d2d2d;
  border-radius: 999px;
  pointer-events: none;
}

.career-process-shared-line > span {
  display: block;
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, #e30000, #8d0000);
  box-shadow: 0 0 12px rgba(227, 0, 0, .22);
  transition: height .34s cubic-bezier(.2, .75, .25, 1);
}

.career-process-shared-steps {
  position: relative;
  z-index: 1;
}

.career-process-shared-step {
  appearance: none;
  position: relative;
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: var(--process-node) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 0 0 22px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.career-process-shared-step:last-child {
  min-height: var(--process-node);
  padding-bottom: 0;
}

.career-process-shared-node {
  width: var(--process-node);
  height: var(--process-node);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid #3b3b3b;
  border-radius: 50%;
  background: #111;
  color: #737373;
  font-size: 15px;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.career-process-shared-step:hover .career-process-shared-node {
  border-color: #666;
  color: #fff;
}

.career-process-shared-copy {
  min-width: 0;
  padding-top: 3px;
}

.career-process-shared-number {
  display: block;
  margin-bottom: 4px;
  color: #e30000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.career-process-shared-title {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.career-process-shared-description {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows .24s ease,
    opacity .18s ease,
    margin-top .24s ease;
}

.career-process-shared-description > span {
  min-height: 0;
  overflow: hidden;
  display: block;
  max-width: 720px;
  color: #8d8d8d;
  font-size: 13px;
  line-height: 1.7;
}

.career-process-shared-step.is-active .career-process-shared-node {
  border-color: #e30000;
  background: #e30000;
  color: #fff;
  box-shadow: 0 8px 24px rgba(227, 0, 0, .2);
}

.career-process-shared-step.is-active .career-process-shared-title {
  color: #fff;
}

.career-process-shared-step.is-active .career-process-shared-description {
  grid-template-rows: 1fr;
  margin-top: 8px;
  opacity: 1;
}

.career-process-note {
  margin-top: 26px;
}

.career-process-actions {
  margin-top: 28px;
}

@media (max-width: 700px) {
  .career-process-shared {
    --process-node: 48px;
  }

  .career-process-shared-step {
    min-height: 104px;
    grid-template-columns: var(--process-node) minmax(0, 1fr);
    gap: 17px;
  }

  .career-process-shared-title {
    font-size: 16px;
  }
}


/* ============================================================
   CAREER TERMS / PRIVACY CHECKBOX
   Matches the custom checkbox used on the Contact page.
   ============================================================ */

.career-terms label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.career-terms input[type="checkbox"] {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.career-privacy-checkbox-ui {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  box-sizing: border-box;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.career-privacy-checkbox-ui::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -62%) rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 140ms ease;
}

.career-terms label:hover .career-privacy-checkbox-ui {
  border-color: rgba(227, 0, 0, 0.78);
  background: rgba(227, 0, 0, 0.08);
}

.career-terms input[type="checkbox"]:checked + .career-privacy-checkbox-ui {
  border-color: #e30000;
  background: #e30000;
  box-shadow: 0 0 0 3px rgba(227, 0, 0, 0.12);
}

.career-terms input[type="checkbox"]:checked + .career-privacy-checkbox-ui::after {
  transform: translate(-50%, -62%) rotate(-45deg) scale(1);
}

.career-terms input[type="checkbox"]:focus-visible + .career-privacy-checkbox-ui {
  outline: 2px solid rgba(227, 0, 0, 0.5);
  outline-offset: 3px;
}


/* ------------------------------------------------------------
   PROCESS PROGRESS STATES
   Every stage before the selected stage is shown as completed.
   Going backwards automatically returns later stages to default.
   ------------------------------------------------------------ */

.career-process-shared-step.is-complete .career-process-shared-node {
  border-color: #e30000;
  background: #e30000;
  color: #fff;
  box-shadow: 0 5px 18px rgba(227, 0, 0, .16);
}

.career-process-shared-step.is-complete .career-process-shared-number {
  color: #e30000;
}

.career-process-shared-step.is-complete:hover .career-process-shared-node {
  border-color: #e30000;
  background: #e30000;
  color: #fff;
}

/* Keep the currently selected stage slightly stronger than completed stages. */
.career-process-shared-step.is-active .career-process-shared-node {
  box-shadow:
    0 8px 24px rgba(227, 0, 0, .24),
    0 0 0 4px rgba(227, 0, 0, .06);
}


/* ============================================================
   CAREER MODAL SCROLLBAR
   Matches the Legal / Privacy Policy scrollbar styling.
   ============================================================ */

.career-modal-scroll {
  scrollbar-width: thin;
  scrollbar-color: #e30000 rgba(255, 255, 255, 0.05);
}

.career-modal-scroll::-webkit-scrollbar {
  width: 7px;
}

.career-modal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.career-modal-scroll::-webkit-scrollbar-thumb {
  background: #e30000;
  border-radius: 999px;
}

.career-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #ff1515;
}
