/* Page /inscription-pro (b2bregistration) — adaptation mobile.
   Le thème (themes/warehouse/assets/css/custom.css) force .dixi_form_wrapper en grille de
   2 colonnes à toutes les largeurs (et se charge après ce fichier, d'où section.) : sur téléphone la page déborde à droite et les champs
   sont écrasés. On repasse sur une colonne en dessous de 768 px. */
section.dixi_form_wrapper > * { min-width: 0; }

@media (max-width: 767px) {
  section.dixi_form_wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* .col-md-12.row : la marge négative de .row fait déborder le bloc */
  section.dixi_form_wrapper .dixi_form-category > .row,
  section.dixi_form_wrapper .dixi_form-category > .col-md-12 {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  /* Ville / Code postal : colonnes Bootstrap imbriquées, on aligne sur les autres champs */
  section.dixi_form_wrapper .dixi_form-category .row { margin-left: 0; margin-right: 0; }
  section.dixi_form_wrapper .dixi_form-category .row > .form-group { padding-left: 0; padding-right: 0; }
  section.dixi_form_wrapper h3 { margin-top: 1.5rem; }
  /* Mot de passe : le champ prend la place, le bouton « Montrer » reste compact */
  section.dixi_form_wrapper .input-group { display: flex; flex-wrap: nowrap; }
  section.dixi_form_wrapper .input-group .form-control { flex: 1 1 auto; min-width: 0; width: auto; }
  section.dixi_form_wrapper .input-group-btn .btn { padding-left: .75rem; padding-right: .75rem; height: 100%; }
  section.dixi_form_wrapper button[type="submit"] { width: 100%; justify-content: center; }
}
