/* =========================================================
   OnlineVisaCenter — Visual v4 (loads last)
   Blue hero with 3D globe, waving flags, lift/select country cards,
   scroll reveal. Light sections, blue band, amber CTAs.
   ========================================================= */

:root {
  --v4-blue: #2563EB;
  --v4-blue-dark: #1E40AF;
  --v4-teal: #14B8A6;
  --v4-amber: #F59E0B;
  --v4-ink: #0F172A;
  --v4-muted: #475569;
  --v4-line: #E2E8F0;
}

.v4-root { background: #F8FAFC; color: var(--v4-ink); }

/* ---------- Shared ---------- */
.v4-section { padding: 88px 0; }
.v4-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.v4-head h2, .v4-band h2, .v4-closing h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.4; margin: 12px 0 10px; color: var(--v4-ink);
}
.v4-head p { color: var(--v4-muted); line-height: 1.9; margin: 0; }
.v4-pill {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--v4-blue);
  background: #DBEAFE; padding: 6px 16px; border-radius: 999px;
}
.v4-pill-light { background: rgba(255,255,255,0.18); color: #fff; }

.v4-btn-main, .v4-btn-amber, .v4-btn-ghost, .v4-btn-outline, .v4-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 800; font-size: 15px;
  text-decoration: none; transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  border: 0; cursor: pointer;
}
.v4-btn-main { background: var(--v4-amber); color: #0F172A; box-shadow: 0 12px 26px rgba(245,158,11,0.35); }
.v4-btn-amber { background: var(--v4-amber); color: #0F172A; box-shadow: 0 12px 26px rgba(245,158,11,0.3); }
.v4-btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.v4-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.v4-btn-main:hover, .v4-btn-amber:hover, .v4-btn-ghost:hover, .v4-btn-outline:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.v4-hero {
  position: relative; overflow: hidden; padding: 56px 0 0;
  background: linear-gradient(160deg, #1E40AF 0%, #2563EB 52%, #60A5FA 100%);
  color: #fff;
}
.v4-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.v4-hero-stars {
  position: absolute; inset: -40px;
  background-image:
    radial-gradient(rgba(255,255,255,0.55) 1.2px, transparent 1.6px),
    radial-gradient(rgba(255,255,255,0.35) 1px, transparent 1.4px);
  background-size: 60px 60px, 110px 110px;
  animation: v4-drift 40s linear infinite; opacity: 0.5;
}
@keyframes v4-drift { to { transform: translate3d(60px, 60px, 0); } }

.v4-hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.v4-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
}
.v4-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v4-amber); box-shadow: 0 0 0 4px rgba(245,158,11,0.3); }
.v4-h1 { font-size: clamp(2.1rem, 3.9vw, 3.5rem); font-weight: 900; line-height: 1.5; margin: 0 0 18px; }
.v4-h1-accent { color: #FDE68A; }
.v4-lead { font-size: 16.5px; line-height: 2; color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 0 22px; }
.v4-checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.v4-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.v4-checks i { width: 20px; height: 20px; color: #FDE68A; flex-shrink: 0; margin-top: 2px; }
.v4-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.v4-cta-center { justify-content: center; margin-top: 24px; }
.v4-disclaimer { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: rgba(255,255,255,0.8); margin: 22px 0 0; }

/* 3D globe stage */
.v4-stage { position: relative; min-height: 560px; }
.v4-globe-wrap {
  position: absolute; inset-inline-start: 50%; top: 40px; width: 360px; height: 360px;
  transform: translateX(50%);
  perspective: 900px;
}
[dir="ltr"] .v4-globe-wrap { transform: translateX(-50%); }
.v4-globe {
  width: 100%; height: 100%;
  transform: rotateX(var(--v4-tilt-x, 8deg)) rotateY(var(--v4-tilt-y, -12deg));
  transform-style: preserve-3d; transition: transform 300ms ease-out;
}
.v4-globe-sphere {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,0.28) 46px 48px),
    radial-gradient(circle at 34% 30%, #BFDBFE 0%, #3B82F6 38%, #1E3A8A 100%);
  box-shadow: inset -30px -40px 80px rgba(0,0,0,0.35), 0 40px 80px rgba(15,23,42,0.45);
  animation: v4-spin 26s linear infinite;
  overflow: hidden;
}
.v4-globe-sphere::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(0deg, transparent 0 58px, rgba(255,255,255,0.22) 58px 60px);
}
@keyframes v4-spin { from { background-position: 0 0, 0 0; } to { background-position: 480px 0, 0 0; } }
.v4-globe-ring {
  position: absolute; inset: -26px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.4);
  animation: v4-orbit 18s linear infinite;
}
@keyframes v4-orbit { from { transform: rotateX(72deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateZ(360deg); } }

/* Waving flag chips orbiting the globe */
.v4-flagchip {
  position: absolute; font-size: 30px; line-height: 1;
  width: 54px; height: 40px; display: grid; place-items: center;
  background: rgba(255,255,255,0.95); border-radius: 10px; box-shadow: 0 10px 24px rgba(15,23,42,0.3);
  transform-origin: left center;
  animation: v4-wave 3.2s ease-in-out infinite, v4-float 6s ease-in-out infinite;
}
.v4-flagchip-1 { top: 10px; inset-inline-start: 6px; }
.v4-flagchip-2 { top: 40px; inset-inline-end: -10px; animation-delay: -1s, -2s; }
.v4-flagchip-3 { top: 190px; inset-inline-start: -18px; animation-delay: -2s, -1s; }
.v4-flagchip-4 { bottom: 40px; inset-inline-end: 8px; animation-delay: -0.6s, -3s; }
.v4-flagchip-5 { bottom: 0; inset-inline-start: 56px; animation-delay: -1.8s, -4s; }
.v4-flagchip-6 { top: 130px; inset-inline-end: -28px; animation-delay: -2.5s, -2s; }
@keyframes v4-wave {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  25% { transform: skewY(-5deg) scaleX(0.94); }
  50% { transform: skewY(2deg) scaleX(1.02); }
  75% { transform: skewY(-3deg) scaleX(0.97); }
}
@keyframes v4-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }

