/* ── Brand palette ─────────────────────────────────────────────────────────── */
:root {
  --navy:       #1B2B4B;
  --navy-dark:  #111d33;
  --navy-light: #243560;
  --gold:       #C9A84C;
  --gold-light: #e0c06a;
  --gold-pale:  #fdf6e3;
  --gray-soft:  #f4f6fb;
  --text-muted: #6c757d;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a2e;
  background: #fff;
}

a { text-decoration: none; }

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.gj-navbar {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(27,43,75,.18);
  padding: .75rem 0;
}
.gj-navbar .navbar-brand { font-size: 1.35rem; letter-spacing: -.01em; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }

.btn-gold {
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
  font-weight: 600;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: #fff; }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-weight: 600;
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ── Colors ────────────────────────────────────────────────────────────────── */
.text-navy  { color: var(--navy)  !important; }
.text-gold  { color: var(--gold)  !important; }
.bg-navy    { background: var(--navy)  !important; }
.bg-gold    { background: var(--gold)  !important; }
.bg-soft    { background: var(--gray-soft)  !important; }
.bg-gold-pale { background: var(--gold-pale) !important; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.gj-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.gj-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.gj-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
.gj-hero .lead { font-size: 1.15rem; opacity: .88; }
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-light);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ── Section titles ────────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
}
.section-title span { color: var(--gold); }
.section-divider {
  width: 48px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: .5rem 0 1.5rem;
}

/* ── Category cards ────────────────────────────────────────────────────────── */
.category-card {
  border: 1.5px solid #e8eef7;
  border-radius: 14px;
  padding: 1.5rem;
  transition: all .22s ease;
  background: #fff;
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(27,43,75,.1);
  transform: translateY(-3px);
}
.category-card .cat-icon {
  width: 52px; height: 52px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.category-card .cat-name { font-weight: 700; color: var(--navy); font-size: 1rem; }
.category-card .cat-salary { font-size: .8rem; color: var(--text-muted); }
.urgent-badge {
  background: #fff3cd; color: #856404;
  font-size: .7rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 50px;
  border: 1px solid #ffc107;
}

/* ── Steps ─────────────────────────────────────────────────────────────────── */
.step-circle {
  width: 56px; height: 56px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  flex-shrink: 0;
}
.step-connector {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  margin-top: -1.75rem;
}

/* ── Countries ─────────────────────────────────────────────────────────────── */
.country-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--navy);
  color: #fff;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
}
.country-pill .flag { font-size: 1.2rem; }

/* ── Testimonials ──────────────────────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem;
  border: 1.5px solid #e8eef7;
  box-shadow: 0 2px 12px rgba(27,43,75,.06);
}
.testimonial-card .stars { color: var(--gold); }
.testimonial-avatar {
  width: 46px; height: 46px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-item .accordion-button {
  font-weight: 600; color: var(--navy);
  background: #fff;
}
.faq-item .accordion-button:not(.collapsed) {
  color: var(--navy); background: var(--gold-pale);
  box-shadow: none;
}
.faq-item .accordion-button::after {
  filter: none;
}

/* ── Apply SPA ─────────────────────────────────────────────────────────────── */
.gj-spa-wrap {
  min-height: 100vh;
  background: var(--gray-soft);
  padding: 1.5rem 0 3rem;
}
.gj-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(27,43,75,.09);
  padding: 2rem;
}
@media (max-width: 576px) { .gj-card { padding: 1.25rem; border-radius: 12px; } }

