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

body {
  font-family: Arial, sans-serif;
}

.main-container {
  position: relative;
  /* display: flex; */
  height: 150vh;
  background-color: rgb(81, 82, 82);
}

.card-body {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  padding: 40px 40px;
  background-color: lightsalmon;
  background-color: #fafafa;
}

.linkAccueil {
  align-self: flex-start;
}

.card-body h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #be01fe;
  margin-bottom: 20px;
}

.card-body span {
  font-size: 1.2rem;
}

.course-info {
  text-align: center;
  width: 100%;
  padding: 20px;
  /* border-radius: 8px; */
  margin-bottom: 10px;
  /* background-color: #f8f8f8; */
}

.course-info h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.course-info p {
  font-size: 1.7rem;
  /* font-weight: 600; */
}

.available-places-text {
  width: 100%;
  font-size: 1.3rem;
  text-align: center;
  padding: 6px 0;
  margin-bottom: 20px;
  background-color: #efd1fa;
}

.form {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  width: 100%;
  padding: 20px;
  margin-bottom: 20px;
  /* border: 1px solid #ddd; */
  /* border-radius: 8px; */
  /* background-color: #fff; */
}

.form input {
  width: 100%;
  height: 40px;
  border-radius: 5px;
  border: 1px solid #555;
  padding: 10px;
  margin-bottom: 15px;
  background-color: rgb(227, 244, 253);
}

.form input:focus {
  outline: none;
  background-color: rgb(212, 237, 253);
}

.form label {
  font-size: 1.2rem;
  margin-left: 5px;
  margin-bottom: 5px;
}

.g-recaptcha {
  margin: 0 auto;
}

.form button {
  position: relative;
  width: 200px;
  height: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 25px;
  text-decoration: none;
  color: #fff;
  border-radius: 25px;
  font-size: 1.5rem;
  font-weight: 500;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
  opacity: 0.75;
  transition: 0.5s;
  background: #be01fe;

  /* top: 440px; */
  margin-top: 50px;
  bottom: 10px;
}

.form button::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
}

.form button:hover {
  opacity: 1;
}

/* .form button {
        position: relative;
        margin: 0 auto;
        width: 200px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 15px;
        border: 1px solid #be01fe;
        margin-top: 30px;
      } */
      
.info-txt {
  color: tomato;
  text-align: center;
}

#message {
  color: red;
  font-weight: bold;
}

.error-message {
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 150px;
  border: 2px solid black;
  border-radius: 5px;
  background-color: white;
  font-size: 1.2rem;
  font-weight: 500;
}

