/* ============================================================
   register-doctor.css — page /register/doctor
   Préfixe .rd-* propre à cette page, .rp-* tokens partagés
   Zéro collision avec custom.css / style.css
   ============================================================ */

.rd-page *, .rd-page *::before, .rd-page *::after { box-sizing: border-box; }

/* ---------- Page wrapper ---------- */
.rd-page {
  background: #f0f0f0;
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ---------- Card arrondie avec shadow ---------- */
.rd-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: 100%;
  max-width: 1100px;
  min-height: 600px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
}

/* ===== DROITE — Brand panel (order: 2) ===== */
.rd-brand-panel {
  order: 2;
  background: linear-gradient(160deg, #a03863 0%, #6e1f44 100%);
  color: #fff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.rd-brand-logo { display: block; margin-bottom: 24px; }
.rd-brand-logo img { height: 38px; display: block; }

.rd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  width: fit-content;
  margin-bottom: 28px;
}
.rd-badge .fa { font-size: 10px; }

.rd-brand-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rd-brand-title {
  font-family: 'lane_-_narrowregular', Oswald, 'Open Sans', sans-serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 14px;
}
.rd-brand-lead {
  font-size: 16px;
  line-height: 1.67;
  color: rgba(255,255,255,.8);
  margin: 0 0 28px;
}
.rd-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rd-brand-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rd-feat-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rd-feat-icon .fa { color: #fff; font-size: 17px; }
.rd-brand-features li > div {
  font-size: 15px;
  line-height: 1.52;
  color: rgba(255,255,255,.82);
  min-width: 0;
}
.rd-brand-features li > div strong {
  display: block;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 15px;
}
.rd-feat-desc {
  display: block;
}

/* Stats bar */
.rd-stats {
  display: flex;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 20px;
  margin-top: 24px;
}
.rd-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.rd-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-top: 3px;
}

/* ===== GAUCHE — Form panel (order: 1) ===== */
.rd-form-panel {
  order: 1;
  background: #fff;
  padding: 32px 48px 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.rd-form-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.rd-already {
  font-size: 14px;
  color: #979797;
}
.rd-already a {
  color: #a03863;
  font-weight: 700;
  text-decoration: none;
}
.rd-already a:hover { text-decoration: underline; }

.rd-form-head { margin-bottom: 20px; }
.rd-form-head h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1b2734;
  margin: 0 0 4px;
  line-height: 1.2;
}
.rd-muted { color: #979797; font-size: 12px; margin: 0; }

/* Flash messages */
.rd-flash-area { margin-bottom: 12px; }
.rd-flash-area .alert { font-size: 13px; }

/* ---------- Onglets pills ---------- */
.rd-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
/* Override .custom-btn dans ce contexte */
.rd-tabs .custom-btn {
  background: #fff;
  border: 1.5px solid #d8c4ce;
  color: #872f57;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  outline: none;
  box-shadow: none;
  /* Reset AdminLTE/Bootstrap custom-btn overrides */
  border-radius: 999px !important;
  margin: 0;
}
.rd-tabs .custom-btn .fa { font-size: 11px; }
.rd-tabs .custom-btn:hover { border-color: #a03863; background: #fff; color: #872f57; }
.rd-tabs .custom-btn.active {
  background: #a03863 !important;
  border-color: #a03863 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(160,56,99,.28) !important;
}

/* ---------- Recaptcha ---------- */
.rd-recaptcha-wrap { margin-bottom: 20px; }

/* ---------- Champs génériques ---------- */
.rd-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  max-width: 560px;
}
.rd-field-full { grid-column: 1 / -1; }

.rp-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}
.rp-req { color: #dd4b39; }

.rd-page .rp-input,
.rd-page .rp-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  color: #414141;
  border: 1px solid #d2d6de;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  /* Reset Bootstrap form-control styles */
  box-shadow: none;
  -webkit-appearance: auto;
  appearance: auto;
}
.rd-page .rp-input::placeholder { color: #bdbdbd; }
.rd-page .rp-input:focus,
.rd-page .rp-select:focus {
  border-color: #a03863;
  box-shadow: 0 0 0 3px rgba(160,56,99,.12);
  outline: none;
}

/* Téléphone */
.rp-phone-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.rp-phone-row .rp-input { flex: 1; }
.rp-phone-cc {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  height: 44px;
  background: #f5f5f5;
  border: 1px solid #d2d6de;
  border-radius: 8px;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  min-width: 72px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Le JS existant met à jour .js-phone-indic avec l'indicatif */
.rp-phone-cc .js-phone-indic {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}
.rp-phone-cc .js-phone-flag { width: 18px; height: 18px; border-radius: 2px; flex-shrink: 0; }

.rp-help {
  color: #979797;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 0;
}
.rp-help .fa { color: #a03863; margin-top: 2px; flex-shrink: 0; }

/* Champ nom établissement avec icône */
.rd-input-wrap { position: relative; }
.rd-input-wrap .fa-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #b58aa0;
  font-size: 14px;
  pointer-events: none;
}
.rd-input-wrap .rp-input { padding-left: 38px; }

/* Encart info établissement */
.rd-context {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdf3f7;
  border: 1px solid #f0d9e4;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  max-width: 560px;
}
.rd-context .fa {
  color: #a03863;
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}
.rd-context p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6e4257;
}

/* Diviseur */
.rd-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 18px 0;
  max-width: 560px;
}

/* Œil mot de passe */
.rd-pw-wrap { position: relative; }
.rd-pw-wrap .rp-input { padding-right: 40px; }
.rd-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #979797;
  font-size: 14px;
  line-height: 1;
}
.rd-pw-toggle:hover { color: #a03863; }


/* Erreurs Symfony */
.rd-form-error {
  color: #dd4b39;
  font-size: 11px;
  margin-top: 4px;
}
.rd-form-error ul { margin: 0; padding-left: 16px; }

/* CGU + submit */
.rd-actions {
  margin-top: 20px;
  max-width: 560px;
}
.rp-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #414141;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 16px;
}
.rp-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #a03863;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.rp-check a { color: #a03863; font-weight: 600; }