/* Stepper */
.gj-stepper { display: flex; align-items: center; margin-bottom: 2rem; }
.gj-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1;
}
.gj-step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid #dee2e6;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  background: #fff;
  color: #aaa;
  transition: all .3s;
}
.gj-step.active .gj-step-dot   { border-color: var(--navy); background: var(--navy); color: #fff; }
.gj-step.done .gj-step-dot     { border-color: #198754; background: #198754; color: #fff; }
.gj-step-label { font-size: .72rem; font-weight: 600; color: #aaa; margin-top: .35rem; text-align: center; }
.gj-step.active .gj-step-label { color: var(--navy); }
.gj-step.done .gj-step-label   { color: #198754; }
.gj-step-line { flex: 1; height: 2px; background: #dee2e6; margin: 0 .25rem; margin-bottom: 1.4rem; }
.gj-step-line.done { background: #198754; }

/* Form */
.gj-label { font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: .35rem; }
.gj-input {
  border: 1.5px solid #dee2e6;
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: 1rem;
  transition: border-color .2s;
}
.gj-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,43,75,.1); outline: none; }
.gj-input.is-invalid { border-color: #dc3545; }

/* Upload zone */
.upload-zone {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fafbfc;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.upload-zone .upload-icon { font-size: 2.5rem; color: #aaa; }
.upload-zone.has-file { border-color: #198754; background: #f0fff4; }
.upload-zone.has-file .upload-icon { color: #198754; }

/* Status badges */
.status-submitted      { background: #cfe2ff; color: #0a3575; }
.status-pending_vetting { background: #fff3cd; color: #6a4a00; }
.status-under_review   { background: #e2d9f3; color: #3d1a78; }
.status-shortlisted    { background: #d1e7dd; color: #0a3622; }
.status-awaiting_info  { background: #ffe5b4; color: #7a4500; }
.status-rejected       { background: #f8d7da; color: #58151c; }

/* Payment polling */
.payment-pulse {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: ""; position: absolute;
  left: .55rem; top: 0; bottom: 0;
  width: 2px; background: #dee2e6;
}
.timeline-item { position: relative; padding-bottom: 1.25rem; }
.timeline-dot {
  position: absolute; left: -1.5rem; top: .2rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--navy);
}

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.gj-sidebar {
  background: var(--navy);
  min-height: 100vh;
  width: 240px;
  position: fixed; left: 0; top: 0;
  z-index: 1000;
  padding-top: 1rem;
}
.gj-sidebar .brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: block;
}
.gj-sidebar .nav-link {
  color: rgba(255,255,255,.7);
  padding: .65rem 1.25rem;
  border-radius: 8px;
  margin: .1rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
}
.gj-sidebar .nav-link:hover,
.gj-sidebar .nav-link.active {
  background: rgba(201,168,76,.15);
  color: var(--gold);
}
.gj-sidebar .nav-link i { width: 20px; }

.gj-main {
  margin-left: 240px;
  min-height: 100vh;
  background: var(--gray-soft);
}
.gj-topbar {
  background: #fff;
  border-bottom: 1px solid #e8eef7;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.gj-content { padding: 1.5rem; }

/* Stat cards */
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid #e8eef7;
  box-shadow: 0 2px 10px rgba(27,43,75,.05);
}
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.stat-card .stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* Tables */
.gj-table { background: #fff; border-radius: 14px; border: 1.5px solid #e8eef7; overflow: hidden; }
.gj-table table { margin-bottom: 0; }
.gj-table thead th {
  background: var(--gray-soft);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted);
  border-bottom: 1.5px solid #e8eef7;
  padding: .85rem 1rem;
  white-space: nowrap;
}
.gj-table tbody td { padding: .85rem 1rem; vertical-align: middle; font-size: .9rem; }
.gj-table tbody tr:hover { background: var(--gray-soft); }

/* Mobile sidebar toggle */
@media (max-width: 991px) {
  .gj-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .gj-sidebar.open { transform: translateX(0); }
  .gj-main { margin-left: 0; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.gj-footer { background: var(--navy-dark); }
.footer-link { color: rgba(255,255,255,.55); font-size: .875rem; display: block; margin-bottom: .35rem; }
.footer-link:hover { color: var(--gold); }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.rounded-14 { border-radius: 14px !important; }
.fw-800 { font-weight: 800 !important; }
.fee-disclaimer {
  background: #fff8e1;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: #5a4000;
}

/* ── Testimonial scroll strip ──────────────────────────────────────────────── */
.testimonials-scroll::-webkit-scrollbar { height: 4px; }
.testimonials-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.testimonials-scroll::-webkit-scrollbar-track { background: transparent; }

/* ── How It Works step circles ─────────────────────────────────────────────── */
.step-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.child-role-card { transition: background .15s, box-shadow .15s; cursor: pointer; }
.child-role-card:hover { background: #e8edfa !important; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
