:root {
  --flag-red: #d41920;
  --flag-blue: #0072ce;
  --flag-gold: #f9c300;
  --flag-black: #0c0c0c;
  --flag-white: #ffffff;
  --primary-900: #061528;
  --primary-700: #0e3a5f;
  --primary-500: #0f5f99;
  --accent-500: var(--flag-gold);
  --accent-700: #ec9f05;
  --neutral-050: #f7f9fc;
  --neutral-100: #eef3fa;
  --neutral-300: #cdd7e4;
  --neutral-500: #6a7380;
  --neutral-600: #4f5865;
  --neutral-700: #2c3440;
  --success-500: #279261;
  --warning-500: #f59e0b;
  --danger-500: #d84339;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-lg: 0 28px 70px rgba(8, 24, 44, 0.23);
  --shadow-md: 0 18px 40px rgba(8, 24, 44, 0.18);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(circle at 0% 0%, rgba(244, 208, 111, 0.16), transparent 55%) fixed,
              radial-gradient(circle at 100% 20%, rgba(0, 114, 206, 0.14), transparent 50%) fixed,
              var(--neutral-050);
  color: var(--neutral-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 21, 40, 0.08), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: -1;
}

.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;
}

.top-bar {
  background: linear-gradient(135deg, rgba(5, 13, 27, 0.92), rgba(8, 24, 44, 0.92));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.top-bar__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.top-bar__brand:hover,
.top-bar__brand:focus-visible {
  text-decoration: none;
  color: inherit;
}

.top-bar__menu {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-bar__menu:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.top-bar__menu:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.top-bar__menu-label {
  font-size: 0.72rem;
}

.top-bar__menu-icon {
  width: 18px;
  height: 2px;
  position: relative;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-bar__menu-icon::before,
.top-bar__menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-bar__menu-icon::before {
  top: -6px;
}

.top-bar__menu-icon::after {
  top: 6px;
}

.top-bar__menu.is-active .top-bar__menu-icon {
  background: transparent;
}

.top-bar__menu.is-active .top-bar__menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.top-bar__menu.is-active .top-bar__menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.top-bar__crest {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.top-bar__titles {
  display: grid;
  gap: 0;
}

.top-bar__title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: #fff;
}

.top-bar__subtitle {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  rgba(255, 255, 255, 0.85);
  line-height: 1.05;
}

.top-bar__subtitle:first-of-type {
  margin-top: 14px;
}

.top-bar__subtitle + .top-bar__subtitle {
  margin-top: 1px;
}

.top-bar__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.top-bar__nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar__nav-item--align-right {
  margin-left: auto;
}


.top-bar__nav-item--has-children .top-bar__nav-link {
  padding-right: 4px;
}

.top-bar__nav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  transition: color 0.2s ease;
}

.top-bar__nav-link--mixed {
  text-transform: none;
  letter-spacing: 0.05em;
}

.top-bar__nav-link:hover,
.top-bar__nav-link:focus-visible {
  color: #fff;
}

.top-bar__submenu-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.top-bar__submenu-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.top-bar__submenu-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, color 0.2s ease;
}

.top-bar__nav-item.submenu-open .top-bar__submenu-icon {
  transform: rotate(-135deg);
}

.top-bar__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(6, 21, 40, 0.95);
  box-shadow: 0 30px 60px rgba(5, 13, 27, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1200;
}

.top-bar__nav-item:hover .top-bar__submenu,
.top-bar__nav-item:focus-within .top-bar__submenu {
  display: flex;
}

.top-bar__submenu a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-bar__submenu a:hover,
.top-bar__submenu a:focus-visible {
  color: #fff;
}

body.no-js .top-bar__nav-item {
  flex-direction: column;
  align-items: flex-start;
}

body.no-js .top-bar__submenu-toggle {
  display: none;
}

body.no-js .top-bar__submenu {
  position: static;
  display: flex;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 72px 0 120px;
  background:
    linear-gradient(120deg, rgba(4, 21, 40, 0.88) 0%, rgba(14, 58, 95, 0.82) 42%, rgba(9, 30, 56, 0.82) 100%),
    url('../img/hero-bg.jpg') center/cover no-repeat;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(212, 25, 32, 0.35), transparent 45%),
              linear-gradient(-120deg, rgba(249, 195, 0, 0.25), transparent 60%);
  mix-blend-mode: screen;
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 55%),
              radial-gradient(circle at 20% -10%, rgba(210, 45, 49, 0.25), transparent 60%);
  opacity: 0.9;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 54px;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  z-index: 1;
}

