/* Tanzania e-Visa — compact portal palette + flag accents */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Tanzania flag-inspired — AA contrast tuned */
  --portal-green: #1A7A3C;
  --portal-green-dark: #145C2D;
  --portal-green-soft: #E8F6EC;
  --portal-ink: #2A2A2A;
  --portal-muted: #5A5A5A;
  --portal-bg: #F7F8F9;
  --portal-line: #E5E7E9;
  --portal-nav: #1E2F3A;
  --portal-nav-dark: #15232C;
  --portal-icon: #7EC8E8;
  --portal-link: #145C2D;

  --flag-green: #1EB53A;
  --flag-yellow: #FCD116;
  --flag-blue: #00A3DD;
  --flag-black: #111111;

  --green: var(--portal-green);
  --green-dark: var(--portal-green-dark);
  --green-soft: var(--portal-green-soft);
  --navy: var(--portal-nav);
  --navy-dark: var(--portal-nav-dark);

  --ink: var(--portal-ink);
  --ink-soft: #4A4A4A;
  --muted: var(--portal-muted);
  --line: var(--portal-line);
  --bg: var(--portal-bg);
  --white: #ffffff;
  --shadow: 0 4px 14px rgba(30, 47, 58, 0.07);
  --radius: 5px;
  --masthead-h: 72px;
  --nav-h: 44px;
  --container: 1040px;
  --font: "Lato", system-ui, sans-serif;
  --font-display: "Lato", system-ui, sans-serif;
  /* Compact desktop type scale */
  --fs-xs: 0.68rem;
  --fs-sm: 0.8rem;
  --fs-base: 0.9rem;
  --fs-md: 0.98rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.4rem;
  --fs-2xl: 1.7rem;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--portal-link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--portal-green); }
ul, ol { padding-left: 1.05rem; margin: 0.35rem 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 0.7em; color: var(--ink-soft); }

.container { width: min(100% - 1.25rem, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 1.25rem, 700px); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--portal-green); color: #fff; padding: 0.45rem 0.7rem; z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.45rem 0.95rem; border-radius: 4px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.03em;
  text-transform: uppercase; cursor: pointer;
  text-decoration: none !important; transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--portal-green); color: #fff; }
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--portal-green-dark); color: #fff; }
.btn-navy { background: var(--portal-nav); color: #fff; }
.btn-navy:hover,
.btn-navy:focus-visible { background: var(--portal-nav-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--portal-nav); color: var(--portal-nav); }
.btn-outline:hover,
.btn-outline:focus-visible { background: var(--portal-nav); color: #fff; border-color: var(--portal-nav); }
.btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-ghost:hover,
.btn-ghost:focus-visible { background: rgba(255,255,255,0.22); color: #fff; }
a.btn:hover,
a.btn:focus-visible { color: inherit; text-decoration: none; }
a.btn-primary:hover,
a.btn-primary:focus-visible,
a.btn-navy:hover,
a.btn-navy:focus-visible,
a.btn-outline:hover,
a.btn-outline:focus-visible,
a.btn-ghost:hover,
a.btn-ghost:focus-visible { color: #fff; }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.62rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.85rem; }

/* ========== Header ========== */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; }

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.85rem;
  min-height: var(--masthead-h); padding: 0.5rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem; text-decoration: none !important;
  color: var(--ink); min-width: 0; flex: 1 1 auto;
}
.brand__wordmark {
  display: inline-flex; align-items: baseline; font-weight: 700; font-size: 2.2rem;
  letter-spacing: -0.02em; flex-shrink: 0; line-height: 1;
}
.brand__wordmark-e { color: var(--flag-yellow); text-shadow: 0 0 0 var(--flag-black); }
.brand__wordmark-visa { color: var(--portal-green); }
.brand__text {
  display: flex; flex-direction: column; justify-content: center; gap: 0.1rem;
  line-height: 1.15; min-width: 0;
  border-left: 1px solid var(--line); padding-left: 0.65rem;
}
.brand__title {
  font-size: 1.02rem; color: var(--portal-ink); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__subtitle {
  font-size: 0.78rem; color: var(--muted); font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.masthead__eservices {
  display: block; flex-shrink: 0; line-height: 0;
  text-decoration: none !important;
  max-width: min(42vw, 200px);
}
.masthead__eservices:hover { opacity: 0.92; }
.masthead__eservices picture { display: block; }
.masthead__eservices-img {
  display: block; width: 200px; height: 50px; max-width: 100%; max-height: 50px;
  object-fit: contain; object-position: right center;
}

/* Tanzania flag stripe: green | yellow | black | blue */
.flag-stripe {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 3px; background: #fff;
}
.flag-stripe span:nth-child(1) { background: var(--flag-green); }
.flag-stripe span:nth-child(2) { background: var(--flag-yellow); }
.flag-stripe span:nth-child(3) { background: var(--flag-black); }
.flag-stripe span:nth-child(4) { background: var(--flag-blue); }
.flag-stripe--footer { height: 5px; }

.main-nav {
  background: var(--portal-nav);
  color: #fff;
  position: relative;
}
.main-nav__inner {
  display: flex; align-items: center; gap: 0.45rem;
  min-height: var(--nav-h); padding: 0.2rem 0;
}

.nav-toggle {
  display: none; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px; background: transparent; padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: #fff; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-quicknav {
  display: none; flex: 1 1 auto; gap: 4px; align-items: stretch; min-width: 0;
}
.mobile-quicknav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  flex: 1 1 0; min-width: 0; padding: 5px 3px;
  color: rgba(255,255,255,0.88); text-decoration: none !important;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  border-radius: 4px; border: 1px solid transparent; line-height: 1.1;
}
.mobile-quicknav__item i { font-size: 0.9rem; color: var(--portal-icon); }
.mobile-quicknav__item--cta { background: var(--portal-green); color: #fff; }
.mobile-quicknav__item--cta i { color: #fff; }

.primary-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 0.05rem; flex: 1;
}
.primary-menu > li { position: relative; }
.primary-menu > li > a {
  display: block; padding: 0.5rem 0.7rem; color: rgba(255,255,255,0.9);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none !important; white-space: nowrap;
}
.primary-menu > li > a:hover,
.primary-menu > li > a.is-active { color: #fff; background: rgba(255,255,255,0.08); border-radius: 4px; }
.primary-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--portal-nav-dark); list-style: none; margin: 0; padding: 0.3rem 0;
  border-radius: 0 0 4px 4px; box-shadow: var(--shadow); z-index: 50;
}
.primary-menu .has-children:hover > .sub-menu,
.primary-menu .has-children:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.8rem; color: rgba(255,255,255,0.88);
  font-size: 0.74rem; text-transform: none; letter-spacing: 0; font-weight: 500;
  text-decoration: none !important;
}
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a.is-active { background: rgba(255,255,255,0.08); color: #fff; }

/* ========== Hero ========== */
.hero-slider {
  position: relative;
  aspect-ratio: 24 / 9;
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 340px;
  overflow: hidden;
  background: #163028;
  padding: 0;
  margin: 0;
  contain: layout paint;
}
.slider-track { height: 100%; position: relative; min-height: inherit; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0.55s;
  display: flex; align-items: center;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-media { position: absolute; inset: 0; display: block; margin: 0; z-index: 0; }
.slide-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(21, 35, 44, 0.78) 0%, rgba(21, 35, 44, 0.4) 55%, rgba(21, 35, 44, 0.22) 100%);
}
.slide-content {
  position: relative; z-index: 2;
  width: min(100% - 1.5rem, var(--container)); margin-inline: auto;
  color: #fff; max-width: 520px;
}
.slide[aria-hidden="true"] { pointer-events: none; }
.slide-eyebrow {
  margin: 0 0 0.25rem; font-size: var(--fs-xs); letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
}
.slide-title {
  margin: 0 0 0.3rem; font-size: var(--fs-xl); font-weight: 400; color: #fff;
}
.slide-subtitle { margin: 0 0 0.75rem; font-size: var(--fs-sm); color: rgba(255,255,255,0.95); }
.slide-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.slider-controls {
  position: absolute; z-index: 3; left: 50%; bottom: 0.55rem;
  transform: translateX(-50%); display: flex; align-items: center; gap: 0.45rem;
}
.slider-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.25); color: #fff; font-size: 1rem; cursor: pointer;
}
.dot {
  width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: transparent; cursor: pointer; padding: 0; position: relative;
}
.dot::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: translate(-50%, -50%);
}
.dot.is-active::after { background: #fff; width: 14px; border-radius: 999px; }
.slider-dots { display: flex; gap: 0.2rem; }

/* Sections — compact */
section, .content-section, .info-cards-section, .visa-purpose-section { padding: 1.6rem 0; }
section.hero-slider { padding: 0; margin: 0; }
.content-section--alt { background: #fff; border-block: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 1rem; }
.section-head h2 { font-size: var(--fs-xl); font-weight: 400; }
.section-head p { margin: 0 auto; max-width: 520px; font-size: var(--fs-sm); }

.welcome-intro {
  text-align: center;
  background: #fff;
  padding: 1.5rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
}
.welcome-intro__heading {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.4rem 0.55rem; margin: 0 0 0.25rem;
}
.welcome-intro__heading h1 {
  margin: 0; font-size: var(--fs-xl); font-weight: 400; color: var(--ink); line-height: 1.25;
}
.welcome-intro__flag {
  width: 1.25em; height: auto; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 2px; object-fit: cover;
  font-size: var(--fs-xl);
}
.welcome-intro__version {
  font-size: var(--fs-xl); font-weight: 400; line-height: 1.25;
  color: var(--muted); white-space: nowrap;
}
.welcome-intro__slogan { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 0.7rem; }
.welcome-intro article > div[itemprop="articleBody"] p,
.welcome-intro article > p { max-width: 720px; margin-left: auto; margin-right: auto; font-size: var(--fs-sm); }

.row-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.col-stack { display: flex; flex-direction: column; gap: 0.75rem; height: 100%; }

.home-top-grid,
.home-faq-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.85rem;
  align-items: start;
}
.home-faq-grid { align-items: stretch; }

.content-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 0.95rem;
  box-shadow: var(--shadow);
}
.content-box--stretch { height: 100%; display: flex; flex-direction: column; }
.content-box h2 { font-size: var(--fs-lg); font-weight: 400; }
.content-box h3 { font-size: var(--fs-md); font-weight: 600; }
.content-box .btn { margin-top: 0.5rem; }

