/* ─────────────────────────────────────────────────────────────
   Amia Careers — stylesheet (v2)

   Visual language:
     - Manrope font
     - amia grayscale palette
     - Gradient accent bars on cards (yellow → coral → pink)
     - 16px radii
   ─────────────────────────────────────────────────────────── */


/* ═══ §1 — Tokens ══════════════════════════════════════════ */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f7f6f3;
  --bg-subtle:    #fafafa;
  --ink:          #141414;
  --ink-soft:     #444;
  --muted:        #666;
  --muted-soft:   #999;
  --muted-light:  #bbb;
  --border:       #e6e6e6;
  --border-soft:  #eee;

  --tag-bg:       #ebeced;
  --tag-ink:      #787774;

  --good-bg:      #e6f4ea;
  --good-bg-soft: #f8faf8;
  --good-border:  #d4e8da;
  --good-ink:     #1b7a3d;

  --warn-bg:      #fef3e0;
  --warn-bg-soft: #fff9f0;
  --warn-border:  #fde8c8;
  --warn-ink:     #e65100;
  --warn-ink-soft:#bf5600;

  --bad-bg:       #fce8e6;
  --bad-ink:      #c62828;

  --info-bg:      #e8f0fe;
  --info-ink:     #1a73e8;

  --accent-grad:  linear-gradient(180deg, #FFE367 0%, #FF6444 50%, #FF6ADE 100%);
  --brand-grad:   linear-gradient(135deg, #FF6444 0%, #FF6ADE 100%);

  --shadow-sm:    0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-btn:   0 8px 32px rgba(0,0,0,0.15);

  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-pill:  50px;
}


/* ═══ §2 — Reset & base ════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
fieldset { border: none; }
legend { display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


/* ═══ §3 — Header ══════════════════════════════════════════ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 20px;
}

.site-logo { display: flex; align-items: center; }
.site-logo img { height: 32px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: opacity 0.2s;
}
.site-nav-link:hover { opacity: 0.6; }

.site-nav-btn {
  background: var(--ink); color: #fff !important;
  padding: 10px 20px; border-radius: 25px;
  font-size: 14px; font-weight: 500;
  transition: background 0.2s;
}
.site-nav-btn:hover { background: #333; }


/* ═══ §4 — App container & page transitions ══════════════ */

#app { min-height: calc(100vh - 200px); padding-top: 80px; }

.page-enter  { opacity: 0; transform: translateY(8px); }
.page-active {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}


/* ═══ §5 — Spinner ═════════════════════════════════════════ */

.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-center {
  display: flex; justify-content: center; align-items: center;
  padding: 120px 20px;
}


/* ═══ §6 — Toast ═══════════════════════════════════════════ */

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 14px 24px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  max-width: calc(100vw - 48px);
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.error { background: var(--bad-ink); }


/* ═══ §7 — Jobs list ═══════════════════════════════════════ */

.jobs-hero {
  text-align: center;
  padding: 80px 20px 60px;
  background-image:
    radial-gradient(ellipse 70% 50% at center, transparent 30%, white 70%),
    radial-gradient(circle, #e0e0e0 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px;
}
.jobs-hero h1 {
  font-size: 52px; font-weight: 300;
  margin-bottom: 16px; line-height: 1.1;
}
.jobs-hero p {
  font-size: 18px; font-weight: 300; color: var(--muted);
  max-width: 600px; margin: 0 auto;
}

.jobs-section { padding: 0 20px 80px; }

.jobs-grid {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 800px; margin: 0 auto;
}

.job-card {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 2px; border-radius: 2px;
  background: var(--accent-grad);
  opacity: 0.7;
  transition: opacity 0.3s, width 0.3s;
}
.job-card:hover {
  border-color: #ccc;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.job-card:hover::before { opacity: 1; width: 3px; }

.job-card-info h3 {
  font-size: 20px; font-weight: 600;
  margin-bottom: 6px;
}
.job-card-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.job-card-meta span {
  font-size: 13px; color: var(--muted-soft); font-weight: 400;
}

.job-card-arrow {
  width: 40px; height: 40px;
  background: var(--bg-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.job-card:hover .job-card-arrow { background: var(--ink); color: #fff; }
.job-card-arrow svg { width: 16px; height: 16px; }

.no-jobs {
  text-align: center; padding: 80px 20px;
  font-size: 16px; color: var(--muted-soft); font-weight: 300;
}


/* ═══ §8 — Job detail ══════════════════════════════════════ */

.job-detail {
  max-width: 800px; margin: 0 auto;
  padding: 60px 20px 80px;
}

.job-back {
  font-size: 13px; color: var(--muted-soft);
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.job-back:hover { color: var(--ink); }

.job-detail h1 {
  font-size: 42px; font-weight: 300;
  margin-bottom: 12px; line-height: 1.15;
}
.job-detail-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 40px;
}
.job-detail-meta span {
  font-size: 14px; color: var(--muted-soft); font-weight: 400;
}

.job-description {
  font-size: 16px; line-height: 1.8;
  color: var(--ink-soft); font-weight: 300;
  margin-bottom: 48px;
  white-space: pre-line;
}


/* ═══ §9 — Apply form (NEW — sectioned layout) ═══════════ */

.apply-form {
  display: flex; flex-direction: column;
  gap: 28px;
}

.form-section {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
}

/* Account section — marked by a subtle left accent so it stands out */
.form-section-account {
  position: relative;
  background: var(--bg-soft);
  border-color: var(--border);
  overflow: hidden;
}
.form-section-account::before {
  content: '';
  position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 3px; border-radius: 2px;
  background: var(--accent-grad);
}

.form-section-authed {
  padding: 20px 32px;
  background: var(--good-bg-soft);
  border-color: var(--good-border);
}
.form-section-authed::before {
  background: var(--good-ink);
  opacity: 0.5;
}

.form-section-title {
  font-size: 18px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 0;
  display: block;
}

.form-section-desc {
  font-size: 14px; color: var(--muted);
  font-weight: 300; line-height: 1.6;
  margin-bottom: 20px;
}
.form-section-desc .link-btn {
  font-weight: 500; color: var(--ink);
}


/* Form grid & fields */

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 13px; font-weight: 500;
  color: var(--ink); margin-bottom: 6px;
}
.form-label .required { color: var(--bad-ink); }

.form-input, .form-textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid #e0e0e0; border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit;
  color: var(--ink); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20,20,20,0.06);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--muted-light);
}
.form-textarea { resize: none; min-height: 120px; }

.form-file-label {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 2px dashed #e0e0e0; border-radius: var(--radius-md);
  font-size: 14px; color: var(--muted-soft);
  cursor: pointer; transition: all 0.2s;
}
.form-file-label:hover {
  border-color: var(--muted-soft); color: var(--muted);
}
.form-file-label.has-file {
  border-color: var(--ink); color: var(--ink);
  border-style: solid;
  background: var(--bg-soft);
}
.form-file-input { display: none; }


/* Consent checkbox */

.form-consent {
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.consent-label {
  display: flex; gap: 12px;
  font-size: 14px; color: var(--ink-soft);
  font-weight: 400; line-height: 1.5;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
  cursor: pointer;
}
.consent-label a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* Auth status (when already logged in) */

.auth-status {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-soft);
}
.auth-status strong { font-weight: 600; color: var(--ink); }


/* Small inline text button */

.link-btn {
  background: none; border: none; color: var(--muted-soft);
  font-size: inherit; cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  font-family: inherit;
}
.link-btn:hover { color: var(--ink); }


/* ═══ §10 — Submit button ══════════════════════════════════ */

.submit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 16px 32px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 600;
  font-family: inherit; border: none;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}
.submit-btn:hover:not(:disabled) {
  background: #333;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}
.submit-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.submit-btn svg { width: 16px; height: 16px; }
.submit-btn.compact { padding: 12px 24px; font-size: 14px; }


/* ═══ §11 — Portal ═════════════════════════════════════════ */

.portal-hero { padding: 60px 20px 40px; text-align: center; }
.portal-hero h1 { font-size: 36px; font-weight: 300; margin-bottom: 8px; }
.portal-hero p { font-size: 16px; color: var(--muted-soft); font-weight: 300; }

.portal-userbar {
  display: flex; justify-content: center;
  align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted-soft);
  margin-top: 12px;
}

.portal-section {
  max-width: 800px; margin: 0 auto;
  padding: 0 20px 80px;
}

.app-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.app-card:hover {
  border-color: #ccc;
  box-shadow: var(--shadow-sm);
}

.app-card-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.app-card-header h3 {
  font-size: 22px; font-weight: 600;
  line-height: 1.3;
}
.app-card-dept {
  font-size: 13px; color: var(--muted-soft);
  font-weight: 300;
  margin-top: 4px;
  display: block;
}

.quiz-empty {
  font-size: 13px; color: var(--muted-soft);
  font-weight: 300;
}

/* Status badges */
.status-badge {
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  white-space: nowrap;
}
.status-applied   { background: var(--info-bg); color: var(--info-ink); }
.status-interview { background: var(--warn-bg); color: var(--warn-ink); }
.status-hired     { background: var(--good-bg); color: var(--good-ink); }
.status-rejected  { background: var(--bad-bg);  color: var(--bad-ink); }

/* Quiz row */
.quiz-rows { display: flex; flex-direction: column; gap: 12px; }

.quiz-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.quiz-row.done {
  background: var(--good-bg-soft);
  border-color: var(--good-border);
}

.quiz-row-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.quiz-row-icon { font-size: 24px; flex-shrink: 0; }
.quiz-row-text p.label {
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.quiz-row-text p.subtitle {
  font-size: 13px; color: var(--muted-soft); font-weight: 300;
  margin-top: 2px;
}

.quiz-row-right {
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}

.quiz-row-meta {
  text-align: right;
  font-size: 12px; color: var(--muted-soft);
}
.quiz-row-meta .meta-duration { font-weight: 500; }
.quiz-row-meta .meta-sub { font-size: 11px; color: var(--muted-light); margin-top: 2px; }

.quiz-row-score {
  text-align: right;
  font-size: 14px; font-weight: 700;
}
.quiz-row-score .score-sub {
  font-size: 11px; color: var(--muted-soft);
  font-weight: 400; margin-top: 2px;
}

.score-good    { color: var(--good-ink); }
.score-mid     { color: var(--warn-ink); }
.score-low     { color: var(--bad-ink); }
.score-neutral { color: var(--ink); }

.quiz-go-btn {
  background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.quiz-go-btn:hover { background: #333; }


/* ═══ §12 — Quiz overview ══════════════════════════════════ */

.quiz-overview {
  max-width: 640px; margin: 0 auto;
  padding: 60px 20px 80px;
}

.quiz-overview-header {
  text-align: center; margin-bottom: 40px;
}
.quiz-overview-header .icon {
  font-size: 48px; display: block; margin-bottom: 16px;
}
.quiz-overview-header h1 {
  font-size: 32px; font-weight: 300; margin-bottom: 8px;
}
.quiz-overview-header p {
  font-size: 15px; color: var(--muted-soft); font-weight: 300;
}

.quiz-overview-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.quiz-overview-desc {
  font-size: 15px; color: var(--ink-soft);
  line-height: 1.7; font-weight: 300;
  margin-bottom: 20px;
}

.quiz-overview-stats {
  display: flex; gap: 24px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}
.quiz-overview-stats .stat-num {
  font-size: 24px; font-weight: 700; color: var(--ink);
  line-height: 1.1;
}
.quiz-overview-stats .stat-label {
  font-size: 12px; color: var(--muted-soft);
  margin-top: 2px;
}

.quiz-overview-rules p.rules-title {
  font-size: 13px; font-weight: 600;
  color: var(--ink); margin-bottom: 10px;
}
.quiz-overview-rules ul { list-style: none; padding: 0; }
.quiz-overview-rules li {
  font-size: 14px; color: var(--muted);
  font-weight: 300; line-height: 1.6;
  padding: 4px 0;
  display: flex; gap: 8px;
}
.quiz-overview-rules li::before {
  content: '·'; color: var(--ink); font-weight: 700;
}

.quiz-overview-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.quiz-overview-warn p.warn-title {
  font-size: 13px; color: var(--warn-ink);
  font-weight: 500; margin-bottom: 6px;
}
.quiz-overview-warn p.warn-body {
  font-size: 13px; color: var(--warn-ink-soft);
  font-weight: 300; line-height: 1.6;
}

.quiz-overview-actions {
  text-align: center;
}
.quiz-overview-actions .submit-btn {
  align-self: center;
}
.quiz-overview-actions .hint {
  font-size: 12px; color: var(--muted-light);
  font-weight: 300; margin-top: 12px;
}


/* ═══ §13 — Quiz (taking) ══════════════════════════════════ */

.quiz-page {
  max-width: 720px; margin: 0 auto;
  padding: 60px 20px 80px;
}
.quiz-page h1 {
  font-size: 32px; font-weight: 300;
  margin-bottom: 8px;
}
.quiz-page .quiz-desc {
  color: var(--muted); font-size: 15px;
  font-weight: 300; margin-bottom: 16px;
}

.quiz-timer {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--bg-soft);
  padding: 8px 16px; border-radius: 20px;
  margin-bottom: 32px;
  font-variant-numeric: tabular-nums;
}
.quiz-timer.warning { background: var(--bad-bg); color: var(--bad-ink); }
.quiz-timer.expired { background: var(--bad-ink); color: #fff; }


/* Question card */

.question-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 16px;
}

.question-num {
  font-size: 12px; font-weight: 600;
  color: var(--muted-soft);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 17px; font-weight: 500;
  line-height: 1.5;
  margin-bottom: 20px;
}

.question-image {
  width: 100%; max-width: 480px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-soft);
}

.question-hint {
  font-size: 12px; color: var(--muted-soft);
  font-weight: 400;
  margin-bottom: 16px;
  font-style: italic;
}


/* Multiple choice */

.mc-option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft); border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 8px;
  user-select: none;
}
.mc-option:hover {
  border-color: #ccc;
  background: var(--bg-subtle);
}
.mc-option.selected {
  border-color: var(--ink);
  background: var(--bg-soft);
}

