/* ═══════════════════════════════════════════════════════════════
   Exchange Wizard - Step-Based UI Styles
   ═══════════════════════════════════════════════════════════════ */

/* Progress Bar */
.ex-wizard-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 0;
}

.ex-wizard-step {
  display: flex;
  align-items: center;
  position: relative;
}

.ex-wizard-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 3px solid #e0e0e0;
  z-index: 2;
  flex-shrink: 0;
}

.ex-wizard-step.active .ex-wizard-step-circle {
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
}

.ex-wizard-step.completed .ex-wizard-step-circle {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

.ex-wizard-step-label {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 6px;
  font-weight: 500;
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.ex-wizard-step.active .ex-wizard-step-label {
  color: #007bff;
  font-weight: 700;
}

.ex-wizard-step.completed .ex-wizard-step-label {
  color: #28a745;
}

.ex-wizard-step-line {
  width: 40px;
  height: 3px;
  background: #e0e0e0;
  margin: 0 2px;
  transition: background 0.3s ease;
}

.ex-wizard-step-line.completed {
  background: #28a745;
}

/* Step Content Area */
.ex-wizard-body {
  padding: 20px;
  min-height: 300px;
}

.ex-step-panel,
.ref-step-panel {
  display: none;
  animation: exFadeIn 0.3s ease;
}

.ex-step-panel.active,
.ref-step-panel.active {
  display: block;
}

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

/* Footer Buttons */
.ex-wizard-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.ex-btn-back,
.ex-btn-next,
.ex-btn-submit {
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ex-btn-back {
  background: #e9ecef;
  color: #495057;
}

.ex-btn-back:hover {
  background: #dee2e6;
}

.ex-btn-next {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
}

.ex-btn-next:hover {
  background: linear-gradient(135deg, #0056b3, #003d80);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.ex-btn-submit {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: #fff;
}

.ex-btn-submit:hover {
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Product Cards */
.ex-product-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  background: #fff;
  transition: all 0.2s ease;
}

.ex-product-card.current {
  border-color: #007bff;
  background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
}

.ex-product-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f9fa;
}

/* Variant Selector Cards */
.ex-variant-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: #fff;
}

.ex-variant-card:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.ex-variant-card.selected {
  border-color: #007bff;
  background: linear-gradient(135deg, #e6f0ff, #cce0ff);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.ex-variant-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Price Difference Display */
.ex-price-diff {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.ex-price-diff.pay-extra {
  background: linear-gradient(135deg, #fff3cd, #ffeeba);
  color: #856404;
  border: 1px solid #ffc107;
}

.ex-price-diff.refund {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border: 1px solid #28a745;
}

.ex-price-diff.no-diff {
  background: linear-gradient(135deg, #d6d8db, #c6c8ca);
  color: #383d41;
  border: 1px solid #6c757d;
}

/* Reason Select Dropdown */
.ex-reason-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 14px;
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E")
    no-repeat right 15px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ex-reason-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Confirmation Summary */
.ex-summary-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.ex-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.ex-summary-row:last-child {
  border-bottom: none;
}

.ex-summary-label {
  font-weight: 600;
  color: #495057;
}

.ex-summary-value {
  color: #212529;
}

/* Eligibility Messages */
.ex-eligibility-msg {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
}

.ex-eligibility-msg.success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.ex-eligibility-msg.error {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
}

/* Pickup Slot */
.ex-slot-btn {
  padding: 8px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  margin: 4px;
}

.ex-slot-btn:hover {
  border-color: #007bff;
}

.ex-slot-btn.selected {
  border-color: #007bff;
  background: #007bff;
  color: #fff;
}

/* Loading Spinner */
.ex-loading {
  text-align: center;
  padding: 40px;
}

.ex-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
  .ex-wizard-progress {
    padding: 10px 5px;
  }
  .ex-wizard-step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .ex-wizard-step-line {
    width: 20px;
  }
  .ex-wizard-step-label {
    font-size: 9px;
  }
  .ex-wizard-body {
    padding: 10px;
  }
  .ex-product-card img {
    width: 60px;
    height: 60px;
  }
}