.policy-item { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.policy-item:last-child { border-bottom: 0; padding-bottom: 0; }
.policy-item time { display: block; font-size: var(--fs-xs); color: var(--portal-green); margin-bottom: 0.15rem; }
.policy-item h3 { margin-bottom: 0.2rem; }
.policy-item p { margin: 0; font-size: var(--fs-sm); }

.action-stack { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.55rem; }
.action-stack .btn { width: 100%; justify-content: center; margin-top: 0; }

.purpose-simple {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem 0.75rem;
  margin: 0.55rem 0 0.35rem; font-size: var(--fs-sm);
}
.purpose-simple ul { margin: 0; padding-left: 0.95rem; }
.purpose-simple li { margin-bottom: 0.15rem; }

.visa-type-trio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.visa-type-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.45rem;
}
.visa-type-panel__head {
  background: var(--portal-green-soft); border-radius: 4px; padding: 0.65rem;
  text-align: center;
}
.visa-type-panel__head i { font-size: 1.25rem; color: var(--portal-green); margin-bottom: 0.25rem; }
.visa-type-panel__head h3 { font-size: var(--fs-md); font-weight: 600; margin-bottom: 0.2rem; }
.visa-type-panel__head p { margin: 0; font-size: var(--fs-xs); }
.visa-type-panel__head--business { background: #EEF3F7; }
.visa-type-panel__head--business i { color: var(--portal-nav); }
.visa-type-panel__head--transit { background: #EAF6FB; }
.visa-type-panel__head--transit i { color: var(--flag-blue); }
.visa-type-panel__head--check { background: #F4F6E8; }
.visa-type-panel__head--check i { color: #6B8E23; }
.visa-type-panel ul { margin: 0; padding-left: 1rem; font-size: var(--fs-sm); flex: 1; }
.visa-type-panel .btn { width: 100%; justify-content: center; margin-top: auto; }

.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.info-card h3 { font-size: var(--fs-md); font-weight: 600; }
.info-card h3 i { color: var(--portal-green); margin-right: 0.25rem; }
.info-card p, .info-card li { font-size: var(--fs-sm); }
.info-card__cta {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.65rem;
}

.faq-panel__lead { margin: 0.3rem 0 0.7rem; font-size: var(--fs-sm); color: var(--muted); }
.faq-list { display: flex; flex-direction: column; gap: 0.4rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0;
}
.faq-item summary {
  cursor: pointer; padding: 0.55rem 0.7rem; font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; float: right; color: var(--portal-green); font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { padding: 0.55rem 0.7rem; margin: 0; font-size: var(--fs-sm); }
.faq-more { margin-top: auto; padding-top: 0.7rem; font-size: var(--fs-sm); }

.checklist { list-style: none; padding-left: 0; margin: 0.4rem 0; }
.checklist li {
  position: relative; padding: 0.25rem 0 0.25rem 1.15rem;
  font-size: var(--fs-sm);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--portal-green); font-weight: 700;
}
.checklist--warning li::before { content: "!"; color: #C45C26; }

.disclaimer-strip {
  background: #F0F2F4; border-top: 1px solid var(--line); padding: 0.85rem 0;
}
.disclaimer-strip small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; display: block; }

/* Footer */
.site-footer { background: var(--portal-nav-dark); color: rgba(255,255,255,0.85); }
.footer-top { padding: 1.6rem 0 1.2rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.footer-col__title {
  margin: 0 0 0.55rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a {
  color: rgba(255,255,255,0.75); font-size: 0.74rem; text-decoration: none !important;
}
.footer-links a:hover { color: #fff; text-decoration: underline !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 0.75rem 0;
}
.footer-bottom__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.footer-bottom__links {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 0.85rem; flex-wrap: wrap;
}
.footer-bottom__links a {
  color: rgba(255,255,255,0.7); font-size: 0.7rem; text-decoration: none !important;
}
.footer-bottom__links a:hover { color: #fff; }

.back-to-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--portal-green); color: #fff; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
  box-shadow: var(--shadow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* ========== Inner pages (About eVisa, etc.) ========== */
.inner-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0 1.25rem;
}
.breadcrumb-nav { margin-bottom: 0.65rem; }
.breadcrumb {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem;
  font-size: var(--fs-xs); color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumb li:not(:last-child)::after {
  content: "/"; color: var(--line); margin-left: 0.15rem;
}
.breadcrumb a { color: var(--portal-link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.inner-hero__heading {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.4rem 0.55rem; margin: 0 0 0.35rem;
}
.inner-hero__heading h1 {
  margin: 0; font-size: var(--fs-xl); font-weight: 400; line-height: 1.25;
}
.inner-hero__lead {
  margin: 0 0 0.35rem; max-width: 720px;
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.inner-hero .btn-row { justify-content: flex-start; }

.inner-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 0.85rem;
  align-items: start;
}
.inner-article h2 { margin-top: 0; }
.inner-aside .content-box .btn { width: 100%; justify-content: center; margin-top: 0.65rem; }
.glance-list {
  list-style: none; margin: 0.4rem 0 0; padding: 0;
}
.glance-list li {
  font-size: var(--fs-sm); padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.glance-list li:last-child { border-bottom: 0; }

.country-notes { margin-top: 0.85rem; }
.country-notes h3 { margin-top: 0; }
.country-notes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.55rem;
}
.country-notes__grid article {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.country-notes__grid h4 {
  margin: 0 0 0.3rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--portal-green-dark);
}
.country-notes__grid p { margin: 0; font-size: var(--fs-sm); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 0.55rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--portal-green-soft);
  border-bottom: 1px solid var(--line);
}
.data-table th,
.data-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  background: #EEF3F7;
  font-weight: 700;
  color: var(--portal-nav);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #FAFBFC; }
.table-note {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 0 0 1rem;
}

.steps-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  counter-reset: evisa-step;
  display: grid;
  gap: 0.65rem;
}
.steps-list > li {
  counter-increment: evisa-step;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem 0.75rem 3.1rem;
  box-shadow: var(--shadow);
}
.steps-list > li::before {
  content: counter(evisa-step);
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--portal-green);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-list h3 {
  margin: 0 0 0.2rem;
  font-size: var(--fs-md);
  font-weight: 600;
}
.steps-list p { margin: 0; font-size: var(--fs-sm); }
.inline-cta {
  margin: 0.85rem 0 0;
  font-size: var(--fs-sm);
  text-align: center;
}

/* ========== Tablet ========== */
@media (max-width: 991px) {
  :root {
    --masthead-h: 64px;
    --nav-h: 48px;
    --fs-2xl: 1.3rem;
    --fs-xl: 1.12rem;
    --fs-lg: 0.98rem;
    --fs-md: 0.9rem;
  }

  .nav-toggle { display: inline-flex; }
  .mobile-quicknav { display: flex; }
  html.nav-drawer-open,
  html.nav-drawer-open body { overflow: hidden; }

  .brand__wordmark { font-size: 1.9rem; }
  .brand__title { font-size: 0.92rem; }
  .brand__subtitle { font-size: 0.7rem; }
  .brand__text { padding-left: 0.5rem; }
  .masthead__eservices { max-width: min(40vw, 160px); }
  .masthead__eservices-img { max-height: 42px; }

  .primary-menu {
    position: fixed;
    top: calc(var(--masthead-h) + 3px + var(--nav-h));
    left: 0; right: 0; width: 100%;
    background: var(--portal-nav-dark);
    flex-direction: column; align-items: stretch;
    padding: 0;
    max-height: calc(100dvh - var(--masthead-h) - 3px - var(--nav-h));
    overflow-x: hidden; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    box-shadow: var(--shadow); z-index: 1200;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  }
  .primary-menu.is-open {
    opacity: 1 !important; visibility: visible !important;
    pointer-events: auto !important; transform: translateY(0);
  }
  .primary-menu > li > a {
    padding: 0.65rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: normal;
  }
  .primary-menu .sub-menu,
  .primary-menu .has-children:hover > .sub-menu,
  .primary-menu .has-children:focus-within > .sub-menu {
    position: static; display: none; margin: 0; border-radius: 0;
    box-shadow: none; background: rgba(0,0,0,0.18);
  }
  .primary-menu .has-children.is-expanded > .sub-menu { display: block; }
  .primary-menu .sub-menu a { padding-left: 1.15rem; }

  .home-top-grid,
  .home-faq-grid { grid-template-columns: 1fr; }
  .inner-layout { grid-template-columns: 1fr; }
  .country-notes__grid { grid-template-columns: 1fr 1fr; }
  .row-3col,
  .visa-type-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .row-3col .info-card:last-child { grid-column: 1 / -1; }

  .purpose-simple { grid-template-columns: 1fr 1fr; }
  .purpose-simple ul { display: contents; padding: 0; list-style: none; }
  .purpose-simple li {
    position: relative; margin: 0; padding: 0.12rem 0 0.12rem 0.85rem; font-size: var(--fs-sm);
  }
  .purpose-simple li::before {
    content: "•"; position: absolute; left: 0; top: 0.12rem; color: var(--portal-green);
  }

  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
  .hero-slider {
    aspect-ratio: 16 / 9;
    min-height: 190px;
    max-height: 280px;
  }
}

/* ========== Mobile — reduced layout & type ========== */
@media (max-width: 720px) {
  :root {
    --fs-xs: 0.58rem;
    --fs-sm: 0.68rem;
    --fs-base: 0.76rem;
    --fs-md: 0.8rem;
    --fs-lg: 0.88rem;
    --fs-xl: 0.98rem;
    --fs-2xl: 1.08rem;
    --masthead-h: 58px;
    --nav-h: 46px;
  }

  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  h3 { font-size: var(--fs-lg); }
  body { font-size: var(--fs-base); }
  p, li { font-size: var(--fs-base); }

  section, .content-section, .info-cards-section, .visa-purpose-section, .welcome-intro {
    padding: 0.95rem 0;
  }
  .container { width: min(100% - 0.9rem, var(--container)); }

  .brand { gap: 0.35rem; }
  .brand__wordmark { font-size: 1.65rem; }
  .brand__title { font-size: 0.82rem; }
  .brand__subtitle { font-size: 0.62rem; }
  .brand__text { padding-left: 0.4rem; }
  .masthead__eservices { max-width: 42vw; }
  .masthead__eservices-img { max-height: 36px; }

  .mobile-quicknav__item { font-size: 0.52rem; padding: 4px 2px; }
  .mobile-quicknav__item i { font-size: 0.88rem; }

  .btn { padding: 0.35rem 0.55rem; font-size: var(--fs-xs); gap: 0.22rem; }
  .btn-sm { padding: 0.25rem 0.45rem; font-size: 0.54rem; }

  .btn-row,
  .info-card__cta,
  .slide-actions {
    display: flex; flex-wrap: nowrap; gap: 0.3rem; width: 100%;
  }
  .btn-row .btn,
  .info-card__cta .btn,
  .slide-actions .btn {
    flex: 1 1 0; min-width: 0; padding: 0.32rem 0.35rem;
    font-size: var(--fs-xs); white-space: nowrap;
  }

  .welcome-intro__heading h1,
  .welcome-intro__flag,
  .welcome-intro__version { font-size: var(--fs-xl); }
  .slide-title { font-size: var(--fs-xl); }
  .slide-subtitle { font-size: var(--fs-sm); }

  .content-box,
  .info-card { padding: 0.65rem; }
  .visa-type-panel { padding: 0.65rem; }
  .visa-type-panel .btn { width: 100%; }

  .home-top-grid {
    grid-template-columns: 1fr 1fr; gap: 0.55rem;
  }
  .home-top-grid__side { display: contents; }
  .home-top-grid__eligible { order: 1; }
  .home-top-grid__entry { order: 1; }
  .home-top-grid__policy { order: 2; grid-column: 1 / -1; }
  .home-top-grid__purposes { order: 3; grid-column: 1 / -1; }

  .home-faq-grid {
    grid-template-columns: 1fr 1fr; gap: 0.55rem;
  }
  .home-faq-grid__side { display: contents; }
  .home-faq-grid__faq { order: 1; grid-column: 1 / -1; }
  .home-faq-grid__rejection,
  .home-faq-grid__exemption { order: 2; }

  .row-3col,
  .visa-type-trio,
  .keynote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .row-3col .info-card:last-child { grid-column: 1 / -1; }
  .country-notes__grid { grid-template-columns: 1fr; }
  .inner-hero { padding: 0.85rem 0 1rem; }
  .steps-list > li { padding-left: 2.85rem; }

  .purpose-simple {
    grid-template-columns: 1fr 1fr; gap: 0.15rem 0.7rem; width: 100%;
  }
  .purpose-simple ul { display: contents; padding: 0; margin: 0; list-style: none; }
  .purpose-simple li {
    position: relative; margin: 0; padding: 0.1rem 0 0.1rem 0.8rem;
    font-size: var(--fs-sm); line-height: 1.3;
  }
  .purpose-simple li::before {
    content: "•"; position: absolute; left: 0; top: 0.1rem; color: var(--portal-green);
  }

  .footer-top { padding: 1.1rem 0 0.85rem; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; }
  .footer-col__title { font-size: 0.58rem; margin-bottom: 5px; line-height: 1.2; }
  .footer-links a { font-size: 0.55rem; line-height: 1.25; }
  .footer-links li { margin-bottom: 3px; }
  .footer-bottom { padding: 0.65rem 0; }
  .footer-bottom p,
  .footer-bottom__links a { font-size: 0.6rem; }
  .footer-bottom__inner { flex-direction: column; text-align: center; gap: 6px; }
  .footer-bottom__links { justify-content: center; gap: 8px; }

  .hero-slider { min-height: 170px; max-height: 230px; }
  .back-to-top { bottom: 14px; right: 14px; width: 34px; height: 34px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  :root {
    --fs-xs: 0.54rem;
    --fs-sm: 0.64rem;
    --fs-base: 0.72rem;
    --fs-md: 0.76rem;
    --fs-lg: 0.84rem;
    --fs-xl: 0.92rem;
    --fs-2xl: 1.02rem;
  }

  .home-top-grid__eligible h2,
  .home-top-grid__entry h2,
  .home-faq-grid__rejection h2,
  .home-faq-grid__exemption h2 { font-size: 0.78rem; }

  .btn-row .btn,
  .info-card__cta .btn,
  .slide-actions .btn { font-size: 0.54rem; padding: 0.28rem 0.3rem; }

  .visa-type-trio { grid-template-columns: 1fr 1fr; }
  .footer-col__title { font-size: 0.54rem; }
  .footer-links a { font-size: 0.52rem; }
}

@media (max-width: 400px) {
  .container { width: min(100% - 0.7rem, var(--container)); }
  .mobile-quicknav { gap: 2px; }
  .brand__subtitle { display: none; }
}

/* ========== Business visa page ========== */
.biz-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.biz-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.biz-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: bizKenBurns 18s ease-in-out infinite alternate;
}
.biz-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(21, 35, 44, 0.92) 0%, rgba(21, 35, 44, 0.72) 48%, rgba(26, 122, 60, 0.45) 100%);
}
.biz-hero__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 1.6rem;
  width: min(100% - 1.25rem, var(--container));
}
.breadcrumb-nav--on-dark .breadcrumb,
.breadcrumb-nav--on-dark .breadcrumb a,
.breadcrumb-nav--on-dark .breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumb-nav--on-dark .breadcrumb a:hover { color: #fff; }
.breadcrumb-nav--on-dark .breadcrumb li:not(:last-child)::after { color: rgba(255, 255, 255, 0.35); }
.biz-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0.55rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.biz-hero__badge i { color: var(--flag-yellow); }
.biz-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flag-yellow);
  box-shadow: 0 0 0 0 rgba(252, 209, 22, 0.55);
  animation: bizPulse 1.8s ease-out infinite;
}
.biz-hero h1 {
  color: #fff;
  margin: 0 0 0.4rem;
  font-size: var(--fs-2xl);
  max-width: 18ch;
}
.biz-hero__lead {
  margin: 0 0 0.85rem;
  max-width: 620px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.92);
}
.biz-hero__lead strong { color: #fff; }
.btn-outline--light {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.btn-outline--light:hover,
.btn-outline--light:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.biz-aside-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEF3F7;
  color: var(--portal-nav);
  margin-bottom: 0.45rem;
  animation: bizFloat 3.2s ease-in-out infinite;
}
.biz-aside-card__icon i { font-size: 1rem; }

.biz-purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.biz-purpose-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.biz-purpose-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(30, 47, 58, 0.12);
}
.biz-purpose-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #EEF3F7;
}
.biz-purpose-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.biz-purpose-card:hover .biz-purpose-card__media img { transform: scale(1.05); }
.biz-purpose-card__float {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--portal-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26, 122, 60, 0.35);
  animation: bizFloat 2.8s ease-in-out infinite;
}
.biz-purpose-card h3 {
  margin: 0.7rem 0.75rem 0.25rem;
  font-size: var(--fs-md);
  font-weight: 600;
}
.biz-purpose-card p {
  margin: 0 0.75rem 0.8rem;
  font-size: var(--fs-sm);
}
.biz-note {
  margin-top: 0.25rem;
}
.biz-note h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.biz-note h3 i { color: var(--portal-nav); }

