/* ==========================================================================
   SIMULADOR WEB INTERATIVO DE SEGURO AUTO - AVM & FRAN CORRETORA
   Design System: Minuto Seguros + Tô Segurado (Agger)
   Cores Oficiais: Azul Marinho (#0F172A / #1E3A8A) + Verde Conversão (#16A34A / #25D366)
   Mobile-First | Ultra Rápido | Alto Índice de Conversão (CRO)
   ========================================================================== */

:root {
  /* Paleta Primária */
  --color-primary-dark: #0f172a;
  --color-primary: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-primary-subtle: #eff6ff;
  
  /* Cores de Ação e Conversão */
  --color-accent: #16a34a;
  --color-accent-hover: #15803d;
  --color-accent-light: #dcfce7;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1ebc59;
  
  /* Neutros e Estruturais */
  --color-bg-page: #f8fafc;
  --color-bg-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-focus: #3b82f6;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  
  /* Estados e Alertas */
  --color-error: #ef4444;
  --color-error-bg: #fef2f2;
  --color-warning: #f59e0b;
  --color-success: #10b981;
  
  /* Sombras e Elevação */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 30px -5px rgba(15, 23, 42, 0.15);
  
  /* Raios de Borda */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Notification Bar */
.top-notice-bar {
  background: linear-gradient(90deg, #0b1329, #1e3a8a);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
}
.top-notice-bar .badge-susep {
  background-color: rgba(255, 255, 255, 0.18);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

/* Header */
.site-header {
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-tag {
  display: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-primary-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #bfdbfe;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-trust {
  display: none;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
  line-height: 1.25;
}
.header-trust strong {
  color: var(--color-accent);
  display: block;
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-whatsapp);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  transition: var(--transition-fast);
}
.btn-header-wa:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-1px);
}

/* Hero Section (Estética Sóbria e Institucional) */
.hero-section {
  background: linear-gradient(180deg, #0f172a 0%, #162a4d 100%);
  color: #ffffff;
  padding: 40px 18px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-pill .dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-title .highlight {
  color: #ffffff;
  border-bottom: 3px solid #22c55e;
  padding-bottom: 2px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}
.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.4);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-benefit-item span.icon {
  color: #4ade80;
  font-weight: bold;
}

/* Insurers Banner */
.insurers-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.insurers-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.insurers-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.insurers-tags-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

.insurer-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}
.insurer-badge:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.insurer-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
}

/* Main Container & Simulator Wizard */
.simulador-main {
  flex: 1;
  max-width: 840px;
  width: 100%;
  margin: -50px auto 40px;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.wizard-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

/* Wizard Header & Progress */
.wizard-header {
  background: #ffffff;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--color-border);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.step-count-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.step-percent-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step Indicators (Icons / Pills) */
.wizard-steps-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 8px;
}

.step-nav-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.45;
  transition: var(--transition-fast);
}
.step-nav-item.active {
  opacity: 1;
}
.step-nav-item.completed {
  opacity: 0.85;
}

.step-nav-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition-fast);
}
.step-nav-item.active .step-nav-circle {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}
.step-nav-item.completed .step-nav-circle {
  background: var(--color-accent);
  color: #ffffff;
}

.step-nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  display: none;
}
.step-nav-item.active .step-nav-label {
  color: var(--color-primary);
}

/* Step Body & Animation */
.wizard-body {
  padding: 28px 24px;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-intro {
  margin-bottom: 24px;
}
.step-intro h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-intro p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Form Groups & Controls */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}
.form-label .optional {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.form-input, .form-select {
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text-main);
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input.is-invalid, .form-select.is-invalid {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

.field-error-msg {
  font-size: 0.78rem;
  color: var(--color-error);
  display: none;
  margin-top: 2px;
  font-weight: 500;
}
.form-group.has-error .field-error-msg {
  display: block;
}

/* Specialized Inputs */
.plate-input-container {
  position: relative;
}

.plate-badge-input {
  text-transform: uppercase;
  font-family: 'Inter', monospace;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-align: center;
  background-color: #f8fafc;
  border: 2px solid #0f172a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
}
.plate-badge-input:focus {
  background-color: #ffffff;
  border-color: var(--color-primary-light);
}

/* Tabs: Placa vs Sem Placa */
.tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  gap: 4px;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tab-btn.active {
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

/* Cards de Seleção (Radio Cards) */
.options-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.options-cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.option-card-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}
.option-card-label:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.option-card-label input[type="radio"],
.option-card-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card-label.selected,
.option-card-label:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.15);
}

