/* CSS COMMUN AVEC CONNEXION.HTML */

body {
  background-image: url("data:image/svg+xml,%3Csvg width='700' height='700' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.07' fill-rule='evenodd'/%3E%3C/svg%3E");
}

main {
  padding: 3rem;
  background-color: var(--prim);
  box-shadow: var(--shad);
  width: 35%;
  margin: 4rem auto 8rem auto;
}

#form-title {
  color: var(--green);
  font-size: 2.5rem;
}

#form-desc {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 400;
  position: relative;
  margin-left: 1.5rem;
  margin-top: 2rem;
  line-height: 1.5rem;
}

#form-desc::before {
  position: absolute;
  left: -1.5rem;
  top: -7px;
  bottom: -7px;
  width: 2px;
  content: "";
  background-color: var(--text);
  border-radius: 1rem;
  border: solid var(--text) 1px;
  opacity: 0.25;
}

form {
  margin-top: 4rem;
}

label,
legend {
  margin: 2rem 0 0.5rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  border: solid rgba(0, 0, 0, 0.1) 1px;
  border-radius: 0.5rem;
  outline: none;
  height: 3rem;
  padding-left: 0.5rem;
  font-size: 1rem;
}

#date-input {
  color: var(--text);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: 500;
  width: 20%;
  padding-right: 0.5rem;
}

#desc-input {
  min-height: 17rem;
  outline: none;
  overflow-wrap: break-word;
  overflow: scroll;
  resize: none;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  padding-top: 0.5rem;
}

input::placeholder,
textarea::placeholder {
  opacity: 0.7;
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

#button-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

#send-button {
  background-color: var(--green);
  border: none;
  padding: 0.7rem 7rem;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shad);
}

input[type="radio"] {
  width: 1rem;
  height: 1rem;
}

.rad {
  display: inline;
  margin-right: 2rem;
}

#err-msg {
  color: rgb(204, 91, 91);
  font-weight: 600;
  padding-top: 2rem;
  visibility: hidden;
}
