/* Persona Type Selection */
.persona-type-selection {
  margin-bottom: 2rem;
}

.persona-type-options {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.persona-type-option {
  display: flex;
  width: 100%;
  padding: 1.25rem;
  gap: 1rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.persona-type-option:hover {
  background-color: #f9fafb;
}

.persona-type-option.active {
  border-color: #4f6df5;
  background-color: rgba(79, 109, 245, 0.05);
}

.option-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #f3f4f6;
  border-radius: 24px;
}

.persona-type-option.active .option-icon {
  background-color: #4f6df5;
  color: white;
}

.option-content h4 {
  margin: 0 0 0.5rem 0;
  color: #111827;
}

.option-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 64px;
  right: 64px;
  height: 2px;
  background-color: #e5e7eb;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background-color: white;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.step.active .step-number {
  background-color: #4f6df5;
  border-color: #4f6df5;
  color: white;
}

.step.completed .step-number {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.step-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.step.active .step-label, .step.completed .step-label {
  color: #111827;
}

/* Step Content */
.step-content {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Advanced form elements */
.avatar-selector, .tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.avatar-option {
  text-align: center;
  cursor: pointer;
}

.avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  margin-bottom: 0.5rem;
  border: 2px solid transparent;
}

.avatar-option.selected .avatar-preview {
  border-color: #4f6df5;
}

.avatar-option span {
  font-size: 0.875rem;
  color: #6b7280;
}

.tag-option {
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
}

.tag-option.selected {
  background-color: #4f6df5;
  color: white;
}

.personality-slider {
  flex: 1;
}

.suggested-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.topic-pill {
  padding: 0.25rem 0.75rem;
  background-color: #f3f4f6;
  border-radius: 16px;
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
}

.topic-pill:hover {
  background-color: #e5e7eb;
}

.platform-selection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.platform-card {
  display: flex;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.platform-card:hover {
  background-color: #f9fafb;
}

.platform-card.selected {
  border-color: #4f6df5;
  background-color: rgba(79, 109, 245, 0.05);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #f3f4f6;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
}

.platform-card.selected .platform-icon {
  background-color: #4f6df5;
  color: white;
}

.platform-details h4 {
  margin: 0 0 0.25rem 0;
  color: #111827;
  font-size: 1rem;
}

.platform-details p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Form validation */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ef4444;
}

.form-group .error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* Multi-select styles */
select[multiple] {
  min-height: 100px;
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
  cursor: help;
}

.tooltip .tooltip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #374151;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
  font-weight: normal;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Loading state */
.btn.loading {
  position: relative;
  color: transparent !important;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  animation: spin 0.8s infinite linear;
}

.btn.secondary.loading::after {
  border: 2px solid rgba(79, 109, 245, 0.3);
  border-top-color: #4f6df5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .persona-type-options {
    flex-direction: column;
  }
  
  .progress-steps::before {
    left: 16px;
    right: 16px;
  }
  
  .platform-selection {
    grid-template-columns: 1fr;
  }
}