/* ═══════════════════════ WIZARD ═══════════════════════ */
.wizard-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 3rem 4rem;
}
.wizard-page h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.wizard-page > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Progress Bar */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 3rem;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  position: relative;
}
.wizard-step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-left: 0.5rem;
  transition: background 0.5s ease;
}
.wizard-step.active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--indigo-light), var(--border));
}
.wizard-step.completed:not(:last-child)::after {
  background: var(--green);
}
.wizard-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.wizard-step.active .wizard-step-num {
  background: rgba(79, 70, 229, 0.06);
  border-color: var(--indigo-light);
  color: var(--indigo-light);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.15);
}
.wizard-step.completed .wizard-step-num {
  background: rgba(78, 203, 113, 0.15);
  border-color: var(--green);
  color: var(--green);
}
.wizard-step-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.wizard-step.active .wizard-step-label {
  color: var(--indigo-light);
  font-weight: 600;
}
.wizard-step.completed .wizard-step-label {
  color: var(--green);
}

/* Wizard Body */
.wizard-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}
.wizard-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.wizard-body > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Case Type Selector */
.case-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.case-type-option {
  padding: 1.2rem;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.case-type-option:hover {
  border-color: rgba(79, 70, 229, 0.25);
}
.case-type-option.selected {
  border-color: var(--indigo-light);
  background: rgba(79, 70, 229, 0.06);
}
.case-type-option input {
  display: none;
}
.case-type-emoji {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.case-type-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

/* Wizard Footer */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* File Upload */
.upload-zone {
  border: 2px dashed rgba(79, 70, 229, 0.25);
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(79, 70, 229, 0.02);
  margin-bottom: 1.5rem;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--indigo-light);
  background: rgba(79, 70, 229, 0.06);
}
.upload-zone-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.upload-zone h4 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.upload-zone p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.upload-zone input[type="file"] {
  display: none;
}

/* File List */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.file-icon {
  font-size: 1.5rem;
  min-width: 32px;
  text-align: center;
}
.file-info {
  flex: 1;
}
.file-name {
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.file-size {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.file-label-input {
  width: 180px;
  padding: 0.4rem 0.8rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
}
.file-label-input:focus {
  border-color: var(--indigo-light);
  outline: none;
}
.file-remove {
  background: none;
  border: none;
  color: var(--red-soft);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.3rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.file-remove:hover {
  opacity: 1;
}

/* Upload Progress */
.file-progress {
  height: 3px;
  background: var(--surface-alt);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.file-progress-bar {
  height: 100%;
  background: var(--indigo-light);
  border-radius: 3px;
  transition: width 0.3s;
}

/* Service Tier Banner */
.wizard-tier-banner {
  margin-top: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wizard-tier-banner.tier-supervised {
  background: rgba(78, 203, 113, 0.1);
  border: 1px solid rgba(78, 203, 113, 0.2);
  color: #4ecb71;
}
.wizard-tier-banner.tier-ai {
  background: rgba(99, 179, 237, 0.1);
  border: 1px solid rgba(99, 179, 237, 0.2);
  color: #63b3ed;
}
.wizard-tier-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .case-type-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .wizard-page { padding: 6rem 1.5rem 3rem; }
  .wizard-body { padding: 1.5rem; }
  .case-type-grid { grid-template-columns: repeat(2, 1fr); }
  .wizard-step-label { display: none; }
  .wizard-footer { flex-direction: column; gap: 1rem; }
  .wizard-footer .btn { width: 100%; justify-content: center; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { flex-direction: row; gap: 0.75rem; padding: 0.75rem; }
  .service-card-emoji { font-size: 1.5rem; }
}

/* ═══════════════════════ SERVICE SELECTION ═══════════════════════ */
.service-selection {
  margin-top: 1rem;
}
.service-category {
  margin-bottom: 2rem;
}
.service-category-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.service-category-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--surface-alt);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.service-card:hover {
  border-color: var(--indigo-light);
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-2px);
}
.service-card.selected {
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.06);
  box-shadow: 0 0 0 1px var(--gold);
}
.service-card-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.service-card-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.service-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