.hero-copy {
  flex: 1.1;
  min-width: 0;
}

.gov-identity {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  border-radius: 20px;
  background: rgba(5, 13, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.crest {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.identity-text {
  display: grid;
  gap: 2px;
  letter-spacing: 0.02em;
}

.identity-text span {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.85;
  color: #f3f6fb;
}

.identity-text strong {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.badge {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  width: 20px;
  height: 14px;
  border-radius: 3px;
  background: url('../img/flag-antigua.png') center/cover no-repeat;
}

.hero h1 {
  margin: 22px 0 12px;
  font-size: clamp(2.6rem, 4vw + 1rem, 3.9rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero p {
  margin: 18px 0 30px;
  max-width: 560px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-contact {
  margin-top: 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-contact a {
  color: #fff;
  font-weight: 600;
}

.hero-contact a:hover {
  text-decoration: underline;
}

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: #fff;
  box-shadow: 0 18px 38px rgba(249, 195, 0, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(249, 195, 0, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.btn-arrival {
  background: linear-gradient(135deg, #d41920, #a20d15);
  color: #fff;
  box-shadow: 0 18px 38px rgba(212, 25, 32, 0.35);
}

.btn-arrival:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(212, 25, 32, 0.45);
}

.hero-illustration {
  flex: 0.9;
  position: relative;
  min-height: 320px;
}

.hero-illustration::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(249, 195, 0, 0.15), rgba(212, 25, 32, 0.18));
  filter: blur(0px);
  z-index: 0;
}

.hero-card {
  position: relative;
  margin: 0 auto;
  max-width: 420px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px rgba(6, 21, 40, 0.3);
  z-index: 1;
}

.hero-card h3 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.hero-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.hero-card .icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 195, 0, 0.65));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

main {
  margin-top: -80px;
}

.page-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(5, 13, 27, 0.95), rgba(14, 58, 95, 0.88));
  color: #fff;
  padding: 72px 0 64px;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(249, 195, 0, 0.24), transparent 55%),
              radial-gradient(circle at 18% 28%, rgba(212, 25, 32, 0.18), transparent 50%);
  opacity: 0.85;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff;
}

.page-hero__title {
  margin: 18px 0 12px;
  font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
  letter-spacing: -0.01em;
}

.page-hero__lead {
  max-width: 720px;
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
}

.secondary-page {
  background: var(--neutral-050);
  margin-top: 0;
  padding-top: 0;
}

.page-section {
  padding: 60px 0;
}

.page-section .container {
  max-width: 2100px;
}

.container.narrow {
  max-width: 1200px;
}

.content-body > * + * {
  margin-top: 1.2rem;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
  color: var(--primary-700);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.content-body h1:first-child,
.content-body h2:first-child,
.content-body h3:first-child,
.content-body h4:first-child {
  margin-top: 0;
}

.content-body h2 {
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.content-body h3 {
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.content-body p {
  color: var(--neutral-500);
  font-size: 1rem;
  margin: 0;
}

.content-body p + p {
  margin-top: 0.9rem;
}

.content-body h2 + * {
  margin-top: 0.6rem;
}

.content-body h2 + ul,
.content-body h2 + ol {
  margin-top: 0.8rem;
}

.content-body h3 + * {
  margin-top: 0.5rem;
}

.content-body strong {
  color: var(--primary-700);
}

.content-body ul,
.content-body ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--neutral-500);
}

.content-body li + li {
  margin-top: 0.6rem;
}

.content-body p + ul,
.content-body p + ol {
  margin-top: 0.6rem;
}

.content-body a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.content-body blockquote {
  margin: 1.8rem 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary-500);
  background: rgba(15, 95, 153, 0.08);
  color: var(--primary-700);
  border-radius: var(--radius-sm);
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}

.content-body th,
.content-body td {
  border: 1px solid rgba(12, 21, 40, 0.08);
  padding: 12px 14px;
  text-align: left;
}

.content-body th {
  background: rgba(15, 95, 153, 0.12);
  color: var(--primary-700);
  font-weight: 600;
}

.content-body td {
  color: var(--neutral-500);
}

.content-body figure {
  margin: 2rem 0;
}

.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 28px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(8, 24, 44, 0.08);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 48px rgba(8, 24, 44, 0.18);
}

.category-card h3 {
  margin: 0;
  color: var(--primary-700);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-card p {
  margin: 0;
  color: var(--neutral-500);
  font-size: 0.95rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 95, 153, 0.12), rgba(15, 95, 153, 0.18));
  color: var(--primary-700);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-link:hover {
  background: linear-gradient(135deg, rgba(15, 95, 153, 0.18), rgba(15, 95, 153, 0.24));
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 95, 153, 0.2);
}


.section {
  padding: 60px 0;
}

.section.light {
  background: #fff;
}

.section.dark {
  background: linear-gradient(135deg, #04122a, #0b2546);
  color: #f5f8ff;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 48px;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.card h2 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 3vw + 0.5rem, 2.6rem);
  color: var(--primary-900);
}

.card p {
  margin: 0 0 26px;
  max-width: 680px;
  color: var(--neutral-500);
}

.badge.flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--flag-red), var(--flag-blue));
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge.flag::before {
  content: '';
  width: 26px;
  height: 18px;
  border-radius: 4px;
  background: url('../img/flag-antigua.png') center/cover no-repeat;
}


