/*

 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.logo {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 30px;
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-bottom: 15px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  transition: width 0.5s ease;
}

/* Step indicators */
.steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-dot.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: scale(1.1);
}

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

/* Form container */
.form-container {
  position: relative;
  min-height: 250px;
  padding-top: 10px;
}

.step {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: all 0.4s ease;
}

.step.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.greeting {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 5px;
}

.greeting .user-name-display {
  color: #667eea;
  font-weight: 600;
}

.step h2 {
  font-size: 24px;
  color: #1e293b;
  margin-bottom: 10px;
  text-align: center;
}

.step .subtitle {
  color: #64748b;
  text-align: center;
  margin-bottom: 25px;
  font-size: 14px;
}

/* Input styles */
.input-group {
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
  color: #94a3b8;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(102, 126, 234, 0.5);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4);
}

.btn.choice:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn.link:focus {
  outline: none;
  text-decoration: underline;
}

/* Choice buttons */
.button-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn.choice {
  flex: 1;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  color: #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

.btn.choice:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.btn.choice .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

/* Link buttons */
.btn.link {
  background: none;
  color: #667eea;
  font-size: 14px;
  padding: 10px;
  width: auto;
  display: inline-block;
}

.btn.link:hover {
  text-decoration: underline;
}

.resend-options {
  text-align: center;
  margin-top: 20px;
}

/* Success state */
.success-icon {
  width: 80px;
  height: 80px;
  background: #10b981;
  border-radius: 50%;
  color: white;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Error message */
.error-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #ef4444;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
}

.error-message.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Success message */
.success-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
}

.success-message.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Back button */
.btn.back {
  position: absolute;
  top: -50px;
  left: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn.back:hover,
.btn.back:focus {
  background: #e2e8f0;
  color: #475569;
  outline: none;
}

.btn.back:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Data link */
.data-link {
  display: block;
  text-align: center;
  margin-top: 30px;
  color: #94a3b8;
  font-size: 12px;
  text-decoration: none;
}

.data-link:hover {
  color: #667eea;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .container {
    padding: 30px 20px;
  }

  .step h2 {
    font-size: 20px;
  }

  .button-group {
    flex-direction: column;
  }
}
