/* ============================================
   ATODOCAR — Sell Wizard Styles
   vender.html
   ============================================ */

.wizard-page {
  padding: calc(var(--nav-height) + 40px) 0 80px;
  background: var(--bg-base);
  min-height: 100vh;
}

.wizard-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ─── STEPPER HEADER ─── */
.wizard-header {
  text-align: center;
  margin-bottom: 40px;
}

.wizard-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.wizard-title span { color: var(--primary); }

.wizard-subtitle {
  font-size: 15px;
  color: var(--text-sub);
}

.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg-hover);
  z-index: 0;
}
.stepper-progress {
  position: absolute;
  top: 15px;
  left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 1;
  transition: width 0.4s ease;
  width: 0%;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  text-align: center;
}

.step-item.active .step-circle {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
}
.step-item.active .step-label {
  color: var(--text-primary);
}

.step-item.completed .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-base);
}
.step-item.completed .step-label {
  color: var(--primary);
}

/* ─── STEP PANELS ─── */
.step-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  animation: fadeSlideDown 0.4s ease;
}
.step-panel.active { display: block; }

.panel-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.panel-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

/* ─── DRAG & DROP ZONE ─── */
.upload-zone {
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  text-align: center;
  background: rgba(0, 212, 255, 0.02);
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 20px;
}
.upload-zone:hover, .upload-zone.dragover {
  background: var(--primary-glow);
  border-color: var(--primary);
}
.upload-icon {
  font-size: 40px;
  margin-bottom: 16px;
  color: var(--primary);
  opacity: 0.8;
}
.upload-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.upload-hint {
  font-size: 13px;
  color: var(--text-muted);
}
.file-input { display: none; }

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.photo-preview {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  cursor: pointer;
}
.photo-remove:hover { background: var(--danger); }

/* ─── FORMS ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group.full { grid-column: 1 / -1; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%239CA3AF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 10px auto;
}

/* ─── AI BLOCK ─── */
.ai-block {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(0,212,255,0.05));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ai-icon {
  font-size: 24px;
  animation: pulse 2s infinite;
}
.ai-content h4 {
  font-size: 15px;
  color: #818CF8;
  margin-bottom: 4px;
}
.ai-content p {
  font-size: 13px;
  color: var(--text-sub);
}

/* ─── WIZARD FOOTER ─── */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-secondary {
  padding: 12px 24px;
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── REVIEW PREVIEW ─── */
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--bg-base);
  margin-bottom: 20px;
}
.review-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.review-img {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.review-info h3 { font-size: 18px; margin-bottom: 4px; }
.review-info p { font-size: 14px; color: var(--text-sub); }
.review-price { font-size: 24px; font-weight: 800; color: var(--primary); margin-top: 8px;}

/* ─── EXTRAS SELECTOR ─── */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.extra-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.extra-toggle:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}
.extra-toggle input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.extra-toggle.active {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--primary);
  color: var(--text-primary);
}
.custom-extra-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ─── REVIEW STEP ENHANCEMENTS ─── */
.review-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 16px;
}
.review-box-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-desc-content {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  white-space: pre-wrap;
}
.review-extras-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.review-extra-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-primary);
}


/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .wizard-title { font-size: 24px; }
  .step-panel { padding: 24px; }
  .photo-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
