/* Onboarding multi-step form — matches LocalIQ theme */

.onboarding-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.onboarding-header {
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 32px; height: 32px;
  background: var(--amber);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 13px; color: white;
}

.logo-name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--near-black); }
.logo-name span { color: var(--amber); }

.onboarding-body {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 40px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.form-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--near-black);
  margin-bottom: 8px;
}

.form-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-section { display: none; }
.form-section.active { display: block; }

.field-group { margin-bottom: 20px; }

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 6px;
}

.field-label .required { color: var(--amber); margin-left: 2px; }

.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.field-textarea { resize: vertical; min-height: 80px; }

.field-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6860' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.social-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.social-toggle:hover { border-color: var(--teal); }
.social-toggle.active { border-color: var(--teal); background: var(--teal-light); }
.social-toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal); }
.social-toggle label { font-size: 14px; font-weight: 500; cursor: pointer; flex: 1; }
.social-toggle .handle { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.social-handle-input { display: none; }
.social-handle-input.show { display: block; }

.error-msg {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 12px 16px;
  color: #DC2626;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.error-msg.visible { display: block; }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-primary { background: var(--near-black); color: white; }
.btn-primary:hover { background: #1a1a1a; }
.btn-primary:disabled { background: var(--border); cursor: not-allowed; }

#step-success { display: none; text-align: center; }
#step-success.active { display: block; }

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

.success-icon svg { width: 32px; height: 32px; stroke: var(--teal); }

.success-h { font-family: 'Fraunces', serif; font-size: 32px; color: var(--near-black); margin-bottom: 12px; }
.success-p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 32px; }

.dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--near-black);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.dashboard-link:hover { background: #1a1a1a; }

@media (max-width: 600px) {
  .onboarding-body { padding: 32px 20px; }
  .form-card { padding: 24px 20px; }
  .fields-row { grid-template-columns: 1fr; }
}