@font-face {
  font-family: "Inter";
  src: local("Inter"),
  url("./fonts/Inter-VariableFont_slnt\,wght.ttf") format("opentype");
}

.hidden {
  display: none;
}
  
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0D1621;
  opacity: 0.8;
  z-index: 2;
}

.modal-window {
  position: fixed;
  z-index: 3;
  background-color: #fefefe;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}

.close-modal {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-top: 25px;
}

.close-modal:hover {
  cursor: pointer;
  opacity: 0.7;
}
  
.modal-window span {
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  font-family: "Inter";
  font-style: normal;
  color: #282828;
  border-bottom: 1px solid #b7b7b7;
}
  
.modal-window .form_header {
  font-family: "Inter";
  font-style: normal;
  color: #282828;
  border-bottom: 1px solid #b7b7b7;
}
  
.modal-window form input,
.modal-window form textarea {
  font-weight: 400;
  font-family: 'Inter';
  font-style: normal;
  border: 1px solid #b7b7b7;
}

.modal-window form label {
  height: 16px;
}
  
.modal-window form .err {
  border: 1px solid #FF0000;
  outline-color: #FF0000;
}
  
.modal-window .username div,
.modal-window .themeareamodal div,
.modal-window .themearea div {
  display: flex;
  flex-direction: column;
}
  
.err-text,
.err-text-email {
  color: #FF0000;
  opacity: 0.75;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
}
  
.modal-window form .send-form {
  background-color: #ff7b3b;
  border: 1px solid #ff7b3b;
  color: #fefefe;
}

.form_sent {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  margin-top: 12px;
  color: #282828;
  text-align: center;
  border-bottom: none !important;
}

@media (max-width: 639px) {
  .modal-window {
    padding: 0px 10px 20px 10px;
    top: 5%;
    display: flex;
    align-self: center;
    width: 100%;
    max-width: 609px;
  }

  .modal-window span:first-child {
    padding-top: 20px;
  }
    
  .modal-window .form_header {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    padding-bottom: 7px;
  }
    
  .modal-window .username,
  .modal-window .themeareamodal {
    display: flex;
    flex-direction: column;
    width: inherit;
    max-width: 609px;
    justify-content: space-between;
  }
    
  .modal-window .username div,
  .modal-window .telephone div {
    width: 100%;
    max-width: 609px;
  }
    
  .modal-window .themeareamodal div {
    width: 100%;
    max-width: 609px;
  }
    
  .modal-window form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    width: inherit;
  }
    
  .modal-window form input {
    height: 56px;
    margin-top: 12px;
  }
    
  .modal-window form textarea {
    width: 100%;
    height: 8em;
    margin-bottom: 12px;
    margin-top: 12px;
    padding-top: 10px;
  }
    
  .modal-window form input,
  .modal-window form textarea {
    padding-left: 5px;
    border-radius: 5px;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
  }
    
  .modal-window form .send-form {
    font-weight: 500;
    font-size: 17px;
    line-height: 140%;
    border-radius: 50px;
    width: 300px;
    height: 50px;
  }
    
  .modal-window form .send-form:not(:disabled) {
    background-color: #ff7b3b;
    border-color: #ff7b3b;
    color: #fefefe;
  }
    
  .modal-window form .send-form:not(:disabled):hover {
    color: #282828;
    background-color: #fefefe;
    border-color: #282828;
  }
}

@media (min-width: 639px) and (max-width: 1023px) {
  .modal-window {
    padding: 0px 70px 40px 70px;
    top: 10%;
    display: flex;
    align-self: center;
    width: 100%;
    max-width: 990px;
  }

  .modal-window span:first-child {
    padding-top: 40px;
  }
    
  .modal-window .form_header {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    padding-bottom: 7px;
  }
    
  .modal-window .username,
  .modal-window .themeareamodal {
    display: flex;
    width: inherit;
    max-width: 990px;
    justify-content: space-between;
  }
    
  .modal-window .username div,
  .modal-window .telephone div {
    width: 50%;
    max-width: 695px;
  }
    
  .modal-window .themeareamodal div {
    width: 100%;
    max-width: 990px;
  }
    
  .modal-window .username div:first-child input {
    margin-right: 17px;
  }
    
  .modal-window form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    width: inherit;
  }
    
  .modal-window form input {
    height: 56px;
    margin-top: 12px;
  }
    
  .modal-window form textarea {
    width: 100%;
    height: 190px;
    margin-bottom: 12px;
    margin-top: 12px;
    padding-top: 10px;
  }
    
  .modal-window form input,
  .modal-window form textarea {
    padding-left: 5px;
    border-radius: 5px;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
  }
    
  .modal-window form .send-form {
    font-weight: 500;
    font-size: 17px;
    line-height: 140%;
    border-radius: 50px;
    width: 300px;
    height: 50px;
  }
    
  .modal-window form .send-form:not(:disabled) {
    background-color: #ff7b3b;
    border-color: #ff7b3b;
    color: #fefefe;
  }
    
  .modal-window form .send-form:not(:disabled):hover {
    color: #282828;
    background-color: #fefefe;
    border-color: #282828;
  }
}

@media (min-width: 1023px) {
  .modal-window {
    padding: 0px 40px 40px 40px;
    top: 10%;
    display: flex;
    align-self: center;
    width: 100%;
    max-width: 1400px;
  }

  .modal-window span:first-child {
    padding-top: 40px;
  }

  .modal-window .form_header {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    padding-bottom: 7px;
  }

  .modal-window .username,
  .modal-window .themeareamodal,
  .modal-window .themearea {
    display: flex;
    width: inherit;
    max-width: 1400px;
    justify-content: space-between;
  }

  .modal-window .username div,
  .modal-window .telephone div {
    width: 50%;
    max-width: 695px;
  }

  .modal-window .themeareamodal div {
    width: 100%;
    max-width: 1400px;
  }

  .modal-window .themearea div,
  .modal-window .themearea div input {
    width: inherit;
  }

  .modal-window .username div:first-child input {
    margin-right: 17px;
  }

  .modal-window form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    width: inherit;
  }

  .modal-window form input {
    height: 56px;
    margin-top: 5px;
  }

  .modal-window form textarea {
    width: 100%;
    height: 190px;
    margin-bottom: 16px;
    margin-top: 5px;
    padding-top: 10px;
  }

  .modal-window form input,
  .modal-window form textarea {
    padding-left: 10px;
    border-radius: 5px;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
  }

  .modal-window form .send-form {
    cursor: pointer;
    font-weight: 500;
    font-size: 17px;
    line-height: 140%;
    border-radius: 50px;
    width: 200px;
    height: 50px;
  }

  .modal-window form .send-form:hover {
    color: #282828;
    background-color: #fefefe;
    border-color: #282828;
  }
}