:root {
  --bg-primary: #0b0d0f;
  --bg-surface: #14181c;
  --accent-gold: #c9a227;
  --accent-teal: #2b4c4f;
  --text-primary: #f2efe9;
  --text-muted: #9ca3a8;
  --border-hairline: #262b30;
  --shadow-soft: 0 18px 42px rgba(9, 11, 13, 0.35);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

html, body {
  max-width: 100%;
}

img, svg, video, canvas,
.card-grid, .role-grid, .country-grid,
.service-card, .role-card, .employer-card,
.filter-shell, .site-nav, .form-panel, .form-shell {
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
.brand-word {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
}

p {
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(201, 162, 39, 0.12), transparent 28%),
    var(--bg-primary);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 15, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: inline-block;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 26%;
  flex-shrink: 0;
}

.brand-word {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.footer-bottom a:hover,
.footer-grid a:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(20, 24, 28, 0.65);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.floating-profile {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 58px;
  min-height: 58px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.6);
  background: rgba(11, 13, 15, 0.9);
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
  cursor: pointer;
}

.floating-profile .avatar-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--accent-gold);
}

.floating-profile .avatar-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

[data-requires-shortlist].is-locked {
  opacity: 0.72;
}

[data-gated-action].is-disabled {
  opacity: 0.7;
}

.floating-profile .avatar-mark svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.floating-profile .profile-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.button-secondary {
  border-color: rgba(201, 162, 39, 0.7);
  background: transparent;
  color: var(--text-primary);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.mission-copy h2,
.subscribe-card h2 {
  margin: 0 0 1rem;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.1rem);
  max-width: 11ch;
}

.lead {
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-primary);
  opacity: 0.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  position: relative;
  width: min(470px, 100%);
  min-height: 540px;
  border-radius: var(--radius);
  border: 1px solid var(--border-hairline);
  background: linear-gradient(135deg, rgba(43, 76, 79, 0.7), rgba(20, 24, 28, 0.9));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 13, 15, 0.12), rgba(11, 13, 15, 0.82));
}

.visual-card .media-frame {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
}

.visual-badge,
.visual-stats {
  position: absolute;
  z-index: 1;
}

.visual-badge {
  left: 1.2rem;
  top: 1.2rem;
  background: rgba(11, 13, 15, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visual-stats {
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 0.8rem;
  width: min(280px, 72%);
}

.visual-stats div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 15, 0.55);
  border-radius: 18px;
  padding: 1rem 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.visual-stats strong {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--accent-gold);
}

