*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 80%;
  margin: 0 auto;
  background-color: #f1f1f1;
}

.container {
  height: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
}

.container h1 {
  font-size: 18px;
  margin-bottom: 8px;
}

form {
  width: 90%;
}

.search-container {
  background: #fff;
  width: 100%;
  border-radius: 5px;
  position: relative;
}

.search-container input {
  height: 35px;
  width: 100%;
  outline: none;
  border: none;
  border-radius: 5px;
  padding: 0 60px 0 20px;
  font-size: 16px;
  border: 2px solid #9333ea;
  background-color: #f1f1f1;
}

.loader {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  margin-top: 6px;
  border: 5px solid #9333ea;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: none;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

#suggestion-adresses {
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.adresse {
  list-style: none;
  padding: 8px 12px;
  width: 100%;
  cursor: pointer;
  border-radius: 3px;
}

.adresse:hover {
  background: #efefef;
}

select {
  padding: 7px 40px 7px 12px;
  width: 100%;
  margin: 10px 0;
  border: 2px solid #9333ea;
  border-radius: 5px;
  background: #f1f1f1;
  box-shadow: 0 1px 3px -2px #9098a9;
  cursor: pointer;
  font-size: 16px;
  color: #5a667f;
}

.container-minutes {
  display: none;
}

.container-input-range {
  margin: 15px 0;
}

#range-km,
#range-tranches,
#range-minutes {
  -webkit-appearance: none;
  appearance: none;
  background: lightgrey;
  width: 100%;
  height: 10px;
  outline: none;
  border-radius: 5px;
  margin: 10px 0;
}

#range-km::-webkit-slider-thumb,
#range-tranches::-webkit-slider-thumb,
#range-minutes::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: #9333ea;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

#submit-form {
  background-color: #9333ea;
  display: block;
  margin: 0 auto;
  border: none;
  border-radius: 7px;
  width: 80%;
  cursor: pointer;
  color: white;
  letter-spacing: 0.05em;
  padding: 1.15em 3.5em;
  min-height: 3.3em;
  font-weight: bold;
}

#submit-form:hover {
  background-color: #6c379e;
}

.error-message {
  display: none;
  color: red;
}

.success-submit-form {
  display: none;
  font-weight: bold;
  color: rgb(7, 145, 7);
  text-align: center;
  margin: 10px 0;
}

#error-post-form {
  display: none;
  color: red;
  text-align: center;
  margin: 10px 0;
}

