/*
 * VALN Tools v2 — Shared Stylesheet
 *
 * Scope rule: EVERY selector is prefixed with .valn-tool so styles cannot
 * bleed into the surrounding WordPress page or Divi theme. The tool lives
 * inside its own dark navy container; the rest of the page stays untouched.
 *
 * Design tokens are declared on .valn-tool (not :root) for the same reason.
 */

/* ========== DESIGN TOKENS (scoped to wrapper) ========== */
.valn-tool {
  --navy: #0A2540;
  --navy-deep: #061829;
  --navy-mid: #143256;
  --navy-light: #1E4470;
  --red: #C8102E;
  --red-bright: #E41E3F;
  --gold: #FFB800;
  --gold-soft: #FFC733;
  --gold-bright: #FFD24A;
  --blue: #2B7FFF;
  --blue-bright: #4A96FF;
  --blue-soft: #66A8FF;
  --blue-deep: #1A5FCF;
  --white: #FFFFFF;
  --gray-400: #94A3B8;
  --green: #10B981;
  --green-soft: #34D399;
}

/* ========== WRAPPER: contains the dark navy "stage" ========== */
.valn-tool {
  position: relative;
  display: block;
  max-width: 880px;
  margin: 28px auto;
  padding: 18px 16px 22px;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 0%, rgba(43, 127, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 100%, rgba(255, 184, 0, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(43, 127, 255, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 20px 60px rgba(6, 24, 41, 0.35), 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Particle layer — contained to wrapper, not the page */
.valn-tool::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.06) 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(43, 127, 255, 0.12) 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 184, 0, 0.10) 50%, transparent 100%),
    radial-gradient(1px 1px at 30% 90%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
  background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px;
  z-index: 0;
}

/* Defensive reset inside wrapper only — does not affect page elements */
.valn-tool *,
.valn-tool *::before,
.valn-tool *::after {
  box-sizing: border-box;
}

/* Containment for the visible app */
.valn-tool .app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ========== TOP STRIP ========== */
.valn-tool .topstrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 13px;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: 6px;
  font-size: 11.5px;
}

.valn-tool .topstrip-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
}

.valn-tool .topstrip-left::before { content: '★'; }

.valn-tool .topstrip-phone {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

/* ========== HEADER (logo + progress) ========== */
.valn-tool .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.valn-tool .logo-wrap {
  flex-shrink: 0;
  height: 32px;
  display: flex;
  align-items: center;
}

.valn-tool .logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.3));
}

.valn-tool .progress-block {
  flex: 1;
  max-width: 380px;
}

.valn-tool .progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

.valn-tool .progress-meta strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.valn-tool .progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.valn-tool .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 50%, var(--gold) 100%);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.4);
}

/* ========== VIEWPORT (the slide stage) ========== */
.valn-tool .viewport {
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.valn-tool .slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  align-items: stretch;
}

.valn-tool .slide {
  flex: 0 0 100%;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}

.valn-tool .slide-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 8px;
  padding: 3px 10px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 4px;
  align-self: flex-start;
}

.valn-tool .slide-eyebrow.blue {
  color: var(--blue-bright);
  background: rgba(43, 127, 255, 0.12);
  border-color: rgba(43, 127, 255, 0.3);
}

.valn-tool .slide-question {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 4px;
}

.valn-tool .slide-question em {
  color: var(--gold-bright);
  font-style: italic;
  font-weight: 600;
}

.valn-tool .slide-question em.blue { color: var(--blue-bright); }
.valn-tool .slide-question em.green { color: var(--green-soft); }
.valn-tool .slide-question em.red { color: var(--red-bright); }

.valn-tool .slide-description {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
  margin-bottom: 14px;
  max-width: 580px;
}

/* ========== CHOICE CARDS ========== */
.valn-tool .choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.valn-tool .choices.compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

@media (max-width: 540px) {
  .valn-tool .choices.compact-grid { grid-template-columns: 1fr; }
}