.mc-radio, .mc-checkbox {
  width: 20px; height: 20px;
  border: 2px solid #ddd;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  margin-top: 1px;
}
.mc-radio { border-radius: 50%; }
.mc-checkbox { border-radius: 6px; }

.mc-option.selected .mc-radio,
.mc-option.selected .mc-checkbox { border-color: var(--ink); }
.mc-option.selected .mc-checkbox { background: var(--ink); }

.mc-option.selected .mc-radio::after {
  content: '';
  width: 10px; height: 10px;
  background: var(--ink); border-radius: 50%;
}
.mc-option.selected .mc-checkbox::after {
  content: '✓'; color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}

.mc-label {
  font-size: 15px; color: var(--ink);
  line-height: 1.45;
  flex: 1; min-width: 0;
}

.mc-option-image {
  width: 100%; max-width: 200px;
  border-radius: 6px; margin-top: 8px;
  border: 1px solid var(--border-soft);
}


/* Ranking */

.ranking-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}

.ranking-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  cursor: grab;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
}
.ranking-item:hover {
  border-color: #ccc;
  background: var(--bg-subtle);
}
.ranking-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
  box-shadow: var(--shadow-md);
}
.ranking-item.drop-target {
  border-color: var(--ink);
  border-style: dashed;
  background: var(--bg-soft);
}