.visual-stats span {
  font-size: 0.72rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(20, 24, 28, 0.78);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.section-intro {
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  gap: 1.4rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.country-card,
.service-card,
.mission-panel,
.subscribe-card {
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease forwards;
}

.info-card:hover,
.country-card:hover,
.service-card:hover,
.mission-panel:hover,
.subscribe-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-card,
.service-card {
  padding: 1.6rem;
}

.card-tag {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(43, 76, 79, 0.45);
  color: var(--text-primary);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-card h3,
.country-body h3,
.service-card h3 {
  margin: 1rem 0 0.7rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.text-link {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.countries-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.country-card {
  overflow: hidden;
}

.country-flag {
  min-height: 126px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.22), rgba(43, 76, 79, 0.6));
  border-bottom: 1px solid var(--border-hairline);
}

.australia { background: linear-gradient(180deg, rgba(201, 162, 39, 0.18), rgba(20, 24, 28, 0.9)); }
.canada { background: linear-gradient(180deg, rgba(43, 76, 79, 0.45), rgba(20, 24, 28, 0.9)); }
.norway { background: linear-gradient(180deg, rgba(14, 74, 96, 0.45), rgba(20, 24, 28, 0.9)); }
.gulf { background: linear-gradient(180deg, rgba(201, 162, 39, 0.2), rgba(20, 24, 28, 0.9)); }
.nigeria { background: linear-gradient(180deg, rgba(76, 100, 52, 0.3), rgba(20, 24, 28, 0.9)); }

.country-body {
  padding: 1.25rem 1rem 1.5rem;
}

.country-body p,
.service-card p,
.mission-copy p,
.footer-tagline,
.footer-grid li,
.footer-bottom p,
.disclaimer-box,
.callout-box {
  color: var(--text-muted);
}

.callout-box {
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  background: rgba(43, 76, 79, 0.22);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
}

.callout-box a {
  color: var(--accent-gold);
}

.trust-bar {
  padding-top: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  padding: 1.5rem;
}

.trust-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-grid strong {
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-family: "Fraunces", serif;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.service-card.featured {
  border-color: rgba(201, 162, 39, 0.6);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.18), var(--shadow-soft);
}

.service-price {
  color: var(--accent-gold);
  font-size: 2rem;
  font-weight: 700;
}

.mission-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.mission-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.mission-panel {
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}

.mini-stat {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  background: rgba(11, 13, 15, 0.35);
}

.mini-stat strong {
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
  font-size: 1.6rem;
}

.subscribe-section {
  padding-top: 2rem;
}

.subscribe-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 1.8rem;
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(500px, 100%);
}

.subscribe-form input {
  flex: 1;
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  background: rgba(11, 13, 15, 0.55);
  padding: 0 1rem;
  color: var(--text-primary);
}

.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-collapse-toggle {
  display: none;
}

.footer-grid > div,
.footer-grid > section,
.footer-grid > nav {
  min-width: 0;
}

.brand-footer {
  margin-bottom: 0.8rem;
}

.footer-grid h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
}

.legal-copy {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.disclaimer-box {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.9rem;
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.services-access-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.2rem;
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: 18px;
}

.services-access-panel .gated-summary {
  margin-bottom: 0;
}

.service-note {
  display: block;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.guide-order-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.guide-order-form label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-order-form input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: rgba(11, 13, 15, 0.6);
  color: var(--text-primary);
}

.guide-order-form .form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.service-price small {
  display: block;
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

[data-requires-shortlist] {
  position: relative;
}

[data-requires-shortlist].is-locked {
  opacity: 0.72;
}

[data-requires-shortlist].is-locked::after {
  content: "Shortlist required";
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  background: rgba(11, 13, 15, 0.78);
  color: var(--accent-gold);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visa-anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
}

.visa-panel-list {
  scroll-margin-top: 96px;
}

.visa-panel-body {
  display: grid;
  gap: 0.75rem;
}

.visa-panel-body h3 {
  margin: 0.6rem 0 0;
  color: var(--text-primary);
  font-size: 1rem;
  letter-spacing: 0;
}

.visa-panel-body .panel-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.4rem;
  padding: 0;
}

.visa-panel-body .panel-list li {
  color: var(--text-muted);
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  background: rgba(11, 13, 15, 0.28);
}

.visa-cta {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: center;
  margin-top: 2rem;
}

.visa-cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.review-summary {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.review-summary div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  background: rgba(11, 13, 15, 0.35);
}

.review-summary dt {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-summary dd {
  margin: 0;
  color: var(--text-primary);
}

.profile-lock-notice {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent-gold);
  background: rgba(201, 162, 39, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dashboard-avatar-button {
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: zoom-in;
}

.dashboard-logout {
  width: auto;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  margin-top: 1.25rem;
}

.profile-picture-actions,
.profile-picture-default-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.password-change-panel {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  background: rgba(11, 13, 15, 0.28);
}

.password-change-panel h3 {
  margin: 0;
}

.password-change-panel > summary {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 700;
}

.password-change-panel form {
  display: grid;
  gap: 0.55rem;
  max-width: 420px;
}

.password-change-panel input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.password-change-panel .button {
  width: fit-content;
  margin-top: 0.35rem;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(11, 13, 15, 0.9);
}

.photo-viewer[hidden],
.modal-applications[hidden] {
  display: none !important;
}

.photo-viewer-content {
  position: relative;
  max-width: min(92vw, 620px);
}

.photo-viewer-content img {
  max-height: 80vh;
  border-radius: 20px;
  border: 2px solid var(--accent-gold);
}

.photo-controls {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(20, 24, 28, 0.96);
  border: 1px solid var(--border-hairline);
}

.photo-controls p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo-controls form {
  display: grid;
  gap: 0.65rem;
}

.button-danger {
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.3);
}

.admin-management-links,
.modal-application-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-management-links {
  margin: 1rem 0 1.5rem;
}

.admin-photo-editor {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  background: rgba(11, 13, 15, 0.28);
}

.admin-photo-editor h3,
.admin-photo-editor p {
  margin: 0;
}

.admin-photo-editor p,
.admin-photo-editor small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-photo-editor form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-photo-editor input[type="file"] {
  max-width: 100%;
  color: var(--text-muted);
}

.modal-applications {
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
}

.modal-application-card {
  justify-content: space-between;
  padding: 0.9rem;
  margin-top: 0.65rem;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
}

.modal-application-card p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .visa-cta,
  .hero-grid,
  .mission-wrap,
  .subscribe-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .countries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-up,
  .services-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .services-access-panel,
  .subscribe-card,
  .footer-bottom {
    display: grid;
  }
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.page-hero .container {
  max-width: 900px;
}

.page-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
}

.page-hero .lead {
  max-width: 60ch;
  font-size: 1.08rem;
}

.country-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
}

.content-panel,
.side-panel {
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 1.7rem;
}

.content-panel h2,
.side-panel h3,
.currency-card h3,
.panel-list h3,
.country-hub h2 {
  margin-top: 0;
}

.content-panel p,
.side-panel p,
.panel-list li,
.country-hub p {
  color: var(--text-muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(43, 76, 79, 0.4);
  border: 1px solid rgba(43, 76, 79, 0.7);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.stat-grid .mini-stat {
  min-height: 120px;
}

.side-panel .panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.side-panel .panel-list li {
  padding: 0.8rem 0.9rem;
  background: rgba(11, 13, 15, 0.35);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
}

.country-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.country-hub-card {
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.country-hub-card .country-flag {
  min-height: 96px;
}

.country-hub-card .country-body {
  padding: 1.2rem;
}

.country-hub-intro {
  margin-bottom: 2rem;
}

.role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.role-card h4 {
  margin: 0;
  font-size: 1.25rem;
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
}

.role-card .role-summary {
  margin: 0;
  color: var(--text-muted);
}

.role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.role-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--accent-gold);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.role-code {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.role-card p,
.role-card li {
  color: var(--text-muted);
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.role-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(43, 76, 79, 0.32);
  border: 1px solid rgba(43, 76, 79, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.role-list li {
  position: relative;
  padding-left: 1rem;
}

.role-list li::before {
  content: "*";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.openings-board {
  display: grid;
  gap: 1.2rem;
}

.recommended-openings {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.recommended-heading {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin: 0;
}

.recommended-sub {
  color: var(--text-muted);
  margin: -0.4rem 0 0;
  font-size: 0.95rem;
}

.recommended-divider {
  border: none;
  border-top: 1px solid var(--border-hairline);
  margin: 1.5rem 0 0.5rem;
}

.gated-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.08);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gated-summary {
  margin-top: 0.9rem;
  color: var(--text-muted);
}

.services-filter,
.openings-controls {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 1.5rem;
}

.services-filter {
  grid-template-columns: minmax(180px, 220px) 1fr;
  align-items: end;
}

.services-filter label,
.openings-controls label {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-filter select,
.openings-controls select {
  min-height: 48px;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  background: rgba(11, 13, 15, 0.55);
  color: var(--text-primary);
}

.openings-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  background: rgba(11, 13, 15, 0.25);
  color: var(--text-muted);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.employer-card {
  position: relative;
  display: grid;
  gap: 1.05rem;
  min-width: 0;
  padding: 1.35rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(31, 42, 48, 0.92), rgba(17, 21, 25, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.employer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), rgba(201, 162, 39, 0.08));
}

.employer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.52);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.employer-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.employer-title-wrap {
  min-width: 0;
}

.employer-title-wrap h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.employer-tagline {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.employer-type-tag {
  align-self: start;
  max-width: 125px;
  padding: 0.35rem 0.55rem;
  color: var(--accent-gold);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.employer-card > p {
  min-height: 4.7rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.employer-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0.38rem 0.62rem;
  color: var(--text-muted);
  background: rgba(8, 11, 13, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1.25;
}

.meta-chip.region-chip { color: #d8c78f; }
.meta-chip.operator-chip { color: #b8d0ce; }

.employer-card-route {
  min-height: 5.4rem;
  padding: 0.9rem 1rem;
  color: #d8dde0;
  background: rgba(43, 76, 79, 0.2);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 10px 10px 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.employer-card-route strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent-gold);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.employer-card > .button {
  justify-self: start;
  margin-top: 0.15rem;
}

.job-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
}

.job-card .button,
.role-card .button {
  width: fit-content;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.job-card.locked {
  filter: blur(3px);
  opacity: 0.7;
}

.openings-board.is-unlocked .job-card.locked {
  filter: none;
  opacity: 1;
}

.job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.job-country {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.job-card p,
.job-meta li {
  color: var(--text-muted);
}

.job-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.job-meta li {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 13, 15, 0.45);
  border: 1px solid var(--border-hairline);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.currency-card {
  padding: 1.4rem;
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
}

.form-shell {
  display: grid;
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.form-panel {
  background: rgba(20, 24, 28, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.form-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.step-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: rgba(11, 13, 15, 0.35);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-pill.is-active {
  color: var(--accent-gold);
  border-color: rgba(201, 162, 39, 0.52);
  background: rgba(201, 162, 39, 0.1);
}

.form-step {
  display: none;
  gap: 1rem;
}

.form-step.is-visible {
  display: grid;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  background: rgba(11, 13, 15, 0.45);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select > select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  background: rgba(11, 13, 15, 0.45);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.custom-select-trigger::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.custom-select.is-open .custom-select-trigger::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.custom-select-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] + .custom-select-trigger {
  border-color: rgba(255, 136, 121, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 136, 121, 0.12);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 60;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 14px;
  background: #171c20;
  box-shadow: var(--shadow-soft);
}

.custom-select-option {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option[aria-selected="true"] {
  background: rgba(201, 162, 39, 0.16);
}

.custom-select-option:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.form-status {
  min-height: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-status.is-success {
  color: #d3ebba;
}

.phone-input-wrap {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0.75rem;
}

.phone-input-wrap select,
.phone-input-wrap input {
  width: 100%;
}

.field-message {
  margin-top: 0.5rem;
  color: #ffb7a8;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.inline-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(43, 76, 79, 0.25);
  border: 1px solid rgba(43, 76, 79, 0.7);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-alert.is-error {
  background: rgba(134, 20, 20, 0.2);
  border-color: rgba(255, 136, 121, 0.75);
  color: #ffd2c6;
}

.inline-alert.is-success {
  background: rgba(45, 120, 81, 0.2);
  border-color: rgba(89, 206, 139, 0.85);
  color: #dbf8e8;
}

.form-alert {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 12px;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid var(--border-hairline);
  border-radius: 18px;
  background: rgba(20, 24, 28, 0.76);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.1rem 1.2rem;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
}

.faq-question span:last-child {
  color: var(--accent-gold);
  font-size: 1.3rem;
}

.faq-answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--text-muted);
}

.faq-answer[hidden] {
  display: none;
}

.disclaimer-box {
  margin-top: 1.4rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-hairline);
  border-radius: 18px;
  background: rgba(11, 13, 15, 0.35);
}

.legal-copy-block {
  display: grid;
  gap: 1rem;
}

.legal-copy-block h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}




@media (max-width: 1024px) {
  .role-grid,
  .job-grid {
    grid-template-columns: 1fr;
  }
}

.currency-card p {
  color: var(--text-muted);
}




@media (max-width: 1024px) {
  .country-layout {
    grid-template-columns: 1fr;
  }

  .country-hub-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body {
    min-width: 0;
  }

  .container {
    width: min(100% - 1rem, var(--container));
  }

  .review-summary div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .nav-wrap {
    position: relative;
    min-height: 68px;
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem 1.2rem;
    background: rgba(11, 13, 15, 0.96);
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    max-height: calc(100svh - 5.5rem);
    overflow-y: auto;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    display: inline-flex;
    order: 1;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    font-size: 0.68rem;
  }

  .nav-cta[href="logout.php"] {
    width: auto !important;
    max-width: max-content;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0.45rem 0.65rem;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions,
  .subscribe-form {
    display: grid;
    width: 100%;
  }

  .countries-grid,
  .three-up,
  .services-grid,
  .trust-grid,
  .role-filters,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .role-filters {
    display: grid;
    gap: 0.75rem;
  }

  .role-filters label,
  .role-filters select {
    width: 100%;
    min-width: 0;
  }

  .button,
  .subscribe-form input {
    width: 100%;
  }

  .site-footer {
    padding: 0 0 1rem;
  }

  .site-footer.is-collapsed .footer-grid,
  .site-footer.is-collapsed .disclaimer-box,
  .site-footer.is-collapsed .footer-bottom {
    display: none;
  }

  .site-footer.is-expanded .footer-grid,
  .site-footer.is-expanded .footer-bottom,
  .site-footer.is-expanded .disclaimer-box {
    display: block;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding-top: 0.75rem;
  }

  .site-footer .legal-copy {
    flex-wrap: wrap;
    gap: 0.65rem 0.9rem;
  }

  .footer-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem 0.55rem;
    border: 0;
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(11, 13, 15, 0.88);
    color: var(--text-primary);
    cursor: pointer;
  }

  .footer-collapse-toggle .arrow {
    display: block;
    width: 42px;
    height: 6px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.7);
    position: relative;
    transition: transform 0.2s ease;
  }

  .footer-collapse-toggle .arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent-gold);
    border-top: 2px solid var(--accent-gold);
    transform: translate(-50%, -35%) rotate(-45deg);
  }

  .site-footer.is-expanded .footer-collapse-toggle .arrow {
    transform: rotate(180deg);
  }

  .floating-profile {
    right: 0.8rem;
    bottom: 0.8rem;
    min-width: 52px;
    min-height: 52px;
    padding: 0.6rem 0.7rem;
  }

  .phone-input-wrap {
    grid-template-columns: minmax(108px, 0.72fr) minmax(0, 1.28fr);
    gap: 0.5rem;
  }

  .phone-input-wrap .custom-select-trigger {
    padding-inline: 0.75rem;
  }

  .custom-select-menu {
    max-height: min(45svh, 280px);
  }

}




/* =========================================================
   Phase 8  -  Visual & Content Enhancement
   Media-frame image system, icon sprite styling, avatars
   ========================================================= */

/* Generic image container. Shows a brand-toned gradient until a
   real photo is dropped into /images/<folder>/<exact-filename>.
   If the <img> 404s, script.js adds .is-pending which hides the
   broken-image box and leaves the gradient showing cleanly. */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-hairline);
  background: linear-gradient(150deg, rgba(201, 162, 39, 0.16), rgba(43, 76, 79, 0.38));
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media-frame img.is-pending {
  opacity: 0;
  position: absolute;
  inset: 0;
}

.media-frame.ratio-16-9 { aspect-ratio: 16 / 9; }
.media-frame.ratio-4-3  { aspect-ratio: 4 / 3; }
.media-frame.ratio-1-1  { aspect-ratio: 1 / 1; }
.media-frame.ratio-3-4  { aspect-ratio: 3 / 4; }

/* Page hero background photo. Sits behind the existing hero copy;
   a dark scrim keeps headline text readable over any photo. */
.page-hero,
.hero {
  position: relative;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 0;
  border: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 15, 0.55) 0%, rgba(11, 13, 15, 0.86) 78%, rgba(11, 13, 15, 0.97) 100%);
}

.page-hero.has-media { padding-top: 6rem; padding-bottom: 3.5rem; }
.page-hero.has-media .container,
.hero.has-media .hero-grid { position: relative; z-index: 1; }

/* Country / role card thumbnail photo, layered above the existing
   colour-coded gradient tag so cards still read correctly with or
   without a photo in place. */
.country-card .media-frame,
.country-hub-card .media-frame {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-hairline);
}

.country-flag {
  position: relative;
}

.country-flag span.flag-label {
  position: relative;
  z-index: 1;
}

.country-flag .media-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  border-radius: 0;
}

.country-flag .media-frame img { opacity: 0.55; }

/* Inline supporting photo inside a content panel (country pages). */
.panel-media {
  margin: 1.4rem 0 0;
}

.panel-media .media-frame { border-radius: 16px; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  pointer-events: none;
}

/* Filter dropdowns  -  visually match the controls used on the Openings page */
.filter-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.role-filters {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.role-filters label {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.role-filters select {
  min-width: 180px;
  background: rgba(11, 13, 15, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
}

/* Visa panels should remain horizontally scrollable on any device so
   country comparison cards can be browsed comfortably on mobile. */
.visa-panel-list,
.visa-panel-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.visa-panel-body > * {
  min-width: 320px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.15em;
}

/* Final mobile form baseline. Keep this after component rules so the
   candidate flow remains readable on real phone-sized viewports even when a
   browser has not loaded the enhancement script yet. */
@media (max-width: 600px) {
  .form-shell {
    width: 100%;
    padding-inline: 0;
  }

  .form-panel {
    padding: 1.25rem;
  }

  .form-panel .eyebrow {
    font-size: 0.78rem;
  }

  .form-panel h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .field {
    gap: 0.5rem;
  }

  .field label {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .field input,
  .field select,
  .field textarea,
  .custom-select-trigger {
    min-height: 54px;
    padding: 0.9rem 0.95rem;
    font-size: 1rem;
    line-height: 1.3;
  }

  .field select:not([data-native-select]) {
    appearance: none;
    -webkit-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--accent-gold) 50%),
      linear-gradient(135deg, var(--accent-gold) 50%, transparent 50%);
    background-position:
      calc(100% - 1.1rem) 50%,
      calc(100% - 0.75rem) 50%;
    background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
  }

  .phone-input-wrap {
    grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.2fr);
    gap: 0.6rem;
  }

  .phone-input-wrap .custom-select-trigger {
    padding-inline: 0.8rem;
    font-size: 0.94rem;
  }

  .form-actions {
    margin-top: 1.35rem;
    gap: 0.65rem;
  }

  .form-actions .button {
    min-height: 52px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }

  .floating-profile {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    min-width: 52px;
    min-height: 52px;
  }
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--accent-gold);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.role-card-header .icon-badge,
.job-top .icon-badge {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.role-card-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Generic avatar for testimonial placeholders  -  deliberately a
   neutral icon, not a fabricated headshot, until real permissioned
   quotes and photos replace these placeholders before launch. */
.avatar-generic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(43, 76, 79, 0.55);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

/* Visa accordion region thumbnail */
.faq-item .panel-media { margin: 0 0 1rem; }
.faq-item .media-frame.ratio-16-9 { max-height: 220px; }

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(8, 10, 12, 0.7);
}

.admin-panel {
  width: min(680px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  background: rgba(20, 24, 28, 0.98);
  box-shadow: var(--shadow-soft);
}

.admin-panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.8rem;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 140px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: rgba(11, 13, 15, 0.38);
}

.admin-title {
  color: var(--text-primary);
  font-weight: 600;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.server-snippet {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  background: rgba(11, 13, 15, 0.45);
  color: var(--text-muted);
  white-space: pre-wrap;
  font-size: 0.75rem;
}

.job-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 12, 0.7);
  padding: 1rem;
}

.modal-content {
  width: min(540px, 100%);
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-hairline);
  background: rgba(20, 24, 28, 0.98);
  box-shadow: var(--shadow-soft);
}

.modal-content h3 {
  margin: 0 0 0.8rem;
}

.modal-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.7rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .page-hero.has-media { padding-top: 4.5rem; }
  .about-gallery,
  .openings-controls,
  .services-filter {
    grid-template-columns: 1fr;
  }

  .employer-card-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .employer-type-tag {
    grid-column: 1;
    justify-self: start;
    max-width: none;
  }

  .employer-card > .button {
    width: 100%;
  }
}


.application-detail-shell {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.application-detail-card {
  margin-bottom: 1.5rem;
}

.application-status-panel {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.application-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 0;
}

.application-meta-grid dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-meta-grid dd {
  margin: 0.25rem 0 0;
  color: var(--text-primary);
  font-weight: 600;
}

.application-timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.application-timeline li {
  border-left: 2px solid var(--accent-gold);
  padding-left: 1rem;
}

.application-timeline time {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.application-timeline p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.admin-application-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.admin-application-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 1.2rem;
}

.admin-application-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.admin-application-form .full-row {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .application-meta-grid,
  .admin-application-form {
    grid-template-columns: 1fr;
  }
}

/* Mobile-first card and dashboard refinements. These overrides also normalize
   legacy inline flex/grid declarations used by the dashboard templates. */
@media (max-width: 600px) {
  :root {
    --radius: 16px;
  }

  .container {
    width: min(100% - 1rem, var(--container));
  }

  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .form-shell {
    padding-bottom: 4.75rem;
  }

  .page-hero {
    padding: 2.25rem 0 1.25rem;
  }

  .page-hero.has-media {
    min-height: 270px;
    padding-top: 3.25rem;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
    line-height: 1.05;
  }

  .card-grid,
  .three-up,
  .services-grid,
  .countries-grid,
  .role-grid,
  .job-grid,
  .info-grid,
  .summary-grid,
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-card,
  .service-card,
  .country-card,
  .role-card,
  .employer-card,
  .admin-application-card,
  .summary-card {
    min-width: 0;
    padding: 1.1rem;
    border-radius: 16px;
  }

  .info-card h2,
  .info-card h3,
  .service-card h3 {
    overflow-wrap: anywhere;
  }

  .dashboard-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 3rem;
  }

  .dashboard-sidebar {
    width: 100%;
    padding: 1.25rem;
    border-radius: 16px;
  }

  .dashboard-avatar {
    width: 104px;
    height: 104px;
    margin-bottom: 1rem;
  }

  .dashboard-sidebar h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .dashboard-sidebar p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .info-grid {
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .info-item[style*="grid-column"] {
    grid-column: auto !important;
  }

  .info-item dd {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .status-pill {
    max-width: 100%;
    padding: 0.35rem 0.7rem;
    font-size: 0.68rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }

  .dashboard-grid .info-card > form[enctype="multipart/form-data"] {
    width: 100%;
  }

  .dashboard-grid input[type="file"] {
    width: 100%;
    max-width: 100%;
    font-size: 0.82rem;
  }

  .dashboard-grid .button,
  .admin-application-card .button,
  .job-modal .button {
    min-height: 46px;
  }

  .dashboard-grid .info-card > div[style*="justify-content: space-between"],
  .dashboard-grid .info-card > div[style*="display: flex"] {
    align-items: stretch !important;
    flex-direction: column;
  }

  .dashboard-grid .info-card > div[style*="justify-content: space-between"] > div,
  .dashboard-grid .info-card > div[style*="display: flex"] > div {
    width: 100%;
    min-width: 0;
  }

  .dashboard-grid .info-card form[style*="display: flex"] {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dashboard-grid .info-card form[style*="display: flex"] .button {
    width: 100%;
  }

  .review-summary div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .form-shell,
  .form-panel {
    width: 100%;
  }

  .form-panel {
    padding: 1rem;
    border-radius: 16px;
  }

  .form-panel h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    line-height: 1.05;
  }

  .form-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .step-pill {
    width: 100%;
    min-height: 40px;
    padding-inline: 0.3rem;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-align: center;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-actions > div {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.75rem !important;
    width: 100%;
  }

  .form-actions .button {
    width: 100%;
    min-height: 50px;
  }

  .step-pill {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.62rem;
    padding-inline: 0.55rem;
  }

  .openings-controls,
  .services-filter {
    grid-template-columns: 1fr;
  }

  .employer-card {
    padding: 1.1rem;
  }

  .employer-card-header {
    grid-template-columns: 1fr;
  }

  .employer-card-route,
  .employer-card p,
  .job-meta {
    overflow-wrap: anywhere;
  }

  .services-access-panel {
    align-items: stretch;
    padding: 1rem;
  }

  .services-access-panel .gated-banner {
    width: 100%;
    text-align: center;
  }

  .admin-container {
    padding-top: 1.5rem;
  }

  .admin-container h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.05;
  }

  .admin-application-card > div:first-child {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .admin-application-card {
    overflow: hidden;
  }

  .applicant-row {
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem;
  }

  .applicant-summary {
    min-width: 0;
  }

  .applicant-summary h3,
  .applicant-summary p {
    overflow-wrap: anywhere;
  }

  .modal-content {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1rem;
  }

  .floating-profile {
    right: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
  }

  .floating-profile .profile-label {
    display: none;
  }
}

/* Keep the mobile candidate form legible after all legacy mobile overrides. */
@media (max-width: 600px) {
  .form-shell {
    width: 100%;
    padding-inline: 0;
    padding-bottom: 5rem;
  }

  .form-panel {
    padding: 1.25rem;
  }

  .form-panel .eyebrow {
    font-size: 0.78rem;
  }

  .form-panel h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .field {
    gap: 0.5rem;
  }

  .field label {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .field input,
  .field select,
  .field textarea,
  .custom-select-trigger {
    min-height: 54px;
    padding: 0.9rem 0.95rem;
    font-size: 1rem;
    line-height: 1.3;
  }

  .field select:not([data-native-select]) {
    appearance: none;
    -webkit-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--accent-gold) 50%),
      linear-gradient(135deg, var(--accent-gold) 50%, transparent 50%);
    background-position:
      calc(100% - 1.1rem) 50%,
      calc(100% - 0.75rem) 50%;
    background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
  }

  .phone-input-wrap {
    grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.2fr);
    gap: 0.6rem;
  }

  .phone-input-wrap .custom-select-trigger {
    padding-inline: 0.8rem;
    font-size: 0.94rem;
  }

  .form-actions {
    margin-top: 1.35rem;
    gap: 0.65rem;
  }

  .form-actions .button {
    min-height: 52px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }
}

/* Phone and narrow tablet viewports can report 600-768 CSS pixels when
   browser zoom or device emulation is active. Keep the same mobile-first
   layout in that range instead of switching to the desktop form. */
@media (max-width: 768px) {
  .container {
    width: min(100% - 1rem, var(--container));
  }

  .form-shell {
    width: 100%;
    padding-inline: 0;
    padding-bottom: 5rem;
  }

  .form-panel {
    padding: 1.25rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .form-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .step-pill {
    width: 100%;
    min-height: 40px;
    padding-inline: 0.3rem;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-align: center;
  }

  .field label {
    font-size: 0.78rem;
  }

  .field input,
  .field select,
  .field textarea,
  .custom-select-trigger {
    min-height: 54px;
    padding: 0.9rem 0.95rem;
    font-size: 1rem;
  }

  .phone-input-wrap {
    grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.2fr);
    gap: 0.6rem;
  }

  .form-actions,
  .form-actions > div {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.65rem !important;
  }

  .form-actions .button {
    width: 100%;
    min-height: 52px;
  }
}
/* Structured ticket selections remain readable on narrow screens. */
.ticket-checklist {
  border: 0;
  padding: 0;
  margin: 0;
}
.ticket-checklist legend {
  font-weight: 700;
  margin-bottom: .35rem;
}
.ticket-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .45rem .65rem;
  border: 1px solid var(--line, #d9e1e8);
  border-radius: .55rem;
  margin: .4rem 0;
}
.ticket-option input {
  width: .9rem;
  height: .9rem;
  flex: 0 0 auto;
}