/* Notification clairement distincte de la description de champ URM. */
.kalisterre-candidat-username-preview:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  clear: both;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 1px solid #93c5fd;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1.5;
}
.kalisterre-candidat-username-preview[data-state="changed"] {
  border-color: #fdba74;
  border-left-color: #c2410c;
  background: #fff7ed;
  color: #9a3412;
}
.kalisterre-candidat-username-preview[data-state="error"] {
  border-color: #fca5a5;
  border-left-color: #b91c1c;
  background: #fef2f2;
  color: #991b1b;
}
.kalisterre-candidat-username-preview[data-state="checking"] {
  border-color: #cbd5e1;
  border-left-color: #64748b;
  background: #f8fafc;
  color: #334155;
}
.kalisterre-candidat-preview-symbol {
  display: inline-flex;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: currentColor;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
/* Inherit the card background behind the glyph while preserving contrast. */
.kalisterre-candidat-username-preview[data-state="ready"] .kalisterre-candidat-preview-symbol { color: #1d4ed8; background: #dbeafe; }
.kalisterre-candidat-username-preview[data-state="changed"] .kalisterre-candidat-preview-symbol { color: #9a3412; background: #ffedd5; }
.kalisterre-candidat-username-preview[data-state="error"] .kalisterre-candidat-preview-symbol { color: #991b1b; background: #fee2e2; }
.kalisterre-candidat-username-preview[data-state="checking"] .kalisterre-candidat-preview-symbol { color: #334155; background: #e2e8f0; }
.kalisterre-candidat-preview-content { flex: 1 1 auto; min-width: 0; }
.kalisterre-candidat-preview-heading { font-weight: 750; }
.kalisterre-candidat-preview-detail { margin-top: 3px; overflow-wrap: anywhere; }

/* Téléphone international : même hiérarchie visuelle que l'identifiant. */
.kalisterre-candidat-phone-preview:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  clear: both;
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 1px solid #93c5fd;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1.5;
}
.kalisterre-candidat-phone-preview[data-state="changed"] {
  border-color: #fdba74;
  border-left-color: #c2410c;
  background: #fff7ed;
  color: #9a3412;
}
.kalisterre-candidat-phone-preview[data-state="error"] {
  border-color: #fca5a5;
  border-left-color: #b91c1c;
  background: #fef2f2;
  color: #991b1b;
}
.kalisterre-candidat-phone-preview .kalisterre-candidat-preview-symbol {
  color: #1d4ed8;
  background: #dbeafe;
}
.kalisterre-candidat-phone-preview[data-state="changed"] .kalisterre-candidat-preview-symbol {
  color: #9a3412;
  background: #ffedd5;
}
.kalisterre-candidat-phone-preview[data-state="error"] .kalisterre-candidat-preview-symbol {
  color: #991b1b;
  background: #fee2e2;
}

/* Version 1.5.0 : encadrés neutres pour les saisies en cours. */
.kalisterre-candidat-phone-preview[data-state="pending"],
.kalisterre-candidat-username-preview[data-state="pending"] {
  border-color: #cbd5e1;
  border-left-color: #64748b;
  background: #f8fafc;
  color: #334155;
}
.kalisterre-candidat-phone-preview[data-state="pending"] .kalisterre-candidat-preview-symbol {
  color: #334155;
  background: #e2e8f0;
}
.kalisterre-candidat-phone-preview[data-state="warning"] {
  border-color: #fdba74;
  border-left-color: #c2410c;
  background: #fff7ed;
  color: #9a3412;
}
.kalisterre-candidat-phone-preview[data-state="warning"] .kalisterre-candidat-preview-symbol {
  color: #9a3412;
  background: #ffedd5;
}
.kalisterre-candidat-submit-state:not([hidden]) {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #fca5a5;
  border-left: 4px solid #b91c1c;
  border-radius: 7px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
  padding: 9px 12px;
}
.ur-frontend-form form[data-form-id="1564"] .kalisterre-candidat-submit-disabled,
.ur-frontend-form form[data-form-id="1564"] .kalisterre-candidat-submit-disabled:hover {
  opacity: 0.55 !important;
  filter: grayscale(0.75);
  cursor: not-allowed !important;
  box-shadow: none !important;
  pointer-events: none;
}
