.sbm-request-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
  font-family: inherit;
  box-sizing: border-box;
}
.sbm-request-form * { box-sizing: border-box; }

/* Progress */
.sbm-rf-progress { margin-bottom: 20px; }
.sbm-rf-progress-bar {
  height: 6px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}
.sbm-rf-progress-fill {
  height: 100%;
  background: #1a1a1a;
  transition: width .25s ease;
}
.sbm-rf-progress-label {
  margin: 8px 0 0;
  font-size: 13px;
  color: #666;
}

/* Question */
.sbm-rf-question h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}
.sbm-rf-subtitle {
  margin: 0 0 16px;
  color: #666;
  font-size: 14px;
}

/* Card choices (moteur, vis, dimension, mode...) */
.sbm-rf-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 480px) {
  .sbm-rf-cards { grid-template-columns: repeat(2, 1fr); }
}
.sbm-rf-card {
  padding: 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  min-height: 52px;
}
.sbm-rf-card.is-selected {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}
.sbm-rf-card-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 6px;
  opacity: .75;
}

/* Couleurs */
.sbm-rf-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.sbm-rf-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
}
.sbm-rf-swatch.is-selected { border-color: #1a1a1a; }
.sbm-rf-swatch-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: block;
}
.sbm-rf-swatch-label {
  font-size: 12px;
  text-align: center;
  color: #333;
}

/* Photo grid (cache pignon, cache allumage) */
.sbm-rf-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.sbm-rf-photo-card {
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.sbm-rf-photo-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}
.sbm-rf-photo-card-none {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #999;
  background: #f4f4f4;
  border-radius: 6px;
}
.sbm-rf-photo-card.is-selected { border-color: #1a1a1a; }
.sbm-rf-admin-debug {
  grid-column: 1 / -1;
  background: #fff8e1;
  border: 1px dashed #e0b400;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

/* Uploader */
.sbm-rf-uploader { margin: 14px 0; }
.sbm-rf-file-input {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 15px;
}
.sbm-rf-upload-status { font-size: 13px; color: #666; min-height: 18px; }
.sbm-rf-preview img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  display: block;
  margin-top: 8px;
  border: 1px solid #ddd;
}
.sbm-rf-remove-btn {
  margin-top: 6px;
  background: none;
  border: none;
  color: #b00020;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 0;
}

/* Fields */
.sbm-rf-field-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.sbm-rf-input, .sbm-rf-textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px; /* évite le zoom automatique iOS */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}
.sbm-rf-textarea { resize: vertical; }

/* Compte */
.sbm-rf-tabs { display: flex; gap: 8px; margin: 12px 0 16px; }
.sbm-rf-tab {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px;
}
.sbm-rf-tab.is-active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.sbm-rf-account-panel { display: flex; flex-direction: column; gap: 10px; }
.sbm-rf-account-msg { font-size: 13px; color: #b00020; min-height: 16px; }
.sbm-rf-btn-secondary {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

/* Recap */
.sbm-rf-recap { list-style: none; margin: 12px 0 0; padding: 0; }
.sbm-rf-recap li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* Nav */
.sbm-rf-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.sbm-rf-btn {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
  min-height: 48px; /* cible tactile confortable */
}
.sbm-rf-btn-prev {
  background: #fff;
  color: #1a1a1a;
}
.sbm-rf-btn:disabled { opacity: .6; cursor: default; }

/* Erreur */
.sbm-rf-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fdeaea;
  color: #b00020;
  border-radius: 8px;
  font-size: 14px;
}

/* Success */
.sbm-rf-success { text-align: center; padding: 24px 0; }
.sbm-rf-success h3 { font-size: 22px; margin-bottom: 8px; }

/* Mobile refinements */
@media (max-width: 420px) {
  .sbm-rf-question h3 { font-size: 18px; }
  .sbm-rf-nav { flex-direction: row; }
  .sbm-rf-btn { font-size: 15px; padding: 13px; }
}