/* Form card (light, readable) */
.v4-card {
  position: relative; z-index: 2; margin-top: 230px; background: #fff; color: var(--v4-ink);
  border-radius: 22px; padding: 26px; box-shadow: 0 30px 70px rgba(15,23,42,0.28);
}
.v4-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.v4-card-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: #DBEAFE; color: var(--v4-blue);
}
.v4-card-eyebrow { font-size: 12px; font-weight: 700; color: var(--v4-blue); }
.v4-card-title { font-size: 17px; font-weight: 800; color: var(--v4-ink); }
.v4-field + .v4-field { margin-top: 14px; }
.v4-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 7px; }
.v4-label i { width: 15px; height: 15px; color: var(--v4-blue); }
.v4-select {
  width: 100%; height: 48px; padding: 0 12px; border-radius: 12px;
  border: 1px solid #CBD5E1; background: #F8FAFC; color: var(--v4-ink); font-size: 14.5px;
}
.v4-select:focus { outline: none; border-color: var(--v4-blue); background: #fff; box-shadow: 0 0 0 3px #DBEAFE; }
.v4-submit {
  width: 100%; margin-top: 20px; background: var(--v4-blue); color: #fff; box-shadow: 0 12px 24px rgba(37,99,235,0.3);
}
.v4-submit:disabled { background: #93C5FD; box-shadow: none; cursor: not-allowed; }
.v4-trust { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12.5px; color: #64748B; margin: 14px 0 0; }
.v4-trust i { width: 14px; height: 14px; }

.v4-afg {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-top: 16px;
  background: #fff; color: var(--v4-ink); border: 1px solid #FDE68A; border-radius: 16px;
  padding: 14px 16px; text-decoration: none; box-shadow: 0 12px 28px rgba(15,23,42,0.18);
  transition: transform 200ms ease;
}
.v4-afg:hover { transform: translateY(-2px); }
.v4-afg-flag { font-size: 26px; }
.v4-afg-text { flex: 1; display: grid; gap: 2px; }
.v4-afg-text strong { font-size: 14px; }
.v4-afg-text span { font-size: 12.5px; color: var(--v4-muted); }
.v4-afg > i { width: 18px; height: 18px; color: #D97706; }

/* Stats bar */
.v4-stats {
  position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; color: var(--v4-ink); border-radius: 22px; margin-top: 56px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.2); overflow: hidden;
}
.v4-stat { display: grid; justify-items: center; gap: 4px; padding: 22px 12px; text-align: center; border-inline-end: 1px solid var(--v4-line); }
.v4-stat:last-child { border-inline-end: 0; }
.v4-stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #DBEAFE; color: var(--v4-blue); margin-bottom: 4px; }
.v4-stat-icon i { width: 20px; height: 20px; }
.v4-stat-value { font-size: 20px; font-weight: 900; color: var(--v4-ink); }
.v4-stat-label { font-size: 12.5px; color: var(--v4-muted); }

.v4-hero { padding-bottom: 0; }
.v4-hero .container:last-child { padding-bottom: 60px; }

/* ---------- Quick tiles ---------- */
.v4-quick { padding-top: 64px; padding-bottom: 40px; }
.v4-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.v4-tile {
  display: block; background: #fff; border: 1px solid var(--v4-line); border-radius: 20px; padding: 26px 22px;
  text-decoration: none; color: var(--v4-ink); box-shadow: 0 8px 22px rgba(15,23,42,0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.v4-tile:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(37,99,235,0.18); border-color: #BFDBFE; }
.v4-tile-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #DBEAFE; color: var(--v4-blue); margin-bottom: 14px; }
.v4-tile h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.v4-tile p { font-size: 13.5px; line-height: 1.8; color: var(--v4-muted); margin: 0; }

/* ---------- Destinations ---------- */
.v4-dest { background: #fff; }
.v4-dest .hp-nat-strip { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.v4-dest .hp-nat-summary { text-align: center; color: var(--v4-muted); }
.v4-dest .destinations-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 22px; margin-top: 28px;
}
.destination-card {
  position: relative; background: #fff; border: 1px solid var(--v4-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(15,23,42,0.07);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, border-color 260ms ease;
}
.destination-card:hover { transform: translateY(-12px) rotate(-0.6deg); box-shadow: 0 26px 46px rgba(37,99,235,0.25); border-color: #93C5FD; }
.destination-card.is-selected {
  transform: translateY(-16px); border: 2px solid var(--v4-blue);
  box-shadow: 0 28px 52px rgba(37,99,235,0.3);
}
.destination-card.is-selected::after {
  content: "✓"; position: absolute; top: 10px; inset-inline-end: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--v4-blue); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.destination-card .dest-flag-tile {
  display: grid; place-items: center; width: 100%; height: 130px; font-size: 56px;
  background: linear-gradient(135deg, #60A5FA 0%, #2563EB 55%, #14B8A6 100%);
  transform-origin: left center;
  animation: v4-wave 3.6s ease-in-out infinite;
}
.destination-card:nth-child(2n) .dest-flag-tile { animation-delay: -1.2s; }
.destination-card:nth-child(3n) .dest-flag-tile { animation-delay: -2.1s; }
.destination-card .dest-head { display: block; padding: 0; }
.destination-card .dest-head-text { padding: 16px 18px 0; display: grid; gap: 8px; }
.destination-card-name { font-size: 18px; font-weight: 800; color: var(--v4-ink); margin: 0; }
.dest-status-pill { justify-self: start; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #DCFCE7; color: #166534; }
.dest-status-pill.is-guide { background: #FEF3C7; color: #92400E; }
.dest-status-pill.is-pending { background: #E2E8F0; color: #334155; }
.destination-card .dest-subline { padding: 0 18px; margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--v4-muted); }
.destination-card .destination-card-actions { display: grid; gap: 8px; padding: 16px 18px 18px; }
.destination-card .destination-card-cta.primary {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px;
  background: var(--v4-blue); color: #fff; border-radius: 12px; font-weight: 700; text-decoration: none;
}
.destination-card .destination-card-cta.ghost { text-align: center; font-size: 13px; color: var(--v4-muted); text-decoration: underline; }
.destination-card .dest-nat { margin: 0 18px 12px; font-size: 12.5px; }

/* ---------- Process ---------- */
.v4-process { background: #F8FAFC; }
.v4-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.v4-step {
  position: relative; background: #fff; border: 1px solid var(--v4-line); border-radius: 20px; padding: 36px 20px 24px; text-align: center;
  box-shadow: 0 8px 22px rgba(15,23,42,0.06);
}
.v4-step-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--v4-blue); color: #fff; font-weight: 800; font-size: 13px;
  box-shadow: 0 8px 16px rgba(37,99,235,0.35);
}
.v4-step-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: #CCFBF1; color: #0F766E; }
.v4-step h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.v4-step p { font-size: 13px; line-height: 1.8; color: var(--v4-muted); margin: 0; }
.v4-result {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 28px; background: #fff; border: 1px solid #BFDBFE; border-radius: 22px; padding: 28px;
}
.v4-result h3 { font-size: 17px; font-weight: 800; margin: 0 0 12px; }
.v4-result ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.v4-result li { display: flex; gap: 8px; font-size: 14px; color: var(--v4-muted); }
.v4-result li i { width: 18px; height: 18px; color: #15803D; flex-shrink: 0; }
.v4-result .v4-btn-main { background: var(--v4-blue); color: #fff; box-shadow: 0 12px 24px rgba(37,99,235,0.3); }

/* ---------- Blue band ---------- */
.v4-band {
  background: linear-gradient(120deg, #1D4ED8 0%, #2563EB 55%, #0EA5A4 100%); color: #fff; padding: 84px 0; position: relative; overflow: hidden;
}
.v4-band-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.v4-band h2 { color: #fff; }
.v4-band ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.v4-band li { display: flex; gap: 10px; font-size: 15px; }
.v4-band li i { width: 20px; height: 20px; color: #FDE68A; flex-shrink: 0; }
.v4-band-art { display: grid; place-items: center; }
.v4-band-plane {
  width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  animation: v4-float 6s ease-in-out infinite;
}
.v4-band-plane i { width: 84px; height: 84px; color: #fff; }

/* ---------- Trust ---------- */
.v4-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.v4-panel { background: #fff; border: 1px solid #BBF7D0; border-radius: 22px; padding: 28px; }
.v4-panel-not { border-color: #FECACA; }
.v4-panel h3 { display: flex; gap: 10px; align-items: center; font-size: 17px; font-weight: 800; margin: 0 0 16px; }
.v4-panel h3 i { width: 24px; height: 24px; color: #15803D; }
.v4-panel-not h3 i { color: #B91C1C; }
.v4-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.v4-panel li { display: flex; gap: 10px; font-size: 14px; line-height: 1.85; color: var(--v4-muted); }
.v4-panel li i { width: 18px; height: 18px; color: #15803D; flex-shrink: 0; margin-top: 4px; }
.v4-panel-not li i { color: #B91C1C; }

/* ---------- FAQ ---------- */
.v4-faq-inner { max-width: 860px; }
.v4-faq-list { display: grid; gap: 12px; }
.v4-faq-item { background: #fff; border: 1px solid var(--v4-line); border-radius: 16px; overflow: hidden; }
.v4-faq-item[open] { border-color: #BFDBFE; }
.v4-faq-item summary {
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 18px 22px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.v4-faq-item summary::-webkit-details-marker { display: none; }
.v4-faq-item summary i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #DBEAFE; color: var(--v4-blue); flex-shrink: 0; transition: transform 200ms ease; }
.v4-faq-item[open] summary i { transform: rotate(45deg); }
.v4-faq-item p { margin: 0; padding: 0 22px 20px; font-size: 14px; line-height: 1.9; color: var(--v4-muted); }

/* ---------- Closing ---------- */
.v4-closing {
  text-align: center; color: #fff; border-radius: 28px; padding: 64px 32px;
  background: linear-gradient(120deg, #1D4ED8 0%, #2563EB 55%, #14B8A6 100%);
  box-shadow: 0 24px 60px rgba(37,99,235,0.28);
}
.v4-closing h2 { color: #fff; }
.v4-closing p { color: rgba(255,255,255,0.9); margin: 0; line-height: 1.9; }
.v4-btn-outline { min-height: 50px; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.v4-js .v4-reveal { opacity: 0; transform: translateY(26px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.8,.2,1); }
.v4-js .v4-reveal.is-in { opacity: 1; transform: none; }
.v4-js .v4-steps .v4-reveal:nth-child(2) { transition-delay: 120ms; }
.v4-js .v4-steps .v4-reveal:nth-child(3) { transition-delay: 240ms; }
.v4-js .v4-steps .v4-reveal:nth-child(4) { transition-delay: 360ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .v4-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .v4-steps { grid-template-columns: repeat(2, 1fr); }
  .v4-stats { grid-template-columns: repeat(2, 1fr); }
  .v4-stat:nth-child(2) { border-inline-end: 0; }
  .v4-stat:nth-child(-n+2) { border-bottom: 1px solid var(--v4-line); }
}
@media (max-width: 900px) {
  .v4-hero-inner, .v4-band-inner, .v4-grid-2 { grid-template-columns: 1fr; }
  .v4-stage { min-height: 0; }
  .v4-globe-wrap { position: relative; top: 0; inset-inline-start: auto; transform: none; margin: 0 auto 10px; width: 260px; height: 260px; }
  [dir="ltr"] .v4-globe-wrap { transform: none; }
  .v4-card { margin-top: 0; }
  .v4-band-art { display: none; }
}
@media (max-width: 560px) {
  .v4-section { padding: 60px 0; }
  .v4-grid-4, .v4-steps { grid-template-columns: 1fr; }
  .v4-stats { grid-template-columns: 1fr 1fr; }
  .v4-h1 { font-size: 2rem; }
  .v4-closing { padding: 44px 20px; }
  .v4-flagchip { font-size: 22px; width: 42px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .v4-hero-stars, .v4-globe-sphere, .v4-globe-ring, .v4-flagchip, .destination-card .dest-flag-tile, .v4-band-plane { animation: none !important; }
  .v4-js .v4-reveal { opacity: 1; transform: none; }
  .destination-card:hover, .destination-card.is-selected { transform: none; }
}