.card-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.option-card-label.selected .card-radio-indicator,
.option-card-label:has(input:checked) .card-radio-indicator {
  border-color: var(--color-primary);
  background: var(--color-primary);
}
.option-card-label.selected .card-radio-indicator::after,
.option-card-label:has(input:checked) .card-radio-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.card-content-wrap {
  flex: 1;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-description {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* FIPE Search & Results UI */
.fipe-search-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.fipe-results-wrapper {
  margin-top: 12px;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.fipe-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fipe-item:hover {
  background: var(--color-primary-subtle);
}
.fipe-item:last-child {
  border-bottom: none;
}
.fipe-item-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-main);
}
.fipe-item-brand {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.fipe-item-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-align: right;
}

.selected-vehicle-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 12px;
}
.selected-vehicle-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.selected-vehicle-info .icon-check {
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}
.selected-vehicle-text strong {
  display: block;
  font-size: 0.88rem;
  color: #065f46;
}
.selected-vehicle-text span {
  font-size: 0.78rem;
  color: #047857;
}

/* Feedback CEP Badge */
.cep-badge {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}
.cep-badge.show {
  display: flex;
}

/* Wizard Navigation / Footer */
.wizard-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.btn-nav-prev {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
}
.btn-nav-prev:hover {
  background: #f1f5f9;
  color: var(--color-text-main);
}

.btn-nav-next {
  flex: 1;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  min-height: 48px;
}
.btn-nav-next:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

.btn-nav-final {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

/* Card Alt Action (WhatsApp with Fran) */
.wizard-card-alt-action {
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}
.wizard-card-alt-action a {
  color: #047857;
  font-weight: 700;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wizard-card-alt-action a:hover {
  color: #065f46;
}

/* Processing Modal (Minuto Seguros Style) */
.processing-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.processing-modal-overlay.active {
  display: flex;
}

.processing-card {
  background: #ffffff;
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.scanner-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid var(--color-accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.processing-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.checklist-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #64748b;
  transition: color 0.3s ease;
}
.check-item.done {
  color: #065f46;
  font-weight: 700;
}
.check-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: bold;
}
.check-item.done .check-item-icon {
  background: #10b981;
  color: #ffffff;
}

/* Success Card */
.success-screen {
  display: none;
  text-align: center;
  padding: 36px 20px;
  animation: fadeIn 0.4s ease-in-out;
}
.success-screen.active {
  display: block;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15);
}

.success-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

.success-details-card {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  max-width: 500px;
  margin: 0 auto 28px;
  text-align: left;
}

.success-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.88rem;
}
.success-detail-row:last-child {
  border-bottom: none;
}
.success-detail-label {
  color: var(--color-text-muted);
}
.success-detail-value {
  font-weight: 700;
  color: var(--color-text-main);
}

