/* ============================================================
   FutureU — career.css
   Career Compass styles — identical layout to survey.css
   Only difference: green (#1D9E75) → blue (#185FA5)
   Used by: career.html only
   ============================================================ */

/* ── Blue colour variables ──────────────────────────────────── */
:root {
  --career:       #185FA5;
  --career-light: #E6F1FB;
  --career-dark:  #0C447C;
}

/* ── Intro screen — same as survey intro ────────────────────── */
.career-intro {
  max-width: 520px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  text-align: center;
  border-bottom: 0.5px solid var(--border-subtle);
}



.career-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--career-light);
  color: var(--career-dark);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.career-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--career);
}

.career-intro-title {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.career-intro-title span {
  color: var(--career);
}

.career-intro-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.career-intro-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.career-stat {
  text-align: center;
}

.career-stat-num {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.career-stat-lbl {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.career-start-btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--career);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  margin-bottom: 14px;
}

.career-start-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 95, 165, 0.38);
}

/* ── Uni context question ───────────────────────────────────── */
.uni-ctx-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uni-ctx-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg-primary);
}

.uni-ctx-option input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--career);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.uni-ctx-option:hover {
  border-color: var(--career);
  background: var(--bg-secondary);
}

.uni-ctx-option.selected {
  border-color: var(--career);
  background: #EBF3FC;
}

.uni-ctx-option.selected .uni-ctx-option-title {
  color: #0C1A2E;
}

.uni-ctx-option.selected .uni-ctx-option-desc {
  color: #3A5068;
}

.uni-ctx-option-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.uni-ctx-option-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.uni-ctx-fresh .uni-ctx-option-title {
  color: var(--text-secondary);
  font-weight: 500;
}

.uni-ctx-fresh.selected .uni-ctx-option-title {
  color: #0C1A2E;
}

.career-intro-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 0;
  line-height: 1.5;
}

/* ── Survey wrapper ─────────────────────────────────────────── */
.career-survey-wrapper {
  max-width: 580px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  min-height: 70vh;
}

/* ── Progress bar ───────────────────────────────────────────── */
.career-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.career-progress-track {
  flex: 1;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.career-progress-fill {
  height: 4px;
  background: var(--career);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 0.35s ease;
}

.career-progress-label {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Step visibility ────────────────────────────────────────── */
.career-step {
  display: none;
}

.career-step.active {
  display: block;
  animation: careerSlideIn 0.22s ease both;
}

@keyframes careerSlideIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Step header ────────────────────────────────────────────── */
.career-step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--career-dark);
  background: var(--career-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.career-step-question {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.career-step-hint {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ── Options ────────────────────────────────────────────────── */
.career-options {
  margin-bottom: 28px;
}

.career-single-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.career-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.career-option {
  cursor: pointer;
  display: block;
}

.career-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.career-option-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px;
  background: var(--bg-primary);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, background 0.15s;
  min-height: 50px;
  justify-content: center;
}

.career-option:hover .career-option-inner {
  border-color: var(--career);
}

.career-option input:checked + .career-option-inner {
  border: 2px solid var(--career);
  background: var(--career-light);
}

.career-option input:checked + .career-option-inner .career-opt-title {
  color: var(--career-dark);
}

.career-option input:checked + .career-option-inner .career-opt-sub {
  color: var(--career-dark);
}

.career-opt-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}

.career-opt-sub {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}

/* ── Scale slider ───────────────────────────────────────────── */
.career-scale {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.career-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.career-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border-mid);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
}

.career-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--career);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.career-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--career);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.career-scale-value {
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  color: var(--career);
  margin-top: 14px;
}

/* ── Textarea ───────────────────────────────────────────────── */
.career-text {
  margin-bottom: 28px;
}

.career-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  outline: none;
  resize: vertical;
  line-height: 1.6;
  transition: border-color 0.15s;
}

.career-textarea:focus {
  border-color: var(--career);
}

.career-textarea::placeholder {
  color: var(--text-tertiary);
}

/* ── Select ─────────────────────────────────────────────────── */
.career-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%239c9a92' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color 0.15s;
}

.career-select:focus {
  border-color: var(--career);
}

/* ── Email step ─────────────────────────────────────────────── */
.career-email-step {
  margin-bottom: 28px;
}

.career-email-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
  line-height: 1.5;
}

.career-field-error {
  font-size: 11px;
  color: #A32D2D;
  margin-top: 5px;
  min-height: 16px;
}

/* ── Nav buttons ────────────────────────────────────────────── */
.career-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 0.5px solid var(--border-subtle);
  margin-top: 4px;
}

.btn-career-primary {
  font-size: 13px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  background: var(--career);
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
}

.btn-career-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 95, 165, 0.38);
}

.btn-career-secondary {
  font-size: 13px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border: 0.5px solid var(--border-mid);
  transition: border-color 0.15s, color 0.15s;
}

.btn-career-secondary:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-career-secondary:disabled {
  opacity: 0;
  pointer-events: none;
}

/* ── Loading ────────────────────────────────────────────────── */
.career-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  min-height: 50vh;
}

.career-loading.active {
  display: flex;
}

.career-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-secondary);
  border-top-color: var(--career);
  border-radius: 50%;
  animation: careerSpin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes careerSpin {
  to { transform: rotate(360deg); }
}

.career-loading-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.career-loading-sub {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .career-two-col { grid-template-columns: 1fr; }
  .career-step-question { font-size: 18px; }
  .career-survey-wrapper { padding: 24px 16px 80px; }
  .career-intro { padding: 36px 16px 56px; }
  .career-intro-title { font-size: 26px; }
  .career-intro-stats { gap: 20px; }

  /* ── Bigger tap targets for options ─── */
  .career-option-inner { padding: 14px 16px; min-height: 54px; }

  /* ── Buttons ─── */
  .btn-career-primary,
  .btn-career-secondary { padding: 13px 24px; font-size: 14px; min-height: 48px; }
  .career-btn-row { gap: 10px; }

  /* ── Uni-context popup ─── */
  .uni-ctx-option { padding: 12px 14px; }
  .uni-ctx-option-title { font-size: 13px; }

  /* ── Scale/slider labels ─── */
  .career-scale { padding: 20px 16px; }
  .career-scale-labels { font-size: 11px; }

  /* ── Select dropdown ─── */
  .career-select { padding: 12px 36px 12px 14px; font-size: 15px; }

  /* ── Sticky bottom nav ─── */
  .career-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 0.5px solid var(--border-subtle);
    padding: 12px 20px;
    margin-top: 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
}

/* ── Career page nav overrides — blue instead of green ─────── */
.career-page .nav-logo span   { color: var(--career); }
.career-page .nav-link        { color: var(--career); }
.career-page .nav-link:hover  { background: var(--career-light); color: var(--career-dark); }
.career-page .nav-link.active { background: var(--career-light); color: var(--career-dark); }
.career-page .nav-cta         { background: var(--career); }
