.form-container {
  width: 100vw;
  display: flex;
  justify-content: center;
}

.input-container {
  position: relative;
  width: 40vw;
  margin-bottom: 80px;
}
.input-container input {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  border: 1px solid rgb(22, 162, 133);
  border-radius: 5px;
  outline: none;
  color: #fff;
  font-size: 1em;
  background-color: transparent;
  color: rgb(22, 162, 133);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(22, 162, 133, 0.15);
}
.input-container span {
  position: absolute;
  left: 0;
  padding: 10px;
  pointer-events: none;
  font-size: 1em;
  transition: 0.3s;
  color: rgb(22, 162, 133);
}
.input-container input:valid,
.input-container input:focus {
  border: 1px solid rgb(22, 162, 133);
  box-shadow:
    0 0 8px rgba(22, 162, 133, 0.45),
    0 0 20px rgba(22, 162, 133, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.45);
}
.input-container input:valid ~ span,
.input-container input:focus ~ span {
  color: rgb(22, 162, 133);
  transform: translateX(10px) translateY(-17px);
  border-left: 1px solid rgb(22, 162, 133);
  border-right: 1px solid rgb(22, 162, 133);
  padding: 3px;
  text-transform: uppercase;
  bottom: 25px;
}

.input-container textarea {
  width: 100%;
  height: 15vh;
  background-color: transparent;
  outline: none;
  /*border: rgb(22, 162, 133);*/
  outline-color: rgb(22, 162, 133);
  color: rgb(22, 162, 133);
  border: 1px solid rgb(22, 162, 133);
}
.input-container textarea:focus {
  box-shadow:
    0 0 8px rgba(22, 162, 133, 0.45),
    0 0 20px rgba(22, 162, 133, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.45);
}
/***********************boutons */

button {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;

  background: linear-gradient(135deg, #1d4a65, #286887);
  color: #ffffff;

  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;

  transition: all 0.3s ease;

  box-shadow:
    0 6px 15px rgba(29, 74, 101, 0.45),
    0 0 12px rgba(29, 74, 101, 0.25);
}

button:hover {
  background: linear-gradient(135deg, #286887, #317da3);

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(29, 74, 101, 0.6),
    0 0 18px rgba(29, 74, 101, 0.35);
}

button:active {
  transform: translateY(1px);

  box-shadow: 0 3px 8px rgba(29, 74, 101, 0.35);
}

button:focus {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(29, 74, 101, 0.35),
    0 8px 20px rgba(29, 74, 101, 0.5);
}

button:disabled {
  cursor: not-allowed;
}

/*checkbox */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 40vw;
  margin-bottom: 25px;
}

.consent label {
  color: rgb(22, 162, 133);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.consent input[type="checkbox"] {
  appearance: none;
  min-width: 22px;
  width: 22px;
  height: 22px;

  border: 2px solid rgb(22, 162, 133);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow:
    0 0 8px rgba(22, 162, 133, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.3);
}

.consent input[type="checkbox"]:hover {
  box-shadow:
    0 0 12px rgba(22, 162, 133, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.consent input[type="checkbox"]:checked {
  background: rgb(22, 162, 133);
  border-color: rgb(22, 162, 133);
}

.consent input[type="checkbox"]:checked::after {
  content: "✓";
  display: flex;
  justify-content: center;
  align-items: center;

  color: #111e25;
  font-size: 15px;
  font-weight: bold;
  width: 100%;
  height: 100%;
}

.consent input[type="checkbox"]:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(22, 162, 133, 0.25),
    0 0 15px rgba(22, 162, 133, 0.4);
}
