
:root{
  /* Homepage-aligned palette */
  --vms-bg1: #0f66c7;
  --vms-bg2: #0b56b2;
  --vms-card: rgba(255,255,255,.10);
  --vms-card2: rgba(255,255,255,.14);
  --vms-border: rgba(255,255,255,.22);
  --vms-text: rgba(255,255,255,.96);
  --vms-muted: rgba(255,255,255,.82);

  --vms-cta: #6fb23a;       /* green button */
  --vms-cta-dark: #5a942e;

  --vms-good: #66d17a;
  --vms-warn: #ffcf5a;
  --vms-bad: #ff6b86;

  --vms-shadow: 0 10px 28px rgba(0,0,0,.22);
  --vms-radius: 16px;
  --vms-radius-sm: 12px;
  --vms-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.vms-wrap{
  font-family: var(--vms-font);
  color: var(--vms-text);
  background: linear-gradient(180deg, var(--vms-bg1), var(--vms-bg2));
  padding: 34px;
  border-radius: var(--vms-radius);
  box-shadow: var(--vms-shadow);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.vms-hero{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:18px;
}

.vms-title{ margin:0; font-size: 46px; line-height: 1.06; letter-spacing: .2px; font-weight: 800; }
.vms-subtitle{ margin:0; color: var(--vms-muted); max-width: 80ch; line-height: 1.5; font-size: 16px; }

@media (max-width: 620px){
  .vms-title{ font-size: 34px; }
  .vms-wrap{ padding: 22px; }
}

.vms-trust{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  font-size: 13px;
  color: var(--vms-muted);
}
.vms-trust span{
  background: rgba(255,255,255,.08);
  border: 1px solid var(--vms-border);
  padding: 8px 10px;
  border-radius: 999px;
}

.vms-root{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--vms-border);
  border-radius: var(--vms-radius);
  padding: 18px;
}

.vms-loading{ color: var(--vms-muted); }

.vms-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 860px){
  .vms-grid.two{
    /* Give the main content more breathing room while keeping the sidebar readable */
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
    align-items:start;
  }
}

.vms-card{
  background: var(--vms-card);
  border: 1px solid var(--vms-border);
  border-radius: var(--vms-radius);
  padding: 16px;
}

.vms-card h3{
  margin:0 0 10px 0;
  font-size: 16px;
}
.vms-card p{
  margin:0;
  color: var(--vms-muted);
  line-height: 1.45;
}

.vms-progress{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--vms-border);
  overflow:hidden;
}
.vms-progress > div{
  height: 100%;
  background: rgba(255,255,255,.85);
  width: 0%;
  transition: width .25s ease;
}

.vms-section-title{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom: 10px;
}
.vms-section-title .meta{
  color: var(--vms-muted);
  font-size: 12px;
}

.vms-question{
  border: 1px solid var(--vms-border);
  background: rgba(255,255,255,.08);
  border-radius: var(--vms-radius-sm);
  padding: 14px;
}
.vms-question + .vms-question{ margin-top: 10px; }

.vms-qtext{
  font-size: 26px;
  margin:0 0 10px 0;
  color: var(--vms-text);
  line-height: 1.35;
}

.vms-choices{
  display:grid;
  gap: 10px;
}

/* UX: options are always stacked (single column) */
.vms-choices{
  grid-template-columns: 1fr;
}

/* Segment filter bar (always at top) */
.vms-segmentbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--vms-border);
}
.vms-segmentbar .label{
  font-size: 13px;
  font-weight: 700;
  color: var(--vms-muted);
}
.vms-segmentbar .controls{
  display:flex;
  gap: 10px;
  align-items:center;
}
.vms-segmentbar .controls .vms-input{
  min-width: 260px;
}

.vms-choice{
  display:flex;
  align-items:center;
  gap:8px;
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--vms-border);
  border-radius: 10px;
  cursor:pointer;
  user-select:none;
  background: rgba(255,255,255,.10);
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  font-size: 18px;
  color: rgba(255,255,255,.92);
}
.vms-choice:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.14);
}
.vms-choice input{ accent-color: var(--vms-cta); }
.vms-choice.selected{
  color: var(--vms-text);
  border-color: rgba(111,178,58,.95);
  background: rgba(111,178,58,.22);
}

.vms-actions{
  display:flex;
  gap:10px;
  justify-content:space-between;
  margin-top: 14px;
}

.vms-btn{
  border: 1px solid var(--vms-border);
  background: rgba(255,255,255,.10);
  color: var(--vms-text);
  padding: 12px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 600;
}
.vms-btn.primary{
  background: var(--vms-cta);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
}
.vms-btn:disabled{
  opacity: .45;
  cursor:not-allowed;
}
.vms-btn:hover:not(:disabled){
  filter: brightness(1.02);
}

.vms-kpi{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.vms-kpi .pill{
  border: 1px solid var(--vms-border);
  background: rgba(255,255,255,.04);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--vms-muted);
}

/* Lead capture + form controls */
.vms-form{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.vms-input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--vms-border);
  background: rgba(255,255,255,.05);
  color: var(--vms-text);
  outline: none;
}
.vms-input::placeholder{ color: rgba(255,255,255,.55); }
.vms-input:focus{
  border-color: rgba(110,231,255,.55);
  box-shadow: 0 0 0 3px rgba(110,231,255,.12);
}

.vms-check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-size: 13px;
  color: var(--vms-muted);
  line-height: 1.35;
}
.vms-check input{
  margin-top: 3px;
  accent-color: var(--vms-cta);
}

.vms-callout{
  border: 1px solid var(--vms-border);
  background: rgba(255,255,255,.04);
  border-radius: var(--vms-radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--vms-text);
}
.vms-callout.warn{
  border-color: rgba(251,191,36,.55);
  background: rgba(251,191,36,.10);
}
.vms-callout.ok{
  border-color: rgba(52,211,153,.55);
  background: rgba(52,211,153,.10);
}

.vms-muted-small{
  margin: 6px 0 0 0;
  color: var(--vms-muted);
  font-size: 12px;
}

.vms-results{
  display:grid;
  gap: 14px;
}

