/* ========== Registration Wizard Styles ========== */

.wizard-body {
  background: var(--color-bg-light);
  min-height: 100vh;
  padding-top: 72px;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
}

/* Progress Bar */
.wizard-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: #fff;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.wizard-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.4s ease;
  z-index: 2;
}

.wizard-progress-info {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: calc(100% - 4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.wizard-progress-step {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.wizard-progress-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Wizard Container */
.wizard-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 120px;
}

/* Step panels */
.wizard-step {
  display: none;
  animation: fadeInUp 0.35s ease;
}

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

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

/* Header */
.wizard-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wizard-step-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(30, 80, 190, 0.08);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.wizard-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-bg-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.wizard-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
}

.wizard-notice {
  margin: -0.75rem 0 1.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(30, 80, 190, 0.18);
  border-radius: 8px;
  background: rgba(30, 80, 190, 0.06);
  color: var(--color-primary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.wizard-notice[hidden] {
  display: none;
}

.wizard-notice-error {
  border-color: rgba(231, 76, 60, 0.22);
  background: rgba(231, 76, 60, 0.06);
  color: #c0392b;
}

/* Form */
.wizard-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.wizard-form .form-group {
  margin-bottom: 1.5rem;
}

.wizard-form .form-group:last-child {
  margin-bottom: 0;
}

.wizard-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-bg-dark);
  margin-bottom: 0.5rem;
}

.wizard-form input[type="text"],
.wizard-form input[type="tel"],
.wizard-form input[type="email"] {
  width: 100%;
  padding: 1rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  transition: var(--transition);
}

.wizard-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(90, 230, 248, 0.1);
}

.wizard-form input::placeholder {
  color: var(--color-text-muted);
}

.wizard-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Field errors */
.field-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #e74c3c;
}

/* Option cards */
.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
}

.wizard-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

.wizard-option:hover {
  border-color: var(--color-accent);
}

.wizard-option.selected {
  border-color: var(--color-primary);
  background: rgba(30, 80, 190, 0.04);
}

.check-indicator {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wizard-options-multi .check-indicator {
  border-radius: 6px;
}

.wizard-option.selected .check-indicator {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.wizard-options-multi .wizard-option.selected .check-indicator::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.wizard-options-single .wizard-option.selected .check-indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

.wizard-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wizard-option-text strong {
  font-weight: 600;
  color: var(--color-bg-dark);
}

.wizard-option-text span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Checkbox list */
.wizard-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.wizard-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
}

.wizard-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wizard-checkbox-indicator {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wizard-checkbox input:checked + .wizard-checkbox-indicator {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.wizard-checkbox input:checked + .wizard-checkbox-indicator::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.wizard-checkbox-text {
  line-height: 1.5;
  padding-top: 1px;
}

/* Actions */
.wizard-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.wizard-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wizard-btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 80, 190, 0.25);
}

.wizard-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 80, 190, 0.35);
}

.wizard-btn-back {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.wizard-btn-back:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.wizard-btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.wizard-btn-outline:hover {
  background: rgba(30, 80, 190, 0.04);
}

.wizard-form.wizard-form-sso {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.sso-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.sso-divider::before,
.sso-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.wizard-btn-sso {
  width: 100%;
  flex: none;
  background: #fff;
  color: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  gap: 0.5rem;
}

.wizard-btn-sso:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 80, 190, 0.1);
}

.sso-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Success page */
.wizard-success {
  text-align: center;
  padding: 2rem 0;
}

.wizard-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
}

.wizard-success-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-bg-dark);
  margin-bottom: 1rem;
}

.wizard-success-text {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.wizard-success-next {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.wizard-success-next p {
  font-weight: 600;
  color: var(--color-bg-dark);
  margin-bottom: 0.75rem;
}

.wizard-success-next ul {
  list-style: none;
  color: var(--color-text-light);
}

.wizard-success-next li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.wizard-success-next li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.wizard-success-hackathon {
  background: rgba(30, 80, 190, 0.04);
  border: 1px solid rgba(30, 80, 190, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
}

.wizard-success-hackathon a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wizard-success-hackathon a:hover {
  color: var(--color-secondary);
}

.wizard-success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile-first adjustments */
@media (max-width: 768px) {
  .wizard-body {
    padding-top: 64px;
  }

  .wizard-progress {
    height: 64px;
  }

  .wizard-progress-info {
    padding: 0 16px;
  }

  .wizard-container {
    padding: 24px 16px 100px;
  }

  .wizard-title {
    font-size: 1.5rem;
  }

  .wizard-subtitle {
    font-size: 0.95rem;
  }

  .wizard-form {
    padding: 1.5rem;
  }

  .wizard-form .form-row {
    grid-template-columns: 1fr;
  }

  .wizard-option {
    padding: 1rem;
  }

  .wizard-option-text span {
    font-size: 0.8rem;
  }

  .wizard-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 12px 16px;
    margin: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 100;
  }

  .wizard-btn {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .wizard-success {
    padding: 1rem 0 4rem;
  }

  .wizard-success-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .wizard-success-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .wizard-title {
    font-size: 1.35rem;
  }

  .wizard-step-badge {
    font-size: 0.75rem;
  }

  .wizard-progress-step,
  .wizard-progress-label {
    font-size: 0.8rem;
  }

  .wizard-option-text strong {
    font-size: 0.95rem;
  }
}

/* Utility */
.required {
  color: #e74c3c;
  margin-left: 0.25rem;
}

.wizard-option:focus-visible,
.wizard-btn:focus-visible,
.wizard-form input:focus-visible,
.wizard-checkbox:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
