html, body {
  font-family:'Times New Roman', sans-serif;
  margin: 0;
  padding: 0;
  background: #f2f2f2;
  height: 100%;
}

input, select, textarea, button {
  font-family: 'Times New Roman';
}

/* Mise en page générale */
.main-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

/* Partie gauche : formulaire (3/5) */
.form-section {
  flex: 3;
  display: flex;
  justify-content: center;
  align-items: center; /* Centrage vertical */
  background-color: #f2f2f2;
  padding: 40px;
}

/* Partie droite vide (2/5) */
.background-section {
  flex: 2;
  background-color: #f2f2f2;
}

/* Conteneur interne */
.container {
  width: 100%;
  max-width: 750px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Formulaire principal */
form.appointment-form {
  background: white;
  padding: 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Espacement entre les champs */
  margin: auto; /* Centre verticalement si parent a height: 100% */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Titre */
h2 {
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 20px 0;
}

/* Champs de formulaire */
input, select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

/* Focus sans bordure rouge */
input:focus,
select:focus {
  outline: none;
  border-color: #888;
  background-color: #fff;
}

/* Bouton */
.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.submit {
  padding: 12px 30px;
  background-color: #FF0000 !important;;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.submit:focus,
.submit:active {
  background-color: #FF0000 !important;
}

.submit:hover {
  background-color: #cc0000;
  box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
}

.error-msg {
  color: red;
  font-size: 0.85em;
  margin-top: 4px;
}


/* Responsive tablette/mobile */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
  }

  .form-section,
  .background-section {
    flex: none;
    width: 100%;
    height: auto;
  }

  .container {
    max-width: 90%;
    padding: 20px;
  }

  form.appointment-form {
    height: auto;
    padding: 30px;
    margin: 20px 0;
  }
}
