/*
 * artmodels.ca - Registration Wizard Styles
 * Multi-step form wizard with progress indicator
 */

/* ============================================
   WIZARD CUSTOM PROPERTIES
   ============================================ */

:root {
  /* Wizard dimensions */
  --wizard-step-size: 32px;
  --wizard-step-size-mobile: 28px;
  --wizard-line-height: 2px;
  --wizard-line-inset: 32px;
  --wizard-line-inset-mobile: 16px;
}

/* ============================================
   WIZARD CONTAINER
   ============================================ */

.wizard {
  position: relative;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */

.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  position: relative;
}

/* Progress line behind steps */
.wizard-progress::before {
  content: "";
  position: absolute;
  top: calc(var(--wizard-step-size) / 2);
  left: var(--wizard-line-inset);
  right: var(--wizard-line-inset);
  height: var(--wizard-line-height);
  background: var(--color-divider);
  z-index: 0;
}

/* Filled progress line */
.wizard-progress::after {
  content: "";
  position: absolute;
  top: calc(var(--wizard-step-size) / 2);
  left: var(--wizard-line-inset);
  height: var(--wizard-line-height);
  background: var(--color-terracotta);
  z-index: 1;
  transition: width var(--transition-base);
  width: 0;
}

.wizard-progress[data-step="1"]::after {
  width: 0;
}
.wizard-progress[data-step="2"]::after {
  width: 33.33%;
}
.wizard-progress[data-step="3"]::after {
  width: 66.66%;
}
.wizard-progress[data-step="4"]::after {
  width: 100%;
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  position: relative;
  z-index: 2;
  flex: 1;
}

.wizard-step-number {
  width: var(--wizard-step-size);
  height: var(--wizard-step-size);
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-light-gray);
  transition:
    border-color var(--transition-base),
    color var(--transition-base),
    background-color var(--transition-base);
}

.wizard-step-indicator.active .wizard-step-number,
.wizard-step-indicator.completed .wizard-step-number {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.wizard-step-indicator.completed .wizard-step-number {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.wizard-step-label {
  font-size: var(--text-caption);
  color: var(--color-light-gray);
  text-align: center;
  transition: color var(--transition-base);
}

.wizard-step-indicator.active .wizard-step-label,
.wizard-step-indicator.completed .wizard-step-label {
  color: var(--color-charcoal);
}

/* ============================================
   WIZARD STEPS
   ============================================ */

.wizard-steps {
  position: relative;
  overflow: hidden;
}

.wizard-step {
  display: none;
  animation: wizardFadeIn 0.3s ease-out;
}

.wizard-step.active {
  display: block;
}

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

/* Step header */
.wizard-step-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.wizard-step-title {
  font-family: var(--font-secondary);
  font-size: var(--text-h4);
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
}

.wizard-step-description {
  font-size: var(--text-body);
  color: var(--color-warm-gray);
}

/* ============================================
   WIZARD TIPS (Callout Boxes)
   ============================================ */

.wizard-tip {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid;
}

.wizard-tip__content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.wizard-tip__icon {
  min-width: 20px;
  margin-top: 2px;
}

.wizard-tip__text {
  font-size: var(--text-small);
  margin: 0;
  color: var(--color-charcoal);
}

/* Wizard Tip Color Variants */
.wizard-tip--sage {
  background: var(--color-sage-light);
  border-color: var(--color-sage);
}

.wizard-tip--sage .wizard-tip__icon {
  color: var(--color-sage-hover);
}

.wizard-tip--blue {
  background: var(--color-dusty-blue-light);
  border-color: var(--color-dusty-blue);
}

.wizard-tip--blue .wizard-tip__icon {
  color: var(--color-dusty-blue);
}

.wizard-tip--teal {
  background: var(--color-teal-light);
  border-color: var(--color-teal);
}

.wizard-tip--teal .wizard-tip__icon {
  color: var(--color-teal);
}

.wizard-tip--terracotta {
  background: var(--color-terracotta-light);
  border-color: var(--color-terracotta-light);
}

.wizard-tip--terracotta .wizard-tip__icon {
  color: var(--color-terracotta);
}

.wizard-tip--terracotta .wizard-tip__title {
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-terracotta-hover);
}

.wizard-tip--terracotta .wizard-tip__list {
  font-size: var(--text-small);
  padding-left: var(--space-md);
  margin-bottom: 0;
  color: var(--color-charcoal);
}

.wizard-tip--terracotta .wizard-tip__list li {
  margin-bottom: var(--space-xs);
}

.wizard-tip--terracotta .wizard-tip__list li:last-child {
  margin-bottom: 0;
}

/* ============================================
   ROLE SELECTION
   ============================================ */

.role-selection {
  padding: var(--space-md);
  background: rgba(var(--color-paper-rgb), 0.75);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
}

.role-selection .form-check {
  margin-bottom: var(--space-sm);
}

.role-selection .form-check:last-child {
  margin-bottom: 0;
}

.role-selection__label {
  font-weight: 500;
}

.role-selection__hint {
  font-weight: 400;
}

/* ============================================
   AUTH CALLOUT (Login/Register prompts)
   ============================================ */

.auth-callout {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(var(--color-paper-rgb), 0.75);
  border-radius: var(--radius-lg);
  text-align: center;
}

.auth-callout__text {
  margin-bottom: var(--space-md);
  color: var(--color-warm-gray);
}

/* ============================================
   WIZARD NAVIGATION
   ============================================ */

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-divider);
}

.wizard-nav-spacer {
  flex: 1;
}

.wizard-btn-prev {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.wizard-btn-prev svg {
  width: 16px;
  height: 16px;
}

.wizard-btn-next,
.wizard-btn-submit {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.wizard-btn-next svg,
.wizard-btn-submit svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
  .wizard-progress::before,
  .wizard-progress::after {
    left: var(--wizard-line-inset-mobile);
    right: var(--wizard-line-inset-mobile);
    top: calc(var(--wizard-step-size-mobile) / 2);
  }

  .wizard-step-label {
    display: none;
  }

  .wizard-step-number {
    width: var(--wizard-step-size-mobile);
    height: var(--wizard-step-size-mobile);
    font-size: var(--text-caption);
  }

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

  .wizard-nav .btn {
    width: 100%;
    justify-content: center;
  }

  .wizard-nav-spacer {
    display: none;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .wizard-step {
    animation: none;
  }

  .wizard-progress::after,
  .wizard-step-number,
  .wizard-step-label {
    transition: none;
  }
}
