/* ---------- GLOBAL ---------- */
.form-llavenergia {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

/* ---------- DRAG & DROP ---------- */
.cf7-dragdrop-zone {
  border: 2px dashed #bbb;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  background: #fdfdfd;
  color: #888;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1rem;
}

/* ---------- FICHIERS ---------- */
.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f1f1;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 0.5rem;
  font-size: 14px;
  color: #333;
}

.file-remove-btn {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 18px;
  cursor: pointer;
}

.file-progress-bar {
  background: #e0e0e0;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  margin-top: 6px;
}

.file-progress-fill {
  background: #3498db;
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
}

/* ---------- Titre Formulaire ---------- */
.form-llavenergia fieldset legend {
  font-weight: bold;
  font-size: 18px; /* optionnel : pour agrandir un peu */
  color: #1e2a38;  /* optionnel : pour un meilleur contraste */
  margin-bottom: 1rem; /* optionnel : espace en dessous */
}

/* ---------- LABELS ---------- */
.form-llavenergia label {
  font-weight: 600;
  font-size: 15px;
  color: #2c3e50;
  display: block;
  margin-bottom: 0.5rem;
}

.form-llavenergia label:hover {
  color: #3498db;
}

/* ---------- CHAMPS ---------- */
.form-llavenergia input,
.form-llavenergia select,
.form-llavenergia textarea {
   width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
   margin-top: 0.5rem;
  margin-bottom: 0rem;
  max-width: 100%;
}

.form-llavenergia input:focus,
.form-llavenergia select:focus,
.form-llavenergia textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  
}

/* ---------- MESSAGES ---------- */
.error-message {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 1px;        /* petit espace au-dessus */
  display: block;         /* s’affiche en dessous du champ */
  line-height: 1.2;
}

/* ---------- RADIO & CHECKBOX ---------- */
.fieldset-radio,
.fieldset-checkbox {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  border-left: 4px solid #3498db;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column; /* empile les labels verticalement */
  gap: 0.5rem; /* espace vertical entre les options */
}

.fieldset-radio label,
.fieldset-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1;
  margin: 0; /* plus précis que margin-bottom si gap est utilisé */
}

.fieldset-radio input[type="radio"],
.fieldset-checkbox input[type="checkbox"] {
  accent-color: #3498db;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
  transform: translateY(1px); /* centrage parfait avec le texte */
}

/* --------------------- SELECT --------------------- */
.form-llavenergia select {
  background-color: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6H0z' fill='%233498db'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
}
/* survol */
.form-llavenergia select:hover {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6H0z' fill='%23f5a623'/%3E%3C/svg%3E");
}


/* ---------- BOUTON ---------- */
.form-llavenergia .submit-btn {
  background-color: #1e2a38;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;      /* hauteur x largeur */
  margin-top: 10px;
  font-size: 18px;         /* taille du texte */
  cursor: pointer;
  transition: background-color 0.3s;
   width: auto;             /* ou '100%' pour bouton pleine largeur */
}
/* survol */
.form-llavenergia .submit-btn:hover {
  background-color:  #3498db;
  color: #1e2a38;
  transform: translateY(-2px);
  

/* ---------- ZONE D'INFORMATION ---------- */
.form-note {
  background: #ecf0f1;
  padding: 1rem;
  font-style: italic;
  /* border-left: 4px solid #2ecc71; */
  border-left: 4px solid #3498db;
  border-radius: 10px;
  color: #34495e;
  font-size: 14px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .form-llavenergia {
    padding: 1rem;
    gap: 1rem;
  }
    .form-llavenergia textarea {
    font-size: 14px;

  .form-llavenergia .submit-btn {
    width: 100%;
  }
}