/* MODAL WINDOW */
.modal {
  color: #444;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  background-color: #f3f3f3;
  padding: 3rem 4rem;
  box-shadow: 0 4rem 6rem rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.4s;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  transition: all 0.5s;
}

.modal__header {
  text-align: center;
  /* font-size: 2rem; */
  margin-bottom: 2rem;
  /* line-height: 1.5; */
}

.send-email {
  text-align: center;
  margin-top: 2rem;
}

.modal__form {
  margin: 0 3rem;
  display: grid;
  margin-bottom: 2rem;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 1rem;
}

.modal__form label {
  font-size: 1rem;
  font-weight: 500;
}

.modal__form input,
.modal__select {
  width: 65%;
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

.modal__textarea {
  font-family: "Poppins";
  border: 1px solid #ddd;
  font-size: 1rem;
  width: 100%;
  height: 100%;
  resize: none;
  border-radius: 0.5rem;
}

.btn--close-modal {
  font-family: inherit;
  color: inherit;
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  font-size: 3rem;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

#charsLeft {
  height: 0.8rem;
  font-size: 0.7rem;
}

.submit-btn {
  border-radius: 1rem;
  padding: 0.6rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  border: 1px solid #000;

  grid-column: 1 / span 2;
  justify-self: center;
  align-self: center;
  /* margin-: 1rem; */

  transition: all 0.2s ease-in-out;
}

.submit-btn:hover {
  background-color: #444;
  color: #f3f3f3;
  cursor: pointer;
}

.submit-btn:active {
  transform: scale(0.9);
}

.send-email {
  cursor: default;
}

@media only screen and (max-width: 1000px) {
  .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    background-color: #f3f3f3;
    padding: 3rem 4rem;
    box-shadow: 0 4rem 6rem rgba(0, 0, 0, 0.3);
  }

  .modal__form input,
  .modal__select {
    width: 80%;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
  }
}

@media only screen and (max-width: 600px) {
  .modal {
    box-sizing: border-box;
    color: #444;
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f3f3f3;
    padding: 1rem 1rem;
    transform: translate(0, 0);

    transition: all 0.4s;
  }

  .modal__form input,
  .modal__select {
    width: 80%;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
  }

  .send-email {
    margin-top: 6rem;
  }
}
