/* ===== Merit Diagnostics — Clean, Sober, Standard Career Styles ===== */
:root {
  --purple: #6e3b8a;
  --purple-hover: #5b2f73;
  --purple-subtle: #f7f3f9;
  --purple-border: #e6dcee;
  --teal: #4b8989;
  --teal-subtle: #edf5f5;
  --teal-border: #d4e7e7;
  
  --bg-page: #f9fbfd;
  --bg-card: #ffffff;
  --border: #e5e9ee;
  --border-light: #eff2f6;
  
  --text-primary: #1e2430;
  --text-secondary: #4a5468;
  --text-muted: #7e8b9f;
  
  --badge-red-bg: #feecee;
  --badge-red-text: #c93b47;
  --badge-dept-bg: #eef6f6;
  --badge-dept-text: #3d7272;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --shadow-card: 0 4px 16px rgba(27, 36, 52, 0.04);
  --shadow-hover: 0 8px 24px rgba(27, 36, 52, 0.08);

  --logo-main: var(--purple);
  --logo-lines: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--text-secondary);
  background: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
.container {
  width: 100%;
  max-width: 1560px;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 44px; height: 44px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; font-family: "Comfortaa", sans-serif; line-height: 1.05; }
.logo-text strong { font-size: 1.55rem; font-weight: 700; color: var(--purple); letter-spacing: 0.3px; }
.logo-text span { font-size: 1.15rem; font-weight: 400; color: var(--purple); opacity: 0.9; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-primary); font-weight: 500; font-size: 0.92rem; transition: color 0.2s; position: relative; }
.nav a:hover, .nav a.active { color: var(--purple); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--teal); border-radius: 2px;
}

.comm { display: flex; align-items: center; gap: 16px; }
.comm-item { display: flex; align-items: center; gap: 9px; color: var(--text-primary); transition: opacity 0.2s; }
.comm-item:hover { opacity: 0.8; }
.comm-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--teal-subtle); border: 1px solid var(--teal-border);
}
.comm-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.comm-text { display: flex; flex-direction: column; font-size: 0.86rem; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.comm-text small { font-size: 0.68rem; font-weight: 400; color: var(--text-muted); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 22px; position: relative; }
.menu-toggle span { display: block; height: 2.2px; border-radius: 2px; background: var(--purple); margin: 4.5px 0; transition: 0.3s; }

/* ===== Clean Sober Hero Banner ===== */
.hero-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: clamp(34px, 4vw, 50px) 0 clamp(26px, 3vw, 38px);
}
.breadcrumbs {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; display: flex; gap: 6px; align-items: center;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--purple); }

.hero-pill {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--purple-subtle); border: 1px solid var(--purple-border);
  color: var(--purple); font-size: 0.74rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-banner h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 700; color: var(--text-primary); line-height: 1.25; margin-bottom: 10px;
}
.hero-banner p {
  font-size: 1.02rem; color: var(--text-secondary); max-width: 880px; line-height: 1.65;
}

/* ===== Main 2-Column Split Workspace ===== */
.career-workspace {
  padding: clamp(30px, 3.5vw, 48px) 0 clamp(50px, 6vw, 80px);
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.98fr);
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}

/* ===== Left Column: Vacancies & Filter ===== */
.left-col {
  display: flex; flex-direction: column; gap: 24px;
}
.intro-lead {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 22px; font-size: 0.93rem; color: var(--text-secondary); line-height: 1.65;
}
.intro-lead strong { color: var(--text-primary); }

.vacancy-header { margin-top: 4px; }
.vacancy-header h2 {
  font-size: 1.45rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px;
}

/* Role Group Filter Pills */
.filter-box {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px;
}
.filter-label {
  display: block; font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.filter-desc {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4;
}
.role-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pill-btn {
  font-family: inherit; font-size: 0.84rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: #ffffff; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s ease;
}
.pill-btn:hover {
  border-color: var(--purple); color: var(--purple);
}
.pill-btn.active {
  background: var(--purple); border-color: var(--purple); color: #ffffff;
  box-shadow: 0 2px 8px rgba(110, 59, 138, 0.25);
}

/* Job Vacancy Cards Stack */
.jobs-list {
  display: flex; flex-direction: column; gap: 16px;
}
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 10px;
}
.job-card:hover {
  border-color: #d8cde0;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.job-card.highlighted {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(110, 59, 138, 0.12);
}

.job-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.badges-group {
  display: flex; align-items: center; gap: 6px;
}
.badge-new {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--badge-red-bg); color: var(--badge-red-text);
  text-transform: uppercase;
}
.badge-dept {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 4px;
  background: var(--badge-dept-bg); color: var(--badge-dept-text);
  border: 1px solid var(--teal-border);
  text-transform: uppercase;
}

.btn-apply-card {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 7px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--purple); background: var(--purple); color: #ffffff;
  cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-apply-card:hover {
  background: var(--purple-hover); border-color: var(--purple-hover);
  box-shadow: 0 3px 10px rgba(110, 59, 138, 0.28);
}

.job-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text-primary); line-height: 1.3;
}
.job-meta {
  font-size: 0.83rem; color: var(--text-muted); font-weight: 400; margin-top: -4px;
}
.job-intro {
  font-size: 0.91rem; color: var(--text-secondary); line-height: 1.55;
}
.job-duties {
  list-style: none; display: flex; flex-direction: column; gap: 5px;
  font-size: 0.87rem; color: var(--text-secondary); margin-top: 4px;
}
.job-duties li {
  position: relative; padding-left: 14px;
}
.job-duties li::before {
  content: "•"; position: absolute; left: 0; color: var(--teal); font-weight: 700;
}