.card p {
  margin: 0 0 26px;
  max-width: 680px;
  color: var(--neutral-500);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(12, 21, 40, 0.05);
}

.form-tab-trigger {
  border: none;
  background: transparent;
  color: var(--neutral-500);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.form-tab-trigger:hover,
.form-tab-trigger:focus-visible {
  color: rgba(255, 255, 255, 0.85);
}

.form-tab-trigger.is-active {
  background: #fff;
  color: var(--primary-700);
  box-shadow: 0 12px 26px rgba(15, 95, 153, 0.16);
}

.form-tab-trigger:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.form-tab-panels {
  position: relative;
}

.form-tab {
  display: none;
}

.form-tab[hidden] {
  display: none !important;
}

.form-tab.is-active {
  display: block;
}

.tab-navigation {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-nav__btn {
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  box-shadow: 0 18px 34px rgba(249, 195, 0, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.tab-nav__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.tab-nav__btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(249, 195, 0, 0.42);
}

.tab-nav__btn--ghost {
  background: rgba(15, 95, 153, 0.1);
  color: var(--primary-700);
  box-shadow: none;
}

.tab-nav__btn--ghost {
  margin-right: auto;
}

.tab-nav__btn--ghost:not(:disabled):hover {
  background: rgba(15, 95, 153, 0.16);
  transform: translateY(-1px);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-700);
}

.form-subsection {
  margin-bottom: 28px;
}

.form-subsection:last-of-type {
  margin-bottom: 0;
}

.form-subheading {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.form-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 24px;
}

.form-group--wide {
  grid-column: 1 / -1;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-300);
  background: #fff;
  font-size: 1rem;
  color: var(--neutral-700);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(15, 95, 153, 0.18);
}

.actions {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.actions span {
  color: var(--neutral-500);
  font-size: 0.95rem;
}

.result {
  margin-top: 30px;
  border-radius: var(--radius-md);
  padding: 26px;
  border-left: 6px solid transparent;
  background: var(--neutral-100);
  box-shadow: inset 0 0 0 1px rgba(12, 21, 40, 0.05);
  display: none;
}

.result.visible {
  display: block;
}

.result h3 {
  margin: 12px 0 10px;
  font-size: 1.25rem;
  color: var(--primary-700);
}

.result p {
  margin: 0 0 14px;
  color: var(--neutral-500);
}

.result ul {
  padding-left: 18px;
  margin: 0;
  color: var(--neutral-500);
}

.result .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result[data-status="evisa"] {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(15, 95, 153, 0.08);
}

.result[data-status="evisa"] .tag {
  background: rgba(15, 95, 153, 0.18);
  color: var(--primary-700);
}

.result[data-status="arrival"] {
  border-color: var(--warning-500);
  background: rgba(245, 158, 11, 0.12);
}

.result[data-status="arrival"] .tag {
  background: rgba(245, 158, 11, 0.18);
  color: var(--warning-500);
}

.result[data-status="exempt"] {
  border-color: var(--success-500);
  background: rgba(39, 146, 97, 0.1);
}

.result[data-status="exempt"] .tag {
  background: rgba(39, 146, 97, 0.18);
  color: var(--success-500);
}

.result[data-status="contact"] {
  border-color: var(--danger-500);
  background: rgba(216, 67, 57, 0.12);
}

.result[data-status="contact"] .tag {
  background: rgba(216, 67, 57, 0.18);
  color: var(--danger-500);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 34px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(8, 24, 44, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-height: 240px;
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 54px rgba(8, 24, 44, 0.16);
  border-color: rgba(8, 24, 44, 0.12);
  outline: 2px solid rgba(15, 95, 153, 0.35);
  outline-offset: 2px;
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 58, 95, 0.18), rgba(249, 195, 0, 0.24));
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 4px;
}

.feature-card .icon::before {
  content: '';
  width: 26px;
  height: 26px;
  display: block;
  background-size: cover;
  background-repeat: no-repeat;
}

.icon--exempt::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230e3a5f' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 12l2.5 2.5L16 9'/%3E%3C/svg%3E");
}

