/* ============================================================
   One Capital Limited — Careers Portal Styles
   ============================================================ */

:root {
  --oc-blue: #0463d7;
  --oc-navy: #062d79;
  --oc-green: #89bb57;
  --oc-paper: #f7f8f5;
  --oc-ink: #08265c;
  --oc-line: #dbe2df;
  --oc-soft-bg: #eef4f1;
}

/* Page Layout */
.careers-page {
  background: var(--oc-paper);
  color: var(--oc-ink);
  min-height: 100vh;
}

/* Hide breadcrumbs on careers page */
.careers-page .seo-breadcrumb,
.seo-breadcrumb:has(+ .careers-hero) {
  display: none !important;
}

/* Hero Section */
.careers-hero {
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(137, 187, 87, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(4, 99, 215, 0.08) 0%, transparent 50%),
              var(--oc-paper);
  border-bottom: 1px solid var(--oc-line);
}

.careers-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.careers-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oc-blue);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.careers-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--oc-blue);
}

.careers-hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--oc-navy);
  margin: 0 0 24px;
  font-weight: 800;
}

.careers-hero h1 em {
  font-style: normal;
  color: var(--oc-green);
}

.careers-hero-desc {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: #4a5c76;
  max-width: 760px;
  margin: 0 0 32px;
}

.careers-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.careers-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--oc-line);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #3b4d66;
  box-shadow: 0 2px 6px rgba(6, 45, 121, 0.03);
}

.careers-pill i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oc-green);
}

/* Main Content Area */
.careers-content-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
}

/* Filter Bar */
.careers-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.dept-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dept-btn {
  border: 1px solid var(--oc-line);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  color: #55667e;
  transition: all 0.2s ease;
}

.dept-btn:hover {
  border-color: var(--oc-blue);
  color: var(--oc-navy);
}

.dept-btn.active {
  background: var(--oc-navy);
  color: #fff;
  border-color: var(--oc-navy);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 36px;
  border: 1px solid var(--oc-line);
  border-radius: 100px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--oc-ink);
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--oc-blue);
  box-shadow: 0 0 0 3px rgba(4, 99, 215, 0.12);
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.5;
}

/* Job Cards Grid */
.careers-grid {
  display: grid;
  gap: 20px;
}

.public-job-card {
  background: #fff;
  border: 1px solid var(--oc-line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.public-job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 45, 121, 0.08);
  border-color: #cbd8d3;
}

.job-card-details h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--oc-navy);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 700;
}

.job-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.job-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: #eef4f0;
  color: #3b6623;
}

.job-badge.dept {
  background: #eef3fb;
  color: #0b51b7;
}

.job-badge.type {
  background: #f4f5f8;
  color: #55667e;
}

.job-card-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #64738a;
  margin-bottom: 12px;
}

.job-card-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.job-card-summary {
  font-size: 15px;
  line-height: 1.55;
  color: #4b5d78;
  margin: 0;
  max-width: 680px;
}

.job-card-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.btn-apply {
  background: var(--oc-blue);
  color: #fff;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-apply:hover {
  background: var(--oc-navy);
  transform: translateX(2px);
}

.btn-details {
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--oc-blue);
  cursor: pointer;
  padding: 4px;
}
.btn-details:hover {
  text-decoration: underline;
}

/* Empty State / Talent Pool Card */
.talent-pool-card {
  background: linear-gradient(135deg, #ffffff 0%, #f4f9f4 100%);
  border: 1px dashed #a8c4b0;
  border-radius: 8px;
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  max-width: 720px;
  margin: 20px auto 0;
}

.talent-pool-card h3 {
  font-size: 24px;
  color: var(--oc-navy);
  margin: 0 0 10px;
}

.talent-pool-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #55667e;
  margin: 0 0 24px;
}

/* ============================================================
   Job Detail Modal
   ============================================================ */
.job-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(6, 45, 121, 0.45);
  backdrop-filter: blur(4px);
  place-items: center;
  padding: 20px;
}

.job-detail-overlay.open {
  display: grid;
}

