.contact-form-modal {
    width:100%;
    display: none;
}
.contact-form-modal button {
    width: fit-content;
}
.modal-content {
    border:none;
}
.modal-window-contact .contacts-form {
    width:100%;
}
.modal-window-contact {
    max-width:50%!important;
}
@media (max-width: 992px) {
    .modal-window-contact {
    max-width:90%!important;
}
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dimmer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  opacity: 0;
}

.modal-window {
  padding: 4rem 2rem 2rem 2rem;
  width: 100%;
  max-width: 55%;
  min-height: 400px;
  background: white;
  border-radius: 10px;
  opacity: 0;
  z-index: 999;
  margin: 1rem;
  display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-window-bottom {
  margin-top: 2.5rem;
}

button {
  padding: 0.5rem 2rem;
  margin: 1rem;
  cursor: pointer;
}
.close-modal {
  position: absolute;
    right: 0;
    top: 0;
    width: 32px;
    height: 32px;
    text-align: center;
    padding: 0px;
    border: 1px solid #c1c1c1;
    background: #fff;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.2rem;
}
.close-modal:hover {
  background: #333;
  color:#fff;
}

@media (max-width: 992px) {
  .modal-window {
    max-width: 90%;
    padding: 3rem 1rem 1rem 1rem;
  }
  .modal-window h2 {
    font-size: 1.4rem;
  }
  .modal-window p {
    font-size: 1rem;
  }

}
