:root {
  --brand-primary: #0b2a52;
  --brand-accent: #c0162c;
  --brand-gold: #f6b500;
  --brand-muted: #5f7087;
  --brand-surface: #f5f7fb;
  --card-bg: #ffffff;
  --border: #e3e8f0;
  --surface-strong: #e8eef7;
  --shadow-soft: 0 10px 30px rgba(12, 41, 83, 0.12);
  --shadow-lift: 0 16px 40px rgba(11, 42, 82, 0.18);
  --band-gradient: linear-gradient(120deg, rgba(11, 42, 82, 0.08), rgba(192, 22, 44, 0.07));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(246, 181, 0, 0.08), transparent 28%),
    radial-gradient(circle at 78% 4%, rgba(31, 156, 214, 0.08), transparent 34%),
    linear-gradient(180deg, #eef2f8 0%, #e3eaf5 45%, #dbe4f1 100%);
  color: #0b182c;
  line-height: 1.6;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

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

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: #0b182c;
}

.brand__crest {
  height: 48px;
  width: 48px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__title {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand__subtitle {
  font-weight: 500;
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.top-bar__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar__link {
  font-weight: 600;
  color: #0b2a52;
}

.top-bar__user {
  color: var(--brand-muted);
  font-weight: 500;
}

.top-bar__menu {
  position: relative;
}

.top-bar__menu-panel {
  position: absolute;
  right: 0;
  top: 120%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 30;
}

.top-bar__menu-panel.show {
  display: block;
}

.top-bar__menu-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #0b2a52;
}

.top-bar__menu-item:hover {
  background: #f5f7fb;
}

/* Government login layout */
.gov-login-page {
  margin: 0;
  min-height: 100vh;
  background: #050e1b;
  color: #e9f1ff;
}

.gov-login-bg {
  position: relative;
  min-height: 100vh;
  padding: 3.5rem 6vw;
  overflow: hidden;
}

.gov-glow {
  position: absolute;
  filter: blur(70px);
  opacity: 0.7;
  z-index: 0;
}

.gov-glow--one {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(192, 22, 44, 0.55);
  top: 8%;
  left: 10%;
}

.gov-glow--two {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(11, 42, 82, 0.9);
  bottom: 4%;
  right: 8%;
}

.gov-gridlines {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 22px 22px;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.gov-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.gov-panel {
  background: linear-gradient(135deg, rgba(7, 16, 35, 0.9), rgba(9, 28, 58, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.gov-brand {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.gov-brand__crest {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 0.65rem;
}

.gov-brand__text h1 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.7rem;
  color: #f7fbff;
}

.gov-brand__text p {
  margin: 0;
  color: #b8c5da;
}

.gov-eyebrow {
  color: #f6b500;
  letter-spacing: 0.5px;
}

.gov-highlights {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.gov-highlights p {
  margin: 0.35rem 0 0;
  color: #c7d3e6;
}

.gov-card {
  background: #ffffff;
  color: #0b182c;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-lift);
  border: 1px solid #e3e8f0;
  align-self: center;
  min-width: 360px;
}

.gov-form label {
  font-weight: 600;
  color: #0b2a52;
}

.gov-form input {
  width: 100%;
}

.gov-actions {
  display: flex;
  justify-content: flex-end;
}

.gov-card__head h2 {
  color: #0b2a52;
}

.gov-shell {
  background: #f1f4f9;
}

.gov-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(90deg, #113b70, #0d2e5a);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.gov-header__brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.gov-header__crest {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.35rem;
}

.gov-header__title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.gov-header__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.gov-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gov-nav__link {
  color: #e9f1ff;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  transition: background 150ms ease, color 150ms ease;
}

.gov-nav__link:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.gov-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.gov-list,
.gov-loglist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.gov-list li,
.gov-loglist li {
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
}

@media (max-width: 768px) {
  .gov-nav {
    flex-wrap: wrap;
  }
  .gov-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
@media (max-width: 960px) {
  .gov-grid {
    grid-template-columns: 1fr;
  }
  .gov-panel {
    order: 2;
  }
}

button,
.btn {
  --loading-ink: #0b2a52;
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  text-decoration: none;
  letter-spacing: 0.1px;
  background: #0b2a52;
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #0b2a52, #123c72);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 42, 82, 0.25);
  --loading-ink: #fff;
}

.btn-secondary {
  background: #0b2a52;
  color: #fff;
  border: none;
}

.btn--compact {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
}

.btn[disabled],
.btn--compact[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 20, 0.55);
  backdrop-filter: blur(2px);
}

.modal__content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  width: min(620px, 90vw);
  border: 1px solid var(--border);
  max-height: 90vh;
  overflow-y: auto;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hero {
  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("https://www.antiguavisa.com/assets/img/hero-bg.jpg") center/cover no-repeat;
  padding: 3rem;
  border-radius: 18px;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.25rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #f7fbff;
  box-shadow: 0 16px 34px rgba(11, 42, 82, 0.25);
}

.hero--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  padding: 3.5rem 5vw;
}

main > .hero--full {
  margin-top: -1.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12% -8% -12% -8%;
  background: url("../img/coat-of-arms.svg") center right / 620px auto no-repeat;
  opacity: 0.12;
  filter: grayscale(1) brightness(1.1);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 208, 111, 0.22), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(31, 156, 214, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(31, 156, 214, 0.08), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 2.6rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.08rem;
  color: #e8f1fb;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #ffd86b;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.1rem 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.badge__label {
  font-weight: 700;
  color: #ffd86b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.8rem;
}

.badge__text {
  color: #f1f6fc;
  font-weight: 600;
}

.hero__panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel__crest {
  width: 56px;
  height: 56px;
}

.steps {
  margin: 1rem 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.8rem;
}

.steps li {
  color: #eef3fb;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step__title {
  display: block;
  font-weight: 700;
  color: #fff;
}

.step__text {
  display: block;
  color: #dbe7f7;
}

.panel__foot {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.section p {
  margin-top: 0;
}

.section--band {
  background: var(--band-gradient);
  border: 1px solid #d7deec;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d9e6f5;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 20px rgba(11, 42, 82, 0.06);
}

.stat-eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  color: #0b5c9f;
  letter-spacing: 0.6px;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.stat-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0b2a52;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.card {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card--soft {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-color: #dbe4f3;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.project-card {
  position: relative;
}

.card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 0.75rem;
  color: var(--brand-muted);
  font-weight: 600;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-right: 7rem;
}

.project-card__actions {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
}

.project-card__eyebrow {
  margin: 0;
  color: var(--brand-accent);
}

.meta-tile {
  background: #f5f7fb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  min-height: 70px;
}

.meta-tile__label {
  font-size: 0.9rem;
  color: var(--brand-muted);
  margin-bottom: 0.2rem;
}

.meta-tile__value {
  font-weight: 700;
  color: #0b2a52;
}

@media (max-width: 700px) {
  .project-card__header {
    padding-right: 0;
  }
  .project-card__actions {
    position: static;
    margin-left: auto;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: #eef2ff;
  color: #312e81;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid #c7d2fe;
}

.pill--muted {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0b2a52;
}

.pill--compact {
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
}

.table--incentives {
  margin-top: 0.5rem;
  table-layout: fixed;
}

.table--incentives th,
.table--incentives td {
  vertical-align: middle;
}

.table--incentives .truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table--incentives .text-right {
  text-align: right;
}

.table--incentives .muted {
  color: var(--brand-muted);
  font-weight: 600;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 20px rgba(11, 42, 82, 0.04);
}

.tile__label {
  font-size: 0.9rem;
  color: var(--brand-muted);
  margin: 0 0 0.25rem;
}

.tile__value {
  font-weight: 800;
  color: #0b2a52;
  font-size: 1.05rem;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.4rem;
}

.doc-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03);
}

.doc-type {
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.85rem;
}

.doc-type--spaced {
  margin-right: 1.25rem;
}

.doc-summary {
  margin-left: auto;
}

.doc-summary summary {
  cursor: pointer;
  color: var(--brand-primary);
  font-weight: 700;
}

.doc-status {
  color: var(--brand-muted);
  font-weight: 600;
}

.progress {
  display: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e4e9f1;
  overflow: hidden;
  margin-top: 0.5rem;
  position: relative;
}

.progress--active {
  display: block;
}

.progress__bar {
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, #0f62fe, #4f8bff);
  animation: progress-stripe 1.2s infinite ease-in-out;
}

.progress__label {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--brand-muted);
  display: none;
}

.progress--active + .progress__label {
  display: block;
}

@keyframes progress-stripe {
  0% {
    transform: translateX(-40%);
  }
  100% {
    transform: translateX(140%);
  }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-head h3 {
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--brand-muted);
}

.incentive-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.incentive-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.incentive-card__title {
  margin: 0;
}

.incentive-card__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.meta-item {
  color: var(--brand-muted);
}

.meta-item strong {
  display: block;
  color: #0b2a52;
}

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

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  font-weight: 600;
  color: #0b2a52;
}

.checklist__item input {
  width: auto;
  margin-top: 2px;
}

.checklist__item span {
  flex: 1;
}

.checklist__item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(11, 42, 82, 0.08);
}

.checklist--compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card--narrow {
  max-width: 520px;
  margin: 0 auto;
}

.card--narrow h3 {
  margin-top: 0;
}

.card h3 {
  margin-top: 0;
}

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

.info-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
}

.info-card ul {
  padding-left: 1.1rem;
  color: var(--brand-muted);
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.35rem;
  flex: 1;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
}

.feature-card p {
  margin: 0;
  color: var(--brand-muted);
}

.feature-list {
  padding-left: 1.1rem;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--brand-muted);
}

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

.panel-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dce4f1;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 26px rgba(11, 42, 82, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.panel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 42, 82, 0.04), rgba(192, 22, 44, 0.04));
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.panel-card:hover::before {
  opacity: 1;
}