.icon--arrival::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230e3a5f' viewBox='0 0 24 24'%3E%3Cpath d='M2 16l20-7-20-7v5l14 2-14 2v5z'/%3E%3C/svg%3E");
}

.icon--evisa::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230e3a5f' d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm13 18V9h-5V4H6v16h13z'/%3E%3Cpath fill='%230e3a5f' d='M9 13h6v2H9zm0 4h6v2H9z'/%3E%3C/svg%3E");
}

.icon--residency::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230e3a5f' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 7h-2v9h-5v-5h-4v5H5v-9H3l9-7z'/%3E%3C/svg%3E");
}

.feature-card h3 {
  margin: 0;
  color: var(--primary-700);
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-card p {
  margin: 0;
  color: var(--neutral-500);
  font-size: 0.98rem;
  line-height: 1.55;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.notice-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(8, 24, 44, 0.08);
  background: #fff;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 12px;
}

.notice-card h3 {
  margin: 0;
  color: var(--primary-700);
}

.notice-card p {
  margin: 0;
  color: var(--neutral-500);
}

.notice-card .stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 95, 153, 0.12);
  color: var(--primary-700);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.heritage {
  background: linear-gradient(135deg, rgba(244, 244, 244, 0.9), rgba(255, 255, 255, 0.9));
}

.heritage h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: clamp(2rem, 3vw + 0.4rem, 2.6rem);
  color: var(--primary-900);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.highlight-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(8, 24, 44, 0.08);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.highlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(249, 195, 0, 0.12));
  pointer-events: none;
}

.highlight-card h3 {
  margin: 0 0 12px;
  color: var(--primary-700);
}

.highlight-card p {
  margin: 0;
  color: var(--neutral-500);
}

.highlight-card .flag-band {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--flag-red), var(--flag-blue));
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(8, 24, 44, 0.35);
}

