.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 9;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.modal__wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 10rem auto;
  padding: 2rem;
  background: #fff;
  z-index: 10;
  border-radius: 10px;
  border: 1px solid black;
  min-width: 350px;
  width: 30%;
  position: relative;
  transition: all 5s ease-in-out;
}

.modal__wrapper .checkbox-label {
  align-self: center;
  margin-top: -1.5rem;
}

.modal__wrapper .checkbox-label a {
  font-size: 14px;
}

.modal__wrapper .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.modal__wrapper .close:hover {
  color: #2e75b8;
}

.modal__title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.modal__field {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2rem;
}

.modal__field label {
  font-size: 16px;
  font-weight: 500;
  width: 110px;
}

.modal__field input {
  padding: 5px 12px;
  font-size: 14px;
  height: 30px;
  border: 1px solid hsl(0, 0%, 73%);
  border-radius: 15px;
}

.modal__field textarea {
  padding: 1rem 2.5rem;
  font-size: 14px;
  border: 1px solid hsl(0, 0%, 73%);
  border-radius: 15px;
  resize: none;
}

.modal__button {
  padding: 1rem 2.5rem;
  align-self: center;
  font-size: 20px;
  font-weight: 700;
  background-color: #2e75b8;
  color: white;
  border-radius: 20px;
  width: fit-content;
}

.modal__button:hover {
  background-color: #21a038;
  color: white;
  transition-duration: 0.2s;
}

.donemsg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #21a038;
  text-align: center;
  padding: 1.5rem;
  border: 2px solid #21a038;
  border-radius: 10px;
  background: #e8f5e9;
}

.wrongmsg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #d32f2f;
  text-align: center;
  padding: 1.5rem;
  border: 2px solid #d32f2f;
  border-radius: 10px;
  background: #ffebee;
}

@media (max-width: 1000px) {
  .modal__wrapper {
    position: relative;
    top: 10vh;
    width: 85%;
    min-width: 0;
    margin: 30px auto;
    padding: 5rem 2rem;
    box-sizing: border-box;
  }

  .modal__title {
    font-size: 18px;
  }

  .modal__field {
    flex-wrap: wrap;
  }

  .modal__field label {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .modal__field input,
  .modal__field textarea {
    width: 100%;
    box-sizing: border-box;
  }
}
