/* LEVEL-TEST-LANDING (27 Oct 2026): go.vamospanish.com/<lang>/level-test/<campus>/ (includes/level-test-landing.php).
   Mobile first; logical properties so Hebrew, Arabic and Persian read right to left. */

.vltl.vltl {
  --vltl-teal: #1e7272;
  --vltl-teal-d: #134f4f;
  --vltl-orange: #f07832;
  --vltl-orange-d: #d4621f;
  --vltl-ink: #15302f;
  --vltl-muted: #4b6261;
  --vltl-soft: #f1f8f7;
  --vltl-line: #d3e6e3;
  max-width: 760px !important;
  width: 100%;
  margin: 0 auto 48px !important;
  color: var(--vltl-ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.vltl *,
.vltl *::before,
.vltl *::after { box-sizing: border-box; }
.vltl [hidden] { display: none !important; }

/* Hero */
.vltl-hero {
  position: relative;
  overflow: visible;
  display: grid;
  margin: 0 0 18px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(135deg, #1e7272 0%, #0f4545 100%);
  color: #fff;
  isolation: isolate;
}
.vltl-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: -2;
}
.vltl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(5, 28, 28, 0.25) 0%, rgba(5, 28, 28, 0.55) 40%, rgba(5, 28, 28, 0.9) 100%);
  z-index: -1;
}
.vltl--nophoto .vltl-hero::after {
  background: radial-gradient(circle at 85% 10%, rgba(240, 120, 50, 0.35), transparent 45%), radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.1), transparent 40%);
}
.vltl-hero-in {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 14px 18px 22px;
}
.vltl-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: auto;
  padding-bottom: 28px;
}
.vltl-kicker {
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}
.vltl-k2 { display: none; }
@media (min-width: 640px) { .vltl-k2 { display: inline; } }
.vltl-h1 {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-family: "Oswald", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.vltl-sub {
  margin: 0 0 14px;
  max-width: 36em;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.vltl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vltl-chips li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--vltl-teal-d);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
}

/* Language selector */
.vltl-lang { position: relative; flex: 0 0 auto; }
.vltl-lang > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--vltl-teal-d);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.vltl-lang > summary::-webkit-details-marker { display: none; }
.vltl-lang > summary::after { content: "\25BE"; font-size: 12px; }
.vltl-lang > summary:focus-visible { outline: 3px solid var(--vltl-orange); outline-offset: 2px; }
.vltl-lang-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 2px;
  width: max-content;
  max-width: min(92vw, 360px);
  max-height: 62vh;
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
.vltl-lang-list li { margin: 0; }
.vltl-lang-list a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--vltl-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.vltl-lang-list a:hover,
.vltl-lang-list a:focus-visible { background: var(--vltl-soft); outline: none; }
.vltl-lang-list a[aria-current="true"] { background: var(--vltl-teal); color: #fff; }

/* LEVEL-TEST-RESULT (WP-1, P0-2): the permanent/shared result card (?r=<token>), a real result and not a new
   test. Reuses the same card look as the ordinary result (.vltl-res) rather than inventing a second style. */
.vltl-rcard {
  margin: 0 0 20px;
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--vltl-soft);
  border: 1px solid var(--vltl-line);
}
.vltl-rcard-banner {
  margin: 0 0 8px;
  font-family: "Oswald", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--vltl-ink);
}
.vltl-rcard-meaning { margin: 0 0 14px; color: var(--vltl-muted); }

/* Banner of a shared result */
.vltl-shared {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff4ec;
  border: 1px solid #f6c8a8;
  color: #7a3a10;
  font-weight: 700;
}

/* Sections */
.vltl-h2 {
  margin: 0 0 6px !important;
  color: var(--vltl-ink) !important;
  font-family: "Oswald", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}
.vltl-hint { margin: 0 0 14px; color: var(--vltl-muted); }
.vltl-aud,
.vltl-test,
.vltl-how,
.vltl-trust { margin: 0 0 22px; padding: 0 16px; }

