/* ============================================
   Vietnam E-Visas by BDA — Stylesheet
   ============================================ */

:root {
  --color-primary: #0F766E;
  --color-primary-dark: #0B5C55;
  --color-primary-light: #14B8A6;
  --color-accent: #F97316;
  --color-accent-dark: #EA580C;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-tint: #ECFDF5;
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-text-faint: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-success: #16A34A;
  --color-warning: #EAB308;
  --color-danger: #DC2626;
  --color-info: #2563EB;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  --container: 1180px;
  --gap-xs: 0.5rem;
  --gap-sm: 0.75rem;
  --gap-md: 1rem;
  --gap-lg: 1.5rem;
  --gap-xl: 2rem;
  --gap-2xl: 3rem;
  --gap-3xl: 4rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; color: var(--color-text); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.2vw + 0.5rem, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--gap-3xl) 0; }
.section-tight { padding: var(--gap-2xl) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-tint { background: var(--color-bg-tint); }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.lead { font-size: 1.15rem; color: var(--color-text-muted); max-width: 60ch; }

/* Disclaimer strip */
.disclaimer-strip {
  background: #FFF7ED;
  border-bottom: 1px solid #FED7AA;
  color: #9A3412;
  font-size: 0.825rem;
  padding: 0.5rem 1.25rem;
  text-align: center;
}
.disclaimer-strip strong { color: #7C2D12; }

/* Header */
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--color-border); z-index: 100; transition: transform 0.3s ease; will-change: transform; }
/* Auto-hide: slides up when scrolling down, slides back when scrolling up (JS toggles .is-hidden) */
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; padding-bottom: 0.85rem; gap: var(--gap-md); }