.valn-tool .choice {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: inherit;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.valn-tool .choice:hover {
  background: rgba(255, 184, 0, 0.06);
  border-color: rgba(255, 184, 0, 0.4);
  transform: translateX(2px);
}

.valn-tool .choice.selected {
  background: rgba(255, 184, 0, 0.12);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.25);
}

.valn-tool .choice-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(43, 127, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--blue-bright);
}

.valn-tool .choice.flag-soft .choice-icon { color: var(--gold-bright); background: rgba(255, 184, 0, 0.12); }
.valn-tool .choice.flag-hard .choice-icon { color: var(--red-bright); background: rgba(228, 30, 63, 0.12); }
.valn-tool .choice.flag-clean .choice-icon { color: var(--green-soft); background: rgba(16, 185, 129, 0.12); }

.valn-tool .choice-content { flex: 1; min-width: 0; }

.valn-tool .choice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1px;
}

.valn-tool .choice-detail {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.valn-tool .choice-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  transition: all 0.2s;
}

.valn-tool .choice:hover .choice-arrow,
.valn-tool .choice.selected .choice-arrow {
  color: var(--gold-bright);
  transform: translateX(2px);
}

.valn-tool .choice-badge {
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 4px;
}

.valn-tool .choice-badge.popular { background: rgba(255, 184, 0, 0.18); color: var(--gold-bright); }
.valn-tool .choice-badge.warn { background: rgba(255, 184, 0, 0.18); color: var(--gold-bright); }
.valn-tool .choice-badge.fail { background: rgba(228, 30, 63, 0.18); color: var(--red-bright); }

/* ========== RESULT REVEAL ========== */
.valn-tool .result-reveal {
  text-align: center;
  padding: 20px 22px 22px;
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.valn-tool .result-reveal.green {
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.08), transparent);
  border-color: rgba(16, 185, 129, 0.35);
}

.valn-tool .result-reveal.gold {
  background:
    radial-gradient(circle at center, rgba(255, 184, 0, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 184, 0, 0.08), transparent);
}

.valn-tool .result-reveal.red {
  background:
    radial-gradient(circle at center, rgba(228, 30, 63, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, rgba(228, 30, 63, 0.08), transparent);
  border-color: rgba(228, 30, 63, 0.35);
}

.valn-tool .result-reveal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 30%);
  animation: valn-pulse-glow 3s ease-in-out infinite;
}

.valn-tool .result-reveal.gold::before { background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 30%); }
.valn-tool .result-reveal.red::before { background: radial-gradient(circle, rgba(228, 30, 63, 0.12) 0%, transparent 30%); }

@keyframes valn-pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.valn-tool .result-content { position: relative; z-index: 1; }

.valn-tool .result-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-soft);
  font-weight: 700;
  margin-bottom: 6px;
}

.valn-tool .result-reveal.gold .result-label { color: var(--gold-bright); }
.valn-tool .result-reveal.red .result-label { color: var(--red-bright); }

.valn-tool .result-headline {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--green-soft);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: block;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  padding: 2px 0;
}

.valn-tool .result-reveal.gold .result-headline { color: var(--gold-bright); text-shadow: 0 0 20px rgba(255, 184, 0, 0.5); }
.valn-tool .result-reveal.red .result-headline { color: var(--red-bright); text-shadow: 0 0 20px rgba(228, 30, 63, 0.5); }

.valn-tool .result-detail {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto;
}

.valn-tool .result-detail strong {
  color: var(--gold-bright);
  font-weight: 700;
}

/* ========== FLAGS LIST ========== */
.valn-tool .flags-list {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 11px;
}

.valn-tool .flags-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.valn-tool .flag-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  line-height: 1.4;
}

.valn-tool .flag-item:first-of-type { border-top: none; padding-top: 0; }
.valn-tool .flag-item:last-of-type { padding-bottom: 0; }

.valn-tool .flag-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.valn-tool .flag-icon.gold { background: rgba(255, 184, 0, 0.2); color: var(--gold-bright); }
.valn-tool .flag-icon.red { background: rgba(228, 30, 63, 0.2); color: var(--red-bright); }
.valn-tool .flag-icon.green { background: rgba(16, 185, 129, 0.2); color: var(--green-soft); }

