/* =============================================
   Mutuelle Senior Leads — Styles formulaire
   ============================================= */

.msl-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  color: #1a1a1a;
  line-height: 1.5;
}

/* --- Barre de progression --- */
.msl-progress {
  position: relative;
  background: #e0e0e0;
  border-radius: 8px;
  height: 10px;
  margin-bottom: 28px;
  overflow: visible;
}

.msl-progress-bar {
  height: 100%;
  background: #0066cc;
  border-radius: 8px;
  transition: width 0.4s ease;
}

.msl-progress-label {
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 14px;
  color: #555;
  font-weight: 600;
}

/* --- Titre d'étape --- */
.msl-step-title {
  font-size: 22px;
  font-weight: 700;
  color: #0a3d6b;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0ecf8;
}

.msl-hint {
  font-size: 15px;
  color: #555;
  margin: -12px 0 20px;
}

/* --- Champ générique --- */
.msl-field {
  margin-bottom: 28px;
}

.msl-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 17px;
}

.msl-required {
  color: #cc0000;
  margin-left: 2px;
}

/* --- Champs texte --- */
.msl-input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  border: 2px solid #bbb;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: #fff;
  color: #1a1a1a;
}

.msl-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.18);
}

.msl-input.msl-invalid {
  border-color: #cc0000;
}

/* --- Groupes de boutons sélection --- */
.msl-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.msl-choice-btn {
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #0066cc;
  border-radius: 8px;
  background: #fff;
  color: #0066cc;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  min-width: 120px;
  text-align: center;
  line-height: 1.3;
}

.msl-choice-btn:hover {
  background: #e8f0fb;
}

.msl-choice-btn:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

.msl-choice-btn.msl-selected {
  background: #0066cc;
  color: #fff;
  transform: scale(1.03);
}

/* --- Cases à cocher --- */
.msl-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msl-checkbox-label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.18s, background 0.18s;
}

.msl-checkbox-label:hover {
  border-color: #0066cc;
  background: #f0f7ff;
}

.msl-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #0066cc;
  flex-shrink: 0;
}

.msl-checkbox-label:has(.msl-checkbox:checked) {
  border-color: #0066cc;
  background: #e8f0fb;
}

.msl-checkbox-text {
  font-size: 16px;
  font-weight: 500;
}

/* --- Consentement RGPD --- */
.msl-consent-field {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
}

.msl-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.msl-consent-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #0066cc;
}

.msl-consent-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.msl-consent-text a {
  color: #0066cc;
}

/* --- Navigation (Précédent / Suivant) --- */
.msl-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.msl-btn-next,
.msl-btn-prev,
.msl-btn-submit {
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}

.msl-btn-next,
.msl-btn-submit {
  background: #0066cc;
  color: #fff;
  margin-left: auto;
}

.msl-btn-next:hover,
.msl-btn-submit:hover {
  background: #0052a3;
  transform: translateY(-1px);
}

.msl-btn-prev {
  background: #e8e8e8;
  color: #333;
}

.msl-btn-prev:hover {
  background: #d0d0d0;
}

.msl-btn-submit {
  background: #cc5500;
}

.msl-btn-submit:hover {
  background: #aa4400;
}

.msl-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- Message d'erreur --- */
.msl-error {
  background: #fff0f0;
  border: 2px solid #cc0000;
  color: #aa0000;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 16px;
}

/* --- Message de succès --- */
.msl-success {
  text-align: center;
  padding: 40px 24px;
  background: #f0fff4;
  border: 2px solid #28a745;
  border-radius: 12px;
}

.msl-success-icon {
  width: 64px;
  height: 64px;
  background: #28a745;
  color: #fff;
  font-size: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
}

.msl-success h2 {
  font-size: 24px;
  color: #1a5c2a;
  margin-bottom: 12px;
}

.msl-success p {
  font-size: 17px;
  color: #333;
  margin-bottom: 10px;
}

.msl-link-retour {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
}

/* =============================================
   Responsive — Mobile first
   ============================================= */
@media (max-width: 600px) {
  .msl-step-title {
    font-size: 20px;
  }

  .msl-choice-btn {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .msl-btn-next,
  .msl-btn-submit {
    width: 100%;
  }

  .msl-btn-prev {
    width: auto;
  }

  .msl-nav {
    flex-direction: row;
  }
}