.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; color: var(--color-text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; color: var(--color-text); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem; }
.brand-text-secondary { display: block; font-size: 0.7rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0.02em; text-transform: uppercase; margin-top: 0.05rem; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { color: var(--color-text-muted); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); }
.nav a:hover { color: var(--color-primary); background: var(--color-bg-alt); text-decoration: none; }
.nav a.active { color: var(--color-accent); }
.nav-cta { margin-left: 0.5rem; }
.nav .nav-cta { color: #fff; }
.nav .nav-cta.active { color: #fff; }
.nav .nav-cta:hover { color: var(--color-primary); background: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.45rem 0.6rem; cursor: pointer; font-size: 1.1rem; }

@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--color-border); padding: 0.75rem 1.25rem; gap: 0.1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.85rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; }
  .nav-toggle { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.35rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.97rem; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-secondary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-outline:hover { background: var(--color-bg-alt); color: var(--color-text); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, #0F766E 0%, #134E4A 60%, #0B3431 100%); color: #fff; overflow: hidden; padding: var(--gap-3xl) 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.35), transparent 50%), radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.18), transparent 50%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--gap-2xl); align-items: center; }
@media (max-width: 880px) { .hero { padding: var(--gap-2xl) 0; } .hero .container { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero p.lead { color: rgba(255,255,255,0.85); max-width: 50ch; font-size: 1.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 1.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.88); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta .check { color: #5EEAD4; font-weight: 800; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1.5rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-md); padding: 0.75rem 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.9); max-width: 32rem; }
.hero-note strong { color: #fff; }

/* Configurator */
.configurator { background: #fff; color: var(--color-text); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-lg); }
.configurator h3 { margin: 0 0 0.25em; font-size: 1.2rem; }
.configurator .tagline { font-size: 0.85rem; color: var(--color-text-muted); margin: 0 0 1.2rem; }
.field { display: block; margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 0.35rem; }
.field select, .field input[type=text], .field input[type=email], .field input[type=number], .field input[type=date], .field input[type=tel] { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: #fff; font: inherit; color: inherit; }
.field select:focus, .field input:focus { outline: 2px solid var(--color-primary-light); outline-offset: 0; border-color: var(--color-primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.price-display { background: var(--color-bg-tint); border: 1px solid #A7F3D0; border-radius: var(--radius-md); padding: 1rem 1.1rem; margin: 0.5rem 0 1rem; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.price-display .label { font-size: 0.82rem; color: var(--color-text-muted); }
.price-display .amount { font-size: 1.85rem; font-weight: 800; color: var(--color-primary-dark); letter-spacing: -0.02em; }
.price-display .per { font-size: 0.85rem; color: var(--color-text-muted); }

/* Cards / Grids */
.grid { display: grid; gap: var(--gap-lg); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease; }
.card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--color-bg-tint); color: var(--color-primary); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.5rem 4.25rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.25rem; top: 1.25rem; width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step h4 { margin: 0.15rem 0 0.35rem; }
.step p { margin: 0; color: var(--color-text-muted); }
.steps-stacked { grid-template-columns: 1fr; }
.steps-stacked .step { min-height: 6rem; }
@media (max-width: 880px) { .steps-stacked { grid-template-columns: 1fr; } }

/* Trust */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); margin-top: 0; }
@media (max-width: 880px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
.trust-stat { text-align: center; padding: 1.25rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.trust-stat .stat-value { display: block; font-size: 1.9rem; font-weight: 800; color: var(--color-primary-dark); letter-spacing: -0.02em; }
.trust-stat .stat-label { display: block; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.25rem; }

/* Google reviews badge */
.google-reviews { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: 0.88rem; color: var(--color-text); text-decoration: none; transition: border-color 0.15s ease, transform 0.05s ease; }
a.google-reviews:hover { border-color: var(--color-primary); color: var(--color-text); text-decoration: none; transform: translateY(-1px); }
.google-reviews .stars { color: #FBBC04; letter-spacing: 0.05em; font-weight: 700; }
.google-reviews .score { font-weight: 700; }
.google-reviews .count { color: var(--color-text-muted); }
.google-reviews .g-logo { width: 18px; height: 18px; flex-shrink: 0; }

/* Testimonials */
.testimonial { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; }
.testimonial .stars { color: #FBBC04; font-weight: 700; margin-bottom: 0.4rem; }
.testimonial blockquote { margin: 0 0 0.85rem; font-size: 1rem; line-height: 1.55; color: var(--color-text); }
.testimonial cite { font-size: 0.85rem; color: var(--color-text-muted); font-style: normal; }

/* Nationality shortcuts */
.nationality-shortcuts { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap-md); }
@media (max-width: 880px) { .nationality-shortcuts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .nationality-shortcuts { grid-template-columns: repeat(2, 1fr); } }
.flag-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.25rem 0.5rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); font-weight: 600; font-size: 0.9rem; color: var(--color-text); text-align: center; }
.flag-link:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.flag-link .flag { font-size: 2rem; }
.flag-link .country-learn-more { align-self: center; margin-top: 0.35rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-primary); font-weight: 400; transition: transform 0.2s ease; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--color-bg-alt); }
.faq-body { padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); }
.faq-body p { margin: 0 0 0.75em; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-category-header { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 700; }
.faq-category-header:first-child { margin-top: 0; }
/* Collapsible FAQ sections */
.faq-section { margin-bottom: 0.6rem; }
.faq-section > summary.faq-category-header {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0; padding: 0.95rem 1.15rem;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.faq-section > summary.faq-category-header::-webkit-details-marker { display: none; }
.faq-section > summary.faq-category-header::after { content: "+"; font-size: 1.5rem; line-height: 1; color: #fff; font-weight: 400; }
.faq-section[open] > summary.faq-category-header::after { content: "−"; }
.faq-section > summary.faq-category-header:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.faq-section[open] .faq-list { padding-top: 0.7rem; }

/* Footer */
.site-footer { background: linear-gradient(135deg, #0F766E 0%, #134E4A 100%); color: rgba(255,255,255,0.82); padding: var(--gap-xl) 0 var(--gap-lg); margin-top: var(--gap-3xl); }
.site-footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--gap-xl); align-items: start; }
/* Tablet & mobile: one centered column, links in tidy centered rows (no lopsided 2-col grid) */
@media (max-width: 880px) {
  .site-footer { text-align: center; }
  .site-footer .container { grid-template-columns: 1fr; gap: var(--gap-lg); }
  .site-footer .footer-business { max-width: 32rem; margin: 0 auto; }
  .site-footer .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.3rem; max-width: 32rem; margin: 0 auto; }
}
.footer-bizname { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.footer-contact { margin: 0 0 0.6rem; font-size: 0.82rem; line-height: 1.6; color: rgba(255,255,255,0.7); }
.footer-contact a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-copyright { margin: 0.4rem 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.footer-copyright a { color: rgba(255,255,255,0.72); }
.footer-copyright a:hover { color: #fff; }
.footer-nav { display: flex; flex-direction: column; align-content: start; }
.footer-nav a { color: rgba(255,255,255,0.78); display: block; padding: 0.26rem 0; font-size: 0.9rem; text-decoration: none; }
.footer-nav a:hover { color: #fff; }

/* Page header (subpages) */
.page-header { background: linear-gradient(135deg, #0F766E 0%, #134E4A 100%); color: #fff; padding: var(--gap-2xl) 0; position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(20, 184, 166, 0.3), transparent 60%); }
.page-header .container { position: relative; }
.page-header h1 { color: #fff; margin-bottom: 0.3em; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 0.4rem; color: rgba(255,255,255,0.5); }

/* Prose */
.prose { max-width: 75ch; margin: 0 auto; font-size: 1.02rem; line-height: 1.7; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.75em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .callout { background: var(--color-bg-tint); border-left: 4px solid var(--color-primary); padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout-warning { background: #FFFBEB; border-left-color: #EAB308; }
.prose .callout-info { background: #EFF6FF; border-left-color: var(--color-info); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* Answer box (country landing pages) */
.answer-box { background: var(--color-bg-tint); border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: var(--radius-md); padding: 1.25rem 1.4rem; margin: 1.5rem 0; }
.answer-box p:last-child { margin-bottom: 0; }
.answer-box .answer-yes { color: var(--color-primary-dark); font-weight: 800; }

/* Fee table */
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin: 1.5rem 0; font-size: 0.95rem; }
.fee-table th, .fee-table td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.fee-table th { background: var(--color-bg-alt); font-weight: 700; color: var(--color-text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table tbody tr:hover { background: var(--color-bg-alt); }
.fee-table .price { font-weight: 700; color: var(--color-primary-dark); }
.fee-table .price-strike { text-decoration: line-through; color: var(--color-text-faint); font-weight: 500; }
/* First column stays left-aligned (rule above); every column to its right is centered */
.fee-table th:not(:first-child), .fee-table td:not(:first-child) { text-align: center; }

/* Country hub */
.country-controls { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: var(--gap-xl); box-shadow: var(--shadow-sm); }
.country-search { position: relative; margin-bottom: 0.85rem; }
.country-search input { width: 100%; padding: 0.85rem 1rem 0.85rem 2.75rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); font-size: 1rem; font-family: inherit; }
.country-search input:focus { outline: 2px solid var(--color-primary-light); border-color: var(--color-primary); }
.country-search::before { content: "🔍"; position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); font-size: 1rem; pointer-events: none; opacity: 0.6; }
.region-tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.region-tab { flex-shrink: 0; padding: 0.5rem 1rem; border: 1px solid var(--color-border-strong); background: #fff; border-radius: var(--radius-pill); font-size: 0.88rem; cursor: pointer; font-weight: 500; font-family: inherit; color: var(--color-text-muted); transition: all 0.15s ease; }
.region-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.region-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
/* Phones: don't pin the controls, and wrap the region filters onto multiple
   rows so they're all visible instead of hidden in a horizontal scroll strip. */
@media (max-width: 640px) {
  .country-controls { position: static; top: auto; padding: 1rem; }
  .region-tabs { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
  .region-tab { flex: 1 1 auto; text-align: center; padding: 0.5rem 0.7rem; font-size: 0.85rem; }
}
.legend { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: var(--gap-lg); font-size: 0.88rem; color: var(--color-text-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-dot.visa-free { background: var(--color-success); }
.legend-dot.evisa { background: var(--color-info); }
.legend-dot.visa-free-plus { background: #EAB308; }
.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
@media (max-width: 1024px) { .country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .country-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .country-grid { grid-template-columns: 1fr; } }
.country-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; color: inherit; transition: all 0.15s ease; min-height: 188px; }
.country-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.country-card .top { display: flex; align-items: center; gap: 0.5rem; }
.country-card .flag { font-size: 1.6rem; line-height: 1; }
.country-card .name { font-weight: 700; font-size: 1rem; }
.country-card .summary { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.4; }
.country-learn-more { margin-top: auto; align-self: flex-start; display: inline-block; font-size: 0.82rem; font-weight: 600; color: #fff; background: var(--color-primary); padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); text-decoration: none; transition: background 0.15s ease; }
.country-learn-more:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }
.country-learn-more-placeholder { margin-top: auto; height: 34px; }
.status-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.18rem 0.55rem; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.status-badge.visa-free { background: #DCFCE7; color: #166534; }
.status-badge.evisa { background: #DBEAFE; color: #1E40AF; }
.status-badge.visa-free-plus { background: #FEF3C7; color: #854D0E; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); }
.visa-free-callout { background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: var(--radius-lg); padding: 1.5rem; margin-top: var(--gap-2xl); }
.visa-free-callout h3 { color: #065F46; margin-top: 0; }
.visa-free-callout .countries-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 1.25rem; }
.visa-free-callout .countries-list span { background: #fff; padding: 0.35rem 0.7rem; border-radius: var(--radius-pill); border: 1px solid #A7F3D0; font-size: 0.85rem; }

/* Multi-step form */
.form-shell { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap-2xl); align-items: start; }
@media (max-width: 980px) { .form-shell { grid-template-columns: 1fr; } }
.form-shell.no-sidebar { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.form-shell.no-sidebar .summary-sidebar { display: none; }
.review-section-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); font-weight: 700; margin: 1.25rem 0 0.5rem; }
.review-section-title:first-child { margin-top: 0; }
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.step-indicator { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; position: relative; }
.step-indicator::before { content: ""; position: absolute; top: 16px; left: 16px; right: 16px; height: 2px; background: var(--color-border); z-index: 0; }
.step-pip { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex: 1; }
.step-pip .pip { width: 32px; height: 32px; border-radius: 50%; background: var(--color-bg-alt); border: 2px solid var(--color-border-strong); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; color: var(--color-text-muted); transition: all 0.2s ease; }
.step-pip .label-pip { font-size: 0.78rem; color: var(--color-text-muted); font-weight: 500; }
.step-pip.active .pip { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.step-pip.active .label-pip { color: var(--color-primary); font-weight: 700; }
.step-pip.completed .pip { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.step-pip.completed .pip::before { content: "✓"; }
.step-pip.completed .pip .num { display: none; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h3 { margin-top: 0; }
.form-actions { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.applicant-block { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.applicant-block h4 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--color-primary-dark); }
.review-block { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 1rem 1.2rem; margin-bottom: 0.75rem; }
.review-block dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; font-size: 0.9rem; }
.review-block dt { color: var(--color-text-muted); }
.review-block dd { margin: 0; font-weight: 600; }
.summary-sidebar { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 80px; }
.summary-sidebar h4 { margin: 0 0 1rem; }
.summary-line { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--color-border); font-size: 0.92rem; }
.summary-line:last-of-type { border-bottom: 0; }
.summary-line .lbl { color: var(--color-text-muted); }
.summary-line .val { font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 2px solid var(--color-border-strong); font-size: 1.1rem; font-weight: 700; }
.summary-total .total-amt { font-size: 1.5rem; color: var(--color-primary-dark); }
.trust-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.85rem; color: var(--color-text-muted); }
.trust-list li::before { content: "✓ "; color: var(--color-success); font-weight: 700; }
/* Extra-service checkbox rows (Trip Detail step) */
.service-option { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 0; border-top: 1px solid var(--color-border); }
.service-option input { margin-top: 0.25rem; }
.service-option .svc-title { font-weight: 600; color: var(--color-primary-dark); }
.service-option .svc-desc { font-size: 0.85rem; color: var(--color-text-muted); margin: 0.15rem 0 0; }
.field-note { background: var(--color-bg-tint); border: 1px solid #A7F3D0; border-radius: var(--radius-md); padding: 0.75rem 1rem; font-size: 0.82rem; color: var(--color-text-muted); margin: 0.5rem 0 1rem; }
.upload-box { border: 2px dashed var(--color-border-strong); border-radius: var(--radius-md); padding: 1.25rem; text-align: center; cursor: pointer; color: var(--color-text-muted); font-size: 0.85rem; transition: border-color 0.15s ease; }
.upload-box:hover { border-color: var(--color-primary); }
.upload-box .upload-icon { font-size: 1.4rem; display: block; margin-bottom: 0.35rem; }
.applicant-divider { border: 0; border-top: 1px solid var(--color-border); margin: 1.5rem 0; }

/* Payment step (PayDollar-style) */
.pay-shell { max-width: 640px; margin: 0 auto; }
.pay-merchant { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.25rem; }
.pay-amount { text-align: center; font-size: 1.6rem; font-weight: 700; color: var(--color-text); margin: 1.25rem 0; }
.pay-method-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--color-bg-alt); border-left: 4px solid var(--color-primary); border-radius: var(--radius-sm); margin-bottom: 0.85rem; }
.pay-method-row .pay-label { font-weight: 700; }
.pay-logos { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pay-logo { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.4rem 0.7rem; font-weight: 800; font-size: 0.8rem; cursor: pointer; }
.pay-logo.visa { color: #1A1F71; }
.pay-logo.mc { color: #EB001B; }
.pay-logo.amex { color: #006FCF; }
.pay-logo.jcb { color: #0F4C97; }
.pay-logo:hover { border-color: var(--color-primary); }

.success-state { text-align: center; padding: 2rem 1rem; }
.success-state .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--color-success); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }
/* Travel-insurance schedule-of-benefits figure */
.insurance-figure { margin: 1.25rem 0 0.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.insurance-figure img { width: 100%; height: auto; }

/* Cookie consent banner */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; background: #fff; border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cookie-banner-inner { display: flex; align-items: center; gap: 0.85rem 1.5rem; flex-wrap: wrap; justify-content: space-between; padding: 1rem 1.25rem; max-width: 1100px; margin: 0 auto; }
.cookie-text { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); flex: 1 1 320px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-banner { left: 0; right: 0; bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

.form-error { margin-top: 1rem; padding: 0.75rem 1rem; border: 1px solid #FCA5A5; background: #FEF2F2; color: #991B1B; border-radius: var(--radius-md); font-size: 0.9rem; }
.form-error a { color: #991B1B; text-decoration: underline; font-weight: 600; }

/* CTA banner */
.cta-banner { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; padding: var(--gap-2xl); border-radius: var(--radius-lg); text-align: center; }
.cta-banner h2 { color: #fff; margin-top: 0; margin-bottom: 0.5em; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto 1.25em; }
/* On phones the long CTA label must wrap instead of overflowing past the banner */
@media (max-width: 560px) {
  .cta-banner .btn { white-space: normal; max-width: 100%; }
}

/* Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.eyebrow { display: inline-block; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.12em; font-weight: 700; color: var(--color-primary); margin-bottom: 0.5em; }
.tag-pill { display: inline-block; background: var(--color-bg-tint); color: var(--color-primary-dark); padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 600; }

/* Entry-points toggle (homepage Common Entry Points card) */
.entry-toggle-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.entry-toggle {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--color-border-strong);
  background: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text-muted);
  transition: all 0.15s ease;
}
.entry-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.entry-toggle.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.entry-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.entry-list.hidden { display: none; }

/* Timezone switcher (lives in the footer) */
.tz-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}
.tz-switcher label { font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.tz-switcher select {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.85rem;
  max-width: 280px;
}
.tz-switcher select option { color: #0F172A; }

/* Inline timezone switcher (lighter contexts: about page, page header) */
.tz-switcher-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
}
.tz-switcher-inline label { flex-shrink: 0; }
.tz-switcher-inline select {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.85rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 560px) {
  .tz-switcher-inline {
    flex-direction: column;
    align-items: stretch;
  }
  .tz-switcher-inline select { width: 100%; }
}

/* App-store badge buttons (WhatsApp links in the contact methods list) */
.store-btns { display: inline-flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.store-btn { display: inline-flex; line-height: 0; border-radius: 10px; transition: transform 0.1s ease, box-shadow 0.15s ease; }
.store-btn img { width: 40px; height: 40px; display: block; border-radius: 10px; }
.store-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
/* Wider gap on touch screens so adjacent icons aren't easy to mis-tap */
@media (max-width: 560px) { .store-btns { gap: 1.6rem; } }

/* Contact methods list ("Other ways to reach us" on the contact page) */
.contact-methods { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.contact-method { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.9rem 0; border-top: 1px solid var(--color-border); }
.contact-method:first-child { border-top: 0; padding-top: 0.25rem; }
.cm-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--color-bg-tint); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.cm-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.cm-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); }
.cm-value { font-weight: 600; color: var(--color-text); overflow-wrap: anywhere; }
.cm-value a { color: var(--color-text); }
.cm-value a:hover { color: var(--color-primary); }
.cm-meta { font-size: 0.82rem; color: var(--color-text-muted); }
.cm-inline { display: flex; align-items: center; gap: 0.6rem 1.5rem; flex-wrap: wrap; }
.cm-inline .cm-value { font-weight: 600; }
.contact-methods + .tz-switcher-inline { margin-top: 1.25rem; }

/* ============================================
   Blog
   ============================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
@media (max-width: 880px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease; }
.blog-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; object-position: center; }
.blog-card-body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-meta { font-size: 0.74rem; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.blog-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.blog-card h3 a { color: var(--color-text); }
.blog-card h3 a:hover { color: var(--color-primary); text-decoration: none; }
.blog-card p { margin: 0; font-size: 0.92rem; color: var(--color-text-muted); }
.blog-card .read-more { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--color-primary); }

/* Blog post layout */
.post-wrap { max-width: 840px; margin: 0 auto; }
.post-breadcrumb { font-size: 0.85rem; color: var(--color-text-faint); margin: 0 0 1rem; }
.post-breadcrumb .sep { margin: 0 0.4rem; }
.post-featured { aspect-ratio: 16 / 7; width: 100%; object-fit: cover; object-position: center; border-radius: var(--radius-lg); margin: 0 0 1.75rem; box-shadow: var(--shadow-sm); }
.post-byline { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.5rem; }
.post-byline .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
/* Tony Ngo headshot: frame the crop toward the face (portrait source) */
.avatar { object-position: center 25%; }
.post-byline .by-name { font-weight: 700; color: var(--color-text); font-size: 0.92rem; }
.post-byline .by-name a { color: var(--color-text); }
.post-byline .by-name a:hover { color: var(--color-primary); }
.post-byline .by-sub { color: var(--color-text-muted); font-size: 0.82rem; }
.post-body { margin-top: 0; }
.post-tldr { background: var(--color-bg-tint); border: 1px solid #A7F3D0; border-left: 4px solid var(--color-primary); border-radius: var(--radius-md); padding: 1.1rem 1.35rem; margin: 0 0 1.25rem; }
.post-tldr .tldr-title { margin: 0 0 0.5rem; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-primary-dark); }
.post-tldr ul { margin: 0; padding-left: 1.2rem; }
.post-tldr li { margin: 0 0 0.35rem; line-height: 1.55; }
.post-tldr li:last-child { margin-bottom: 0; }
.post-toc { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); margin: 0 0 2rem; overflow: hidden; }
.post-toc > summary { cursor: pointer; padding: 0.85rem 1.25rem; font-weight: 700; color: var(--color-text); list-style: none; display: flex; align-items: center; gap: 0.55rem; }
.post-toc > summary::-webkit-details-marker { display: none; }
.post-toc > summary::before { content: "\25B8"; color: var(--color-primary); transition: transform 0.15s ease; }
.post-toc[open] > summary::before { transform: rotate(90deg); }
.post-toc .toc-nav { padding: 0 1.25rem 1rem; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0.32rem 0; line-height: 1.4; }
.toc-list a { color: var(--color-text-muted); text-decoration: none; font-size: 0.95rem; }
.toc-list a:hover { color: var(--color-primary); text-decoration: underline; }
.toc-list .toc-h2 { font-weight: 600; }
.toc-list .toc-h2 a { color: var(--color-text); }
.toc-list .toc-h3 { padding-left: 1.1rem; }
.toc-list .toc-h4 { padding-left: 2.2rem; }
.toc-list .toc-h5 { padding-left: 3.3rem; }
.toc-list .toc-h6, .toc-list .toc-h7, .toc-list .toc-h8, .toc-list .toc-h9 { padding-left: 4.4rem; }
.post-body h2 { margin-top: 1.8em; }

/* In-post CTA boxes */
.post-cta { background: var(--color-bg-tint); border: 1px solid #A7F3D0; border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; margin: 2rem 0; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.post-cta > div { flex: 1 1 320px; }
.post-cta h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.post-cta p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; max-width: 48ch; }
.post-cta.cta-eligibility { background: #EFF6FF; border-color: #BFDBFE; }

/* Author bio block (end of post) */
.author-block { display: flex; gap: 1.25rem; align-items: flex-start; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 2.5rem 0 0; }
.author-block .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-block .ab-name { font-weight: 700; font-size: 1.05rem; }
.author-block .ab-name a { color: var(--color-text); }
.author-block .ab-name a:hover { color: var(--color-primary); }
.author-block .ab-role { color: var(--color-primary-dark); font-size: 0.85rem; font-weight: 600; margin-top: 0.1rem; }
.author-block p { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--color-text-muted); }

/* Other articles module */
.other-articles { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.other-articles h2 { font-size: 1.3rem; margin-bottom: 1.1rem; }
/* Break the related-articles section out of the narrow post column to full
   container width, so the cards match the homepage. Stays within the viewport
   on smaller screens and the grid collapses via the .blog-grid breakpoints. */
.post-wrap .other-articles { width: var(--container); max-width: calc(100vw - 2.5rem); margin-left: 50%; transform: translateX(-50%); }
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
@media (max-width: 680px) { .other-grid { grid-template-columns: 1fr; } }
.other-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.other-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.other-thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; object-position: center; }
.other-card .oc-body { padding: 0.85rem 1rem 1rem; }
.other-card .oc-date { font-size: 0.72rem; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.other-card h4 { margin: 0.3rem 0 0; font-size: 0.95rem; line-height: 1.3; }
.other-card h4 a { color: var(--color-text); }
.other-card:hover h4 a { color: var(--color-primary); text-decoration: none; }

/* Author page hero */
.author-hero { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.author-hero .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, 0.25); flex-shrink: 0; background: #0B5C55; }
.author-hero .ah-role { color: rgba(255, 255, 255, 0.85); font-weight: 600; margin: 0.35rem 0 0; }
.author-hero .ah-role a { color: #5EEAD4; }

/* Custom date picker */
.dp-wrap { position: relative; }
.dp-popup { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: 300px; max-width: calc(100vw - 2.5rem); background: #fff; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 0.85rem; }
.dp-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.dp-selects { display: flex; gap: 0.4rem; flex: 1; }
.dp-selects select { flex: 1; min-width: 0; padding: 0.5rem 0.5rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); font: inherit; font-size: 0.9rem; background: #fff; color: var(--color-text); cursor: pointer; }
.dp-selects select:focus { outline: 2px solid var(--color-primary-light); border-color: var(--color-primary); }
.dp-nav { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--color-border-strong); background: #fff; border-radius: var(--radius-sm); cursor: pointer; font-size: 1.25rem; line-height: 1; color: var(--color-primary); display: grid; place-items: center; }
.dp-nav:hover { background: var(--color-bg-alt); border-color: var(--color-primary); }
.dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.dp-weekdays span { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--color-text-faint); text-transform: uppercase; padding: 0.2rem 0; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day { aspect-ratio: 1 / 1; border: 0; background: transparent; border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-size: 0.85rem; color: var(--color-text); display: grid; place-items: center; padding: 0; }
.dp-day:hover:not(.dp-empty) { background: var(--color-bg-tint); color: var(--color-primary-dark); }
.dp-day.dp-empty { cursor: default; }
.dp-day.dp-today { box-shadow: inset 0 0 0 1px var(--color-primary-light); font-weight: 700; }
.dp-day.dp-selected, .dp-day.dp-selected:hover { background: var(--color-primary); color: #fff; font-weight: 700; }
input[data-datepicker] { cursor: pointer; background: #fff; }

/* Fees currency converter */
.fee-converter { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0 2rem; box-shadow: var(--shadow-sm); }
.fee-converter .fc-title { margin: 0 0 0.25rem; font-size: 1.2rem; }
.fee-converter .fc-sub { margin: 0 0 1rem; font-size: 0.9rem; color: var(--color-text-muted); }
.fc-builder { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--color-border); }
.fc-line { display: flex; align-items: center; gap: 0.6rem; }
.fc-line > label { flex: 0 0 auto; min-width: 150px; font-size: 0.88rem; font-weight: 600; color: var(--color-text); }
.fc-line > select { flex: 1 1 auto; min-width: 0; padding: 0.55rem 0.7rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); font: inherit; background: #fff; color: var(--color-text); }
.fc-line .fc-line-spacer { flex: 1 1 auto; }
.fc-line input[type="number"] { flex: 0 0 72px; width: 72px; text-align: center; padding: 0.55rem 0.4rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); font: inherit; background: #fff; color: var(--color-text); }
.fc-line select:focus, .fc-line input:focus { outline: 2px solid var(--color-primary-light); border-color: var(--color-primary); }
@media (max-width: 560px) {
  /* Phones: label + quantity share the top row, the select drops full-width below */
  .fc-line { flex-wrap: wrap; column-gap: 0.6rem; row-gap: 0.5rem; }
  .fc-line > label { flex: 1 1 auto; min-width: 0; }
  .fc-line > select { order: 1; flex: 1 1 100%; }
}
.fc-row { display: flex; align-items: flex-end; gap: 0.85rem; flex-wrap: wrap; }
.fc-field { flex: 1 1 190px; display: flex; flex-direction: column; gap: 0.35rem; }
.fc-field label { font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); }
.fc-field input, .fc-field select { padding: 0.7rem 0.85rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); font: inherit; background: #fff; color: var(--color-text); }
.fc-field input:focus, .fc-field select:focus { outline: 2px solid var(--color-primary-light); border-color: var(--color-primary); }
.fc-eq { font-size: 1.4rem; font-weight: 700; color: var(--color-text-faint); padding-bottom: 0.55rem; }
.fc-result-box { margin-top: 1rem; background: var(--color-bg-tint); border: 1px solid #A7F3D0; border-radius: var(--radius-md); padding: 1rem 1.1rem; text-align: center; }
.fc-result { font-size: 1.85rem; font-weight: 800; color: var(--color-primary-dark); letter-spacing: -0.02em; }
.fc-note { margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--color-text-faint); }
.fc-field .combobox { display: block; width: 100%; }
.fc-field .combobox input { width: 100%; box-sizing: border-box; }
@media (max-width: 480px) { .fc-eq { display: none; } }

/* Entry-point pills, colour-coded by type (home Common Entry Points card) */
[data-entry-points] [data-entry-list="air"] .tag-pill { background: #FEF3C7; color: #854D0E; }
[data-entry-points] [data-entry-list="sea"] .tag-pill { background: #DBEAFE; color: #1E40AF; }
[data-entry-points] [data-entry-list="land"] .tag-pill { background: #DCFCE7; color: #166534; }

/* Entry-point pills on the Overview page (colour-coded by type) */
.port-group { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 1.5rem; }
.port-pill { display: inline-block; padding: 0.32rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 500; }
.port-pill.air { background: #FEF3C7; color: #854D0E; }
.port-pill.sea { background: #DBEAFE; color: #1E40AF; }
.port-pill.land { background: #DCFCE7; color: #166534; }

/* Entry-points map (Overview) */
.map-embed { position: relative; width: 100%; aspect-ratio: 4 / 3; margin: 1.25rem 0 1.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-alt); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* Searchable combobox (Contact nationality) */
.combobox { position: relative; }
.combobox-list { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; right: 0; max-height: 250px; overflow-y: auto; background: #fff; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 0.3rem; }
.combobox-option { padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.95rem; color: var(--color-text); }
.combobox-option:hover, .combobox-option.active { background: var(--color-bg-tint); color: var(--color-primary-dark); }
.combobox-option.cb-other { font-weight: 700; border-bottom: 1px solid var(--color-border); border-radius: 0; margin-bottom: 0.25rem; padding-bottom: 0.6rem; }
.combobox-empty { padding: 0.55rem 0.7rem; color: var(--color-text-faint); font-size: 0.9rem; }

/* "Last reviewed / updated" line under a page-header subtitle */
.page-header .page-updated { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.95rem 0 0.25rem; padding: 0.34rem 0.85rem 0.34rem 0.7rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 500; font-style: normal; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.92); }
.page-updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5EEAD4; box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.25); flex-shrink: 0; }

/* Clickable blog cards (whole card is a link, via stretched title link) */
.blog-card { position: relative; cursor: pointer; }
.blog-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.blog-card .read-more { position: relative; z-index: 2; }

/* Blog pagination */
.blog-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--gap-xl); }
.blog-pagination:empty { display: none; }
.page-btn { border: 1px solid var(--color-border-strong); background: #fff; color: var(--color-text); border-radius: var(--radius-sm); padding: 0.5rem 0.85rem; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.page-btn:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); }
.page-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.page-btn:disabled { opacity: 0.45; cursor: default; }

/* ============================================
   Mobile responsiveness — tables & forms
   ============================================ */

/* Tables: contain wide content inside a horizontal scroll area instead of
   overflowing the page. The table still fills the width when it fits, and
   only scrolls when its columns genuinely need more room. */
@media (max-width: 768px) {
  .fee-table { display: block; width: 100%; overflow-x: auto; overflow-y: hidden; }
}
/* Tighter cells on phones so more columns fit before horizontal scroll kicks in */
@media (max-width: 560px) {
  .fee-table { font-size: 0.84rem; }
  .fee-table th, .fee-table td { padding: 0.55rem 0.6rem; }
}

/* Forms & fields: stack paired inputs and tighten card padding on phones. */
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form-card, .configurator { padding: 1.25rem; }
  .form-actions { gap: 0.5rem; }
  /* Compact the multi-step progress indicator so 4 pips + labels fit */
  .step-indicator::before { top: 14px; }
  .step-pip .pip { width: 28px; height: 28px; font-size: 0.8rem; }
  .step-pip .label-pip { font-size: 0.68rem; line-height: 1.2; }
}

/* ============================================
   Custom, consistently-positioned dropdown arrow
   for every native <select> (replaces the browser
   default arrow, which sits jammed at the far edge
   and renders differently across desktop/mobile).
   ============================================ */
.field select,
.fc-field select,
.fc-line > select,
.tz-switcher-inline select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.7rem auto;
  padding-right: 2.2rem;
}
/* Dark footer variant needs a light arrow */
.tz-switcher select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.7rem auto;
  padding-right: 2.2rem;
}
/* Compact datepicker month/year selects: tighter inset */
.dp-selects select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 0.6rem auto;
  padding-right: 1.5rem;
}

/* ============================================
   Custom dropdown — replaces the native <select>
   option popup (which the OS draws with square
   corners) with a rounded, on-brand menu. The real
   <select> stays in the DOM (hidden) as the source
   of truth for value, form submission and events.
   ============================================ */
.custom-select { position: relative; }
.custom-select .cs-native {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; margin: 0;
}
.cs-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: #fff; color: var(--color-text);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.15s ease;
}
.cs-trigger:hover { border-color: var(--color-primary); }
.cs-trigger:focus-visible,
.custom-select.cs-open .cs-trigger {
  outline: 2px solid var(--color-primary-light); outline-offset: 0;
  border-color: var(--color-primary);
}
.cs-trigger .cs-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-caret {
  flex: 0 0 auto; width: 0.5rem; height: 0.5rem; margin-right: 0.15rem;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
.custom-select.cs-open .cs-caret { transform: translateY(1px) rotate(-135deg); }
.cs-menu {
  position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 0.3rem; list-style: none;
  background: #fff; border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  max-height: 16rem; overflow-y: auto;
}
.cs-menu[hidden] { display: none; }
.cs-option {
  padding: 0.55rem 0.7rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--color-text); cursor: pointer;
}
.cs-option.cs-selected { font-weight: 600; }
.cs-option.cs-active,
.cs-option:hover { background: var(--color-bg-tint); color: var(--color-primary-dark); }
.cs-option[aria-disabled="true"] { color: var(--color-text-faint); cursor: default; }
.cs-option[aria-disabled="true"]:hover { background: transparent; color: var(--color-text-faint); }

/* Context: inline timezone switcher (smaller, sits in a flex row) */
.tz-switcher-inline .custom-select { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.tz-switcher-inline .cs-trigger { padding: 0.5rem 0.7rem; font-size: 0.85rem; }
/* The trigger is narrow, so let its menu grow to fit each label on one line */
.tz-switcher-inline .cs-menu { right: auto; width: max-content; min-width: 100%; max-width: min(88vw, 22rem); }
.tz-switcher-inline .cs-option { white-space: nowrap; }
@media (max-width: 560px) { .tz-switcher-inline .custom-select { width: 100%; } }

/* Context: currency-converter builder rows */
.fc-line > .custom-select { flex: 1 1 auto; min-width: 0; }
.fc-line > .custom-select .cs-trigger { padding: 0.55rem 0.7rem; }
@media (max-width: 560px) { .fc-line > .custom-select { order: 1; flex: 1 1 100%; } }

@media print {
  .site-header, .site-footer, .nav, .nav-toggle, .disclaimer-strip, .tz-switcher, .tz-switcher-inline { display: none; }
}