.ranking-rank {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ranking-label {
  flex: 1; min-width: 0;
  font-size: 15px; color: var(--ink);
  line-height: 1.45;
}

.ranking-handle {
  flex-shrink: 0;
  color: var(--muted-light);
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.ranking-item:hover .ranking-handle { color: var(--muted-soft); }
.ranking-handle svg { width: 16px; height: 16px; }


/* Open text */

.open-textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid #e0e0e0; border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit;
  color: var(--ink); background: var(--bg);
  resize: vertical; min-height: 120px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.open-textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20,20,20,0.06);
}


/* File upload placeholder */

.file-upload-placeholder {
  padding: 16px;
  background: var(--warn-bg-soft);
  border: 1px dashed var(--warn-border);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--warn-ink-soft);
  font-weight: 300; line-height: 1.5;
}


/* ═══ §14 — Footer ═════════════════════════════════════════ */

.site-footer {
  background: var(--ink); color: #fff;
  padding: 60px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 3fr 2fr 1.5fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.footer-logo img { height: 32px; filter: invert(1) brightness(2); }
.footer-logo span { font-size: 32px; font-weight: 300; }

.footer-tagline {
  font-size: 18px; font-weight: 300;
  line-height: 1.3;
}
.footer-title {
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; margin-bottom: 16px;
}
.footer-contact p {
  font-size: 16px; font-weight: 300;
  line-height: 1.6;
}
.footer-contact a { color: #fff; }


/* ═══ §15 — Empty states ═══════════════════════════════════ */

.empty-state {
  text-align: center; padding: 80px 20px;
  max-width: 480px; margin: 0 auto;
}
.empty-state h2 {
  font-size: 24px; font-weight: 300;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 15px; color: var(--muted-soft);
  font-weight: 300; margin-bottom: 24px;
}


/* ═══ §16 — Responsive ═════════════════════════════════════ */

@media (max-width: 768px) {
  .jobs-hero { padding: 60px 20px 40px; }
  .jobs-hero h1 { font-size: 32px; }
  .jobs-hero p { font-size: 16px; }

  .job-card { padding: 20px 24px; }
  .job-card-info h3 { font-size: 17px; }

  .job-detail { padding: 40px 20px 60px; }
  .job-detail h1 { font-size: 28px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-section { padding: 22px 20px; }

  .site-nav { gap: 20px; }
  .site-nav-link { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-logo { justify-content: center; }

  .portal-hero h1 { font-size: 28px; }

  .quiz-page h1 { font-size: 24px; }
  .quiz-page { padding: 40px 20px 60px; }

  .question-card { padding: 22px 20px; }
  .question-text { font-size: 16px; }

  .quiz-overview-header h1 { font-size: 26px; }
  .quiz-overview-card { padding: 22px 20px; }

  .app-card { padding: 22px 20px; }
  .app-card-header h3 { font-size: 18px; }

  .quiz-row { flex-wrap: wrap; padding: 16px; }
  .quiz-row-right { width: 100%; justify-content: space-between; }

  .submit-btn { align-self: stretch; justify-content: center; }
}

@media (max-width: 480px) {
  .jobs-hero h1 { font-size: 28px; }
  .job-detail h1 { font-size: 24px; }

  .submit-btn { padding: 14px 24px; font-size: 15px; }

  .ranking-item { padding: 12px; gap: 10px; }
  .ranking-rank { width: 24px; height: 24px; font-size: 12px; }
  .ranking-label { font-size: 14px; }

  .form-section-title { font-size: 16px; }
  .form-section-desc { font-size: 13px; }

  .consent-label { font-size: 13px; }
}