.valn-tool .flag-text { color: rgba(255, 255, 255, 0.85); flex: 1; }

.valn-tool .flag-text strong { color: var(--white); font-weight: 600; }

.valn-tool .flag-text .fix-path {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

/* ========== LEVER BLOCK ========== */
.valn-tool .lever-block {
  background: rgba(43, 127, 255, 0.06);
  border: 1px solid rgba(43, 127, 255, 0.25);
  border-left: 3px solid var(--blue-bright);
  border-radius: 7px;
  padding: 10px 13px;
  margin-bottom: 10px;
}

.valn-tool .lever-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 4px;
}

.valn-tool .lever-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  font-weight: 500;
}

.valn-tool .lever-text strong {
  color: var(--gold-bright);
  font-weight: 700;
}

/* ========== SOFT CTA ========== */
.valn-tool .soft-cta {
  background: linear-gradient(135deg, rgba(43, 127, 255, 0.08), rgba(43, 127, 255, 0.02));
  border: 1px solid rgba(43, 127, 255, 0.3);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.valn-tool .soft-cta-title {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}

.valn-tool .soft-cta-title em {
  color: var(--blue-bright);
  font-style: italic;
}

.valn-tool .soft-cta-detail {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ========== FORM ========== */
.valn-tool .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 10px;
}

@media (max-width: 540px) {
  .valn-tool .form-grid { grid-template-columns: 1fr; }
}

.valn-tool .input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.valn-tool .input-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.valn-tool .input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--white);
  transition: all 0.2s;
}

.valn-tool .input-field:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(43, 127, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.15);
}

/* ========== BUTTONS ========== */
.valn-tool .btn-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.valn-tool .btn-back:hover {
  border-color: var(--blue-bright);
  color: var(--white);
}

.valn-tool .btn-back:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

.valn-tool .btn-next {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: var(--white);
  border: none;
  padding: 11px 28px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(43, 127, 255, 0.35);
  min-width: 200px;
  justify-content: center;
}

.valn-tool .btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 127, 255, 0.5);
}

.valn-tool .btn-next.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.35);
}

.valn-tool .btn-next.gold:hover {
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.5);
}

.valn-tool .btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.valn-tool .slide-cta {
  width: 100%;
  padding: 12px 22px;
  font-size: 13.5px;
}

