/* SEEG Multi-Step Form Styles */
/* Daily Mentor inspired - one question per screen */

:root {
  --primary-dark: #0a0f1a;
  --secondary-dark: #111827;
  --gradient-start: #0f172a;
  --gradient-end: #1e1b4b;
  --card-bg: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-dark: #1f2937;
  --accent-teal: #14b8a6;
  --accent-teal-hover: #0d9488;
  --accent-yellow: #fbbf24;
  --accent-yellow-hover: #f59e0b;
  --border-color: #374151;
  --input-bg: rgba(255, 255, 255, 0.1);
  --input-border: rgba(255, 255, 255, 0.2);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 50%, var(--gradient-start) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Form Container */
.form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-height: 100vh;
}

/* Social Proof Header */
.social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gradient-start);
  margin-left: -10px;
  background: var(--border-color);
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gradient-start);
  margin-left: -10px;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.avatar-placeholder:first-child {
  margin-left: 0;
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.form-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* Progress Indicator */
.progress-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
}

.progress-step {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: var(--accent-yellow);
}

.progress-step.completed {
  background: var(--accent-teal);
}

/* Form Steps */
.form-steps {
  width: 100%;
  max-width: 480px;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

/* Question Styling */
.question-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.question-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

/* Form Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  background: rgba(255, 255, 255, 0.15);
}

/* Input Grid for credentials */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-grid .form-group.full-width {
  grid-column: span 2;
}

@media (max-width: 480px) {
  .input-grid {
    grid-template-columns: 1fr;
  }

  .input-grid .form-group.full-width {
    grid-column: span 1;
  }
}

/* Option Buttons */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  width: 100%;
  padding: 20px 24px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.option-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-teal);
}

.option-btn.selected {
  background: rgba(20, 184, 166, 0.2);
  border-color: var(--accent-teal);
}

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

.option-btn.selected .option-radio {
  border-color: var(--accent-teal);
  background: var(--accent-teal);
}

.option-btn.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.option-text {
  flex: 1;
}

.option-text .main {
  font-weight: 500;
}

.option-text .sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Commitment Box */
.commitment-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.commitment-box h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.commitment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.commitment-item:last-child {
  margin-bottom: 0;
}

.commitment-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.commitment-icon svg {
  width: 14px;
  height: 14px;
  color: white;
}

.commitment-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.commitment-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Continue Button */
.btn-continue {
  width: 100%;
  padding: 18px 24px;
  background: var(--accent-yellow);
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.btn-continue:hover {
  background: var(--accent-yellow-hover);
  transform: translateY(-1px);
}

.btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-continue svg {
  width: 20px;
  height: 20px;
}

/* Back Button */
.btn-back {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: var(--text-primary);
}

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

/* Calendar Placeholder */
.calendar-placeholder {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.calendar-placeholder h3 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.calendar-placeholder p {
  color: #6b7280;
  font-size: 0.875rem;
}

.calendar-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-teal-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.calendar-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-teal);
}

/* Add to Calendar Buttons */
.calendar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.calendar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-teal);
}

.calendar-btn img {
  width: 20px;
  height: 20px;
}

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-footer p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Logo in form */
.form-logo {
  text-align: center;
  margin-bottom: 32px;
}

.form-logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.form-logo span {
  color: var(--accent-teal);
}

/* Spinner animation for submit button */
.spinner {
  animation: spin 1s linear infinite;
}

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

.btn-continue:disabled .spinner {
  display: inline-block;
}

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

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

  .calendar-buttons {
    flex-direction: column;
  }
}
