/* ===================================================
   Lighting Wizard — Interactive lighting selection tool
   =================================================== */

/* --- Wizard section --- */
.lighting-wizard {
  position: relative;
  z-index: 2;
  padding: var(--space-10) 0;
}

/* --- Progress bar --- */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-8);
  padding: 0 var(--space-4);
}

.wizard-progress__step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.wizard-progress__step--active,
.wizard-progress__step--done {
  opacity: 1;
}

.wizard-progress__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(140, 123, 99, 0.1);
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.wizard-progress__step--active .wizard-progress__number {
  background: var(--color-primary);
  color: var(--color-gray-50);
}

.wizard-progress__step--done .wizard-progress__number {
  background: rgba(140, 123, 99, 0.25);
  color: var(--color-primary);
}

.wizard-progress__label {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-900);
}

.wizard-progress__line {
  flex: 0 0 40px;
  height: 1px;
  background: rgba(28, 26, 21, 0.12);
  margin: 0 var(--space-3);
}

/* --- Wizard steps --- */
.wizard-step__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--color-gray-900);
  text-align: center;
  margin-bottom: var(--space-6);
}

.wizard-step__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.wizard-step__grid--4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
}

.wizard-step__grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 700px;
}

/* --- Wizard cards (extend service-feature-card) --- */
.wizard-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.wizard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28, 26, 21, 0.1);
}

.wizard-card--selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary), 0 8px 24px rgba(140, 123, 99, 0.15);
  transform: translateY(-2px);
}

/* --- Back button --- */
.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid rgba(28, 26, 21, 0.15);
  border-radius: 60px;
  color: var(--color-gray-500);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.wizard-back:hover {
  background: rgba(28, 26, 21, 0.04);
  color: var(--color-gray-900);
}

.wizard-back svg {
  flex-shrink: 0;
}

/* --- Result section --- */
.wizard-result {
  position: relative;
  z-index: 2;
  padding: var(--space-10) 0;
}

.wizard-result__card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(28, 26, 21, 0.07);
  border-radius: 24px;
  padding: var(--space-8);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(28, 26, 21, 0.06);
}

.wizard-result__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(28, 26, 21, 0.07);
}

.wizard-result__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(140, 123, 99, 0.1);
  color: var(--color-primary);
}

.wizard-result__icon svg {
  width: 24px;
  height: 24px;
}

.wizard-result__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: var(--color-gray-900);
}

.wizard-result__summary {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-4);
}

.wizard-result__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.wizard-result__detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(28, 26, 21, 0.05);
}

.wizard-result__label {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  font-weight: 400;
}

.wizard-result__value {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-gray-900);
  font-weight: 500;
}

.wizard-result__tips {
  margin-bottom: var(--space-6);
}

.wizard-result__tips h4 {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
}

.wizard-result__tips ul {
  list-style: none;
  padding: 0;
}

.wizard-result__tips li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: 1.6;
}

.wizard-result__tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

.wizard-result__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* --- Mobile responsive --- */
@media (max-width: 767px) {
  .wizard-progress__label {
    display: none;
  }

  .wizard-progress__line {
    flex: 0 0 24px;
    margin: 0 var(--space-2);
  }

  .wizard-step__grid,
  .wizard-step__grid--4,
  .wizard-step__grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .wizard-result__card {
    padding: var(--space-5);
  }

  .wizard-result__detail {
    flex-direction: column;
    gap: var(--space-1);
  }

  .wizard-result__actions {
    flex-direction: column;
  }

  .wizard-result__actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wizard-step__grid,
  .wizard-step__grid--4,
  .wizard-step__grid--3 {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}