.biz-condition-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.biz-condition {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.biz-condition__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEF3F7;
  color: var(--portal-nav);
  animation: bizFloat 3s ease-in-out infinite;
}
.biz-condition:nth-child(2) .biz-condition__icon { animation-delay: 0.35s; }
.biz-condition:nth-child(3) .biz-condition__icon { animation-delay: 0.7s; }
.biz-condition:nth-child(4) .biz-condition__icon { animation-delay: 1.05s; }
.biz-condition h3 {
  margin: 0 0 0.25rem;
  font-size: var(--fs-md);
  font-weight: 600;
}
.biz-condition p {
  margin: 0;
  font-size: var(--fs-sm);
}

.biz-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1rem;
  align-items: center;
}
.biz-split__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.biz-split__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.biz-split__figure figcaption {
  padding: 0.55rem 0.75rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  background: #fff;
}
.biz-split__body h2 { margin-top: 0; }

@keyframes bizKenBurns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@keyframes bizPulse {
  0% { box-shadow: 0 0 0 0 rgba(252, 209, 22, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(252, 209, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 209, 22, 0); }
}
@keyframes bizFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .biz-hero__media img,
  .biz-pulse,
  .biz-aside-card__icon,
  .biz-purpose-card__float,
  .biz-condition__icon {
    animation: none !important;
  }
  .biz-purpose-card:hover,
  .biz-purpose-card:hover .biz-purpose-card__media img {
    transform: none;
  }
}

@media (max-width: 991px) {
  .biz-purpose-grid { grid-template-columns: 1fr 1fr; }
  .biz-condition-strip { grid-template-columns: 1fr 1fr; }
  .biz-split { grid-template-columns: 1fr; }
  .biz-hero { min-height: 240px; }
}