/* ===== Right Column: Sticky Clean Form ===== */
.right-col {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 14px;
}
.right-col-title {
  font-size: 1.35rem; font-weight: 700; color: var(--text-primary);
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.form-card-head {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.form-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
  line-height: 1.35;
}
.form-card-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}
.form-card-head p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* Form Fields & Spacing Rhythm */
.form-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #d4dae2;
  border-radius: var(--radius-sm);
  background: #fdfdfd;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder {
  color: #9aa4b4;
  font-size: 0.72rem;
  line-height: 1.45;
}
.form-input::-webkit-input-placeholder, .form-textarea::-webkit-input-placeholder {
  color: #9aa4b4;
  font-size: 0.72rem;
  line-height: 1.45;
}
.form-input::-moz-placeholder, .form-textarea::-moz-placeholder {
  color: #9aa4b4;
  font-size: 0.72rem;
  line-height: 1.45;
}
.form-input:-ms-input-placeholder, .form-textarea:-ms-input-placeholder {
  color: #9aa4b4;
  font-size: 0.72rem;
  line-height: 1.45;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--purple);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(110, 59, 138, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 56px;
  height: 56px;
  line-height: 1.45;
}

/* Shortlisted Roles Display Box */
.shortlist-box {
  background: var(--purple-subtle);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.35;
}
.shortlist-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--purple);
}
.shortlist-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 2px;
}
.shortlist-clear:hover { color: var(--badge-red-text); }
.shortlist-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Styled File Upload */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fbfcfe;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  position: relative;
  min-height: 38px;
  line-height: 1.35;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #ffffff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.file-upload-btn:hover { background: var(--purple-hover); }
.file-status-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.file-hidden-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Form Section Headers */
.form-section-head {
  margin: 14px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.35;
}
.form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--purple);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 5px;
}
.form-section-desc {
  display: none;
}

/* Status Selector Grid */
.status-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .status-pill-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}
.status-pill-btn {
  background: #fbfcfe;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.status-pill-btn:hover {
  border-color: var(--purple-border);
  background: #ffffff;
  color: var(--purple);
}
.status-pill-btn.active {
  background: var(--purple-subtle);
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 0 2px rgba(110, 59, 138, 0.15);
}

/* Repeater Cards */
.repeater-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.repeater-card {
  background: #fcfdfe;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  position: relative;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.repeater-card:hover {
  border-color: #cbd5e1;
}
.repeater-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.35;
}
.repeater-card-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  line-height: 1.35;
}
.repeater-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 4px;
  transition: background 0.15s;
}
.repeater-remove-btn:hover {
  background: #fee2e2;
}
.btn-add-repeater {
  background: #ffffff;
  border: 1px dashed var(--purple);
  color: var(--purple);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  margin-bottom: 12px;
}
.btn-add-repeater:hover {
  background: var(--purple-subtle);
  border-style: solid;
}

/* WhatsApp inline checkbox */
.whatsapp-check-wrap {
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  line-height: 1.35;
}
.checkbox-inline input {
  accent-color: var(--purple);
}

/* Field size badge */
.field-size-badge {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  line-height: 1.35;
  display: inline-block;
  vertical-align: middle;
}

/* Submit Action Button */
.btn-submit-app {
  width: 100%; padding: 12px 20px;
  border-radius: var(--radius-pill); border: none;
  background: var(--purple); color: #ffffff;
  font-family: inherit; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(110, 59, 138, 0.25);
  margin-top: 4px;
}
.btn-submit-app:hover {
  background: var(--purple-hover);
  box-shadow: 0 6px 18px rgba(110, 59, 138, 0.35);
  transform: translateY(-1px);
}

/* Feedback Message */
.feedback-box {
  display: none; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 0.86rem; font-weight: 500; line-height: 1.45;
}
.feedback-box.success {
  display: block; background: #eef8f2; border: 1px solid #c0e7cd; color: #1e7040;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border); background: #ffffff; padding: 36px 0 24px;
  color: var(--text-muted); font-size: 0.88rem;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--border-light);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap; padding-top: 18px; font-size: 0.83rem;
}
.footer-bottom a { color: var(--purple); font-weight: 600; }

/* ===== Responsive Layout ===== */
@media (max-width: 1200px) {
  .comm-item[href^="mailto"] .comm-text { display: none; }
  .workspace-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 30px;
  }
}

@media (max-width: 1040px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: -100%; width: min(300px, 80%); height: 100vh;
    flex-direction: column; gap: 22px; padding: 85px 28px;
    background: #ffffff; box-shadow: -8px 0 28px rgba(0, 0, 0, 0.08);
    transition: right 0.3s ease;
  }
  .nav.open { right: 0; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .right-col {
    position: static;
    max-width: 100%;
  }
  .form-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .comm-text { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .job-card-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-apply-card { width: 100%; }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .form-card {
    padding: 16px 14px;
  }
  .job-card {
    padding: 16px 14px;
  }
  .hero-banner h1 {
    font-size: 1.7rem;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-links {
    justify-content: center;
    gap: 14px;
  }
}