.step-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.step-card p {
  margin: 0;
  color: rgba(245, 248, 255, 0.78);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
  font-weight: 600;
}

.application-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(249, 195, 0, 0.18));
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.application-cta h2 {
  margin: 0 0 12px;
  color: #fff;
}

.application-cta p {
  margin: 0;
  max-width: 460px;
  color: rgba(245, 248, 255, 0.85);
}

.flag-banner {
  margin-top: 44px;
  background: linear-gradient(135deg, var(--flag-red), var(--flag-black) 35%, var(--flag-blue) 70%, var(--flag-white));
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.flag-banner strong {
  font-size: 1.2rem;
}

footer {
  background: #050d1b;
  color: rgba(255, 255, 255, 0.75);
  padding: 36px 0;
}

.footer-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.footer-content nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-content a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-content a:hover {
  color: #fff;
}

.shake {
  animation: shake 0.45s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@media (max-width: 960px) {
  .top-bar__wrap {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 24px;
  }

  .top-bar__menu {
    display: inline-flex;
  }

  .top-bar__nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .top-bar__nav.is-open {
    display: flex;
  }

  .top-bar__nav-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .top-bar__nav-item:last-of-type {
    border-bottom: none;
  }

  .top-bar__nav-item--align-right {
    margin-left: 0;
  }

  .top-bar__nav-link {
    width: 100%;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }

  .top-bar__submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    padding: 6px;
  }

  .top-bar__submenu {
    position: static;
    display: none;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    gap: 8px;
  }

  .top-bar__nav-item.submenu-open .top-bar__submenu,
  .top-bar__submenu.is-open {
    display: flex;
  }

  .top-bar__brand {
    width: 100%;
    justify-content: flex-start;
  }

  body.no-js .top-bar__nav {
    display: flex;
  }

  body.no-js .top-bar__menu {
    display: none;
  }

  body.no-js .top-bar__submenu {
    display: flex;
  }

  .top-bar__title {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }

  .top-bar__subtitle {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .top-bar__crest {
    width: 46px;
    height: 46px;
  }

  .cta-group {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-card {
    margin-top: 24px;
  }

  main {
    margin-top: -60px;
  }

  .application-cta {
    text-align: center;
    align-items: stretch;
  }

.application-cta .btn {
    justify-content: center;
  }
}

.page-hero--apply {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(249, 195, 0, 0.16), transparent 55%),
              radial-gradient(circle at 90% 0%, rgba(0, 114, 206, 0.22), transparent 60%),
              linear-gradient(135deg, rgba(6, 21, 40, 0.92), rgba(15, 95, 153, 0.78));
  color: var(--neutral-700);
}

.page-hero--apply .breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero--apply .breadcrumbs span {
  color: rgba(255, 255, 255, 0.4);
}

.page-hero--apply .page-hero__title {
  color: #fff;
}

.page-hero--apply .page-hero__lead {
  color: rgba(255, 255, 255, 0.84);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.hero-stats__item {
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-stats__label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-stats__item strong {
  font-size: 1.08rem;
  color: #fff;
}

.apply-page .content-body .lead {
  font-size: 1.08rem;
  color: var(--neutral-700);
  font-weight: 500;
}

.apply-note {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(15, 95, 153, 0.12);
  border: 1px solid rgba(15, 95, 153, 0.28);
  color: var(--primary-700);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.apply-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.apply-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--neutral-700);
}

.apply-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(15, 95, 153, 0.02), rgba(249, 195, 0, 0.015));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.apply-card:hover::after {
  opacity: 1;
}

.apply-card--primary {
  border-top: 6px solid var(--accent-500);
}

.apply-card__header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding: 120px 28px;
}

.apply-card__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
}


.apply-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 2.5vw + 1rem, 2.6rem);
}

.apply-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.apply-card .form-subsection,
.apply-card .form-list,
.apply-card .tab-navigation,
.apply-card .tab-nav__btn {
  position: relative;
  z-index: 1;
}


.form-section {
  margin-top: 24px;
}

