/* Tourisme Assistance — Onboarding CSS v1.0.0 */

#ta-register-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 0 60px;
  font-family: 'DM Sans', -apple-system, sans-serif;
}

/* ── Étapes ── */
.ta-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  gap: 0;
}

.ta-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ta-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #1e2030;
  border: 2px solid #555a72;
  color: #555a72;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}

.ta-step.active .ta-step-num {
  background: #22d3a5;
  border-color: #22d3a5;
  color: #0f1117;
}

.ta-step.done .ta-step-num {
  background: rgba(34,211,165,0.2);
  border-color: #22d3a5;
  color: #22d3a5;
}

.ta-step-label {
  font-size: 11px;
  color: #555a72;
  font-weight: 500;
  white-space: nowrap;
}

.ta-step.active .ta-step-label { color: #22d3a5; }
.ta-step.done .ta-step-label { color: #22d3a5; }

.ta-step-line {
  flex: 1;
  height: 2px;
  background: #1e2030;
  min-width: 40px;
  margin: 0 4px;
  margin-bottom: 18px;
}

/* ── Carte formulaire ── */
.ta-form-card {
  background: #161820;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px;
}

.ta-form-header {
  text-align: center;
  margin-bottom: 24px;
}

.ta-form-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.ta-form-title {
  font-size: 20px;
  font-weight: 800;
  color: #e8eaf0;
  margin: 0 0 6px;
}

.ta-form-desc {
  font-size: 13px;
  color: #8b90a7;
  margin: 0;
}

/* ── Google btn ── */
.ta-google-btn {
  width: 100%;
  padding: 11px 16px;
  background: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.15s;
  font-family: inherit;
}

.ta-google-btn:hover { opacity: 0.9; }

/* ── Divider ── */
.ta-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #555a72;
  font-size: 12px;
}

.ta-divider::before,
.ta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ── Alert ── */
.ta-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.ta-alert-error { background: rgba(244,63,94,0.12); color: #f43f5e; border: 1px solid rgba(244,63,94,0.2); }
.ta-alert-success { background: rgba(34,211,165,0.12); color: #22d3a5; border: 1px solid rgba(34,211,165,0.2); }

/* ── Champs ── */
.ta-field { margin-bottom: 14px; }

.ta-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8b90a7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ta-input {
  width: 100%;
  background: #0f1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: #e8eaf0;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.ta-input:focus {
  outline: none;
  border-color: #22d3a5;
}

.ta-input::placeholder { color: #555a72; }

.ta-input option { background: #0f1117; }

.ta-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ta-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.5;
}

.ta-pwd-strength {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  min-height: 16px;
}

/* ── Types établissement ── */
.ta-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.ta-type-card {
  background: #0f1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 22px;
}

.ta-type-card span {
  font-size: 11px;
  color: #8b90a7;
  font-weight: 500;
}

.ta-type-card:hover {
  border-color: #22d3a5;
}

.ta-type-card.selected {
  background: rgba(34,211,165,0.1);
  border-color: #22d3a5;
}

.ta-type-card.selected span { color: #22d3a5; }

/* ── Checkbox ── */
.ta-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #8b90a7;
}

.ta-checkbox input { margin-top: 2px; accent-color: #22d3a5; }
.ta-checkbox a { color: #22d3a5; }

/* ── Boutons ── */
.ta-btn-primary {
  width: 100%;
  padding: 12px 20px;
  background: #22d3a5;
  border: none;
  border-radius: 8px;
  color: #0f1117;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
  text-align: center;
}

.ta-btn-primary:hover { background: #1ab98e; color: #0f1117; }
.ta-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.ta-btn-ghost {
  padding: 12px 20px;
  background: #1e2030;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #8b90a7;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.ta-btn-ghost:hover { color: #e8eaf0; }

/* ── Succès ── */
.ta-success-box {
  background: #1e2030;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ta-success-item {
  font-size: 13px;
  color: #8b90a7;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  #ta-register-wrap { padding: 16px; }
  .ta-form-card { padding: 20px 16px; }
  .ta-type-grid { grid-template-columns: repeat(3, 1fr); }
  .ta-field-row { grid-template-columns: 1fr; }
  .ta-step-label { display: none; }
}
