/* Styl dla overlay (przyciemnione tło) */
.form-notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Styl dla wspólnego okna komunikatu */
.form-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Styl dla komunikatu sukcesu */
.form-notification.success {
  border: 2px solid #28a745;
}

/* Styl dla komunikatu błędu */
.form-notification.error {
  border: 2px solid #dc3545;
}

/* Styl dla tytułu komunikatu */
.form-notification-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.form-notification.success .form-notification-title {
  color: #000000;
}

.form-notification.error .form-notification-title {
  color: #dc3545;
}

/* Styl dla treści komunikatu */
.form-notification-content {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Styl dla przycisku zamknięcia */
.form-notification-close {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-notification-close:hover {
  background-color: #0056b3;
}

/* Style dla listy błędów */
.form-notification-errors {
  text-align: left;
  margin-bottom: 20px;
}

.form-notification-errors ul {
  margin: 0;
  padding-left: 20px;
}

.form-notification-errors li {
  margin-bottom: 5px;
  color: #721c24;
}

/* Animacja pojawienia się i zniknięcia */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.form-notification-overlay.visible {
  animation: fadeIn 0.3s forwards;
}

.form-notification-overlay.hidden {
  animation: fadeOut 0.3s forwards;
}