@media (max-width: 720px) {
  .biz-purpose-grid,
  .biz-condition-strip { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .biz-hero__content { padding: 1.1rem 0 1.2rem; }
  .biz-hero h1 { max-width: none; }
}

@media (max-width: 480px) {
  .biz-purpose-grid { grid-template-columns: 1fr; }
  .biz-condition-strip { grid-template-columns: 1fr 1fr; }
}

/* Transit visa page accents */
.transit-hero .biz-hero__overlay {
  background:
    linear-gradient(105deg, rgba(21, 35, 44, 0.92) 0%, rgba(21, 35, 44, 0.7) 45%, rgba(0, 163, 221, 0.5) 100%);
}
.transit-aside-icon,
.transit-condition-icon {
  background: #EAF6FB !important;
  color: var(--flag-blue) !important;
}
.transit-float {
  background: var(--flag-blue) !important;
  box-shadow: 0 4px 12px rgba(0, 163, 221, 0.35) !important;
}

/* Requirements page */
.req-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.req-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0.75rem;
}
.req-type-card__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
  background: var(--portal-green-soft);
}
.req-type-card__head i { color: var(--portal-green); font-size: 1.05rem; }
.req-type-card__head h3 {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
}
.req-type-card__head--business { background: #EEF3F7; }
.req-type-card__head--business i { color: var(--portal-nav); }
.req-type-card__head--transit { background: #EAF6FB; }
.req-type-card__head--transit i { color: var(--flag-blue); }
.req-type-card__head--multiple { background: #F4F6E8; }
.req-type-card__head--multiple i { color: #6B8E23; }
.req-type-card .checklist { flex: 1; margin: 0.15rem 0 0.35rem; }
.req-type-card .btn { width: 100%; justify-content: center; margin-top: auto; }
.req-side-figure {
  padding: 0;
  overflow: hidden;
}
.req-side-figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.req-side-figure figcaption {
  padding: 0.5rem 0.7rem 0.65rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 0;
}

@media (max-width: 991px) {
  .req-type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .req-type-grid { grid-template-columns: 1fr; }
}

/* How to apply / procedure page */
.procedure-hero .biz-hero__overlay {
  background:
    linear-gradient(105deg, rgba(21, 35, 44, 0.92) 0%, rgba(26, 122, 60, 0.55) 55%, rgba(0, 163, 221, 0.4) 100%);
}

/* Ports of entry page */
.port-hero .biz-hero__overlay {
  background:
    linear-gradient(105deg, rgba(21, 35, 44, 0.92) 0%, rgba(21, 35, 44, 0.68) 50%, rgba(0, 163, 221, 0.55) 100%);
}
.port-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.port-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.8rem;
  box-shadow: var(--shadow);
  position: relative;
}
.port-card__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.2rem 0.45rem;
  margin-bottom: 0.4rem;
  border-radius: 4px;
  background: var(--portal-nav);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.port-card h3 {
  margin: 0 0 0.25rem;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.3;
}
.port-card__place {
  margin: 0 0 0.4rem;
  font-size: var(--fs-xs);
  color: var(--portal-green-dark);
  font-weight: 600;
}
.port-card__place i { margin-right: 0.2rem; }
.port-card p:last-child {
  margin: 0;
  font-size: var(--fs-sm);
}
.port-banner {
  margin: 0.85rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.port-banner img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}
.port-banner figcaption {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}

@media (max-width: 991px) {
  .port-card-grid { grid-template-columns: repeat(2, 1fr); }
  .port-banner img { aspect-ratio: 16 / 8; }
}
@media (max-width: 480px) {
  .port-card-grid { grid-template-columns: 1fr; }
}

/* FAQ page */
.faq-hero .biz-hero__overlay {
  background:
    linear-gradient(105deg, rgba(21, 35, 44, 0.92) 0%, rgba(26, 122, 60, 0.5) 55%, rgba(126, 200, 232, 0.35) 100%);
}
.faq-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.faq-topic-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.faq-topic-nav__item i { color: var(--portal-green); }
.faq-topic-nav__item:hover {
  background: var(--portal-green-soft);
  border-color: #cfe8d6;
  color: var(--portal-green-dark);
}
.faq-page-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 0.85rem;
  align-items: start;
}
.faq-group { margin: 0; }
.faq-group h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  font-size: var(--fs-lg);
}
.faq-group h2 i { color: var(--portal-green); font-size: 1rem; }
.faq-page-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 0.75rem;
}
.faq-page-aside .content-box h2 { margin-top: 0; }

@media (max-width: 991px) {
  .faq-page-layout { grid-template-columns: 1fr; }
  .faq-page-aside { position: static; }
}

/* Tourist guide page */
.guide-hero .biz-hero__overlay {
  background:
    linear-gradient(105deg, rgba(21, 35, 44, 0.88) 0%, rgba(26, 122, 60, 0.55) 50%, rgba(252, 209, 22, 0.28) 100%);
}
.guide-dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.guide-dest-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100%;
}
.guide-dest-card__media {
  min-height: 160px;
  background: #EEF3F7;
}
.guide-dest-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-dest-card__body {
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guide-dest-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: var(--fs-md);
  font-weight: 600;
}
.guide-dest-card__body p {
  margin: 0;
  font-size: var(--fs-sm);
}

@media (max-width: 991px) {
  .guide-dest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .guide-dest-card { grid-template-columns: 1fr; }
  .guide-dest-card__media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Embassy page */
.embassy-hero .biz-hero__overlay {
  background:
    linear-gradient(105deg, rgba(21, 35, 44, 0.92) 0%, rgba(30, 47, 58, 0.78) 48%, rgba(26, 122, 60, 0.45) 100%);
}
.embassy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.embassy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.85rem;
  box-shadow: var(--shadow);
}
.embassy-card__type {
  margin: 0 0 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--portal-green-dark);
}
.embassy-card h3 {
  margin: 0 0 0.2rem;
  font-size: var(--fs-md);
  font-weight: 600;
}
.embassy-card__country {
  margin: 0 0 0.4rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 600;
}
.embassy-card__country i {
  color: var(--portal-green);
  margin-right: 0.2rem;
}
.embassy-card p:last-child {
  margin: 0;
  font-size: var(--fs-sm);
}

@media (max-width: 991px) {
  .embassy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .embassy-grid { grid-template-columns: 1fr; }
}

/* Legal / policy prose */
.legal-prose h2 { margin-top: 0; }
.legal-prose h3 { margin-top: 0.85rem; }
.legal-prose p,
.legal-prose li { font-size: var(--fs-sm); }

/* =========================================================
   Inner pages � Tajikistan-style document layout
   (hero banner + divider + highlight + TOC + visa-info-card)
   ========================================================= */

.hero-banner {
  background: linear-gradient(135deg, var(--portal-nav-dark) 0%, var(--portal-nav) 55%, var(--portal-green-dark) 100%);
  color: #fff;
  padding: 2.25rem 0;
  text-align: center;
}

.hero-banner .page-title {
  color: #fff;
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.hero-banner .page-lead {
  margin: 0.65rem auto 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-md);
  line-height: 1.5;
}

.hero-banner .page-lead strong {
  color: #fff;
  font-weight: 700;
}

.page-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--flag-green) 0%, var(--flag-yellow) 33%, var(--flag-black) 66%, var(--flag-blue) 100%);
  margin: 0;
}

.evisa-page-container,
.legal-page {
  padding: 1.75rem 0 2.5rem;
  max-width: var(--container);
}

.breadcrumb-nav {
  margin-bottom: 1.35rem;
}

.breadcrumb {
  background: #f8f9fa;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  margin: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.breadcrumb li {
  display: inline;
}

.breadcrumb li + li::before {
  content: "�";
  margin: 0 0.45rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--portal-green-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .active,
.breadcrumb [aria-current="page"] {
  color: var(--muted);
}

.visa-highlight {
  background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
  border-left: 4px solid var(--flag-yellow);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
}

.visa-highlight h2 {
  color: var(--portal-nav-dark);
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.visa-highlight p {
  margin: 0 0 0.55rem;
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.55;
}

.visa-highlight p:last-child {
  margin-bottom: 0;
}

.toc {
  background: #f8f9fa;
  padding: 1.15rem 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.toc h4,
.toc > strong,
.toc .toc-title {
  color: var(--portal-nav-dark);
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem 0.65rem;
}

.toc li {
  margin: 0;
  min-width: 0;
}

.toc a {
  color: var(--portal-ink);
  text-decoration: none;
  font-size: 0.82rem;
  display: block;
  padding: 0.15rem 0 0.15rem 0.65rem;
  border-left: 2px solid transparent;
  line-height: 1.35;
}

.toc a:hover,
.toc a:focus {
  color: var(--portal-green-dark);
  border-left-color: var(--portal-green);
  text-decoration: none;
}

.visa-info-card {
  background: #fff;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.35rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(30, 47, 58, 0.05);
}

.visa-info-card h2 {
  color: var(--portal-nav-dark);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--portal-green);
  font-weight: 700;
}

.visa-info-card h3 {
  color: var(--portal-nav-dark);
  font-size: 1.05rem;
  margin: 1.15rem 0 0.55rem;
  font-weight: 700;
}

.visa-info-card h3:first-of-type {
  margin-top: 0.75rem;
}

.visa-info-card p {
  margin: 0 0 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink);
}

.visa-info-card ul,
.visa-info-card ol {
  padding-left: 1.25rem;
  margin: 0 0 0.85rem;
}

.visa-info-card li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
  font-size: var(--fs-sm);
}

.visa-info-card strong {
  color: var(--portal-nav-dark);
}

.visa-info-card .checklist {
  list-style: none;
  padding-left: 0;
}

.visa-info-card .checklist li {
  position: relative;
  padding-left: 1.35rem;
}

.visa-info-card .checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--portal-green);
}

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

.visa-type-card {
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
}

.visa-type-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--portal-green);
}

.visa-type-card__label {
  background: var(--portal-green);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.visa-type-card__head h3 {
  margin: 0;
  font-size: 1rem;
  border: 0;
  padding: 0;
  color: var(--portal-nav-dark);
}

.visa-type-card p {
  margin: 0 0 0.65rem;
  font-size: var(--fs-sm);
}

.visa-type-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.visa-type-card__meta div {
  text-align: center;
}

.visa-type-card__meta dt {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.visa-type-card__meta dd {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--portal-nav-dark);
  margin: 0;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0;
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
}

.mini-table th,
.mini-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  vertical-align: top;
}

