/* ============================================================
   Sell Proposal — Wizard & Sell List Styles
   Spellbox Storm Theme
   ============================================================ */

/* ── Progress Bar ── */
.sp-progress { position: relative; padding: 0 20px; }
.sp-progress-track {
  height: 4px;
  background: rgba(98, 0, 234, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.sp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary, #6200EA), #aa00ff);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(170, 0, 255, 0.4);
}
.sp-progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: -12px;
  position: relative;
  z-index: 1;
}
.sp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sp-step-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.sp-step.active .sp-step-dot {
  background: var(--accent-primary, #6200EA);
  color: #fff;
  border-color: rgba(170, 0, 255, 0.3);
  box-shadow: 0 0 12px rgba(170, 0, 255, 0.4);
}
.sp-step.done .sp-step-dot {
  background: #198754;
  color: #fff;
  border-color: rgba(25, 135, 84, 0.3);
}
.sp-step-label {
  font-size: 10px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sp-step.active .sp-step-label { color: var(--accent-primary, #6200EA); font-weight: 600; }

/* ── Panels ── */
.sp-wizard-container { min-height: 300px; }

@keyframes spSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Type Cards (Step 1) ── */
.sp-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}
.sp-type-card:hover {
  border-color: var(--accent-primary, #6200EA);
  box-shadow: 0 4px 20px rgba(98, 0, 234, 0.12);
  transform: translateY(-2px);
}
.sp-type-card.selected {
  border-color: var(--accent-primary, #6200EA);
  background: rgba(98, 0, 234, 0.04);
  box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.15);
}
.sp-type-icon { font-size: 2.2rem; }
.sp-type-name { font-weight: 600; font-size: 0.9rem; }

/* ── Method Cards (Step 2) ── */
.sp-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  height: 100%;
  min-height: 200px;
}
.sp-method-card:hover {
  border-color: var(--accent-primary, #6200EA);
  box-shadow: 0 4px 20px rgba(98, 0, 234, 0.12);
  transform: translateY(-2px);
}
.sp-method-card.selected {
  border-color: var(--accent-primary, #6200EA);
  background: rgba(98, 0, 234, 0.04);
}
.sp-method-highlight { border-color: #198754; }
.sp-method-highlight:hover { border-color: #198754; box-shadow: 0 4px 20px rgba(25, 135, 84, 0.15); }
.sp-method-icon { font-size: 2rem; color: var(--accent-primary, #6200EA); }
.sp-method-name { font-weight: 600; }

/* ── Delivery Cards (Step 3) ── */
.sp-delivery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}
.sp-delivery-card:hover {
  border-color: var(--accent-primary, #6200EA);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(98, 0, 234, 0.12);
}
.sp-delivery-card.selected {
  border-color: var(--accent-primary, #6200EA);
  background: rgba(98, 0, 234, 0.04);
}
.sp-delivery-icon { font-size: 2rem; color: var(--accent-primary, #6200EA); }
.sp-delivery-name { font-weight: 600; }

/* ── Dropzone ── */
.sp-dropzone {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(248, 249, 250, 0.5);
}
.sp-dropzone:hover, .sp-dropzone-active {
  border-color: var(--accent-primary, #6200EA);
  background: rgba(98, 0, 234, 0.03);
}

/* ── Photo Grid ── */
.sp-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.sp-photo-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-photo-thumb.uploading {
  background: #f8f9fa;
}
.sp-photo-remove {
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  border: 2px solid #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.sp-photo-thumb:hover .sp-photo-remove { opacity: 1; }

/* ── Success Animation ── */
.sp-success-icon {
  animation: spBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes spBounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Responsive ── */
@media (max-width: 576px) {
  .sp-type-card, .sp-method-card, .sp-delivery-card { padding: 16px 12px; }
  .sp-type-icon, .sp-method-icon, .sp-delivery-icon { font-size: 1.5rem; }
  .sp-type-name, .sp-method-name, .sp-delivery-name { font-size: 0.8rem; }
  .sp-dropzone { padding: 20px; }
  .sp-photo-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}