.valn-tool .back-bar {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

/* ========== SUCCESS SCREEN ========== */
.valn-tool .success-screen {
  text-align: center;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.valn-tool .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 0 32px rgba(43, 127, 255, 0.5);
}

.valn-tool .narrative-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-left: 3px solid var(--blue-bright);
  border-radius: 0 7px 7px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.valn-tool .narrative-box em {
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 600;
}

.valn-tool .narrative-box em.blue { color: var(--blue-bright); }

/* ========== HEADINGS DEFENSE ==========
   Some WP themes (Divi) set very loud heading colors. Reset inside the tool. */
.valn-tool h1,
.valn-tool h2,
.valn-tool h3,
.valn-tool h4 {
  color: var(--white) !important;
  margin: 0;
  font-family: inherit;
  font-weight: inherit;
}

.valn-tool p {
  margin: 0;
  color: inherit;
}

.valn-tool a { color: var(--blue-bright); text-decoration: none; }
.valn-tool a:hover { text-decoration: underline; }

/* ========== INDEXABLE FLAG REFERENCE ==========
   Server-rendered HTML containing all flag definitions. Used by AI crawlers
   that don't execute JS. Hidden visually but readable in the DOM. */
.valn-tool .valn-flag-reference {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== MOBILE ========== */
@media (max-width: 600px) {
  .valn-tool { padding: 10px 8px 14px; margin: 16px auto; }
  .valn-tool .app { gap: 6px; }
  .valn-tool .topstrip { padding: 6px 10px; font-size: 10.5px; }
  .valn-tool .header-row { gap: 10px; }
  .valn-tool .logo { height: 22px; }
  .valn-tool .progress-block { max-width: none; }
  .valn-tool .slide { padding: 14px 14px; }
  .valn-tool .slide-eyebrow { font-size: 9px; padding: 2px 8px; margin-bottom: 7px; }
  .valn-tool .slide-description { font-size: 11.5px; margin-bottom: 10px; }
  .valn-tool .btn-next { padding: 10px 22px; font-size: 12.5px; min-width: 170px; }
  .valn-tool .choice { padding: 10px 12px; }
  .valn-tool .choice-title { font-size: 13px; }
  .valn-tool .choice-detail { font-size: 11px; }
}

@keyframes valn-slide-in {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

.valn-tool .slide.active > * {
  animation: valn-slide-in 0.4s ease;
}


/* ============================================================================
   v2.1 — Additions for BAH Optimizer (also reusable by future tools):
   big-number input, state picker, base pills, credit slider, breakdown rows,
   nav bar with Continue + Back-below pattern.
   ============================================================================ */

/* BIG NUMBER INPUT (BAH, future loan/income inputs) */
.valn-tool .bah-big-input { margin-bottom: 16px; }

.valn-tool .bah-input-wrap {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 184, 0, 0.4);
  border-radius: 14px;
  padding: 0 22px;
  transition: all 0.2s;
  text-align: center;
}

.valn-tool .bah-input-wrap:focus-within {
  border-color: var(--gold-bright);
  background: rgba(255, 184, 0, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.15), 0 0 32px rgba(255, 184, 0, 0.2);
}

.valn-tool .bah-input-wrap .currency {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-100%, -50%) translateX(-78px);
  font-family: 'Source Serif 4', serif;
  font-size: 32px;
  color: rgba(255, 184, 0, 0.5);
  pointer-events: none;
  font-weight: 600;
}

.valn-tool .bah-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 0;
  font-family: 'Source Serif 4', serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  color: var(--gold-bright);
  outline: none;
  text-align: center;
  letter-spacing: -0.02em;
}

.valn-tool .bah-input::placeholder { color: rgba(255, 184, 0, 0.25); }

/* Section divider label ("OR PICK YOUR STATE") */
.valn-tool .quick-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin: 8px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.valn-tool .quick-section-label::before,
.valn-tool .quick-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  max-width: 60px;
}

/* STATE PICKER GRID */
.valn-tool .state-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 5px;
  margin-bottom: 8px;
  max-height: 140px;
  overflow-y: auto;
  padding: 2px;
}

.valn-tool .state-picker::-webkit-scrollbar { width: 3px; }
.valn-tool .state-picker::-webkit-scrollbar-thumb { background: rgba(43, 127, 255, 0.3); border-radius: 2px; }

.valn-tool .state-pill {
  font-size: 10px;
  padding: 5px 4px;
  background: rgba(43, 127, 255, 0.08);
  border: 1px solid rgba(43, 127, 255, 0.2);
  color: var(--blue-bright);
  cursor: pointer;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: all 0.15s;
}

.valn-tool .state-pill:hover {
  background: rgba(43, 127, 255, 0.18);
  border-color: var(--blue-bright);
}

.valn-tool .state-pill.active {
  background: var(--blue-bright);
  color: var(--navy);
  border-color: var(--blue-bright);
}

/* BASES IN STATE */
.valn-tool .bases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 6px;
  min-height: 30px;
}

.valn-tool .base-pill {
  font-size: 11px;
  padding: 5px 10px;
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.25);
  color: var(--gold-bright);
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.valn-tool .base-pill:hover {
  background: rgba(255, 184, 0, 0.18);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}

.valn-tool .base-pill .base-amount {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 10px;
}

.valn-tool .bases-empty {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 8px;
  font-style: italic;
}

/* RANGE SLIDER (credit, future income range tools) */
.valn-tool .range-wrap { margin-bottom: 12px; }

.valn-tool .range-display {
  text-align: center;
  margin-bottom: 12px;
}