.mini-table th {
  background: var(--portal-nav);
  color: #fff;
  font-weight: 600;
}

.mini-table tr:last-child td {
  border-bottom: none;
}

.cta-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta-row .btn {
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.apply-steps-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  counter-reset: apply-step;
}

.apply-steps-list > li {
  counter-increment: apply-step;
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 3.1rem;
  margin-bottom: 0.65rem;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.apply-steps-list > li::before {
  content: counter(apply-step);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--portal-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-steps-list h3 {
  margin: 0 0 0.3rem;
  font-size: var(--fs-md);
  border: 0;
  padding: 0;
}

.apply-steps-list p {
  margin: 0;
}

.photo-req-card,
.legal-card {
  background: #fff;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.35rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(30, 47, 58, 0.05);
}

.photo-req-card h2,
.legal-card h2 {
  color: var(--portal-nav-dark);
  font-size: 1.3rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--portal-green);
}

.photo-req-card h3,
.legal-card h3 {
  color: var(--portal-nav-dark);
  font-size: 1.05rem;
  margin: 1.1rem 0 0.5rem;
}

.photo-req-card p,
.legal-card p,
.photo-req-card li,
.legal-card li {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.faq-accordion details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 0.55rem;
  padding: 0;
}

.faq-accordion summary {
  cursor: pointer;
  padding: 0.75rem 0.95rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--portal-nav-dark);
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker { display: none; }

.faq-accordion summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  margin-right: 0.35rem;
  color: var(--portal-green);
  font-weight: 700;
}

.faq-accordion details[open] summary::before {
  content: "-";
}

.faq-accordion details > div,
.faq-accordion details > p {
  padding: 0 0.95rem 0.85rem 2.4rem;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink);
}

.inner-media-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.15rem;
  align-items: start;
}

.inner-media-grid figure {
  margin: 0;
}

.inner-media-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}

.inner-media-grid figcaption {
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.embassy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.embassy-card {
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 0.85rem;
}

.embassy-card__type {
  margin: 0 0 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--portal-green-dark);
}

.embassy-card h3 {
  margin: 0 0 0.2rem;
  font-size: var(--fs-md);
  font-weight: 600;
  border: 0;
  padding: 0;
}

.embassy-card__country {
  margin: 0 0 0.4rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 600;
}

