body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  padding: 40px;
}

.form-container {
  max-width: 500px;
  margin: auto;
  background-color: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  color: #333;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="date"]  {
  width: 50%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="number"] {
  width: 30%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="tel"] {
  width: 30%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#matricule {
  width: 30%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  margin: 20px auto 0; 
  display: block;
  width: 50%;
  padding: 10px;
  background-color: #FF714B;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
        background-color: #e95831;
}

.required {
  color: red;
  font-weight: bold;
}

textarea {
  width: 100%; 
  max-width: 100%; 
  box-sizing: border-box; 
  resize: vertical; 
  padding: 10px;
  font-size: 1rem;
}

span {
  color: red;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 600px) {
  body {
    padding-left: 5px;
    /*padding-right: 15px;*/
    /*height: 80%;*/
  }

  .form-container {
    padding: 30px;
    width: 100%;
  }

  input[type="text"],
  input[type="email"],
  input[type="date"],
  input[type="number"],
  input[type="tel"],
  #matricule,
  textarea,
  button {
    width: 100%;
    font-size: 16px;
  }
  
  input[type="text"] {
      width: 80%;
  }
    input[type="number"],
    input[type="tel"]{
        width: 60%;
    }
    
    #matricule{
        width: 60%;
    }
  button {
    padding: 12px;
  }

  h2 {
    font-size: 20px;
  }

  label {
    font-size: 15px;
  }

  textarea {
    font-size: 16px;
  }
}
