/* Visa Match — layout alinhado à landing Migranta */

:root {
  --navy: #1C2D6B;
  --navy-2: #0F1A45;
  --ink: #1A1F2E;
  --muted: #5B6479;
  --silver: #A8B2C8;
  --line: #E4E7EE;
  --gray-bg: #F4F5F8;
  --white: #FFFFFF;
  --green: #0a8f5a;
  --serif: 'Times New Roman', Times, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --container: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.vm-page {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--gray-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ——— Nav (espelho da landing) ——— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(28, 45, 107, 0.05);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  height: 96px;
}
.nav-logo { display: flex; align-items: center; min-width: 0; flex-shrink: 0; }
.nav-logo .logo-img {
  height: clamp(52px, 7vw, 72px);
  width: auto;
  max-width: min(280px, 38vw);
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  min-width: 0;
}
.nav-links { display: flex; gap: 38px; align-items: center; flex-shrink: 0; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--navy); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  padding: 11px 24px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--white); color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta--menu { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button.active { background: var(--navy); color: var(--white); }
.lang-switch button:hover:not(.active) { color: var(--navy); }

@media (max-width: 900px) {
  .nav-inner {
    height: 72px;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .nav-logo .logo-img {
    height: 44px;
    max-width: min(168px, 46vw);
  }
  .nav-actions { gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta--desktop { display: none; }
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex: unset;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px var(--pad-x) 28px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 48px rgba(28, 45, 107, 0.08);
    transform: translateY(calc(-100% - 80px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease, visibility 0.35s;
    z-index: 99;
    backdrop-filter: saturate(1.4) blur(12px);
  }
  body.nav-open .nav-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-links a {
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }
  .nav-cta--menu {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
  }
  .lang-switch button { padding: 6px 8px; font-size: 10px; }
}

/* ——— Hero ——— */
.vm-hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 55%, #243a7a 100%);
  overflow: hidden;
  text-align: center;
}
.vm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.vm-hero .container { position: relative; z-index: 1; }
.vm-hero .eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 600;
  color: var(--silver);
  display: block;
  margin-bottom: 22px;
}
.vm-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.12;
  color: var(--white);
  max-width: 820px;
  margin: 0 auto 22px;
  letter-spacing: -0.01em;
}
.vm-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--silver);
}
.vm-hero .lead {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
  margin: 0 auto;
}

/* ——— Card do formulário ——— */
.vm-wrap {
  margin-top: -56px;
  padding-bottom: clamp(48px, 8vw, 80px);
  position: relative;
  z-index: 2;
}
.vm-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(28, 45, 107, 0.1);
  overflow: hidden;
}
.vm-card > h2 {
  margin: 0;
  padding: 22px clamp(22px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.vm-body { padding: clamp(22px, 4vw, 32px); }

.progress {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 28px;
}
.bar {
  height: 100%;
  width: 0;
  background: var(--navy);
  transition: width 0.3s ease;
}

/* ——— Form sections ——— */
.section { display: none; }
.section.active { display: block; }
.section > h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.splashLogo { text-align: center; margin-bottom: 20px; }
.splashLogo img {
  max-width: min(280px, 72%);
  margin: 0 auto;
}
.center { text-align: center; }
.tagline {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  color: var(--navy);
  margin: 8px 0 6px;
}
.splashSub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.legalNotice {
  background: var(--gray-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 24px 0 0;
  line-height: 1.65;
}
.legalNotice h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 14px;
}
.legal-p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal-p:last-of-type { margin-bottom: 0; }
.legal-p--en { font-style: italic; opacity: 0.92; }

.acceptBox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.acceptBox input { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: var(--navy); }
.acceptBox span {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}
.acceptBox--error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  animation: legalShake 0.45s ease;
}
@keyframes legalShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.legal-hint {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.45;
}

label.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 8px;
  display: block;
}
label.choice,
label.check,
label.acceptBox {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  margin: 0;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  background: var(--white);
  font-family: var(--sans);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
}
select {
  padding: 12px 42px 12px 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6479' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
textarea { min-height: 88px; resize: vertical; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 12px;
  background: #fbfdff;
  font-size: 14px;
  cursor: pointer;
}
.check input { width: auto; accent-color: var(--navy); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 4px; }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.choice:has(input:checked) {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}
.choice input { width: auto; accent-color: var(--navy); }
.choiceLabel {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

.btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px -8px rgba(28, 45, 107, 0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--silver);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn.small { font-size: 11px; padding: 10px 18px; }
.hidden { display: none !important; }

/* ——— Resultados ——— */
.results-wrap {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.results-wrap > h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 18px;
}
.email-status {
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
}
.email-status--pending { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.email-status--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #166534; }
.email-status--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.resultTop {
  background: linear-gradient(135deg, #f1f4fa, var(--white));
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.resultTop h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  font-size: 20px;
}
.scoreLine {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  font-size: 14px;
}
.meter {
  height: 10px;
  background: #e7edf5;
  border-radius: 99px;
  overflow: hidden;
}
.fill {
  height: 100%;
  background: linear-gradient(90deg, #4a6bb5, var(--green));
}
.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pGreen { background: #dcfce7; color: #166534; }
.pYellow { background: #fef3c7; color: #92400e; }
.pRed { background: #fee2e2; color: #991b1b; }

.visaCard {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  background: var(--white);
}
.visaHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.visaHead h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  font-size: 17px;
  margin: 0;
}
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.box {
  background: var(--gray-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.box h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.box ul { margin: 0 0 0 18px; padding: 0; font-size: 13.5px; color: var(--ink); }
.box li { margin: 4px 0; }

.schedule-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 16px;
  text-align: center;
}
.schedule-cta b { font-family: var(--serif); font-size: 18px; font-weight: 500; display: block; margin-bottom: 4px; }
.schedule-cta span { font-size: 13px; opacity: 0.85; }

/* ——— Footer ——— */
.vm-footer {
  text-align: center;
  padding: 28px var(--pad-x) 40px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.europe-other-wrap { margin-top: 2px; }
.europe-other-wrap.hidden { display: none !important; }

@media (max-width: 768px) {
  .vm-hero { padding: 120px 0 80px; }
  .vm-wrap { margin-top: -40px; }
  .row, .cols, .checks, .cards { grid-template-columns: 1fr; }
  .btns { flex-direction: column; align-items: stretch; }
  .btns .btn { width: 100%; }
  .scoreLine { grid-template-columns: 1fr; gap: 6px; }
}

@media print {
  .nav, .vm-hero, .vm-footer, .formCard .progress, .btns, .email-status { display: none !important; }
  .vm-wrap { margin-top: 0; }
  .vm-card { box-shadow: none; border: 0; }
  body { background: white; }
}