.guide-dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.guide-dest-card {
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.guide-dest-card__media {
  min-height: 140px;
  background: #EEF3F7;
}

.guide-dest-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-dest-card__body {
  padding: 0.75rem 0.85rem;
}

.guide-dest-card__body h3 {
  margin: 0 0 0.3rem;
  font-size: var(--fs-md);
  border: 0;
  padding: 0;
}

.guide-dest-card__body p {
  margin: 0;
  font-size: var(--fs-sm);
}

@media (max-width: 991.98px) {
  .toc ul { grid-template-columns: repeat(2, 1fr); }
  .inner-media-grid { grid-template-columns: 1fr; }
  .embassy-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-dest-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .hero-banner { padding: 1.6rem 0; }
  .hero-banner .page-title { font-size: 1.55rem; }
  .visa-info-card,
  .photo-req-card,
  .legal-card { padding: 1.1rem 1rem; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .visa-type-card__meta { grid-template-columns: 1fr; }
  .guide-dest-card { grid-template-columns: 1fr; }
  .guide-dest-card__media { aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 575.98px) {
  .toc ul { grid-template-columns: 1fr; }
  .embassy-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Apply page
   ========================================================= */
.apply-123 {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
}
.apply-123 > li {
  margin: 0;
  padding: 1rem 0.9rem 1.05rem;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.apply-123__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.apply-123 > li:nth-child(1) .apply-123__num { background: var(--portal-green); }
.apply-123 > li:nth-child(2) .apply-123__num { background: var(--flag-yellow); color: #111; }
.apply-123 > li:nth-child(3) .apply-123__num { background: var(--portal-nav); }
.apply-123 h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  border: 0;
  padding: 0;
  color: var(--portal-nav-dark);
}
.apply-123 p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.apply-now {
  margin-top: 1.35rem;
  text-align: center;
}
.apply-now__btn {
  display: inline-flex;
  min-width: 14rem;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.apply-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.apply-facts div {
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 0.8rem;
}
.apply-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.apply-facts dd {
  margin: 0.25rem 0 0;
  color: var(--portal-nav-dark);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.apply-docs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
  margin: 0.65rem 0 1rem;
}
.apply-docs figure { margin: 0; }
.apply-docs img {
  display: block;
  height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.apply-docs figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: var(--fs-xs);
  text-align: center;
}
.apply-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.apply-checklist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.55rem;
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
}
.apply-checklist li:last-child { border-bottom: 0; }
.apply-checklist li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--portal-green);
  font-weight: 700;
}

/* Application form wizard */
.app-form-wrap { margin-top: 0.25rem; }
.app-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}
.app-steps li {
  flex: 1 1 0;
  min-width: 5.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.45rem 0.35rem;
  border-bottom: 3px solid var(--line);
}
.app-steps li.is-active {
  color: var(--portal-green-dark);
  border-bottom-color: var(--portal-green);
}
.app-steps li.is-done {
  color: var(--portal-nav-dark);
  border-bottom-color: var(--portal-nav);
}
.app-panel { display: none; }
.app-panel.is-active { display: block; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}
.app-grid .full { grid-column: 1 / -1; }
.app-grid[hidden],
.app-resided-row[hidden],
[data-host-field][hidden] {
  display: none !important;
}
.app-field label,
.app-field .label-like {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #243b35;
}
.app-field .req { color: #b42318; }
.app-field input[type="text"],
.app-field input[type="email"],
.app-field input[type="tel"],
.app-field input[type="number"],
.app-field input[type="date"],
.app-field select,
.app-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfd8d4;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.35;
  background: #fff;
  color: #15241f;
  box-shadow: 0 1px 2px rgba(20, 40, 34, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.app-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6f68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}
.app-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.app-field input::placeholder,
.app-field textarea::placeholder {
  color: #8a9a94;
}
.app-field input:hover,
.app-field select:hover,
.app-field textarea:hover {
  border-color: #a8b8b1;
}
.app-field input:focus,
.app-field select:focus,
.app-field textarea:focus {
  outline: none;
  border-color: var(--portal-green, #1a7a3c);
  box-shadow: 0 0 0 3px rgba(26, 122, 60, 0.18);
  background: #fff;
}
.app-field input:disabled,
.app-field input[readonly],
.app-field select:disabled,
.app-field textarea:disabled,
.app-field textarea[readonly] {
  background: #f3f6f5;
  color: #4a5c56;
  cursor: default;
  box-shadow: none;
}
.app-field .hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #6a7c75;
  line-height: 1.4;
}
.app-field .field-error {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b42318;
  line-height: 1.35;
}
.app-field .field-error[hidden] {
  display: none !important;
}
.app-field.is-invalid input:not([type="hidden"]):not([type="file"]),
.app-field.is-invalid select,
.app-field.is-invalid textarea,
.app-field.is-invalid .app-datepicker__input {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.14) !important;
  background-color: #fff8f7;
}
.app-field.is-valid input:not([type="hidden"]):not([type="file"]):not([readonly]):not(:disabled),
.app-field.is-valid select:not(:disabled),
.app-field.is-valid textarea:not([readonly]):not(:disabled),
.app-field.is-valid .app-datepicker__input {
  border-color: #159a45 !important;
  box-shadow: 0 0 0 3px rgba(21, 154, 69, 0.14) !important;
  background-color: #f5fbf7;
}
.app-field.is-invalid .app-radio-row,
.app-field.is-invalid .app-agree {
  outline: 2px solid rgba(217, 45, 32, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
}
.app-field.is-valid .app-radio-row,
.app-field.is-valid .app-agree {
  outline: 2px solid rgba(21, 154, 69, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
}
.app-date-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.app-datepicker {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.app-datepicker__control {
  position: relative;
  display: flex;
  align-items: stretch;
}
.app-datepicker__input {
  max-width: 100%;
  padding-right: 2.75rem !important;
  cursor: pointer;
}
.app-datepicker__btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3d534c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-datepicker__btn:hover,
.app-datepicker__btn:focus-visible {
  color: var(--portal-green, #1a7a3c);
  background: rgba(26, 122, 60, 0.08);
  outline: none;
}
.app-datepicker__words {
  margin: 0;
  font-size: 0.8125rem;
  color: #3d534c;
  font-weight: 500;
}

/* jQuery UI Datepicker — portal theme, mobile + desktop */
.ui-datepicker {
  width: min(20.5rem, calc(100vw - 1.5rem)) !important;
  padding: 0.65rem !important;
  border: 1px solid #cfd8d4 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(20, 40, 34, 0.18) !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  z-index: 10020 !important;
}
.ui-datepicker .ui-datepicker-header {
  background: #1a3c34 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 0.55rem 0.4rem !important;
  margin: 0 0 0.45rem !important;
}
.ui-datepicker .ui-datepicker-title {
  margin: 0 2rem !important;
  line-height: 1.9 !important;
}
.ui-datepicker .ui-datepicker-title select {
  margin: 0 0.15rem !important;
  padding: 0.35rem 0.4rem !important;
  border-radius: 6px !important;
  border: 1px solid #d5e0db !important;
  font: inherit !important;
  font-size: 0.85rem !important;
  min-height: 2.1rem;
  max-width: 46%;
  background: #fff;
  color: #15241f;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  top: 0.55rem !important;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 6px !important;
  cursor: pointer;
}
.ui-datepicker .ui-datepicker-prev { left: 0.35rem !important; }
.ui-datepicker .ui-datepicker-next { right: 0.35rem !important; }
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  margin-left: -8px !important;
  margin-top: -8px !important;
}
.ui-datepicker .ui-icon-circle-triangle-w,
.ui-datepicker .ui-icon-circle-triangle-e {
  filter: invert(1);
}
.ui-datepicker th {
  padding: 0.4rem 0 !important;
  color: #5a6f68 !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
}
.ui-datepicker td {
  padding: 1px !important;
}
.ui-datepicker td span,
.ui-datepicker td a {
  min-height: 2.35rem !important;
  line-height: 2.35rem !important;
  text-align: center !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: #15241f !important;
}
.ui-datepicker td a:hover {
  background: rgba(26, 122, 60, 0.12) !important;
  color: #0f5a2c !important;
}
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-active.ui-state-hover {
  background: #1a7a3c !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.ui-datepicker .ui-state-highlight {
  box-shadow: inset 0 0 0 2px #1a7a3c;
}
.ui-datepicker .ui-datepicker-buttonpane {
  border-top: 1px solid #e5ece9 !important;
  margin: 0.45rem 0 0 !important;
  padding: 0.45rem 0 0 !important;
  background: transparent !important;
}
.ui-datepicker .ui-datepicker-buttonpane button {
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem !important;
  border-radius: 6px !important;
  border: 1px solid #cfd8d4 !important;
  background: #f7faf8 !important;
  color: #243b35 !important;
  font: inherit !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}
@media (max-width: 575.98px) {
  .ui-datepicker {
    width: min(22rem, calc(100vw - 1rem)) !important;
    font-size: 1rem !important;
  }
  .ui-datepicker td span,
  .ui-datepicker td a {
    min-height: 2.6rem !important;
    line-height: 2.6rem !important;
  }
  .ui-datepicker .ui-datepicker-title select {
    min-height: 2.35rem;
    font-size: 0.92rem !important;
  }
}
.app-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  padding: 0.35rem 0;
}
.app-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #243b35;
  cursor: pointer;
}
.app-radio input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0;
  accent-color: var(--portal-green, #1a7a3c);
  box-shadow: none;
  padding: 0;
}
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.app-actions .btn {
  min-width: 8rem;
  justify-content: center;
  gap: 0.45rem;
}
.app-actions--split {
  justify-content: space-between;
  align-items: center;
}
.app-actions--split .btn-primary {
  margin-left: auto;
}
.app-actions__spacer {
  flex: 0 0 auto;
}
.btn-icon {
  flex: 0 0 auto;
  display: block;
}
.btn-navy {
  background: var(--portal-nav, #1a3c34);
  color: #fff;
  border-color: var(--portal-nav, #1a3c34);
}
.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--portal-nav-dark, #122a24);
  color: #fff;
}
@media (max-width: 575.98px) {
  .app-actions--split {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .app-actions--split .btn-primary {
    margin-left: 0;
  }
  .app-actions--split .btn {
    width: 100%;
  }
}
.app-sidebar-steps li.is-locked .app-sidebar-link {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.app-upload-label {
  margin-bottom: 0.5rem !important;
}
.app-upload-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9em;
}
.app-grid--uploads {
  gap: 1.15rem;
}
.app-upload {
  position: relative;
  border: 1.5px dashed #b7c5bf;
  border-radius: 12px;
  padding: 0;
  background: linear-gradient(180deg, #fbfdfc 0%, #f4f8f6 100%);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.app-upload:hover,
.app-upload.is-dragover {
  border-color: var(--portal-green, #1a7a3c);
  background: #f3faf5;
  box-shadow: 0 0 0 3px rgba(26, 122, 60, 0.1);
}
.app-upload.has-file {
  border-style: solid;
  border-color: #8fbf9b;
  background: #f5fbf7;
}
.app-upload__input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  z-index: 2;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.app-upload__ui {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.1rem;
  pointer-events: none;
}
.app-upload__icon {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-green, #1a7a3c);
  background: rgba(26, 122, 60, 0.1);
}
.app-upload.has-file .app-upload__icon {
  background: rgba(26, 122, 60, 0.16);
}
.app-upload__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.app-upload__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f332c;
  line-height: 1.3;
}
.app-upload__meta {
  font-size: 0.78rem;
  color: #6a7c75;
  line-height: 1.35;
}
.app-upload__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  border: 1px solid #1a7a3c;
  background: #fff;
  color: #147036;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.app-upload:hover .app-upload__btn {
  background: #1a7a3c;
  color: #fff;
}
.app-upload__file {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.65rem 1.1rem 0.9rem;
  border-top: 1px solid rgba(26, 122, 60, 0.12);
  font-size: 0.82rem;
  color: #243b35;
  line-height: 1.4;
  pointer-events: none;
}
.app-upload__file[hidden] {
  display: none !important;
}
.app-upload__file-label {
  font-weight: 700;
  color: #147036;
  margin-right: 0.35rem;
}
.app-upload__file-name {
  word-break: break-all;
  font-weight: 500;
}
.app-field.is-invalid .app-upload {
  border-color: #d92d20 !important;
  background: #fff8f7;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12) !important;
}
.app-field.is-valid .app-upload {
  border-color: #159a45 !important;
  background: #f5fbf7;
  box-shadow: 0 0 0 3px rgba(21, 154, 69, 0.12) !important;
}
@media (max-width: 575.98px) {
  .app-upload__ui {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .app-upload__btn {
    width: 100%;
  }
}
.app-review {
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.85rem;
}
.app-review h3 {
  margin: 0 0 0.5rem;
  font-size: var(--fs-md);
  border: 0;
  padding: 0;
}
.app-review dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0;
  font-size: var(--fs-sm);
}
.app-review dt { color: var(--muted); font-weight: 600; }
.app-review dd { margin: 0; color: var(--ink); }
.app-agree {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  margin: 0.75rem 0 0;
}
.app-agree input { margin-top: 0.2rem; }
.app-agree--stack {
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d5e0db;
  border-radius: 10px;
  background: #f8fbf9;
}
.app-agree--stack input[type="checkbox"] {
  margin-top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  flex: 0 0 auto;
  accent-color: var(--portal-green, #1a7a3c);
}
.app-agree__text {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: #243b35;
  line-height: 1.45;
  font-weight: 500;
}
.app-agree__text a {
  color: var(--portal-green, #1a7a3c);
  font-weight: 700;
}
.app-alert {
  background: linear-gradient(135deg, #E8F6EC 0%, #fff 100%);
  border-left: 4px solid var(--portal-green);
  padding: 0.85rem 1rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
  font-size: var(--fs-sm);
}
@media (max-width: 767.98px) {
  .apply-123 { grid-template-columns: 1fr; }
  .apply-facts { grid-template-columns: 1fr 1fr; }
  .apply-docs img { height: 110px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-review dl { grid-template-columns: 1fr; }
  .app-steps li { flex: 1 1 30%; }
}

/* Tanzania eVisa application wizard shell */
.evisa-page-container--wide { max-width: 1120px; }
.app-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  background: var(--portal-nav-dark, #1a3c34);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
}
.app-shell {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
.app-sidebar {
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  position: sticky;
  top: 1rem;
}
.app-sidebar-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.app-sidebar-steps li { margin: 0; }
.app-sidebar-link {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-sm);
  line-height: 1.35;
}
.app-sidebar-steps li.is-active .app-sidebar-link {
  background: #fff;
  border: 1px solid var(--portal-green);
  font-weight: 700;
  color: var(--portal-green-dark);
}
.app-sidebar-steps li.is-done .app-sidebar-link { color: var(--portal-nav-dark); }
.app-sidebar-num {
  flex: 0 0 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.app-sidebar-steps li.is-active .app-sidebar-num {
  background: var(--portal-green);
  color: #fff;
}
.app-sidebar-steps li.is-done .app-sidebar-num { background: var(--portal-nav); color: #fff; }
.app-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.15rem 1.25rem;
}
.app-step-title {
  margin: 0 0 1rem;
  font-size: var(--fs-lg);
  color: var(--portal-nav-dark);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}
.app-note {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
}
.app-note--gold {
  background: linear-gradient(135deg, #fff8e6 0%, #fffdf5 100%);
  border-left: 4px solid #d4a017;
  color: #5c4a12;
}
.app-alert--error {
  background: #fef3f2;
  border-left-color: #b42318;
}
.app-error-list { margin: 0.35rem 0 0 1.1rem; padding: 0; }
.app-radio-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.app-radio { font-size: var(--fs-sm); font-weight: 600; display: inline-flex; gap: 0.35rem; align-items: center; }
.label-like { display: block; margin: 0 0 0.3rem; font-size: var(--fs-sm); font-weight: 700; color: var(--portal-nav-dark); }
.app-date-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-date-row select { flex: 1 1 5rem; min-width: 4.5rem; }
.field-error { margin: 0.25rem 0 0; font-size: var(--fs-xs); color: #b42318; }
.app-subheading {
  margin: 1rem 0 0.35rem;
  padding-bottom: 0.25rem;
  font-size: var(--fs-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.hint-inline { font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.hint--warn {
  color: #b42318;
  font-weight: 600;
}

/* Referral nationality warning modal */
body.app-modal-open {
  overflow: hidden;
}
.app-modal[hidden] {
  display: none !important;
}
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 22, 0.55);
}
.app-modal__panel {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: min(90vh, 40rem);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5ece9;
  box-shadow: 0 18px 48px rgba(15, 26, 22, 0.28);
}
.app-modal__header {
  padding: 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid #f0e2b8;
  background: linear-gradient(135deg, #fff8e6 0%, #fffdf5 100%);
}
.app-modal__header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #7a4e00;
  font-weight: 800;
}
.app-modal__body {
  padding: 1rem 1.15rem 0.35rem;
  color: #243b35;
  font-size: 0.94rem;
  line-height: 1.55;
}
.app-modal__lead {
  margin: 0 0 0.75rem;
}
.app-modal__list {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}
.app-modal__list li {
  margin-bottom: 0.45rem;
}
.app-modal__note {
  margin: 0 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  background: #fef3f2;
  border-left: 3px solid #b42318;
  color: #7a271a;
  font-size: 0.88rem;
  font-weight: 600;
}
.app-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem 1.1rem;
  border-top: 1px solid var(--line, #e5ece9);
}
@media (max-width: 575.98px) {
  .app-modal__panel {
    max-height: 92vh;
  }
  .app-modal__actions .btn {
    width: 100%;
  }
}
.app-resided-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.btn-sm { padding: 0.35rem 0.85rem; font-size: var(--fs-sm); min-width: auto; }
.app-preview-wrap { margin-bottom: 1rem; }
.app-meta-accent { color: #9fd4ff; font-weight: 700; }

/* Official-style application preview panels */
.pv-note {
  background: #fcf8e3;
  border: 1px solid #faebcc;
  border-left: 4px solid #f0ad4e;
  color: #8a6d3b;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
  border-radius: 0 4px 4px 0;
}
.pv-panel {
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 3px;
  margin: 0 0 1rem;
  overflow: hidden;
}
.pv-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.85rem;
  background: #f5f5f5;
  border-bottom: 1px solid #d7dde3;
}
.pv-panel__title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  color: #333;
  border: 0;
  padding: 0;
}
.pv-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--portal-nav, #1a3c34);
  color: #fff !important;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  text-decoration: none !important;
  line-height: 1.4;
}
.pv-edit:hover { background: var(--portal-nav-dark, #122a24); color: #fff !important; }
.pv-edit .btn-icon { width: 12px; height: 12px; }
.pv-panel__body { padding: 0.85rem 1rem 1rem; }
.pv-personal {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 1rem;
  align-items: start;
}
.pv-photo {
  border: 1px solid #cfd6de;
  background: #f3f5f7;
  width: 120px;
  height: 150px;
  overflow: hidden;
  justify-self: end;
}
.pv-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-photo__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
  padding: 0.5rem;
}
.pv-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.65rem;
  color: #666;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.pv-legend::before,
.pv-legend::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}
.pv-legend span { white-space: nowrap; }
.pv-grid {
  display: grid;
  gap: 0.65rem 1rem;
}
.pv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv-field--full { grid-column: 1 / -1; }
.pv-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #555;
  margin: 0 0 0.15rem;
}
.pv-value {
  display: block;
  font-size: var(--fs-sm);
  color: #222;
  word-break: break-word;
}
.pv-resided p {
  margin: 0 0 0.25rem;
  font-size: var(--fs-sm);
}
.pv-docs { display: grid; gap: 0.55rem; }
.pv-doc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
}
.pv-doc__label { font-weight: 700; font-size: var(--fs-sm); color: #444; }
.pv-doc__view {
  font-size: var(--fs-sm);
  color: #2a6ebb !important;
  font-weight: 600;
}
.pv-doc__missing { font-size: var(--fs-sm); color: var(--muted); }
.pv-actions { margin-top: 0.25rem; }
@media (max-width: 767.98px) {
  .pv-personal { grid-template-columns: 1fr; }
  .pv-photo { justify-self: start; }
  .pv-grid--2,
  .pv-grid--3 { grid-template-columns: 1fr; }
}
.app-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.btn.btn-outline {
  background: #fff;
  border: 1px solid var(--portal-green);
  color: var(--portal-green-dark);
}
.btn.btn-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  min-width: auto;
}
@media (max-width: 767.98px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: static; }
  .app-payment-grid { grid-template-columns: 1fr; }
  .app-resided-row { grid-template-columns: 1fr; }
  .app-resided-row .app-field { min-width: 0; }
}

/* Payment page — Uzbekistan-style summary stack (Tanzania colours) */
.tz-pay-ref {
  text-align: center;
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.tz-pay-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.tz-pay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(21, 35, 44, 0.06);
}
.tz-pay-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  background: #f4f6f8;
  color: var(--ink);
}
.tz-pay-card__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5a6f78;
}
.tz-pay-card__body {
  padding: 1.15rem 1.2rem;
}
.tz-pay-card--travel {
  border-color: #b9d4c4;
  background: linear-gradient(180deg, #f3faf5 0%, #fff 42%);
}
.tz-pay-card--travel .tz-pay-card__head {
  background: linear-gradient(90deg, var(--portal-green-dark) 0%, var(--portal-green) 100%);
  border-bottom-color: #0f4a24;
  color: #fff;
}
.tz-pay-card--travel .tz-pay-meta dt { color: #4a7380; }
.tz-pay-card--travel .tz-pay-meta__highlight { color: var(--portal-green-dark); }

.tz-pay-card--travellers {
  border-color: #c5d0d8;
  background: linear-gradient(180deg, #f5f8fa 0%, #fff 42%);
}
.tz-pay-card--travellers .tz-pay-card__head {
  background: linear-gradient(90deg, var(--portal-nav-dark) 0%, var(--portal-nav) 100%);
  border-bottom-color: #0f1a22;
  color: #fff;
}
.tz-pay-card--travellers .tz-pay-card__count {
  color: #e8f0f5;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.tz-pay-card--travellers .tz-pay-table th {
  background: #eef3f6;
  color: var(--portal-nav-dark);
  border-bottom-color: #c5d0d8;
}

.tz-pay-card--summary {
  border-color: #d4c4a8;
  background: linear-gradient(180deg, #fbf8f2 0%, #fff 42%);
}
.tz-pay-card--summary .tz-pay-card__head {
  background: linear-gradient(90deg, #8a6a2f 0%, #b08a3e 100%);
  border-bottom-color: #6f5424;
  color: #fff;
}
.tz-pay-card--summary .tz-pay-summary li { border-bottom-color: #eadfc8; }
.tz-pay-card--summary .tz-pay-summary li span:last-child {
  color: #6f5424;
  font-weight: 600;
}
.tz-pay-card--summary .tz-pay-total {
  border-top-color: #b08a3e;
  color: #6f5424;
  background: #f5edd9;
}
.tz-pay-card--summary .tz-pay-note { color: #8a7350; }

.tz-pay-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0;
}
.tz-pay-meta--cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tz-pay-meta > div { margin: 0; }
.tz-pay-meta dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.2rem;
  font-weight: 600;
}
.tz-pay-meta dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.tz-pay-meta__highlight {
  color: var(--portal-green-dark);
  font-weight: 700;
}
.tz-pay-table-wrap { overflow-x: auto; }
.tz-pay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tz-pay-table th,
.tz-pay-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e8eef1;
  text-align: left;
  vertical-align: middle;
}
.tz-pay-table th {
  background: #f7fafb;
  font-weight: 600;
  color: #3f5660;
}
.tz-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.tz-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid #c9d4da;
  border-radius: 4px;
  background: #fff;
  color: var(--portal-nav);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
.tz-pay-btn:hover {
  background: #f0f7f9;
  border-color: var(--portal-green);
  text-decoration: none;
}
.tz-pay-btn--edit {
  color: #8b5a14;
  border-color: #e0c9a0;
}
.tz-pay-btn--danger {
  color: #9b1c1c;
  border-color: #e8b4b4;
  background: #fff;
}
.tz-pay-btn--add {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: var(--portal-green-dark);
  border-color: #9fd4ab;
  background: #f3faf5;
}
.tz-pay-btn--add:hover {
  background: #e5f6e9;
  border-color: var(--portal-green);
}
.tz-pay-delete-form { display: inline; margin: 0; }
.tz-pay-add { margin: 1rem 0 0; }
.tz-pay-summary {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tz-pay-summary li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}
.tz-pay-summary li:last-child { border-bottom: none; }
.tz-pay-total {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-top: 2px solid var(--line);
  border-radius: 6px;
  font-size: 1.15rem;
  font-weight: 800;
}
.tz-pay-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}
.tz-pay-footer {
  margin: 0.25rem 0 0;
  padding: 0;
  border: 0;
}
@media (max-width: 767.98px) {
  .tz-pay-ref {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
  }
  .tz-pay-card__head {
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }
  .tz-pay-card__count {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
  }
  .tz-pay-card__body {
    padding: 0.75rem 0.8rem;
  }
  .tz-pay-meta,
  .tz-pay-meta--cols3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.65rem;
  }
  .tz-pay-meta dt {
    font-size: 0.65rem;
    letter-spacing: 0.03em;
  }
  .tz-pay-meta dd {
    font-size: 0.75rem;
    word-break: break-word;
  }
  .tz-pay-table {
    font-size: 0.75rem;
  }
  .tz-pay-table th,
  .tz-pay-table td {
    padding: 0.4rem 0.45rem;
  }
  .tz-pay-actions {
    gap: 0.25rem;
  }
  .tz-pay-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.68rem;
    border-radius: 3px;
  }
  .tz-pay-btn--add {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
  .tz-pay-summary li {
    font-size: 0.82rem;
    padding: 0.45rem 0;
  }
  .tz-pay-total {
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem;
  }
  .tz-pay-note {
    font-size: 0.72rem;
  }
  .tz-pay-footer .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    min-width: 0;
  }
  .tz-pay-footer .btn-icon {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 480px) and (max-width: 767.98px) {
  .tz-pay-meta,
  .tz-pay-meta--cols3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========== Fees page (Uzbekistan-style calculator + accordion) ========== */
.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;
}
.fees-page {
  margin-bottom: 1.5rem;
}
.fee-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.fees-page .content-box,
.fee-calc-layout > .content-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--portal-green);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 3px rgba(30, 47, 58, 0.06);
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}
.fees-page .content-box > h2,
.fee-calculator > h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--portal-green);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--portal-nav-dark);
}
.fee-calculator__intro {
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.fees-page .form-group,
.fee-calculator .form-group {
  margin-bottom: 0.5rem;
}
.fees-page .form-label,
.fee-calculator .form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--portal-nav-dark);
}
.fees-page .form-select,
.fees-page .form-control,
.fee-calculator .form-select,
.fee-calculator .form-control {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.fee-result {
  margin-top: 1.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--portal-bg);
  border-radius: 6px;
  border-left: 4px solid var(--portal-nav);
}
.fee-result--special {
  border-left-color: var(--portal-green-dark);
  background: var(--portal-green-soft);
}
.fee-result__country {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--portal-nav-dark);
}
.fee-result__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}
.fee-result__meta dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.fee-result__meta dd {
  margin: 0.25rem 0 0;
  color: var(--portal-nav-dark);
  font-weight: 600;
}
.fee-result__prices { margin-bottom: 0.75rem; }
.fee-result__price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.fee-result__price-row:last-child { border-bottom: none; }
.fee-result__price-label {
  font-weight: 600;
  color: var(--ink);
}
.fee-result__price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--portal-green-dark);
  white-space: nowrap;
}
.fee-result--special .fee-result__price-value { color: var(--portal-green-dark); }
.fee-result__condition {
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.fee-result__condition h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--portal-nav-dark);
}
.fee-result__condition p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.fee-result__note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.fee-calculator__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.fee-calculator__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  justify-content: center;
  margin-top: 0;
}
.fee-calculator__actions .btn-primary { flex: 2 1 0; }