.panel-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 800;
  color: #0b5c9f;
  font-size: 0.78rem;
}

.panel-card h3 {
  margin: 0;
}

.panel-card p {
  margin: 0;
  color: var(--brand-muted);
}

.panel-card__list {
  padding-left: 1.1rem;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--brand-muted);
}

.timeline {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

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

.timeline__item {
  background: var(--brand-surface);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.timeline__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.callout {
  background: linear-gradient(120deg, rgba(11, 42, 82, 0.12), rgba(192, 22, 44, 0.1));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.callout__actions {
  display: flex;
  gap: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid transparent;
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(11, 42, 82, 0.08);
}

.status-draft {
  background: #eef2ff;
  color: #312e81;
  border-color: #c7d2fe;
}

.status-under-review {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.status-cabinet-pending {
  background: #dbeafe;
  color: #1e3a8a;
  border-color: #bfdbfe;
}

.status-ministry-pending {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.status-declined {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.status-granted {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.status-registry-active {
  background: #ecfdf3;
  color: #15803d;
  border-color: #bbf7d0;
}

.status-registry-default {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(11, 42, 82, 0.18);
  border-color: #c3d0e6;
  box-shadow: 0 0 0 4px rgba(11, 42, 82, 0.08);
}

/* Required vs optional field cues */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([disabled])[required],
select:not([disabled])[required],
textarea:not([disabled])[required] {
  background: #fff1f1;
  border-color: #f3c2c2;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([disabled]):not([required]),
select:not([disabled]):not([required]),
textarea:not([disabled]):not([required]) {
  background: #eef5ff;
  border-color: #c7d7f5;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  accent-color: #0b2a52;
  cursor: pointer;
}

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

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

.form-shell {
  border-radius: 18px;
  padding: 1.5rem;
  gap: 1rem;
}

.form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-top: 1.1rem;
  box-shadow: 0 10px 22px rgba(11, 42, 82, 0.06);
  display: grid;
  gap: 0.75rem;
}

.form-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.form-section__header h4 {
  margin: 0;
  font-size: 1.35rem;
  color: #0b3b78;
  letter-spacing: 0.01em;
  font-weight: 800;
  text-transform: uppercase;
}

.muted {
  color: var(--brand-muted);
}

.page-narrow {
  max-width: 880px;
  margin: 0 auto;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.table th,
.table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

.table th {
  background: #f1f5f9;
}

.share-row {
  display: grid;
  gap: 0.5rem;
  align-items: center;
}

.share-row--form {
  grid-template-columns: 1.4fr 1.6fr 1.2fr 0.9fr auto;
}

.share-row--display {
  grid-template-columns: 1.4fr 1.6fr 1.2fr 0.9fr;
}

.share-input {
  width: 100%;
}

.share-input--pct {
  max-width: 140px;
}

@media (max-width: 900px) {
  .share-row--form {
    grid-template-columns: 1fr 1fr;
  }
  .share-row--display {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .share-row--form,
  .share-row--display {
    grid-template-columns: 1fr;
  }
  .share-input--pct {
    max-width: 100%;
  }
}

.messages {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}

.messages li {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 16px rgba(11, 42, 82, 0.08);
  transition: opacity 200ms ease, transform 200ms ease;
}

.messages li.is-fading {
  opacity: 0;
  transform: translateY(-6px);
}

.messages li.info {
  background: #e0f2fe;
  border-color: #bae6fd;
}

.messages li.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.messages li.error {
  background: #fef2f2;
  border-color: #fecdd3;
}

.btn.is-loading,
button.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.btn.is-loading::after,
button.is-loading::after {
  content: "Working...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--loading-ink, #0b2a52);
}

footer {
  margin: 3rem 0 1rem;
  text-align: center;
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.footer__version {
  background: #0b2a52;
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .top-bar__wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-bar__nav {
    flex-wrap: wrap;
  }
  .hero {
    grid-template-columns: 1fr;
  }
}
.alert {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.alert-info {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0b2a52;
}

.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0b2a52;
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
  border: none;
  cursor: pointer;
}

.help-tip__icon {
  line-height: 1;
}

.help-tip__popover {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 320px;
  background: #0b2a52;
  color: #fff;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 10;
}

.help-tip.is-open .help-tip__popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 2px);
}
