.slh-form-wrap{max-width:820px;margin:0 auto}
.slh-alert{padding:14px 16px;border-radius:10px;margin:12px 0}
.slh-alert--success{background:#eef8f0;border:1px solid #cfe9d5}
.slh-form{background:#fff;border:1px solid #e9e9e9;border-radius:14px;padding:18px}
.slh-step h3{margin:0 0 12px}
.slh-field{margin:10px 0}
.slh-field label{display:block;font-weight:600;margin-bottom:6px}
.slh-field input[type="text"], .slh-field input[type="email"], .slh-field input[type="tel"], .slh-field select, .slh-field textarea{
  width:100%;padding:10px 12px;border:1px solid #d8d8d8;border-radius:10px;outline:none
}
.slh-field input[type="file"]{width:100%}
.slh-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:640px){.slh-grid{grid-template-columns:1fr}}
.slh-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.slh-btn{border:none;border-radius:10px;padding:10px 14px;cursor:pointer}
.slh-next,.slh-submit{background:#111;color:#fff}
.slh-prev{background:#f2f2f2;color:#111}
.slh-help{color:#666;font-size:13px;margin-top:-6px}
.slh-legal{background:#fafafa;border:1px solid #eee;border-radius:12px;padding:12px;margin-top:12px}
.slh-check label{font-weight:500}
.slh-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* --- Custom styling (user provided) --- */
.slh-form{
  background: transparent;
  border: 0;
}
.slh-step h3{
  font-family:'Jaf Domus Bold';
}
.slh-field input[type="text"]{
  font-family:'Jaf Domus semi bold';
}
.slh-help{
  color:#fff;
}
.slh-legal{
  background: transparent;
  border: 0;
}
input{
  font-family:'Jaf Domus semi bold';
}


/* --- Step 1 profile cards / custom classes --- */
.slh-profile-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:10px 0 14px}
@media(max-width:640px){.slh-profile-choices{grid-template-columns:1fr}}
.slh-profile-card{display:block;cursor:pointer;border-radius:14px;border:1px solid #e6e6e6;overflow:hidden}
.slh-profile-card input{position:absolute;opacity:0;pointer-events:none}
.slh-profile-card__inner{display:flex;flex-direction:column;gap:10px;padding:14px}
.slh-profile-card__img{display:block;height:120px;border-radius:12px;background:rgba(0,0,0,0.06)}
.slh-profile-card.is-selected{outline:2px solid rgba(0,0,0,0.35)}
.slh-profile-title{font-weight:700}

/* Profile description (user will restyle) */
.slh-profile-desc{margin-top:6px}
.slh-profile-desc--active{}

/* --- Error box --- */
.slh-alert--error{background:#fff3f3;border:1px solid #ffd0d0}
.slh-missing-list ul{margin:10px 0 0 18px}
.slh-missing-hint{margin-top:8px;color:#444}

/* --- File input UI --- */
.slh-file{position:relative;border:1px solid #d8d8d8;border-radius:12px;padding:10px}
.slh-file input[type="file"]{border:0;padding:0}
.slh-file__meta{margin-top:8px;color:#444;font-size:13px}
.slh-file__clear{position:absolute;top:8px;right:10px;border:0;background:transparent;font-size:20px;line-height:1;cursor:pointer;display:none}
.slh-file.has-file .slh-file__clear{display:block}


/* --- File input: hide native filename display (keep clickable) --- */
.slh-file{position:relative}
.slh-file input[type="file"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  width:100%;
  height:100%;
}
.slh-file::before{
  content:"Choisir un fichier";
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.18);
  background:rgba(255,255,255,0.65);
}
.slh-file.has-file::before{
  content:"Changer de fichier";
}

/* --- Active card styling (gold border) --- */
.slh-profile-card.is-selected{
  outline:none;
  border:2px solid #c4a56e;
}

/* --- Profile image background --- */
.slh-profile-card__img{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}


/* --- File button + upload OK state --- */
.slh-file{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.slh-file input[type="file"]{display:none !important}
.slh-file__btn{
  border-radius:8px;
  border:1px solid #c4a56e;
  background:#c4a56e;
  color:#fff;
  padding:10px 14px;
  cursor:pointer;
  font-family:'Jaf Domus ExtraBold';
}
.slh-file__ok{
  display:none;
  font-size:16px;
  line-height:1;
}
.slh-file.has-file .slh-file__ok{display:inline-flex}
.slh-file__meta{flex:1 1 240px}


/* --- Disable legacy pseudo button if present --- */
.slh-file::before{content:none !important; display:none !important}

/* --- File input hidden (label triggers chooser) --- */
.slh-file__input{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}

/* --- Profile card image overlay + centered title --- */
.slh-profile-card__img{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.slh-profile-card__img::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(27deg,#09293b 25%,rgba(9,41,59,0.54) 92%);
  border-radius:12px;
}
.slh-profile-card__overlay-title{
  position:relative;
  z-index:1;
  color:#fff;
  text-align:center;
  width:100%;
  padding:8px 10px;
  text-shadow:0 2px 8px rgba(0,0,0,0.35);
}


.slh-success-inline{margin-bottom:14px}


/* Loader during AJAX submit */
.slh-form.slh-loading{position:relative;opacity:.65;pointer-events:none;}
.slh-form.slh-loading:after{content:'';position:absolute;left:50%;top:50%;width:38px;height:38px;margin-left:-19px;margin-top:-19px;border:3px solid rgba(255,255,255,.35);border-top-color:#c4a56e;border-radius:50%;animation:slhspin .9s linear infinite;z-index:10;}
@keyframes slhspin{to{transform:rotate(360deg);}}


/* Submitting state */
.slh-form.slh-is-submitting button[type="submit"],
.slh-form.slh-is-submitting input[type="submit"]{
  opacity: .7;
  cursor: progress;
}