.btn-success-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-whatsapp);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: var(--transition-fast);
  width: 100%;
  max-width: 480px;
}
.btn-success-wa:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Why AVM Section (Benefits) */
.benefits-section {
  padding: 60px 20px;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

.section-container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-badge {
  display: inline-block;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.benefit-card {
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-fast);
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.benefit-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.benefit-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.benefit-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Testimonials Section */
.testimonials-section {
  padding: 50px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.rating-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 10px;
}

.testimonial-quote {
  font-size: 0.9rem;
  color: var(--color-text-main);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.author-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-main);
}
.author-info p {
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

/* FAQ Section */
.faq-section {
  padding: 60px 20px;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}
.faq-item.open {
  border-color: var(--color-primary-light);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border: none;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-item.open .faq-question {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.faq-chevron {
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}
.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #94a3b8;
  padding: 50px 20px 24px;
  margin-top: auto;
  font-size: 0.84rem;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-brand p {
  line-height: 1.5;
  max-width: 380px;
}

.footer-links h4, .footer-contact h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1140px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  font-size: 0.78rem;
}

/* Floating WhatsApp Button */
.float-wa-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  background-color: var(--color-whatsapp);
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  font-size: 30px;
  transition: var(--transition-fast);
}
.float-wa-btn:hover {
  transform: scale(1.08);
  background-color: var(--color-whatsapp-hover);
}

.float-wa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 2px solid #ffffff;
}

/* Responsive Media Queries */
@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .options-cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .step-nav-label {
    display: block;
  }
}

