/* Оверлей (фон) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 51, 60, 0.6);
  display: none; /* скрыто по умолчанию */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Окно */
.modal-window {
  text-align: center;
  background: #14181b;
  border-radius: 30px;
  max-width: 440px;
  max-height: 433px;
  /* height: 100%;
  width: 100%; */
  padding: 60px;
  position: relative;
  /* animation: fadeInUp 0.3s ease; */
  p {
    margin: 0;
  }
}
.modal-window h2 {
  margin-top: 0;
  margin-bottom: 40px;
}

.modal-window .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  /* p {
    margin: 0;
  } */

  form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    width: 100%;
    .formfield {
      display: flex;
      flex-direction: column;
      gap: 8px;
      .label-block {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        span {
          /* display: none; */
          color: #e65d6e;
          align-content: center;
        }
      }
      input {
        border-radius: 24px;
        border: none;
        background-color: #2d333c;
        color: #ffffff;
        height: 20px;
        padding: 14px 20px;
        &:focus {
          border: 1px solid #00daa9;
          outline: #00daa9;
        }
        &.error {
          border: 1px solid #e65d6e;
        }
      }
    }
  }
}
.modal-window .modal-content button {
  width: 280px;
}
/* Кнопка закрытия */
.modal-close {
  position: absolute;
  right: 20px;
  top: 12px;
  font-size: 36px;
  color: #5d5e6d;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: white;
}

/* Анимация появления @keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */
