/* AI Auto Advisor — reuses variables/tokens from style.css, adds only what this page needs. */

.advisor-hero {
  text-align: center;
  padding: 90px 0 70px;
}
.advisor-hero .eyebrow { justify-content: center; }
.advisor-hero h1 { margin-bottom: 16px; }
.advisor-hero p.lead { margin: 0 auto 34px; }
.advisor-hero .hero-actions { justify-content: center; }

/* Wizard shell */
.wizard-shell {
  max-width: 720px;
  margin: -40px auto 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 41, 0.06);
  padding: 44px 40px 36px;
  position: relative;
  z-index: 5;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.wizard-progress-bar {
  flex-grow: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-700), var(--sky-400));
  border-radius: 999px;
  transition: width 0.35s ease;
  width: 12.5%;
}
.wizard-progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-600);
  white-space: nowrap;
}

.wizard-step { display: none; animation: wizard-fade 0.3s ease; }
.wizard-step.active { display: block; }

@keyframes wizard-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-question {
  font-family: "Georgia", serif;
  font-size: 1.5rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.wizard-hint {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.option-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-100);
  background: var(--off-white);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option-pill:hover { border-color: var(--sky-400); }
.option-pill.selected {
  border-color: var(--navy-700);
  background: var(--navy-700);
  color: #fff;
}
.option-pill .flag { font-size: 1.3rem; }

.wizard-custom-input { margin-top: 16px; display: none; }
.wizard-custom-input.visible { display: block; }
.wizard-custom-input input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-100);
  font-family: inherit;
  font-size: 1rem;
}
.wizard-custom-input input:focus { outline: none; border-color: var(--navy-700); }

.wizard-textarea {
  width: 100%;
  min-height: 150px;
  padding: 16px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-100);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}
.wizard-textarea:focus { outline: none; border-color: var(--navy-700); }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.wizard-nav .btn-back {
  background: transparent;
  color: var(--gray-600);
  padding: 13px 10px;
}
.wizard-nav .btn-back:hover { color: var(--navy-900); }
.wizard-nav .btn-back.hidden { visibility: hidden; }

/* Loading screen */
.loading-shell {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}
.loading-shell h2 { margin-bottom: 32px; }
.loading-checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: left;
  max-width: 360px;
}
.loading-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--gray-400);
  font-size: 0.98rem;
  transition: color 0.3s ease;
}
.loading-checklist li .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.loading-checklist li.active { color: var(--navy-900); font-weight: 600; }
.loading-checklist li.active .check { border-color: var(--sky-400); }
.loading-checklist li.done { color: var(--navy-900); }
.loading-checklist li.done .check {
  border-color: var(--navy-700);
  background: var(--navy-700);
  color: #fff;
}

/* Results */
.results-shell { display: none; }
.results-shell.active { display: block; }

.why-box {
  max-width: 820px;
  margin: 0 auto 48px;
  background: var(--gray-100);
  border-left: 3px solid var(--navy-700);
  border-radius: 8px;
  padding: 24px 28px;
}
.why-box h3 { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 10px; }
.why-box p { color: var(--text-body); margin-bottom: 0; }

.result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.result-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 41, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.result-card-image {
  height: 170px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.result-card-image img { width: 100%; height: 100%; object-fit: cover; }

.result-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }

.result-card-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.result-card-source.us { background: rgba(226, 0, 26, 0.1); color: var(--us-red); }
.result-card-source.cn { background: rgba(27, 107, 107, 0.12); color: var(--cn-teal); }

.result-card h3 { margin-bottom: 2px; font-size: 1.15rem; }
.result-card .version { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 12px; }
.result-card .price { font-family: "Georgia", serif; font-size: 1.5rem; color: var(--navy-900); margin-bottom: 4px; }
.result-card .price span { font-size: 0.85rem; font-weight: 400; color: var(--gray-600); font-family: inherit; }
.result-card .specs { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 16px; }

.result-card .why-this {
  background: var(--off-white);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 18px;
  flex-grow: 1;
}
.result-card .why-this strong { display: block; color: var(--navy-900); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }

.result-card .btn { width: 100%; }

.no-results {
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 48px 32px;
}

/* Comparison table */
.compare-wrap { overflow-x: auto; margin-bottom: 20px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
}
.compare-table th { color: var(--gray-600); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.compare-table td.vehicle-name { font-weight: 600; color: var(--navy-900); }

/* WhatsApp CTA */
.whatsapp-band {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.whatsapp-band h3 { margin-bottom: 6px; }
.whatsapp-band p { color: var(--gray-600); margin-bottom: 18px; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }

/* Lead form */
.lead-shell { display: none; }
.lead-shell.active { display: block; }
.lead-success { display: none; text-align: center; padding: 40px; }
.lead-success.active { display: block; }

/* Fallback */
.fallback-box {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 41, 0.06);
}
.fallback-box .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

@media (max-width: 960px) {
  .result-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wizard-shell { margin-top: -24px; padding: 32px 22px 28px; }
  .option-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .wizard-nav { flex-direction: row; }
}