.rd-page .rp-btn-primary {
  display: block;
  width: auto;
  min-width: 180px;
  background: #a03863;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 13px 32px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s ease;
  text-align: center;
  line-height: 1.4;
  margin: 0 auto;
}
.rd-page .rp-btn-primary:hover { background: #872f57; }

.rd-recaptcha-notice {
  text-align: center;
  font-size: 11px;
  color: #979797;
  margin-top: 10px;
}
.rd-recaptcha-notice a { color: #a03863; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .rd-grid { grid-template-columns: 1fr; }
  .rd-brand-panel { order: 2; padding: 28px 24px; min-height: auto; }
  .rd-form-panel { order: 1; padding: 28px 24px; }
  .rd-stats { display: none; }
}
@media (max-width: 712px) {
  .rd-fields { grid-template-columns: 1fr; }
  .rd-tabs { width: 100%; flex-wrap: nowrap; gap: 5px; }
  .rd-tabs .custom-btn { flex: 1; min-width: 0; padding: 7px 4px; font-size: 11px; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rd-tabs .custom-btn .fa { display: none; }
  .rd-form-panel { padding: 20px 16px; }
}

/* ============================================================
   Modal activation praticien — 3 étapes
   ============================================================ */
.rp-activation-modal .modal-dialog {
  max-width: 420px;
  margin: 60px auto;
}
.rp-activation-modal .modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  padding: 0;
  background: #fff;
}
.rp-activation-modal .message-content-wrapper { padding: 0; }

/* Label d'étape */
.rd-modal-step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #888;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 18px 0;
  background: #fff;
}

/* Header générique (étape 2 — violet/wine) */
.rp-modal-hdr {
  background: linear-gradient(135deg, #a03863 0%, #6e1f44 100%);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}
.rp-modal-hdr .fa { margin-right: 6px; font-size: 15px; }

/* Variante verte — étape 1 "Inscription réussie" */
.rp-modal-hdr--success {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

/* Variante vert foncé — étape 3 "Compte activé" */
.rp-modal-hdr--activated {
  background: linear-gradient(135deg, #1a6e30 0%, #145228 100%);
}

/* Bouton fermeture */
.rp-modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  font-family: inherit;
}
.rp-modal-close:hover { color: #fff; }

/* Corps */
.rp-modal-body { padding: 18px 20px 22px; }

/* Bloc référence praticien */
.rp-modal-ref-box {
  background: #fdf3f7;
  border: 1px solid rgba(160,56,99,.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.rp-modal-ref-label {
  font-size: 11px;
  font-weight: 700;
  color: #a03863;
  margin: 0 0 3px;
}
.rp-modal-ref-label .fa { margin-right: 4px; }
.rp-modal-ref-num {
  font-size: 14px;
  font-weight: 700;
  color: #1b2734;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  letter-spacing: .04em;
  margin: 0 0 3px;
  word-break: break-all;
}
.rp-modal-ref-hint {
  font-size: 11px;
  color: #a03863;
  margin: 0;
  line-height: 1.4;
}

/* Texte explicatif */
.rp-modal-text {
  font-size: 13px;
  color: #414141;
  line-height: 1.55;
  margin: 0 0 14px;
}
.rp-modal-text strong { color: #1b2734; }

/* Bouton SMS / action principale */
.rp-modal-sms-btn {
  display: block;
  width: 100%;
  background: #a03863;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
  letter-spacing: .03em;
  text-decoration: none;
}
.rp-modal-sms-btn .fa { margin-right: 8px; }
.rp-modal-sms-btn:hover { background: #872f57; color: #fff; text-decoration: none; }

/* Saisie code (étape 2) */
.rp-modal-code-form { margin-bottom: 10px; }
.rp-modal-code-row { display: flex; gap: 8px; }
.rp-modal-code-row .rp-input { flex: 1; min-width: 0; letter-spacing: .08em; font-size: 15px; }
.rp-modal-code-row .rp-btn-primary { white-space: nowrap; flex-shrink: 0; }

/* Lien renvoyer */
.rp-modal-resend { font-size: 12px; color: #979797; margin: 8px 0 0; }
.rp-modal-resend a { color: #a03863; font-weight: 600; cursor: pointer; text-decoration: none; }
.rp-modal-resend a:hover { text-decoration: underline; }
.rp-modal-resend .fa { margin-right: 3px; }

/* Input partagé dans le modal */
.rp-modal-body .rp-input {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  background: #fff;
  color: #1b2734;
}
.rp-modal-body .rp-input:focus { border-color: #a03863; }
.rp-modal-body .rp-btn-primary {
  background: #a03863;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.rp-modal-body .rp-btn-primary:hover { background: #872f57; }