.valn-tool .range-value {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  color: var(--blue-bright);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(43, 127, 255, 0.4);
}

.valn-tool .range-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.valn-tool .range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 30%, var(--blue) 70%, var(--green) 100%);
  border-radius: 3px;
  outline: none;
}

.valn-tool .range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  border: 4px solid var(--blue-bright);
  box-shadow: 0 0 0 1px var(--blue-bright), 0 0 16px rgba(43, 127, 255, 0.6);
}

.valn-tool .range-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  border: 4px solid var(--blue-bright);
  box-shadow: 0 0 0 1px var(--blue-bright), 0 0 16px rgba(43, 127, 255, 0.6);
}

.valn-tool .range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

/* CALCULATED RESULT NUMBER (different from MPR's headline-style result) */
.valn-tool .result-number {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: block;
  text-shadow: 0 0 24px rgba(255, 184, 0, 0.5);
  padding: 4px 0;
}

.valn-tool .result-number.updating { animation: valn-result-flash 0.4s ease; }

@keyframes valn-result-flash {
  0% { opacity: 0.4; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* BREAKDOWN ROWS (calculator outputs) */
.valn-tool .breakdown-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.valn-tool .breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 12px;
}

.valn-tool .breakdown-row.highlight {
  background: rgba(43, 127, 255, 0.06);
  border-color: rgba(43, 127, 255, 0.2);
}

.valn-tool .breakdown-row.highlight-positive {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

.valn-tool .breakdown-row.highlight-negative {
  background: rgba(228, 30, 63, 0.06);
  border-color: rgba(228, 30, 63, 0.2);
}

.valn-tool .breakdown-label {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.valn-tool .breakdown-label .icon {
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 700;
}

.valn-tool .breakdown-value {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  color: var(--white);
}

.valn-tool .breakdown-value.gold { color: var(--gold-bright); }
.valn-tool .breakdown-value.blue { color: var(--blue-bright); }
.valn-tool .breakdown-value.green { color: var(--green-soft); }
.valn-tool .breakdown-value.red { color: var(--red-bright); }

/* NAV BAR (Continue centered + Back below pattern) */
.valn-tool .nav-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.valn-tool .nav-bar .btn-back { padding: 6px 14px; }

/* SUBMIT ERROR */
.valn-tool .submit-error {
  display: none;
  color: var(--red-bright);
  font-size: 13px;
  text-align: center;
  margin-bottom: 10px;
}

/* Indexable BAH reference (hidden in DOM but readable by crawlers) */
.valn-tool .valn-bah-reference {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile tweaks for BAH-specific components */
@media (max-width: 600px) {
  .valn-tool .bah-input { font-size: 32px; padding: 14px 0; }
  .valn-tool .bah-input-wrap .currency { font-size: 24px; transform: translate(-100%, -50%) translateX(-58px); }
  .valn-tool .range-value { font-size: 40px; }
}


/* ============================================================================
   v2.2 — Additions for Property Tax Savings (and reusable patterns for
   single-page-form tools): input card grid, state grid (compact 13-col layout),
   rating slider with gold thumb, home value input, result hero (large amount
   display), result mini cards (2-up secondary stats), state rules card,
   CTA stack, inline back button, success screen, slide-title/slide-sub
   (alternate to slide-question/description naming).
   ============================================================================ */

/* Slide variants (proptax uses slide-title / slide-sub naming) */
.valn-tool .slide-title {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.valn-tool .slide-title em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 500;
}
.valn-tool .slide-sub {
  color: var(--gray-400);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 10px;
  max-width: 580px;
}

/* Green eyebrow variant (for "savings" tools) */
.valn-tool .slide-eyebrow.green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--green-soft);
}

/* INPUT CARD GRID — multi-card single-page form layout */
.valn-tool .input-card-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.valn-tool .input-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
}

.valn-tool .input-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 6px;
}

.valn-tool .input-card-helper {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
  line-height: 1.4;
}

