/* ===== Thème sombre global du formulaire ===== */
.matloub-form-glass {
  max-width: 800px;
  margin: 40px auto;
  padding: 25px 35px;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  color: #f0f0f0;
  font-family: "Segoe UI", Arial, sans-serif;
}

.matloub-form-glass h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  color: #ffffff;
}

.subtitle {
  text-align: center;
  font-size: 15px;
  color: #aaa;
  margin-bottom: 20px;
}

/* ===== Inputs & Select ===== */
.matloub-form-glass input[type="text"],
.matloub-form-glass input[type="email"],
.matloub-form-glass input[type="file"],
.matloub-form-glass select,
.matloub-form-glass textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #333;
  background: #222;
  color: #f0f0f0;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

.matloub-form-glass input:focus,
.matloub-form-glass select:focus,
.matloub-form-glass textarea:focus {
  border-color: #00e6a8;
  box-shadow: 0 0 8px #00e6a8;
}

/* ===== Boutons ===== */
.neon-btn {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #00e6a8, #0096e6);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px #00e6a8;
  transition: all 0.3s;
}

.neon-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px #00e6a8;
}

/* ===== Upload boutons stylisés ===== */
.file-label {
  display: block;
  padding: 10px;
  margin: 12px 0;
  border-radius: 8px;
  background: #333;
  color: #ccc;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}
.file-label:hover {
  background: #444;
  color: #fff;
}
input[type="file"] {
  display: none;
}

/* ===== Contrat intégré ===== */
.contrat-box {
  margin-top: 30px;
  padding: 20px;
  border: 2px solid #00e6a8;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.6);
}

.contrat-intro {
  font-weight: bold;
  color: #00e6a8;
  margin-bottom: 15px;
  font-size: 16px;
}

.contrat-text {
  max-height: 250px;
  overflow-y: auto;
  padding: 15px;
  background: #111;
  border-radius: 12px;
  border: 1px solid #222;
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
}

/* Style spécifique pour l’arabe */
.contrat-text .arabe {
  direction: rtl;
  text-align: right;
  font-weight: bold;
  font-size: 16px;
  font-family: "Amiri", "Scheherazade", serif;
  color: #f5f5f5;
}

/* Titres de sections du contrat */
.contrat-text h3 {
  font-size: 17px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #00e6a8;
}

/* Checkbox acceptation */
.matloub-accept {
  display: flex;
  align-items: center;
  margin-top: 15px;
  font-size: 14px;
  color: #fff;
}

.matloub-accept input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #00e6a8;
}

/* Résultat AJAX */
#form-result {
  margin-top: 15px;
  font-weight: bold;
}
#form-result.success { color: #00e6a8; }
#form-result.error { color: #ff4c4c; }
