/* ── Reset scope ── */
.diag-wrap *, .diag-wrap *::before, .diag-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Wrapper ── */
.diag-wrap {
  width: 100%;
  max-width: 620px;
  font-family: 'Inter', sans-serif;
}

/* ── Step indicator ── */
.diag-steps {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  gap: 0;
}
.diag-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.diag-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.35);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.diag-step-label {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
  transition: color 0.3s;
}
.diag-step-item.active .diag-step-circle {
  background: linear-gradient(135deg, #AD2184, #5C1890);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(173,33,132,0.5);
}
.diag-step-item.active .diag-step-label {
  color: rgba(255,255,255,0.80);
}
.diag-step-item.done .diag-step-circle {
  background: rgba(61,220,132,0.15);
  border-color: rgba(61,220,132,0.35);
  color: #3DDC84;
}
.diag-step-item.done .diag-step-label { color: #3DDC84; }
.diag-step-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 0 12px;
  margin-bottom: 18px;
}

/* ── Page ── */
.diag-page { animation: diagFadeIn 0.3s ease; }
.diag-page.hidden { display: none !important; }
@keyframes diagFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.diag-page-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── Champs ── */
.diag-field { margin-bottom: 22px; }
.diag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 560px) { .diag-row { grid-template-columns: 1fr; } }

.diag-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 9px;
}
.diag-opt {
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  font-size: 12px;
}
.diag-req { color: #F4A0CC; }

.diag-input, .diag-select, .diag-textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.diag-input:focus, .diag-select:focus, .diag-textarea:focus {
  border-color: rgba(173,33,132,0.65);
  box-shadow: 0 0 0 3px rgba(173,33,132,0.12);
}
.diag-input::placeholder, .diag-textarea::placeholder {
  color: rgba(255,255,255,0.28);
}
.diag-textarea { resize: vertical; min-height: 90px; }
.diag-wrap .diag-textarea { color: #fff !important; }

/* Select custom arrow */
.diag-select-wrap { position: relative; }
.diag-select {
  cursor: pointer;
  padding-right: 40px;
  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='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.diag-select option { background: #160D25; color: #fff; }

/* ── Radio cards (choix multiple) ── */
.diag-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) { .diag-cards { grid-template-columns: 1fr; } }


.diag-card {
  padding: 14px 16px;
  background: rgba(173,33,132,0.05);
  border: 1px solid rgba(173,33,132,0.18);
  border-radius: 12px;
  color: rgba(255,255,255,0.68);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, color 0.2s;
  user-select: none;
}
.diag-card:hover {
  border-color: rgba(173,33,132,0.45);
  background: rgba(173,33,132,0.09);
  color: #fff;
  transform: translateY(-1px);
}
.diag-card.selected {
  border-color: #AD2184;
  background: rgba(173,33,132,0.15);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(173,33,132,0.35);
}

/* ── Erreurs ── */
.diag-err {
  display: none;
  margin-top: 5px;
  font-size: 12px;
  color: #F4A0CC;
}
.diag-err.show { display: block; }
.diag-input.has-err, .diag-select.has-err { border-color: #F4A0CC !important; }
.diag-phone-row { display: flex; gap: 8px; }
.diag-select-indicatif {
  width: 110px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 13px 10px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none; cursor: pointer;
  transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
}
.diag-select-indicatif:focus { border-color: rgba(92,110,255,0.6); }
.diag-select-indicatif option { background: #0F0F1E; color: #fff; }

/* ── Boutons ── */
.diag-btn-next, .diag-btn-submit {
  width: 100%;
  padding: 15px 28px;
  background: linear-gradient(135deg, #AD2184, #5C1890);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.2s;
}
.diag-btn-next:hover, .diag-btn-submit:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
.diag-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.diag-btn-row { display: flex; gap: 12px; margin-top: 8px; }
.diag-btn-row .diag-btn-submit { flex: 1; margin-top: 0; }
.diag-btn-back {
  padding: 14px 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: rgba(255,255,255,0.50);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.diag-btn-back:hover {
  border-color: rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.80);
}

/* ── Succès ── */
.diag-success {
  text-align: center;
  padding: 48px 24px;
  animation: diagFadeIn 0.4s ease;
}
.diag-success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(61,220,132,0.12);
  border: 1px solid rgba(61,220,132,0.3);
  color: #3DDC84;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.diag-success h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}
.diag-success p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}