.form-section h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--primary-700);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.checklist__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 95, 153, 0.16);
  font-size: 0.95rem;
  color: var(--neutral-700);
  box-shadow: inset 0 0 0 1px rgba(12, 21, 40, 0.02);
}

.checklist__item input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.checklist__item span {
  flex: 1;
}

.apply-card--primary .checklist__item {
  background: rgba(255, 255, 255, 0.96);
}

.documents-intro,
.declaration-intro {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.declaration-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.declaration-item {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(238, 243, 250, 0.6);
  border: 1px solid rgba(12, 21, 40, 0.08);
}

.declaration-item__prompt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.declaration-item__prompt p {
  margin: 0;
  font-weight: 600;
  color: var(--primary-700);
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(12, 21, 40, 0.15);
  background: #fff;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.choice-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-chip span {
  pointer-events: none;
}

.choice-chip.is-active {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(15, 95, 153, 0.12);
  background: rgba(15, 95, 153, 0.08);
  color: var(--primary-700);
}

.choice-chip input:focus-visible + span,
.choice-chip.is-active span {
  color: var(--primary-700);
}

.conditional-field {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 21, 40, 0.12);
  background: #fff;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.conditional-field[hidden] {
  display: none;
}

.documents-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(12, 21, 40, 0.08);
  box-shadow: var(--shadow-md);
}

.document-row__details h4 {
  margin: 0 0 8px;
  color: var(--primary-700);
  font-size: 1.05rem;
}

.document-row__details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.document-row__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.document-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary-700);
}

.document-checkbox input {
  width: 18px;
  height: 18px;
}

.document-upload {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--neutral-500);
}

.document-upload span {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.document-upload input {
  cursor: pointer;
}

.form-confirmation {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 95, 153, 0.08);
  border: 1px solid rgba(15, 95, 153, 0.18);
}

.confirmation {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--primary-700);
  align-items: flex-start;
}

.confirmation input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.confirmation span {
  flex: 1;
}

.form-success {
  margin-top: 30px;
  padding: 28px 32px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(12, 21, 40, 0.08);
  animation: fadeIn 0.35s ease;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(39, 146, 97, 0.14);
  color: var(--success-500);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.success-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.success-meta dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-500);
  margin-bottom: 4px;
}

.success-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--primary-700);
  font-size: 1.05rem;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.success-next {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(15, 95, 153, 0.32);
  color: rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(15, 95, 153, 0.08);
  transform: translateY(-1px);
}

.status-card {
  margin-top: 30px;
  padding: 28px 32px;
  border-radius: var(--radius-md);
  border-left: 6px solid var(--primary-500);
  background: rgba(238, 243, 250, 0.85);
  box-shadow: inset 0 0 0 1px rgba(12, 21, 40, 0.08);
}

.status-card--error {
  border-left-color: var(--danger-500);
  background: rgba(216, 67, 57, 0.12);
}

.status-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 95, 153, 0.14);
  color: var(--primary-700);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-card--error .status-card__badge {
  background: rgba(216, 67, 57, 0.16);
  color: var(--danger-500);
}

.status-card__header h3 {
  margin: 18px 0 8px;
  color: #fff;
  font-size: 1.4rem;
}

.status-card__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.status-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.status-meta dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-500);
  margin-bottom: 4px;
}

.status-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--primary-700);
}

.status-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.status-timeline__item {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.85);
}

.status-timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(15, 95, 153, 0.32);
  background: #fff;
}

.status-timeline__item.is-complete::before {
  background: var(--primary-500);
  border-color: rgba(255, 255, 255, 0.85);
}

.status-timeline__item.is-current::before {
  background: var(--accent-500);
  border-color: var(--accent-500);
  box-shadow: 0 0 0 6px rgba(249, 195, 0, 0.25);
}

.status-timeline__label {
  display: block;
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: 4px;
}

.status-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.apply-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 28px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.timeline-card__step {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 16px 30px rgba(249, 195, 0, 0.28);
}