/* Who is the test for? */
.vltl-aud-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vltl-aud-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 128px;
  padding: 14px;
  border: 2px solid var(--vltl-line);
  border-radius: 16px;
  background: #fff;
  color: var(--vltl-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(17, 60, 60, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.vltl-aud-btn:hover { border-color: var(--vltl-teal); box-shadow: 0 6px 18px rgba(17, 60, 60, 0.14); transform: translateY(-2px); }
.vltl-aud-btn:focus-visible { outline: 3px solid var(--vltl-orange); outline-offset: 2px; }
.vltl-aud-btn[aria-pressed="true"] { border-color: var(--vltl-teal); background: var(--vltl-soft); }
.vltl-aud-icon { font-size: 30px; line-height: 1; }
.vltl-aud-t { font-weight: 800; font-size: 17px; line-height: 1.25; }
.vltl-aud-s { color: var(--vltl-muted); font-size: 13.5px; line-height: 1.35; }

/* The test */
.vltl-for {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--vltl-teal-d);
}
.vltl-link {
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--vltl-teal);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.vltl-tip,
.vltl-resume {
  margin: 0 0 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 15px;
}
.vltl-tip { background: var(--vltl-soft); border-inline-start: 4px solid var(--vltl-teal); }
.vltl-resume { background: #fff4ec; border-inline-start: 4px solid var(--vltl-orange); }
.vltl-note { margin: 10px 0 0; color: var(--vltl-muted); font-size: 13.5px; text-align: center; }
.vltl .vf-lt--page { margin: 0; }
.vltl .vf-lt-card { margin-inline: 0; }
.vltl .vf-lt-option { min-height: 52px; padding: 12px 14px; font-size: 16.5px; }
.vltl .vf-lt-actions .vamos-btn,
.vltl .vf-lt-actions .vamos-btn-outline { min-height: 48px; }
.vltl .vf-lt-loading--cheer { font-weight: 800; color: var(--vltl-teal-d); font-size: 17px; }

/* Result additions */
.vltl-res {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--vltl-soft);
  border: 1px solid var(--vltl-line);
}
.vltl-res p { margin: 0; }
.vltl-res-h {
  margin: 0 0 6px !important;
  font-family: "Oswald", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--vltl-ink);
}
.vltl-res-sub { color: var(--vltl-muted); }
.vltl-res-next { background: #fff; }
.vltl-offers { display: grid; gap: 10px; margin-top: 10px; }
.vltl-offer {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--vltl-line);
  border-radius: 12px;
  background: #fff;
}
.vltl-offer--rec { border-color: var(--vltl-orange); box-shadow: 0 0 0 1px var(--vltl-orange); }
.vltl-rec {
  justify-self: start;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--vltl-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.vltl-offer-t { font-size: 16.5px; line-height: 1.3; }
.vltl-offer-c { font-weight: 700; color: var(--vltl-teal-d); font-size: 14.5px; }
.vltl-offer-d { color: var(--vltl-muted); font-size: 14.5px; }
.vltl-offer-a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.vltl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--vltl-orange);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}
.vltl-btn:hover,
.vltl-btn:focus-visible { background: var(--vltl-orange-d); }
.vltl-more { color: var(--vltl-teal); font-weight: 700; }
.vltl-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.vltl-share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--vltl-teal);
  border-radius: 10px;
  background: #fff;
  color: var(--vltl-teal-d) !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}
.vltl-share-wa { border-color: #1ea952; color: #136c35 !important; }
.vltl-share-status { color: var(--vltl-teal-d); font-weight: 700; }

/* How it works */
.vltl-steps { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.vltl-steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.vltl-step-n {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--vltl-teal);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Reviews and WhatsApp */
.vltl-trust { padding-top: 6px; }
.vltl-reviews { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; padding: 0; list-style: none; }
.vltl-reviews li { margin: 0; }
.vltl-reviews a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--vltl-line);
  background: #fff;
  color: var(--vltl-ink);
  font-weight: 700;
  text-decoration: none;
}
.vltl-stars { color: #f5a400; letter-spacing: 1px; }
.vltl-since { margin: 4px 0 14px; color: var(--vltl-muted); font-size: 14px; }
.vltl-wa { padding: 16px; border-radius: 16px; background: #eaf8ef; border: 1px solid #bfe6cc; }
.vltl-wa-t { margin: 0 0 10px; font-weight: 800; }
.vltl-wa-btn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #1ea952;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}
.vltl-wa-num { font-weight: 600; opacity: 0.95; }

@media (min-width: 640px) {
  .vltl-aud-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vltl-aud-btn { min-height: 150px; }
}
@media (min-width: 780px) {
  .vltl-hero { margin: 18px 0 24px; border-radius: 22px; }
  .vltl-hero-in { min-height: 360px; padding: 22px 32px 30px; }
  .vltl-aud,
  .vltl-test,
  .vltl-how,
  .vltl-trust { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vltl-aud-btn { transition: none; }
  .vltl-aud-btn:hover { transform: none; }
}

/* LEVEL-TEST-RESUME (28 Oct 2026): "Save and finish later" */
.vltl-save { margin: 10px 0 0; }
.vltl-save-form {
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--vltl-soft);
  border: 1px solid var(--vltl-line);
}
.vltl-save-title {
  margin: 0 0 4px !important;
  font-family: "Oswald", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--vltl-ink);
}
.vltl-save-text { margin: 0 0 12px; color: var(--vltl-muted); font-size: 14.5px; }
.vltl-save-row { display: grid; gap: 10px; margin-bottom: 10px; }
.vltl-save-field { display: grid; gap: 4px; font-size: 14px; font-weight: 700; color: var(--vltl-ink); }
.vltl-save-field input {
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid var(--vltl-line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
}
.vltl-save-field input:focus-visible,
.vltl-save-consent input:focus-visible { outline: 3px solid var(--vltl-orange); outline-offset: 1px; }
.vltl-save-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vltl-save-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--vltl-muted);
}
.vltl-save-consent input { margin-top: 3px; flex: 0 0 auto; }
.vltl-save-consent a { color: var(--vltl-teal); font-weight: 700; }
.vltl-save-msg { margin: 0 0 10px; font-weight: 700; color: var(--vltl-teal-d); min-height: 1em; }
.vltl-save-msg:empty { display: none; }
.vltl-save-msg--err { color: #a33b1f; }
.vltl-save-actions { display: flex; }
.vltl-save-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--vltl-teal);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.vltl-save-submit:hover,
.vltl-save-submit:focus-visible { background: var(--vltl-teal-d); }
.vltl-save-submit:disabled { opacity: 0.7; cursor: default; }
@media (min-width: 560px) {
  .vltl-save-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
