@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;
  width: 90%;
  display: flex;
  flex-direction: column;
}

.modal-success {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-self: center;
  top: 10%;
  display: flex;
  width: 100%;
  max-width: 600px;
  z-index: 6;
}
  
.modal-window span:first-child {
  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;
  resize: none
}

.modal-window form textarea {
  resize: none
}

.modal-window form .themeareamodal .dropdown {
  position: relative;
}

.modal-window form .themeareamodal .dropdown-content {
  position: absolute;
  top: 60px;
  width: inherit;
  border: 1px solid #b7b7b7;
  border-radius: 5px;
  z-index: 4;
  background-color: #fefefe;
  box-shadow: -1px 4px 24px 9px rgba(40, 40, 40, 0.08);
}

.modal-window form .themeareamodal .dropbtn {
  font-family: "Inter";
  width: inherit;
  height: 57px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  border: 1px solid #B7B7B7;
  border-radius: 5px;
}

.modal-window form .themeareamodal .dropbtn p {
  font-family: "Inter";
  margin-bottom: 0;
}

.modal-window form .themeareamodal .dropbtn img {
  width: 14px;
  height: 7px;
}

.modal-window form label {
  font-family: "Inter";
  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,
.err-text-description {
  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;
}

.modal-success .pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fefefe;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  padding: 21px 21px 41px 21px;
}

.modal-success .pic img:first-child {
  cursor: pointer;
  align-self: flex-end;
}

.modal-success .message-backlog {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 67px 0 30px 0;
  background-color: #F5F5F5;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;
}

.modal-success .danke {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 160%;
  text-align: center;
  color: #000000;
}

.modal-success .message-backlog p {
  font-family: "Inter";
  padding: 13px 0 80px 0;
}

.modal-success .message-backlog .close-modal {
  color: #fefefe;
  background-color: #ff7b3b;
  border: 1px solid #ff7b3b;
  padding: 13px 63px;
  border-radius: 50px;
}

#contactFormModal label {
  font-family: "Inter";
  align-self: flex-start;
}

.modal-window .username div:first-child,
.modal-window .themeareamodal div:first-child {
  margin-right: 17px;
}

.modal-window form .dropdown-content p {
  font-family: "Inter";
  padding: 16px 0 6px 20px;
}

.modal-window .close-modal {
  width: 21px;
  align-self: flex-end;
  margin-top: 10px;
}

.modal-window .span-header {
  border-bottom: 1px solid #B7B7B7;
  margin-left: 0;
}

@media (max-width: 900px) {
  #modalBacklog,
  #successBacklog,
  #backdrop {
    display: none;
  }
}

@media (min-width: 900px) and (max-width: 1300px) {
  .modal-window {
    padding: 0px 20px 20px 20px;
    top: 10%;
    display: flex;
    align-self: center;
    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;
    margin-bottom: 3px;
  }
    
  .modal-window .username div,
  .modal-window .telephone div {
    width: 100%;
    max-width: 695px;
  }
    
  .modal-window .themeareamodal div {
    width: 100%;
    max-width: 695px;
  }
    
  .modal-window form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    width: 100%;
  }
    
  .modal-window form input {
    width: 100%;
    height: 56px;
    margin-bottom: 0;
  }
    
  .modal-window form textarea {
    width: 100%;
    height: 120px;
    margin-bottom: 3px;
    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%;
    align-self: center;
    display: flex;
    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,
  .modal-window .themeareamodal div {
    width: 100%;
    max-width: 695px;
  }

  .modal-window .themearea div,
  .modal-window .themearea div input {
    width: inherit;
  }

  .modal-window form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    width: 100%;
  }

  .modal-window form input {
    height: 56px;
    margin-top: 5px;
    width: inherit;
  }

  .modal-window form textarea {
    width: 100%;
    height: 190px;
    margin-bottom: 3px;
    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 .themeareamodal .dropbtn {
    margin-top: 4px;
  }

  .modal-window form .dropdown-content p:hover {
    background-color: #F5F5F7;
    cursor: pointer;
  }

  .modal-window form .send-form {
    cursor: pointer;
    font-weight: 500;
    font-size: 17px;
    line-height: 140%;
    border-radius: 50px;
    width: 300px;
    height: 50px;
  }

  .modal-window form .send-form:hover {
    color: #282828;
    background-color: #fefefe;
    border-color: #282828;
  }

  .modal-success .message-backlog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 67px 0 30px 0;
    background-color: #F5F5F5;
  }

  .modal-success .danke {
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 160%;
    text-align: center;
    color: #000000;
  }

  .modal-success .message-backlog p {
    padding: 13px 0 80px 0;
  }

  .modal-success .message-backlog .close-modal:hover {
    cursor: pointer;
    color: #282828;
    background-color: #fefefe;
    border: 1px solid #282828;
  }
}

@media (min-width: 2000px) {
  .modal-window {
    padding: 0px 40px 40px 40px;
    top: 10%;
    left: 25vw;
    display: flex;
    width: 100%;
    max-width: 1400px;
  }
}