.timeline-card h3 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.24rem;
  color: var(--primary-700);
}

.timeline-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.support-card {
  background: linear-gradient(135deg, rgba(6, 21, 40, 0.92), rgba(15, 95, 153, 0.88));
  color: rgba(255, 255, 255, 0.92);
  padding: 34px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.support-card h2 {
  margin-top: 0;
  font-size: clamp(2rem, 2.2vw + 1rem, 2.6rem);
  color: #fff;
}

.support-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.support-card ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.86);
}

.support-card a {
  color: #fff;
  font-weight: 600;
}

.support-card a:hover {
  text-decoration: underline;
}

.status-card--error .status-meta,
.status-card--error .status-actions {
  display: none;
}

.status-card--error .status-timeline {
  display: none;
}

.fade-in {
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .apply-card {
    padding: 32px;
  }

  .status-card {
    padding: 26px;
  }
}

@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .success-actions,
  .status-actions {
    flex-direction: column;
  }

  .success-actions .btn,
  .status-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  :root {
    font-size: 15px;
  }

  header {
    padding: 56px 0 96px;
  }

  .hero {
    padding: 0 22px;
    text-align: left;
    align-items: flex-start;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-card {
    width: 100%;
    padding: 26px;
  }

  .badge {
    margin-top: 24px;
    font-size: 0.88rem;
  }

  .container {
    padding: 0 22px;
  }

  .card {
    padding: 28px;
  }

  .form-list {
    grid-template-columns: 1fr;
  }

  .form-tabs {
    flex-direction: column;
    border-radius: var(--radius-sm);
    padding: 6px;
  }


  .form-tab-trigger {
    width: 100%;
    text-align: left;
  }

  .tab-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tab-navigation .tab-nav__btn--ghost {
    margin-right: 0;
  }

  .cta-group {
    width: 100%;
    flex-direction: column;
  }

  .cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .feature-grid,
  .highlight-grid,
  .steps {
    gap: 18px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }

  .flag-banner {
    flex-direction: column;
    text-align: center;
  }

  .application-cta {
    padding: 28px;
    text-align: left;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    margin-top: -40px;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .page-hero__title {
    font-size: 2.6rem;
  }

  .page-hero__lead {
    font-size: 1.02rem;
  }

  .breadcrumbs {
    font-size: 0.78rem;
  }

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .apply-card {
    padding: 26px;
  }

  .form-section {
    margin-top: 20px;
  }

  .document-row {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .document-row__controls {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .status-card,
  .form-success {
    padding: 22px;
  }

  .timeline-card {
    padding: 24px;
  }

  .timeline-card__step {
    left: 18px;
  }

  .support-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .top-bar__wrap {
    padding: 12px 18px;
  }

  .top-bar__title {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .top-bar__subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .top-bar__menu {
    width: 100%;
    justify-content: center;
  }

  .top-bar__menu-label {
    font-size: 0.68rem;
  }

  .gov-identity {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hero-highlights {
    justify-content: center;
  }

  .highlight-chip {
    width: 100%;
    justify-content: center;
  }

  header {
    padding: 48px 0 80px;
  }

  .hero {
    padding: 0 18px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .badge {
    font-size: 0.82rem;
  }

  .card {
    padding: 24px 20px;
  }

  .application-cta {
    padding: 24px 20px;
  }

  .flag-banner {
    padding: 24px 20px;
  }

  .footer-content {
    padding: 0 18px;
  }

  main {
    margin-top: -24px;
  }

  .page-hero {
    padding: 48px 0 40px;
  }

  .page-hero__title {
    font-size: 2.2rem;
  }

  .page-hero__lead {
    font-size: 0.98rem;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .hero-stats__item {
    padding: 16px;
  }

  .apply-note {
    padding: 18px;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .status-meta {
    grid-template-columns: 1fr;
  }

  .apply-timeline {
    grid-template-columns: 1fr;
  }

  .support-card ul {
    padding-left: 18px;
  }

  .document-upload {
    width: 100%;
  }
}
