* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff;
}

.simulateur {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 20px 30px;
  max-width: 100%;
  margin: auto;
}

.formulaire {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.form-group {
  flex: 1 1 160px;
  min-width: 150px;
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1f2d5a;
  font-size: 14px;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

input[type="date"],
input[type="time"],
select {
  height: 46px;
  line-height: 46px;
}

.form-group.button-wrap {
  flex: 0 0 auto;
}

#btn-tarif {
  padding: 12px 24px;
  border-radius: 30px;
  background: #FA5A7D;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  height: 46px;
  margin-left: 10px;
  margin-top: 22px;
}

#btn-tarif:hover {
  background: #e64358;
}

.result {
  display: none;
  background: #f1f2f4;
  padding: 30px 0 0;
  text-align: center;
  margin: 30px -30px -30px;
  border-radius: 16px;
  overflow: hidden;
}

.result .prix {
  font-size: 28px;
  color: #1f2d5a;
  font-weight: 700;
}

.result .parjour {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.result a {
  display: block;
  width: 100%;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  border: none;
  background: #FF4564;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
  border-radius: 0 0 16px 16px;
}

.result a:hover {
  background: #e64358;
}

#code-promo-wrap {
  flex: 1 1 100%;
  display: none;
}

#checkbox-code-promo {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 100%;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .formulaire {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "depot-date depot-heure"
      "destination destination"
      "retour-date retour-heure"
      "checkbox checkbox"
      "promo promo"
      "bouton bouton";
    gap: 5px;
  }

  .form-group {
    margin: 0 !important;
    width: 100%;
  }

  .form-group.button-wrap {
    margin-top: 12px;
    margin-left: 0;
    display: flex;
    justify-content: center;
  }

  #btn-tarif {
    margin: 0;
    width: 100%;
    height: 42px;
    font-size: 15px;
  }

  .simulateur {
    padding: 20px;
  }

  .result {
    padding: 24px 20px 0;
    margin: 30px -20px -20px;
  }

  .result a {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }

  #checkbox-code-promo {
    order: 10;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    margin-bottom: 0;
  }

  #code-promo-wrap {
    order: 11;
  }

  .form-group.depot-date { grid-area: depot-date; }
  .form-group.depot-heure { grid-area: depot-heure; }
  .form-group.destination { grid-area: destination; }
  .form-group.retour-date { grid-area: retour-date; }
  .form-group.retour-heure { grid-area: retour-heure; }
  #checkbox-code-promo { grid-area: checkbox; }
  #code-promo-wrap { grid-area: promo; }
  .form-group.button-wrap { grid-area: bouton; }
}