.fee-accordion-wrap { padding: 1.25rem 1.35rem; }
.fee-accordion { display: flex; flex-direction: column; gap: 0; }
.fee-accordion__item {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background: var(--portal-bg);
  overflow: hidden;
}
.fee-accordion__item:last-child { margin-bottom: 0; }
.fee-accordion__item[open] {
  background: #fff;
  border-color: var(--portal-green);
  box-shadow: 0 2px 8px rgba(26, 122, 60, 0.08);
}
.fee-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--portal-nav-dark);
  cursor: pointer;
  list-style: none;
}
.fee-accordion__summary::-webkit-details-marker { display: none; }
.fee-accordion__summary::after {
  content: "\25BA";
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--portal-green);
  line-height: 1;
  flex-shrink: 0;
}
.fee-accordion__item[open] .fee-accordion__summary::after { content: "\25BC"; }
.fee-accordion__body {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}
.fee-accordion__body p { margin: 0 0 0.65rem; }
.fee-accordion__body p:last-child { margin-bottom: 0; }
.fee-accordion__body strong { color: var(--portal-nav-dark); }

@media (max-width: 767.98px) {
  .fee-calc-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .fees-page .content-box,
  .fee-calc-layout > .content-box,
  .fee-accordion-wrap {
    padding: 0.85rem 0.9rem;
  }
  .fees-page .content-box > h2,
  .fee-calculator > h2 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
  }
  .fee-calculator__intro {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.45;
  }
  .fees-page .form-label,
  .fee-calculator .form-label {
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
  }
  .fees-page .form-select,
  .fees-page .form-control,
  .fee-calculator .form-select,
  .fee-calculator .form-control {
    font-size: 0.82rem;
    padding: 0.5rem 0.6rem;
  }
  .fee-result {
    padding: 0.75rem 0.8rem;
  }
  .fee-result__country { font-size: 0.95rem; }
  .fee-result__meta {
    grid-template-columns: 1fr;
    font-size: 0.78rem;
  }
  .fee-result__price-row { font-size: 0.8rem; }
  .fee-result__price-value { font-size: 0.88rem; }
  .fee-result__condition h4 { font-size: 0.82rem; }
  .fee-result__condition p,
  .fee-result__note { font-size: 0.78rem; }
  .fee-accordion__summary {
    font-size: 0.8rem;
    padding: 0.6rem 0.7rem;
  }
  .fee-accordion__body {
    font-size: 0.78rem;
    padding: 0 0.7rem 0.7rem;
    line-height: 1.5;
  }
  .fee-calculator__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-top: 1rem;
  }
  .fee-calculator__actions .btn,
  .fee-calculator__actions .btn-primary {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 0.4rem 0.45rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

/* ========== Status / track application page ========== */
.status-page { margin-bottom: 1.5rem; }
.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.15rem;
  align-items: start;
}
.status-layout--result {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.status-layout__main,
.status-layout__aside { min-width: 0; }
.status-check-box__head h2 {
  margin: 0 0 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--portal-green);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--portal-nav-dark);
}
.status-check-box__head p {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}
.status-optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85em;
}
.status-page .form-group { margin-bottom: 0.85rem; }
.status-page .form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--portal-nav-dark);
  margin-bottom: 0.4rem;
}
.status-page .form-label .req { color: #b42318; }
.status-page .form-control {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.status-page .form-control:focus {
  outline: 2px solid var(--portal-green);
  outline-offset: 1px;
  border-color: var(--portal-green);
}
.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.status-captcha__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.status-captcha__display {
  min-width: 88px;
  padding: 0.65rem 0.85rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--portal-nav-dark);
  background: var(--portal-bg);
  border: 2px dashed var(--portal-green);
  border-radius: 6px;
  user-select: none;
}
.status-captcha__input {
  flex: 1 1 120px;
  min-width: 100px;
  max-width: 160px;
}
.status-captcha__refresh { padding: 0.55rem 0.75rem; }
.status-captcha__error {
  margin: 0.5rem 0 0;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 600;
}
.status-check-form__actions { margin-top: 0.5rem; }
.status-result-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.status-check-note {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--portal-bg);
  border-left: 4px solid var(--portal-green);
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}
.status-check-note p { margin: 0; }
.status-result { scroll-margin-top: 90px; }
.status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 47, 58, 0.06);
}
.status-card--success { border-top: 4px solid #2e7d32; }
.status-card--primary { border-top: 4px solid var(--portal-nav); }
.status-card--warning { border-top: 4px solid #e65100; }
.status-card--danger  { border-top: 4px solid #c62828; }
.status-card--info    { border-top: 4px solid var(--portal-green); }
.status-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--portal-nav-dark);
  color: #fff;
}
.status-card__header--danger { background: #8b1c1c; }
.status-card__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}
.status-card__state { font-weight: 700; font-size: 0.95rem; }
.status-card__body {
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}
.status-card__body p { margin: 0 0 0.75rem; }
.status-card__body a { font-weight: 600; }
.status-card__subhead {
  margin: 1.1rem 0 0.65rem;
  font-size: 1rem;
  color: var(--portal-nav-dark);
}
.status-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  background: var(--portal-bg);
  border-radius: 6px;
}
.status-card__meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.status-card__meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--portal-nav-dark);
  word-break: break-word;
}
.status-card__traveller {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.status-card__traveller p { margin: 0 0 0.35rem; }
.status-info-wrap__title {
  margin: 0 0 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--portal-green);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--portal-nav-dark);
}
.status-info-wrap__lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}
.status-info-list {
  margin: 0 0 0.65rem;
  padding-left: 1.2rem;
}
.status-info-list li { margin-bottom: 0.4rem; }
.status-steps-list {
  list-style: none;
  margin: 0.85rem 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.status-steps-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}