/* COMPACT 13-COL STATE GRID (proptax-style, denser than BAH's auto-fit grid) */
.valn-tool .state-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 3px;
  margin-top: 4px;
}

/* Proptax-specific active state override (gold instead of blue) */
.valn-tool .state-grid .state-pill.active {
  background: rgba(255, 184, 0, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.valn-tool .state-display {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

/* RATING SLIDER (proptax uses .rating-slider — distinct from BAH's .range-input) */
.valn-tool .rating-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.valn-tool .rating-num {
  font-family: 'Source Serif 4', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
}

.valn-tool .rating-pct {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  color: var(--gold-bright);
}

.valn-tool .rating-tier-label {
  font-size: 11px;
  color: var(--gray-400);
  margin-left: 8px;
  font-weight: 500;
}

.valn-tool .rating-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.valn-tool .rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border: 3px solid var(--navy);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.4);
}

.valn-tool .rating-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--gold);
  border: 3px solid var(--navy);
  border-radius: 50%;
  cursor: pointer;
}

.valn-tool .rating-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 600;
}

/* HOME VALUE INPUT (proptax-specific, smaller than BAH's mega input) */
.valn-tool .home-value-wrap {
  position: relative;
  margin-top: 4px;
}

.valn-tool .home-value-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 18px;
  font-weight: 600;
  pointer-events: none;
}

.valn-tool .home-value-input {
  width: 100%;
  padding: 10px 14px 10px 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 600;
  transition: all 0.2s ease;
  outline: none;
}

.valn-tool .home-value-input:focus {
  border-color: var(--blue-bright);
  background: rgba(43, 127, 255, 0.08);
}

/* RESULT HERO (single big number, green/gold gradient) */
.valn-tool .result-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.10) 0%, rgba(255, 184, 0, 0.08) 100%);
  border: 2px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 10px;
  text-align: center;
}

.valn-tool .result-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 4px;
}

.valn-tool .result-hero-amount {
  font-family: 'Source Serif 4', serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--green-soft);
  line-height: 1.1;
  margin-bottom: 2px;
}

.valn-tool .result-hero-period {
  font-size: 12px;
  color: var(--gray-400);
}

/* RESULT SECONDARY GRID (2-up mini stats) */
.valn-tool .result-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.valn-tool .result-mini-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}

.valn-tool .result-mini-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 3px;
}

