/* FILE: wp-content/plugins/aero-jobs/assets/aero-jobs.css */
/* Everything is scoped under IDs so theme / Elementor global styles (button:hover,
   h2, label, select …) can never override the job board. No !important needed. */

:is(#aeroJobs, #ajDetails, #ajApply) {
  --aj-navy: #0a1a3f;
  --aj-navy-2: #16295a;
  --aj-ink: #1f2a44;
  --aj-muted: #5b6b84;
  --aj-soft: #8a97aa;
  --aj-blue: #1b5cf0;
  --aj-blue-2: #174fd0;
  --aj-sky: #1a8bd4;
  --aj-line: #e3e9f2;
  --aj-line-2: #d5deea;
  --aj-bg: #f3f7fe;
  --aj-tint: #eaf1ff;
  --aj-green: #1fa15b;
  --aj-green-bg: #e5f6ec;
  --aj-green-ink: #17804a;
  --aj-purple: #6a4bd8;
  --aj-purple-bg: #efebfd;
  --aj-amber: #e07b1a;
  --aj-amber-bg: #fff0d9;
  --aj-red: #dc3545;
  --aj-r-sm: 8px;
  --aj-r: 12px;
  --aj-r-lg: 16px;
  --aj-shadow: 0 6px 24px rgba(16, 42, 92, .06);
  --aj-shadow-lg: 0 24px 60px rgba(8, 20, 45, .28);
  color: var(--aj-ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- scoped reset (beats theme globals by ID specificity) ---------- */
:is(#aeroJobs, #ajDetails, #ajApply),
:is(#aeroJobs, #ajDetails, #ajApply) *,
:is(#aeroJobs, #ajDetails, #ajApply) *::before,
:is(#aeroJobs, #ajDetails, #ajApply) *::after { box-sizing: border-box; }

:is(#aeroJobs, #ajDetails, #ajApply) :where(h2, h3, h4, p, ul, dl, dt, dd, figure) {
  margin: 0; padding: 0; border: 0; background: none;
  font-family: inherit; text-transform: none; letter-spacing: normal; text-shadow: none;
}
:is(#aeroJobs, #ajDetails, #ajApply) :where(ul) { list-style: none; }
:is(#aeroJobs, #ajDetails, #ajApply) :where(li) { margin: 0; padding: 0; list-style: none; }
:is(#aeroJobs, #ajDetails, #ajApply) :where(li)::before { content: none; }
:is(#aeroJobs, #ajDetails, #ajApply) :where(label) { display: block; margin: 0; padding: 0; font-weight: inherit; text-transform: none; letter-spacing: normal; color: inherit; }
:is(#aeroJobs, #ajDetails, #ajApply) :where(button, a) {
  -webkit-appearance: none; appearance: none;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; text-shadow: none; outline: 0;
  color: inherit; font: inherit; line-height: inherit; letter-spacing: normal;
  text-transform: none; text-decoration: none; min-height: 0; min-width: 0; width: auto; height: auto;
  cursor: pointer; transition: none; transform: none;
}
:is(#aeroJobs, #ajDetails, #ajApply) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; max-width: none; margin: 0;
  font: inherit; line-height: 1.3; letter-spacing: normal; text-transform: none;
  color: var(--aj-navy); background: #fff; background-image: none;
  border: 1px solid var(--aj-line-2); border-radius: var(--aj-r-sm);
  box-shadow: none; outline: 0;
}
:is(#aeroJobs, #ajDetails, #ajApply) :where(svg) { display: block; flex-shrink: 0; max-width: none; }
:is(#aeroJobs, #ajDetails, #ajApply) svg.aj-i { fill: none; stroke: currentColor; }
:is(#aeroJobs, #ajDetails, #ajApply) :focus-visible { outline: 3px solid rgba(27, 92, 240, .45); outline-offset: 2px; }
:is(#aeroJobs, #ajDetails, #ajApply) [hidden][hidden] { display: none; }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ============================== PAGE SHELL ============================== */
#aeroJobs {
  position: relative;
  isolation: isolate;
  container: ajroot / inline-size;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px clamp(14px, 2vw, 24px) 0;
  background: var(--aj-bg);
  /* full-bleed tint without horizontal scrollbars */
  box-shadow: 0 0 0 100vmax var(--aj-bg);
  clip-path: inset(0 -100vmax);
}
#aeroJobs .aj-deco {
  position: absolute; z-index: -1; top: 0; left: -8vw;
  width: min(760px, 70vw); height: 300px; fill: #e6eefc; opacity: .9; pointer-events: none;
}

/* Hero */
#aeroJobs .aj-hero { text-align: center; max-width: 900px; margin: 0 auto 34px; }
#aeroJobs .aj-title {
  font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; line-height: 1.08;
  letter-spacing: -.025em; color: var(--aj-navy); text-wrap: balance;
}
#aeroJobs .aj-title span { color: var(--aj-blue); }
#aeroJobs .aj-sub {
  margin: 16px auto 0; max-width: 760px;
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: var(--aj-muted);
}
#aeroJobs .aj-sub strong { color: var(--aj-ink); font-weight: 600; }
#aeroJobs .aj-tagline {
  position: absolute; top: 58px; right: clamp(8px, 2.5%, 48px);
  display: none; flex-direction: column; align-items: flex-start;
  transform: rotate(-8deg);
  font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", "Dancing Script", cursive;
  font-size: 27px; line-height: 1.25; color: var(--aj-navy);
}
#aeroJobs .aj-tagline span:nth-child(2) { margin-left: 28px; }
#aeroJobs .aj-swoosh { width: 170px; height: 26px; margin: 2px 0 0 56px; color: #19b3a6; }
@container ajroot (min-width: 1180px) { #aeroJobs .aj-tagline { display: flex; } }
@container ajroot (min-width: 1180px) and (max-width: 1379px) { #aeroJobs .aj-tagline { font-size: 23px; } #aeroJobs .aj-swoosh { width: 140px; } }

/* ============================== FILTER PANEL ============================== */
#aeroJobs .aj-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.6fr);
  gap: 20px;
  align-items: end;
  padding: 24px 28px 26px;
  background: #fff;
  border: 1px solid var(--aj-line);
  border-radius: var(--aj-r-lg);
  box-shadow: 0 14px 40px rgba(16, 42, 92, .07);
}
#aeroJobs .aj-f-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: 16px; font-weight: 600; color: var(--aj-navy);
}
#aeroJobs .aj-f-label svg { color: var(--aj-sky); }

/* Select with leading icon + chevron (shared) */
:is(#aeroJobs, #ajApply) .aj-sel { position: relative; }
:is(#aeroJobs, #ajApply) .aj-sel select { height: 54px; padding: 0 44px 0 50px; font-size: 16px; font-weight: 500; cursor: pointer; text-overflow: ellipsis; }
:is(#aeroJobs, #ajApply) .aj-sel select:hover { border-color: #b9c8de; }
:is(#aeroJobs, #ajApply) .aj-sel select:focus { border-color: var(--aj-blue); box-shadow: 0 0 0 3px rgba(27, 92, 240, .14); }
:is(#aeroJobs, #ajApply) .aj-sel select:disabled { background: #f5f7fa; color: var(--aj-soft); cursor: not-allowed; }
:is(#aeroJobs, #ajApply) .aj-sel-lead { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--aj-blue); pointer-events: none; }
:is(#aeroJobs, #ajApply) .aj-sel-chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--aj-navy); pointer-events: none; }
#aeroJobs .aj-sel--sm select { height: 48px; min-width: 190px; padding: 0 42px 0 16px; font-size: 15px; }

/* Direct / Sewa cards */
#aeroJobs .aj-types { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#aeroJobs .aj-type {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 96px; padding: 16px 18px; text-align: left;
  background: #fff; color: var(--aj-navy);
  border: 1.5px solid var(--aj-line); border-radius: var(--aj-r);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
#aeroJobs .aj-type:hover { border-color: #b7c9ea; background: #fbfdff; color: var(--aj-navy); }
#aeroJobs .aj-type-tile {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--aj-r);
}
#aeroJobs .aj-type--direct .aj-type-tile { background: var(--aj-tint); color: var(--aj-blue); }
#aeroJobs .aj-type--seva .aj-type-tile { background: var(--aj-amber-bg); color: var(--aj-amber); }
#aeroJobs .aj-type-txt { display: flex; flex-direction: column; min-width: 0; }
#aeroJobs .aj-type-name { font-size: 17px; font-weight: 700; line-height: 1.3; color: inherit; }
#aeroJobs .aj-type-desc { margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--aj-muted); }
#aeroJobs .aj-type-num { font-size: 34px; font-weight: 800; line-height: 1; color: var(--aj-navy); font-variant-numeric: tabular-nums; }

#aeroJobs .aj-type.is-active,
#aeroJobs .aj-type.is-active:hover {
  background: var(--aj-navy); color: #fff;
  border: 2px solid #3b73f5;
  box-shadow: 0 0 0 4px rgba(59, 115, 245, .16), 0 12px 28px rgba(10, 26, 63, .22);
}
#aeroJobs .aj-type.is-active .aj-type-desc { color: #c3cee6; }
#aeroJobs .aj-type--direct.is-active .aj-type-tile { background: #fff; color: var(--aj-blue); }
#aeroJobs .aj-type.is-active .aj-type-num { color: #3d7bff; }
#aeroJobs .aj-type--seva.is-active .aj-type-num { color: #ffb24d; }

/* ============================== RESULTS BAR ============================== */
#aeroJobs .aj-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin: 38px 0 20px;
}
#aeroJobs .aj-bar-l { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#aeroJobs .aj-h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; color: var(--aj-navy); }
#aeroJobs .aj-found {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: #e6edf8; color: #22417a; font-size: 14px; font-weight: 500; white-space: nowrap;
}
#aeroJobs .aj-sort { display: flex; align-items: center; gap: 10px; color: var(--aj-muted); font-size: 15px; }
#aeroJobs .aj-sort-ic { color: var(--aj-muted); }
#aeroJobs .aj-sort label { white-space: nowrap; }

/* ============================== MAIN GRID ============================== */
#aeroJobs .aj-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
#aeroJobs .aj-list { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- Job card ---------- */
#aeroJobs .aj-card {
  container-type: inline-size;
  position: relative;
  padding: 26px 30px 28px;
  background: #fff;
  border: 1px solid var(--aj-line);
  border-radius: var(--aj-r-lg);
  box-shadow: var(--aj-shadow);
  overflow-wrap: anywhere;
  transition: border-color .15s, box-shadow .15s;
}
#aeroJobs .aj-card:hover { border-color: #cbd9ef; box-shadow: 0 14px 34px rgba(16, 42, 92, .10); }

#aeroJobs .aj-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#aeroJobs .aj-badge {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
#aeroJobs .aj-badge--new { background: var(--aj-green); }
#aeroJobs .aj-badge--end { background: var(--aj-amber); }

#aeroJobs .aj-card-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: var(--aj-navy); }
#aeroJobs .aj-card-post { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 16px; color: var(--aj-ink); }
#aeroJobs .aj-card-post svg { color: var(--aj-blue); }

/* Meta strip — 4 columns with dividers (shared by card + details modal) */
:is(#aeroJobs, #ajDetails) .aj-meta {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.1fr);
  gap: 14px 0; margin-top: 20px;
}
:is(#aeroJobs, #ajDetails) .aj-meta-i {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 0 18px; border-left: 1px solid var(--aj-line);
  min-width: 0;
}
:is(#aeroJobs, #ajDetails) .aj-meta-i:first-child { padding-left: 0; border-left: 0; }
:is(#aeroJobs, #ajDetails) .aj-meta-i:last-child { padding-right: 0; }
:is(#aeroJobs, #ajDetails) .aj-meta-i > svg { margin-top: 2px; color: var(--aj-sky); }
:is(#aeroJobs, #ajDetails) .aj-meta dd { display: flex; flex-direction: column; font-size: 15px; line-height: 1.45; color: var(--aj-ink); }
:is(#aeroJobs, #ajDetails) .aj-meta dd span { color: var(--aj-muted); }
:is(#aeroJobs, #ajDetails) .aj-meta dd .aj-meta-top { color: var(--aj-muted); font-size: 14px; }
:is(#aeroJobs, #ajDetails) .aj-meta dd b { font-weight: 700; color: var(--aj-navy); }
:is(#aeroJobs, #ajDetails) .aj-meta dd b.aj-warn { color: #c2410c; }

/* Chips */
:is(#aeroJobs, #ajDetails) .aj-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
:is(#aeroJobs, #ajDetails) .aj-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
:is(#aeroJobs, #ajDetails) .aj-chip--blue { background: #e8f0fe; color: #2356d4; }
:is(#aeroJobs, #ajDetails) .aj-chip--green { background: var(--aj-green-bg); color: var(--aj-green-ink); }
:is(#aeroJobs, #ajDetails) .aj-chip--purple { background: var(--aj-purple-bg); color: var(--aj-purple); }
:is(#aeroJobs, #ajDetails) .aj-chip--amber { background: var(--aj-amber-bg); color: #b85f0c; }

/* Card bottom: description + details link | CTA */
#aeroJobs .aj-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; margin-top: 18px; }
#aeroJobs .aj-card-left { min-width: 0; flex: 1 1 auto; }
#aeroJobs .aj-desc {
  max-width: 64ch; font-size: 15.5px; line-height: 1.6; color: var(--aj-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#aeroJobs .aj-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 16px; font-weight: 600; color: var(--aj-blue);
}
#aeroJobs .aj-link:hover { color: var(--aj-blue-2); background: none; }
#aeroJobs .aj-link:hover svg { transform: translateX(3px); }
#aeroJobs .aj-link svg { transition: transform .15s; }

/* ---------- Buttons (shared) ---------- */
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: 10px;
  font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--navy { background: var(--aj-navy); color: #fff; border: 1px solid var(--aj-navy); }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--navy:hover { background: var(--aj-navy-2); border-color: var(--aj-navy-2); color: #fff; box-shadow: 0 10px 22px rgba(10, 26, 63, .25); }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--navy.is-disabled { background: #94a3b8; border-color: #94a3b8; cursor: not-allowed; box-shadow: none; }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--primary { background: var(--aj-blue); color: #fff; border: 1px solid var(--aj-blue); }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--primary:hover { background: var(--aj-blue-2); border-color: var(--aj-blue-2); color: #fff; box-shadow: 0 10px 22px rgba(27, 92, 240, .28); }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--primary:disabled { opacity: .65; cursor: progress; box-shadow: none; }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--outline { background: #fff; color: var(--aj-blue); border: 1.5px solid var(--aj-blue); }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--outline:hover { background: #f2f6ff; color: var(--aj-blue-2); border-color: var(--aj-blue-2); }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--ghost { background: #fff; color: var(--aj-navy); border: 1px solid #cbd5e1; }
:is(#aeroJobs, #ajDetails, #ajApply) .aj-btn--ghost:hover { background: #f5f7fb; color: var(--aj-navy); border-color: #b4c0d2; }

/* ---------- Card responsiveness via container queries ---------- */
@container (max-width: 680px) {
  #aeroJobs .aj-meta { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  #aeroJobs .aj-meta-i { padding: 0; border-left: 0; }
}
@container (max-width: 600px) {
  #aeroJobs .aj-card-bottom { flex-direction: column; align-items: stretch; }
  #aeroJobs .aj-card-bottom > .aj-btn { width: 100%; }
}
@container (max-width: 270px) {
  #aeroJobs .aj-meta { grid-template-columns: 1fr; }
}

/* ---------- Aside ---------- */
#aeroJobs .aj-aside {
  position: sticky; top: 110px;
  padding: 28px 24px;
  background: #fff; border: 1px solid var(--aj-line); border-radius: var(--aj-r-lg); box-shadow: var(--aj-shadow);
}
#aeroJobs .aj-aside-top { display: flex; align-items: center; gap: 14px; }
#aeroJobs .aj-illus {
  display: grid; place-items: center; flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0 30%, #e8f0ff 31% 100%);
  box-shadow: inset 0 -8px 16px rgba(27, 92, 240, .08);
}
#aeroJobs .aj-aside-h { font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--aj-navy); }
#aeroJobs .aj-aside-p { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--aj-muted); }
#aeroJobs .aj-ticks { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
#aeroJobs .aj-ticks li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--aj-ink); }
#aeroJobs .aj-tick { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--aj-green); color: #fff; }

/* ---------- Load-more banner ---------- */
#aeroJobs .aj-more {
  display: flex; align-items: center; gap: 22px; margin-top: 24px; padding: 22px 30px;
  background: #fff; border: 1px solid var(--aj-line); border-radius: var(--aj-r-lg); box-shadow: var(--aj-shadow);
}
#aeroJobs .aj-more-tile { display: grid; place-items: center; flex: 0 0 68px; width: 68px; height: 68px; border-radius: 50%; background: var(--aj-tint); color: var(--aj-blue); }
#aeroJobs .aj-more-txt { flex: 1 1 auto; min-width: 0; }
#aeroJobs .aj-more-h { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--aj-navy); }
#aeroJobs .aj-more-p { margin-top: 6px; font-size: 15.5px; color: var(--aj-muted); }
#aeroJobs .aj-more .aj-btn { min-height: 54px; padding: 0 40px; }

/* ---------- Trust strip (full-bleed white) ---------- */
#aeroJobs .aj-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: 34px; padding: 28px 0;
  background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax);
}
#aeroJobs .aj-trust li { display: flex; align-items: center; justify-content: center; gap: 16px; }
#aeroJobs .aj-trust-tile { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 14px; background: var(--aj-tint); color: var(--aj-blue); }
#aeroJobs .aj-trust b { display: block; font-size: 16.5px; font-weight: 700; color: var(--aj-navy); }
#aeroJobs .aj-trust small { display: block; margin-top: 2px; font-size: 14.5px; color: var(--aj-muted); }

/* ---------- Skeleton / empty / error ---------- */
#aeroJobs .aj-skel {
  display: flex; flex-direction: column; gap: 14px; padding: 28px 30px;
  background: #fff; border: 1px solid var(--aj-line); border-radius: var(--aj-r-lg);
}
#aeroJobs .aj-skel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 50%, #eef2f8 75%); background-size: 200% 100%; animation: ajShimmer 1.3s linear infinite; }
#aeroJobs .aj-skel i:nth-child(1) { width: 18%; height: 22px; }
#aeroJobs .aj-skel i:nth-child(2) { width: 52%; height: 28px; }
#aeroJobs .aj-skel i:nth-child(3) { width: 88%; }
#aeroJobs .aj-skel i:nth-child(4) { width: 64%; }
@keyframes ajShimmer { to { background-position: -200% 0; } }

#aeroJobs .aj-state {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 48px 24px; background: #fff; border: 1.5px dashed #cdd8ea; border-radius: var(--aj-r-lg); color: var(--aj-soft);
}
#aeroJobs .aj-state h4 { font-size: 19px; font-weight: 700; color: var(--aj-navy); }
#aeroJobs .aj-state p { max-width: 46ch; font-size: 15px; color: var(--aj-muted); }
#aeroJobs .aj-state-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
#aeroJobs .aj-state--err { border-color: #f3c2c7; }
#aeroJobs .aj-state--err > svg { color: var(--aj-red); }

/* ============================== RESPONSIVE PAGE ============================== */
@media (max-width: 1180px) {
  #aeroJobs .aj-panel { grid-template-columns: 1fr 1fr; }
  #aeroJobs .aj-types { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  #aeroJobs .aj-main { grid-template-columns: 1fr; }
  #aeroJobs .aj-aside { position: static; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 32px; align-items: center; }
  #aeroJobs .aj-ticks { margin-top: 0; }
}
@media (max-width: 760px) {
  #aeroJobs { padding-top: 36px; }
  #aeroJobs .aj-panel { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  #aeroJobs .aj-types { grid-column: auto; }
  #aeroJobs .aj-bar { align-items: flex-start; flex-direction: column; }
  #aeroJobs .aj-sort { width: 100%; }
  #aeroJobs .aj-sort .aj-sel { flex: 1; }
  #aeroJobs .aj-sel--sm select { min-width: 0; }
  #aeroJobs .aj-card { padding: 22px 20px; }
  #aeroJobs .aj-aside { grid-template-columns: 1fr; padding: 24px 20px; }
  #aeroJobs .aj-more { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  #aeroJobs .aj-more .aj-btn { width: 100%; }
  #aeroJobs .aj-trust { grid-template-columns: 1fr; gap: 18px; }
  #aeroJobs .aj-trust li { justify-content: flex-start; }
}
@media (max-width: 520px) {
  #aeroJobs .aj-types { grid-template-columns: 1fr; }
  #aeroJobs .aj-type { min-height: 84px; grid-template-columns: 50px minmax(0, 1fr) auto; padding: 14px 16px; }
  #aeroJobs .aj-type-tile { width: 50px; height: 50px; }
  #aeroJobs .aj-type-num { font-size: 30px; }
}

/* ================================ MODALS ================================ */
html.aj-lock, html.aj-lock body { overflow: hidden; }

:is(#ajDetails, #ajApply).aj-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8, 20, 45, .55);
  opacity: 0; transition: opacity .18s ease;
}
:is(#ajDetails, #ajApply).aj-modal[hidden] { display: none; }
:is(#ajDetails, #ajApply).aj-modal.is-open { opacity: 1; }
:is(#ajDetails, #ajApply) .aj-mbox {
  display: flex; flex-direction: column;
  width: min(1000px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  background: #fff; border-radius: 18px; box-shadow: var(--aj-shadow-lg); overflow: hidden;
  transform: translateY(12px) scale(.985); transition: transform .2s ease;
}
:is(#ajDetails, #ajApply).is-open .aj-mbox { transform: none; }
#ajDetails .aj-mbox--md { width: min(860px, 100%); }
:is(#ajDetails, #ajApply) .aj-form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }

:is(#ajDetails, #ajApply) .aj-mhead { display: flex; align-items: center; gap: 18px; padding: 20px 24px 18px; flex: 0 0 auto; }
:is(#ajDetails, #ajApply) .aj-mhead-ic {
  display: grid; place-items: center; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--aj-tint); color: var(--aj-blue); position: relative;
}
:is(#ajDetails, #ajApply) .aj-mhead-txt { flex: 1 1 auto; min-width: 0; padding-left: 18px; border-left: 1px solid var(--aj-line); }
:is(#ajDetails, #ajApply) .aj-mhead h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--aj-navy); }
:is(#ajDetails, #ajApply) .aj-mhead p { margin-top: 4px; font-size: 15.5px; color: var(--aj-muted); }
:is(#ajDetails, #ajApply) .aj-mclose {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; align-self: flex-start;
  border-radius: 10px; background: #eef2f7; color: var(--aj-navy);
}
:is(#ajDetails, #ajApply) .aj-mclose:hover { background: #e1e7f0; color: var(--aj-navy); }

:is(#ajDetails, #ajApply) .aj-mbody {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 16px;
  padding: 4px 24px 22px;
}
:is(#ajDetails, #ajApply) .aj-mbody > * { flex-shrink: 0; }
:is(#ajDetails, #ajApply) .aj-mfoot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 0 0 auto;
  padding: 16px 24px; background: #fff; border-top: 1px solid var(--aj-line);
}
#ajApply .aj-mfoot .aj-btn--primary { min-width: min(300px, 60%); min-height: 52px; }
#ajApply .aj-mfoot .aj-btn--ghost { min-width: 110px; }

/* Sections */
#ajApply .aj-sec { border: 1px solid #e3eaf5; border-radius: 14px; overflow: hidden; background: #fff; }
#ajApply .aj-sec-head { display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: #eef4ff; }
#ajApply .aj-sec-ic { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--aj-blue); color: #fff; }
#ajApply .aj-sec-head b { display: block; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--aj-navy); }
#ajApply .aj-sec-head small { display: block; margin-top: 2px; font-size: 14px; color: var(--aj-muted); }
#ajApply .aj-sec-body { padding: 16px 18px 18px; }

#ajApply .aj-g { display: grid; gap: 14px 22px; }
#ajApply .aj-g + .aj-g { margin-top: 14px; }
#ajApply .aj-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#ajApply .aj-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#ajApply .aj-g4 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, 1.1fr); }
#ajApply .aj-span { grid-column: 1 / -1; }

#ajApply .aj-fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
#ajApply .aj-lbl { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--aj-ink); }
#ajApply .aj-lbl em, #ajApply .aj-check em { font-style: normal; color: #e11d48; }

#ajApply .aj-fld :is(input, textarea) { height: 46px; padding: 0 14px; font-size: 15px; }
#ajApply .aj-fld textarea { height: auto; min-height: 64px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
#ajApply .aj-fld :is(input, textarea)::placeholder { color: var(--aj-soft); opacity: 1; }
#ajApply .aj-fld :is(input, textarea, select):hover { border-color: #b9c8de; }
#ajApply .aj-fld :is(input, textarea, select):focus { border-color: var(--aj-blue); box-shadow: 0 0 0 3px rgba(27, 92, 240, .14); }
#ajApply .aj-sel--form select { height: 46px; padding: 0 40px 0 14px; font-size: 15px; font-weight: 400; }
#ajApply .aj-sel--form .aj-sel-chev { right: 14px; }
#ajApply .aj-in { position: relative; }
#ajApply .aj-in input { padding-left: 44px; }
#ajApply .aj-in-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--aj-blue); pointer-events: none; }
#ajApply input[type="date"] { min-height: 46px; }

/* Read-only job summary */
#ajApply .aj-ro {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px;
  background: #f1f4f9; border: 1px solid #e3e8f0; border-radius: var(--aj-r-sm);
  font-size: 15px; color: var(--aj-ink); min-width: 0;
}
#ajApply .aj-ro > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ajApply .aj-ro-txt { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ajApply .aj-ro-ic { color: var(--aj-blue); }
#ajApply .aj-ro-ic--solid { color: var(--aj-blue); }
#ajApply .aj-jt { display: inline-flex; align-items: center; min-height: 32px; padding: 0 16px; margin-top: 7px; border-radius: 8px; background: var(--aj-blue); color: #fff; font-size: 14.5px; font-weight: 600; }

/* Uploads */
#ajApply .aj-ups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#ajApply .aj-up { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#ajApply .aj-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 118px; padding: 16px 12px; text-align: center;
  background: #fff; border: 1.5px dashed #9fb9ea; border-radius: 10px; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
#ajApply .aj-drop:hover, #ajApply .aj-drop:focus-within { background: #f5f8ff; border-color: var(--aj-blue); }
#ajApply .aj-drop:focus-within { outline: 3px solid rgba(27, 92, 240, .3); outline-offset: 2px; }
#ajApply .aj-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#ajApply .aj-drop-ic { color: var(--aj-blue); margin-bottom: 4px; }
#ajApply .aj-drop-t { max-width: 100%; font-size: 15px; font-weight: 500; color: var(--aj-blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ajApply .aj-drop-h { font-size: 13px; color: var(--aj-muted); }
#ajApply .aj-drop.is-ok { border-style: solid; border-color: var(--aj-green); background: #f2fbf6; }
#ajApply .aj-drop.is-ok :is(.aj-drop-ic, .aj-drop-t) { color: var(--aj-green-ink); }
#ajApply .aj-drop.is-bad { border-color: var(--aj-red); background: #fff6f7; }
#ajApply .aj-up-note { font-size: 13px; color: var(--aj-muted); }
#ajApply .aj-idrow { margin-top: 16px; }

/* Declaration */
#ajApply .aj-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--aj-ink); cursor: pointer; }
#ajApply .aj-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--aj-blue); cursor: pointer; }

/* Validation */
#ajApply .is-invalid :is(input, select, textarea) { border-color: var(--aj-red); box-shadow: 0 0 0 3px rgba(220, 53, 69, .1); }
#ajApply .aj-err { display: block; font-size: 13px; font-weight: 500; color: #c62d3d; }
#ajApply .aj-check.is-invalid { color: #c62d3d; }
#ajApply .aj-check .aj-err { flex-basis: 100%; }
#ajApply .aj-check.is-invalid { flex-wrap: wrap; }
#ajApply .aj-alert { padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; }
#ajApply .aj-alert--err { background: #fdecee; color: #a61e2d; border: 1px solid #f5c2c8; }
#ajApply .aj-alert--ok { background: var(--aj-green-bg); color: var(--aj-green-ink); border: 1px solid #b6e3c8; }

/* Honeypot */
#ajApply .aj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success state */
#ajApply .aj-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 28px 40px; text-align: center; }
#ajApply .aj-done[hidden] { display: none; }
#ajApply .aj-done-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--aj-green-bg); color: var(--aj-green); }
#ajApply .aj-done-h { font-size: 26px; font-weight: 800; color: var(--aj-navy); outline: 0; }
#ajApply .aj-done-p { max-width: 48ch; font-size: 16px; color: var(--aj-muted); margin-bottom: 8px; }

/* Details modal content */
#ajDetails .aj-det-top .aj-chips { margin-top: 0; }
#ajDetails .aj-meta { padding: 18px 20px; margin-top: 0; background: #f7f9fd; border: 1px solid var(--aj-line); border-radius: var(--aj-r); }
#ajDetails .aj-dblock h4 { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 700; color: var(--aj-navy); }
#ajDetails .aj-dblock h4 svg { color: var(--aj-blue); }
#ajDetails .aj-dblock p { margin-top: 8px; padding-left: 28px; font-size: 15.5px; line-height: 1.65; color: var(--aj-ink); white-space: pre-line; }

/* Modal responsive */
@media (max-width: 860px) {
  #ajApply .aj-g3, #ajApply .aj-ups { grid-template-columns: 1fr 1fr; }
  #ajApply .aj-g4 { grid-template-columns: 1fr 1fr; }
  #ajApply .aj-g3 > .aj-fld:first-child:not(.aj-span) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :is(#ajDetails, #ajApply).aj-modal { padding: 0; align-items: stretch; }
  :is(#ajDetails, #ajApply) .aj-mbox, #ajDetails .aj-mbox--md { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  :is(#ajDetails, #ajApply) .aj-mhead { padding: 16px; gap: 12px; }
  :is(#ajDetails, #ajApply) .aj-mhead-ic { flex-basis: 48px; width: 48px; height: 48px; }
  :is(#ajDetails, #ajApply) .aj-mhead-txt { padding-left: 12px; }
  :is(#ajDetails, #ajApply) .aj-mhead p { font-size: 14px; }
  :is(#ajDetails, #ajApply) .aj-mbody { padding: 4px 14px 18px; }
  :is(#ajDetails, #ajApply) .aj-mfoot { padding: 12px 14px; }
  #ajApply .aj-mfoot .aj-btn--primary { flex: 1; min-width: 0; }
  #ajApply .aj-g2, #ajApply .aj-g3, #ajApply .aj-ups { grid-template-columns: 1fr; }
  #ajApply .aj-sec-body { padding: 14px; }
  #ajApply .aj-sec-head { padding: 12px 14px; }
  #ajApply .aj-sec-head b { font-size: 17px; }
  #ajDetails .aj-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  #ajDetails .aj-meta-i { padding: 0; border-left: 0; }
  #ajDetails .aj-dblock p { padding-left: 0; }
  #ajApply .aj-ro { align-items: flex-start; padding: 12px; }
  #ajApply .aj-ro > span { white-space: normal; overflow: visible; }
  #ajApply .aj-ro > svg { margin-top: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  :is(#aeroJobs, #ajDetails, #ajApply) *, :is(#ajDetails, #ajApply).aj-modal, :is(#ajDetails, #ajApply) .aj-mbox { transition: none; animation: none; }
}