.status-steps-list__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--portal-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.status-steps-list__body h4 {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  color: var(--portal-nav-dark);
}
.status-steps-list__body p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}
.status-request-toggle { margin-top: 0.85rem; }
.status-request-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--portal-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.status-request-panel__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--portal-nav-dark);
}
.status-request-panel__lead {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.status-request-form .form-group { margin-bottom: 0.75rem; }
.status-request-alert {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.status-request-alert--success {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
}
.status-request-alert--error {
  background: #fdecea;
  border: 1px solid #f5c6c6;
  color: #8b1c1c;
}
@media (max-width: 900px) {
  .status-layout { grid-template-columns: 1fr; }
}

/* —— Contact page —— */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.contact-layout__main,
.contact-layout__aside { min-width: 0; }
.contact-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-notice i { margin-top: 0.15rem; flex-shrink: 0; }
.contact-notice--success {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
}
.contact-notice--error {
  background: #fdecea;
  border: 1px solid #f5c6c6;
  color: #8b1c1c;
}
.contact-form-box h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--portal-nav-dark);
}
.contact-form-box__intro {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-req { color: #b42318; }
.contact-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85em;
}
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form__group { margin-bottom: 0.9rem; }
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.contact-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--portal-nav-dark);
}
.contact-form__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form__input:focus {
  outline: none;
  border-color: var(--portal-green);
  box-shadow: 0 0 0 3px rgba(26, 122, 60, 0.15);
}
.contact-form__select { appearance: auto; }
.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}
.contact-form__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.contact-form__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  margin-top: 0;
}
.contact-form__actions .btn-primary { flex: 2 1 0; }
.contact-captcha__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.contact-captcha__image {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8faf9;
}
.contact-captcha__input {
  width: 7rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.contact-captcha__hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.contact-aside__title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--portal-nav-dark);
}
.contact-aside__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-aside__links > li {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.contact-aside__links > li:first-child { border-top: 0; padding-top: 0; }
.contact-aside__links a,
.contact-aside__item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}
.contact-aside__links a:hover { text-decoration: none; }
.contact-aside__links a:hover strong { color: var(--portal-green); }
.contact-aside__links i {
  margin-top: 0.15rem;
  color: var(--portal-green);
  width: 1.1rem;
  text-align: center;
  flex-shrink: 0;
}
.contact-aside__links strong {
  display: block;
  font-size: 0.9rem;
  color: var(--portal-nav-dark);
}
.contact-aside__links small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.contact-aside__email {
  display: block;
  margin-top: 0.45rem;
  max-width: 100%;
  height: auto;
}
.contact-aside__note {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .contact-form__grid { grid-template-columns: 1fr; }
  .contact-page .content-box,
  .contact-form-box,
  .contact-aside {
    padding: 0.85rem 0.9rem;
  }
  .contact-form-box h2 {
    font-size: 1.05rem;
  }
  .contact-form-box__intro,
  .contact-notice {
    font-size: 0.8rem;
  }
  .contact-form__label {
    font-size: 0.78rem;
    margin-bottom: 0.28rem;
  }
  .contact-form__input {
    font-size: 0.82rem;
    padding: 0.5rem 0.6rem;
  }
  .contact-form__textarea { min-height: 110px; }
  .contact-captcha__hint { font-size: 0.72rem; }
  .contact-aside__title { font-size: 0.92rem; }
  .contact-aside__links strong { font-size: 0.82rem; }
  .contact-aside__links small { font-size: 0.72rem; }
  .contact-aside__note { font-size: 0.74rem; }
  .contact-form__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
  }
  .contact-form__actions .btn,
  .contact-form__actions .btn-primary {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 0.4rem 0.45rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}