.valn-tool .result-mini-value {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.valn-tool .result-mini-value.gold { color: var(--gold-bright); }
.valn-tool .result-mini-value.blue { color: var(--blue-bright); }

/* STATE RULES CARD (context paragraph after result) */
.valn-tool .state-rules-card {
  background: rgba(43, 127, 255, 0.06);
  border: 1px solid rgba(43, 127, 255, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.valn-tool .state-rules-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 4px;
}

.valn-tool .state-rules-text {
  font-size: 12px;
  color: var(--white);
  line-height: 1.5;
}

/* CTA STACK (button + small back link below) */
.valn-tool .cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.valn-tool .btn-back-inline {
  background: transparent;
  border: none;
  color: var(--gray-400);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.15s ease;
}

.valn-tool .btn-back-inline:hover { color: var(--white); }

/* CONTACT FORM (proptax-specific layout) */
.valn-tool .contact-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.valn-tool .input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.valn-tool .input-wrap { position: relative; }

.valn-tool .input-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.valn-tool .form-error {
  font-size: 12px;
  color: #FCA5A5;
  margin-top: 4px;
  min-height: 16px;
}

/* SUCCESS SCREEN (proptax-style centered with halo'd checkmark) */
.valn-tool .success-content {
  text-align: center;
  padding: 30px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.valn-tool .success-check {
  width: 70px;
  height: 70px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: 36px;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.15), 0 0 0 16px rgba(16, 185, 129, 0.08);
}

.valn-tool .success-title {
  font-family: 'Source Serif 4', serif;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.valn-tool .success-text {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.55;
  max-width: 460px;
  margin-bottom: 20px;
}

/* Hidden indexable reference for crawlers */
.valn-tool .valn-proptax-reference {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile tweaks for proptax-specific components */
@media (max-width: 640px) {
  .valn-tool .slide-title { font-size: 22px; }
  .valn-tool .state-grid { grid-template-columns: repeat(8, 1fr); }
  .valn-tool .input-row { grid-template-columns: 1fr; }
  .valn-tool .result-secondary-grid { grid-template-columns: 1fr; }
  .valn-tool .result-hero-amount { font-size: 36px; }
}

/* ============================================================================


/* ============================================================================
   v2.3 : Additions for Hub Router (and reusable patterns for scenario routers):
   2-col input grid with select/segmented controls, destination card,
   route step cards, docs list, AEO reference. Scoped to .valn-tool-hub-router
   to avoid colliding with the wizard-style slide track used by MPR/BAH.
   ============================================================================ */

/* Override shared .slide for hub-router (single-page form, not horizontal wizard) */
.valn-tool.valn-tool-hub-router .slide {
  flex: none;
  display: none;
  padding: 12px 24px 22px;
  animation: valn-hr-slide-in 0.35s ease;
}
.valn-tool.valn-tool-hub-router .slide.active { display: block; }

@keyframes valn-hr-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* No slide-track scrolling for hub-router : just a regular block container */
.valn-tool.valn-tool-hub-router .slide-track {
  display: block;
  transform: none !important;
  transition: none;
}

/* Header tweaks specific to hub-router (tighter, allows wrapping in narrow embeds) */
.valn-tool.valn-tool-hub-router .header-row {
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 22px 8px;
}
.valn-tool.valn-tool-hub-router .logo { height: 30px; flex-shrink: 0; }
.valn-tool.valn-tool-hub-router .progress-block { min-width: 180px; max-width: 280px; }

/* Slide title/sub naming used by hub-router (and proptax) */
.valn-tool.valn-tool-hub-router .slide-title {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.valn-tool.valn-tool-hub-router .slide-title em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 500;
}
.valn-tool.valn-tool-hub-router .slide-sub {
  color: var(--gray-400);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 14px;
  max-width: 640px;
}

/* Green eyebrow variant */
.valn-tool.valn-tool-hub-router .slide-eyebrow.green {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--green-soft);
}

/* 2-column input grid */
.valn-tool.valn-tool-hub-router .input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.valn-tool.valn-tool-hub-router .input-card-full { grid-column: 1 / -1; }

.valn-tool.valn-tool-hub-router .input-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.2s ease;
}
.valn-tool.valn-tool-hub-router .input-card:focus-within { border-color: rgba(255, 184, 0, 0.4); }

.valn-tool.valn-tool-hub-router .input-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 6px;
}

/* Native select styled */
.valn-tool.valn-tool-hub-router .select-field {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 30px 8px 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  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 fill='%23FFB800' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s, background-color 0.2s;
}
.valn-tool.valn-tool-hub-router .select-field:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(255, 184, 0, 0.06);
}
.valn-tool.valn-tool-hub-router .select-field option {
  background: var(--navy);
  color: var(--white);
}

/* Segmented control */
.valn-tool.valn-tool-hub-router .seg-control {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
}
.valn-tool.valn-tool-hub-router .seg-control button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--gray-400);
  padding: 7px 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.valn-tool.valn-tool-hub-router .seg-control button:hover { color: var(--white); }
.valn-tool.valn-tool-hub-router .seg-control button.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

/* Text inputs */
.valn-tool.valn-tool-hub-router .input-text {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  transition: border-color 0.2s, background-color 0.2s;
  outline: none;
}
.valn-tool.valn-tool-hub-router .input-text:focus {
  border-color: var(--blue-bright);
  background: rgba(43, 127, 255, 0.07);
}
.valn-tool.valn-tool-hub-router .input-text::placeholder { color: var(--gray-500); }

/* CTA stack */
.valn-tool.valn-tool-hub-router .cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* Inline back button */
.valn-tool.valn-tool-hub-router .btn-back-inline {
  background: transparent;
  border: none;
  color: var(--gray-400);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.15s ease;
}
.valn-tool.valn-tool-hub-router .btn-back-inline:hover { color: var(--white); }

