/*
 * Web onboarding wizard (email -> phone -> profile). Reuses auth.css's tokens and form
 * component classes (.auth-field, .auth-input-wrap, .auth-submit, .auth-links, .auth-hint,
 * #error_explanation) — this file only adds the wizard shell and step indicator.
 */

.onboarding-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 0;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ge-outline);
}

.onboarding-step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--ge-outline-variant);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

.onboarding-step.is-done { color: var(--ge-success); }
.onboarding-step.is-done .n { background: var(--ge-success-container); border-color: transparent; color: var(--ge-success); }

.onboarding-step.is-current { color: var(--ge-on-surface); }
.onboarding-step.is-current .n { background: var(--ge-primary); border-color: var(--ge-primary); color: #fff; }

.onboarding-step-divider {
  width: 2rem;
  height: 1px;
  background: var(--ge-outline-variant);
  align-self: center;
  margin-top: -1rem;
}

.onboarding-content {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.onboarding-content h1 {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 0.375rem;
}

.onboarding-content--wide { max-width: 40rem; }

.profile-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.profile-form fieldset.full { grid-template-columns: 1fr; }
.profile-form .field-2 { grid-column: span 2; }

@media (max-width: 560px) {
  .profile-form fieldset { grid-template-columns: 1fr; }
  .profile-form .field-2 { grid-column: span 1; }
}

.profile-form label {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ge-on-surface-variant);
  display: block;
  margin-bottom: 0.375rem;
}

.profile-form input[type="text"],
.profile-form input[type="date"],
.profile-form input[type="file"],
.profile-form select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--ge-outline-variant);
  border-radius: 0.25rem;
  background: var(--ge-surface);
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
}

.profile-form input:focus, .profile-form select:focus {
  outline: 2px solid var(--ge-primary);
  outline-offset: 1px;
  background: var(--ge-surface-container-lowest);
}

.person-type-choice {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.person-type-choice label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ge-outline-variant);
  border-radius: 0.5rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ge-on-surface);
}

.person-type-choice input:checked + span,
.person-type-choice label:has(input:checked) {
  border-color: var(--ge-primary);
  background: #f0f4f1;
}

.person-type-choice input:disabled ~ span { color: var(--ge-outline); }

.profile-section-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
  color: var(--ge-primary);
}

.onboarding-content .subtitle {
  font-size: 0.9375rem;
  color: var(--ge-on-surface-variant);
  margin: 0 0 1.75rem;
}

.agreement-card {
  border: 1px solid var(--ge-outline-variant);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.agreement-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.agreement-card-head h2 {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: var(--ge-on-surface);
}

.agreement-version {
  flex: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--ge-outline);
}

.agreement-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--ge-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 1rem;
}

.agreement-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ge-on-surface-variant);
  cursor: pointer;
}

.agreement-checkbox input { width: 1rem; height: 1rem; flex: none; }