@media (min-width: 640px){
  .vms-results{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px){
  .vms-results{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.vms-result{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid var(--vms-border);
  border-radius: var(--vms-radius);
  padding: 14px;
}
.vms-result .toprow{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
}
.vms-result h3{
  margin:0;
}
.vms-segment{
  margin-top: 4px;
  color: var(--vms-muted);
  font-size: 13px;
}

.vms-score{
  text-align:right;
  min-width: 120px;
}
.vms-score .big{
  font-size: 22px;
  font-weight: 800;
}
.vms-score .small{
  color: var(--vms-muted);
  font-size: 12px;
}
.vms-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--vms-border);
  overflow:hidden;
  margin-top: 6px;
}
.vms-bar > div{
  height: 100%;
  background: linear-gradient(90deg, var(--vms-good), var(--vms-cta));
  width: 0%;
}

.vms-reasons{
  margin-top: 10px;
  display:grid;
  gap: 10px;
}

.vms-reasons.why-not{
  border-top: 1px solid var(--vms-border);
  padding-top: 10px;
  margin-top: 12px;
}
.vms-reasons.why-not h3{
  color: #ffffff;
}
.vms-reasons ul{
  margin: 0;
  padding-left: 18px;
  color: var(--vms-muted);
}
.vms-reasons li{ margin: 6px 0; line-height: 1.35; }

.vms-mini{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.vms-mini span{
  font-size: 12px;
  color: var(--vms-muted);
  border: 1px solid var(--vms-border);
  background: rgba(255,255,255,.03);
  padding: 6px 8px;
  border-radius: 999px;
}

.vms-result-link-wrap{
  margin-top: 12px;
}

.vms-result-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

a.vms-result-link,

a.vms-result-link:visited{
  color: var(--vms-text);
}

.vms-footer-note{
  margin-top: 14px;
  color: var(--vms-muted);
  font-size: 12px;
  line-height: 1.4;
}


/* Fix dropdown option visibility across browsers + aggressive theme overrides */
.vms-wrap select,
.vms-wrap select option,
.vms-wrap select optgroup{
  background: #ffffff !important;
  color: #0b1b33 !important;
}
.vms-root select.vms-input{
  background: #ffffff !important;
  color: #0b1b33 !important;
  -webkit-text-fill-color: #0b1b33 !important;
  appearance: auto;
}

/* --- Filter pills (legacy; kept for older builds) --- */
.vms-filter-block{ margin-top:10px; }
.vms-pill-row{ display:flex; flex-wrap:wrap; gap:8px; }
.vms-pill-btn{
  border: 1px solid #d1d9e6;
  background: #ffffff;
  color: #0b1b33;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.vms-pill-btn:hover{ border-color:#aebbd1; }
.vms-pill-btn.active{
  border-color:#0b1b33;
  box-shadow: inset 0 0 0 1px #0b1b33;
}

/* --- Vehicle images in results --- */
.vms-head{ display:flex; align-items:center; gap:12px; }
.vms-head-text h3{
  margin:0;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: .2px;
}
.vms-result .vms-reasons h3{
  font-size: 16px;
  font-weight: 800;
}
.vms-vehicle-img{
  width: 130px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dfe7f2;
  background:#ffffff;
}
/* Never show placeholder images */
.vms-vehicle-img.is-placeholder{ display:none; }

@media (max-width: 620px){
  .vms-vehicle-img{ width: 112px; height: 72px; }
}


.vms-current-grid{
  display:grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 10px;
}

@media (max-width: 760px){
  .vms-current-grid{
    grid-template-columns: 1fr;
  }
}


.vms-result .vms-reasons.why-not h3{color:#fff !important;}
.vms-head-text h3{font-size:30px;line-height:1.08;}


.vms-utility-row{
  display:flex;
  justify-content:flex-end;
  margin-bottom: 10px;
}

.vms-btn.preview{
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.1;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
}

.vms-btn.preview:hover:not(:disabled){
  background: rgba(255,255,255,.12);
}

.vms-version-badge{
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9999;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(11,27,51,.92);
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .02em;
  pointer-events: none;
}

@media (max-width: 640px){
  .vms-version-badge{
    left: 8px;
    bottom: 8px;
    font-size: 10px;
  }
}


.vms-status-wrap{
  display:grid;
  gap:8px;
  margin-bottom:14px;
}

.vms-status-label{
  color: var(--vms-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.vms-intro{
  display:grid;
  gap:16px;
}

.vms-intro h3{
  margin:0;
  font-size: 32px;
  line-height: 1.12;
}

.vms-intro-text{
  margin:0;
  color: var(--vms-muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 74ch;
}

.vms-intro-grid{
  display:grid;
  gap:12px;
}

@media (min-width: 900px){
  .vms-intro-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.vms-intro-note{
  margin-top:8px;
  color: var(--vms-muted);
  font-size: 14px;
  line-height: 1.45;
}

.vms-field-label{
  font-size: 20px;
  line-height: 1.35;
  color: var(--vms-text);
  margin-bottom: 8px;
}


.vms-qcopy{
  display:grid;
  gap:10px;
}

.vms-qexample{
  margin:0;
  padding: 10px 0 0 14px;
  border-left: 3px solid rgba(255,255,255,.20);
  color: var(--vms-muted);
  font-size: 15px;
  line-height: 1.55;
}

.vms-answer-intro{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--vms-border);
  color: var(--vms-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.vms-question .vms-input{
  margin-top: 16px;
}

.vms-choices{
  margin-top: 14px;
}

.vms-result-head{ display:flex; align-items:center; gap:12px; }