.job-detail-card {
  background: #fff;
  width: min(720px, 94vw);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(6, 45, 121, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.job-detail-header {
  padding: 24px 28px;
  background: #f8fafc;
  border-bottom: 1px solid var(--oc-line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.job-detail-header h2 {
  font-size: 24px;
  color: var(--oc-navy);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.job-detail-body {
  padding: 28px;
  overflow-y: auto;
  line-height: 1.6;
  color: #3b4d66;
  font-size: 15px;
}

.job-detail-body h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oc-blue);
  margin: 20px 0 8px;
}

.job-detail-body p {
  white-space: pre-wrap;
  margin: 0 0 16px;
}

.job-detail-footer {
  padding: 18px 28px;
  background: #f8fafc;
  border-top: 1px solid var(--oc-line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

/* ============================================================
   Application Wizard (Multi-step)
   ============================================================ */
.application-wizard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 45, 121, 0.55);
  backdrop-filter: blur(8px);
  place-items: center;
  padding: clamp(12px, 3vw, 24px);
  overflow-y: auto;
}

.application-wizard-overlay.open {
  display: grid;
}

.wizard-card {
  background: #fff;
  width: min(780px, 100%);
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(6, 45, 121, 0.35);
  overflow: hidden;
  margin: auto;
  display: flex;
  flex-direction: column;
  animation: wizardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizardPop {
  from { opacity: 0; transform: scale(0.97) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wizard-header {
  padding: 22px 30px;
  background: var(--oc-navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.wizard-header-info span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oc-green);
  display: block;
  margin-bottom: 4px;
}

.wizard-header-info h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.wizard-close-btn {
  background: rgba(255,255,255,0.12);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.wizard-close-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* Stepper Progress Indicator */
.wizard-stepper {
  background: #f8fafc;
  border-bottom: 1px solid var(--oc-line);
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #8c9cb0;
  position: relative;
  z-index: 2;
}

.wizard-step-node .node-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #8c9cb0;
  transition: all 0.2s;
}

.wizard-step-node.active {
  color: var(--oc-blue);
}
.wizard-step-node.active .node-circle {
  background: var(--oc-blue);
  border-color: var(--oc-blue);
  color: #fff;
}

.wizard-step-node.completed {
  color: var(--oc-navy);
}
.wizard-step-node.completed .node-circle {
  background: var(--oc-green);
  border-color: var(--oc-green);
  color: #fff;
}

/* Form Body */
.wizard-form-body {
  padding: clamp(20px, 3.5vw, 32px) clamp(20px, 4vw, 36px);
  max-height: 65vh;
  overflow-y: auto;
}

.wizard-step-pane {
  display: none;
  animation: stepFade 0.2s ease;
}

.wizard-step-pane.active {
  display: block;
}

@keyframes stepFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-instruction {
  font-size: 14px;
  color: #55667e;
  margin: 0 0 20px;
  line-height: 1.5;
}

.wizard-field-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
}

.wizard-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.wizard-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #55667e;
  margin-bottom: 6px;
}

.wizard-field input,
.wizard-field select,
.wizard-field textarea {
  border: 1px solid var(--oc-line);
  border-radius: 5px;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  color: var(--oc-ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wizard-field input:focus,
.wizard-field select:focus,
.wizard-field textarea:focus {
  outline: none;
  border-color: var(--oc-blue);
  box-shadow: 0 0 0 3px rgba(4, 99, 215, 0.12);
}

.wizard-field small {
  font-size: 11px;
  color: #7b8ea5;
  margin-top: 4px;
}

/* Cloudflare Drag & Drop CV Dropzone */
.cv-dropzone {
  border: 2px dashed #b7cdd7;
  background: #f9fbfd;
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.cv-dropzone:hover,
.cv-dropzone.dragover {
  border-color: var(--oc-blue);
  background: #eef6ff;
}

.cv-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.cv-dropzone-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.cv-dropzone strong {
  display: block;
  font-size: 15px;
  color: var(--oc-navy);
  margin-bottom: 4px;
}

.cv-dropzone span {
  font-size: 13px;
  color: #64738a;
}

.cv-selected-card {
  display: none;
  background: #edf6ee;
  border: 1px solid #b7ddba;
  border-radius: 6px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cv-selected-card.visible {
  display: flex;
}

.cv-selected-meta strong {
  display: block;
  font-size: 14px;
  color: #1b4d21;
}

.cv-selected-meta span {
  font-size: 12px;
  color: #436b48;
}

.cv-remove-btn {
  background: transparent;
  border: 0;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Review Summary Box in Step 4 */
.wizard-summary-box {
  background: #f8fafc;
  border: 1px solid var(--oc-line);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
  font-size: 13px;
}

.wizard-summary-box h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oc-blue);
}

.summary-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  color: #4b5d78;
}

.summary-rows div strong {
  color: var(--oc-ink);
}

.wizard-declaration {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #55667e;
  line-height: 1.4;
  margin-bottom: 10px;
}

.wizard-declaration input {
  margin-top: 3px;
}

/* Footer / Actions */
.wizard-footer {
  padding: 18px 30px;
  background: #f8fafc;
  border-top: 1px solid var(--oc-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-secondary {
  border: 1px solid var(--oc-line);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #55667e;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: #f1f5f9;
  color: var(--oc-navy);
}

.btn-primary {
  border: 0;
  background: var(--oc-blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--oc-navy);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success Confirmation Card */
.wizard-success-state {
  display: none;
  text-align: center;
  padding: 40px 24px;
}

.wizard-success-state.visible {
  display: block;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.wizard-success-state h3 {
  font-size: 26px;
  color: var(--oc-navy);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.wizard-success-state p {
  font-size: 15px;
  color: #55667e;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 24px;
}

.ref-code-box {
  display: inline-block;
  background: #f1f5f9;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--oc-navy);
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  .public-job-card {
    grid-template-columns: 1fr;
  }
  .job-card-cta {
    align-items: flex-start;
    flex-direction: row;
  }
  .wizard-field-grid-2,
  .summary-rows {
    grid-template-columns: 1fr;
  }
  .wizard-stepper span.step-title {
    display: none;
  }
}