/* Result headline + subline (different from .slide-question used by MPR/BAH) */
.valn-tool.valn-tool-hub-router .result-headline {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
  text-shadow: none;
}
.valn-tool.valn-tool-hub-router .result-headline em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 500;
}
.valn-tool.valn-tool-hub-router .result-subline {
  color: var(--gray-300);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 14px;
}

/* Destination card (first stop) */
.valn-tool.valn-tool-hub-router .destination-card {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.10) 0%, rgba(43, 127, 255, 0.06) 100%);
  border: 1.5px solid rgba(255, 184, 0, 0.30);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.valn-tool.valn-tool-hub-router .destination-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin-bottom: 4px;
}
.valn-tool.valn-tool-hub-router .destination-card-title {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.25;
}
.valn-tool.valn-tool-hub-router .destination-card-note {
  color: var(--gray-300);
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.valn-tool.valn-tool-hub-router .destination-tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.valn-tool.valn-tool-hub-router .destination-tool-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}
.valn-tool.valn-tool-hub-router .destination-tool-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-bright);
}

/* 3-step route cards */
.valn-tool.valn-tool-hub-router .route-section { margin-bottom: 14px; }
.valn-tool.valn-tool-hub-router .route-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.valn-tool.valn-tool-hub-router .route-cards { display: grid; gap: 7px; }
.valn-tool.valn-tool-hub-router .route-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 9px 13px;
  display: grid;
  gap: 2px;
}
.valn-tool.valn-tool-hub-router .route-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.valn-tool.valn-tool-hub-router .route-card-title strong { color: var(--gold-bright); }
.valn-tool.valn-tool-hub-router .route-card-note {
  font-size: 12px;
  color: var(--gray-300);
  line-height: 1.45;
}

/* Docs gather card */
.valn-tool.valn-tool-hub-router .docs-card {
  background: rgba(43, 127, 255, 0.06);
  border: 1px solid rgba(43, 127, 255, 0.18);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.valn-tool.valn-tool-hub-router .docs-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  margin-bottom: 6px;
}
.valn-tool.valn-tool-hub-router .docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.valn-tool.valn-tool-hub-router .docs-list li {
  padding-left: 22px;
  position: relative;
  font-size: 12.5px;
  color: var(--gray-300);
  line-height: 1.45;
}
.valn-tool.valn-tool-hub-router .docs-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-soft);
  font-weight: 700;
}
.valn-tool.valn-tool-hub-router .docs-list strong { color: var(--white); font-weight: 600; }

/* Hub-router contact form */
.valn-tool.valn-tool-hub-router .contact-form {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}
.valn-tool.valn-tool-hub-router .input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.valn-tool.valn-tool-hub-router .input-wrap { position: relative; }
.valn-tool.valn-tool-hub-router .input-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 4px;
  display: block;
}
.valn-tool.valn-tool-hub-router .input-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.valn-tool.valn-tool-hub-router .form-error {
  font-size: 12px;
  color: #FCA5A5;
  margin-top: 2px;
  min-height: 16px;
}

/* Hidden AEO reference */
.valn-tool.valn-tool-hub-router .valn-hub-reference {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile */
@media (max-width: 640px) {
  .valn-tool.valn-tool-hub-router .input-grid { grid-template-columns: 1fr; }
  .valn-tool.valn-tool-hub-router .input-row { grid-template-columns: 1fr; }
  .valn-tool.valn-tool-hub-router .slide-title { font-size: 21px; }
  .valn-tool.valn-tool-hub-router .result-headline { font-size: 19px; }
  .valn-tool.valn-tool-hub-router .destination-card-title { font-size: 16px; }
  .valn-tool.valn-tool-hub-router .header-row { flex-direction: column; align-items: flex-start; }
  .valn-tool.valn-tool-hub-router .progress-block { width: 100%; max-width: none; }
}