@media (min-width: 768px) {
  .brand-tag {
    display: inline-block;
  }
  .header-trust {
    display: block;
  }
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-container {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   MISSÃO 4.1: REFINAMENTOS CIRÚRGICOS DE UX & CRO
   ========================================================================== */

/* Badges e Feedback da Consulta de Placa */
.plate-vehicle-badge {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}
.plate-vehicle-badge.show {
  display: flex;
}

.plate-feedback-msg {
  display: none;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  animation: fadeIn 0.25s ease;
}
.plate-feedback-msg.loading {
  display: block;
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}
.plate-feedback-msg.registered {
  display: block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}
.plate-feedback-msg.notfound {
  display: block;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Feedback do CPF */
.cpf-feedback-badge {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #065f46;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
  margin-top: 6px;
  width: fit-content;
}
.cpf-feedback-badge.show {
  display: inline-flex;
}

/* Badge de Campo Obrigatório */
.badge-required {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #fecaca;
  letter-spacing: 0.2px;
}

/* Card Resumo do Condutor Principal */
.condutor-resumo-card {
  display: none;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  animation: fadeIn 0.3s ease;
}
.condutor-resumo-card.show {
  display: block;
}
.condutor-resumo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.condutor-resumo-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 6px;
}
.condutor-resumo-text {
  font-size: 0.84rem;
  color: #15803d;
  line-height: 1.45;
}
.btn-edit-condutor {
  background: none;
  border: none;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 6px;
}
.btn-edit-condutor:hover {
  color: #052e16;
}

/* Bloco Expansível Discreto (Kit Gás e Blindagem no Passo 2) */
.especiais-collapsible-wrap {
  margin-top: 6px;
}

.btn-toggle-especiais {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.btn-toggle-especiais:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary-light);
}

.btn-toggle-especiais.open {
  background: var(--color-primary-subtle);
  border-style: solid;
  border-color: var(--color-primary-light);
}

.toggle-especiais-icon {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.especiais-collapsible-body {
  margin-top: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  animation: fadeIn 0.25s ease;
}



/* ── Seletor de Versão FIPE (Placa) ──────────────────────────────────────── */
.selected-vehicle-badge {
  flex-wrap: wrap;
  gap: 10px;
}

.btn-trocar-versao {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary, #0f3d5e);
  background: #ffffff;
  border: 1px solid rgba(15, 61, 94, 0.25);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-trocar-versao:hover {
  background: #f0f6fb;
  border-color: var(--color-primary, #0f3d5e);
}

.fipe-results-header {
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.fipe-item.fipe-item-atual {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
}

.fipe-badge-atual {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  border-radius: 4px;
  vertical-align: middle;
}

@media (max-width: 520px) {
  .btn-trocar-versao {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* ── Tela de Cálculo ao Vivo & Resultado Top 3 (Sóbrio / Alta Conversão) ── */
.live-box {
  width: 100%;
  text-align: center;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f0f6fb;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #0f3d5e;
  margin-bottom: 14px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

.live-progress-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 8px;
}

.live-progress-bar {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #0f3d5e, #16a34a);
  border-radius: 999px;
  transition: width 0.8s ease;
}

.live-stage-text {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 14px;
}

.live-insurers-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.live-insurers-chips span {
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 9px;
}

.btn-wa-secondary {
  background: #ffffff !important;
  color: #0f3d5e !important;
  border: 1.5px solid #0f3d5e !important;
  box-shadow: none !important;
}

.btn-wa-secondary:hover {
  background: #f0f6fb !important;
}

.results-header-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  margin-bottom: 10px;
}

.results-table-notice {
  font-size: 0.86rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0f3d5e;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  margin: 12px 0 20px;
  line-height: 1.45;
}

.top3-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  text-align: left;
}

.quote-result-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.quote-result-card.is-featured {
  border-color: #16a34a;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.09);
}

.quote-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #334155;
  margin-bottom: 6px;
}

.quote-result-card.is-featured .quote-card-tag {
  background: #dcfce7;
  color: #166534;
}

.quote-card-insurer {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.quote-card-price-main {
  font-size: 1.38rem;
  font-weight: 800;
  color: #0f3d5e;
  line-height: 1.2;
}

.quote-card-price-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.quote-card-meta {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-card-wa {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 12px;
  border-radius: 8px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-card-wa:hover {
  background: #15803d;
}

.more-insurers-banner {
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.more-insurers-text strong {
  display: block;
  font-size: 0.96rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.more-insurers-text span {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
}

.results-whatsapp-note {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 10px;
}

/* ── v4.7: Honeypot Anti-Spam, Aviso LGPD e Correções Mobile 375px/390px ── */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.lgpd-step-notice {
  font-size: 0.76rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 14px;
  line-height: 1.45;
}

.lgpd-step-notice a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 639px) {
  .wizard-footer-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .wizard-footer-nav .btn-nav-next,
  .wizard-footer-nav .btn-nav-prev {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .wizard-footer-nav .btn-nav-final {
    font-size: 0.96rem;
    padding: 14px 16px;
  }

  /* Evita sobreposição ao CTA de avançar no mobile (header sticky já possui CTA WhatsApp) */
  .float-wa-btn {
    display: none;
  }

  #wrap-garagem-trabalho {
    margin-left: 0 !important;
  }
}

.benefit-icon-box svg,
.btn-header-wa svg,
.float-wa-btn svg {
  flex-shrink: 0;
}

/* ── v4.9: Upgrade Visual Sóbrio & Fintech do Formulário ── */
.wizard-card {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.wizard-header {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 22px 24px 18px;
}

.progress-track {
  height: 6px;
  background: #e2e8f0;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 60%, #16a34a 100%);
}

.tab-switch {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px;
  border-radius: 12px;
}

.tab-btn {
  border-radius: 9px;
  color: #475569;
  padding: 11px 14px;
  font-size: 0.88rem;
}

.tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.form-input,
.form-select {
  height: 52px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus {
  background: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Placa com identidade visual Mercosul sóbria */
.plate-badge-input {
  height: 60px;
  background: #ffffff;
  border: 2px solid #1e293b;
  border-top: 8px solid #1e3a8a;
  border-radius: 10px;
  font-size: 1.5rem;
  letter-spacing: 3px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.plate-badge-input:focus {
  border-color: #1e3a8a;
  border-top-color: #1e3a8a;
}

.option-card-label {
  padding: 15px 16px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.option-card-label:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.option-card-label.selected,
.option-card-label:has(input:checked) {
  border-color: #1e3a8a;
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.btn-nav-next {
  min-height: 52px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-nav-prev {
  min-height: 52px;
  border-radius: 12px;
}

@media (max-width: 639px) {
  .wizard-header {
    padding: 18px 16px 14px;
  }
  .wizard-body {
    padding: 20px 16px;
  }
}
