/* Subskrypcja (formularz) */
.subscribe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin-top: 30px;
  opacity: 0;
  transform: translateX(80px);
  animation: slideInRight 1s forwards 2.6s;
}

/* Efekt fadeIn dla wiadomości subskrypcji */
.subscribe-message {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 90%;
}

.subscribe-message.show {
  opacity: 1;
  transform: translateY(0);
}

.subscribe-message.success {
  background: #A8FFBE;
  color: #4C2580;
}

.subscribe-message.error {
  background: #FF7F7F;
  color: #fff;
}

.subscribe-message.server {
  background: #D9B3FF; /* pastelowy fiolet */
  color: #4C2580;
}


/* Container input+button */
.form-fields {
  display: flex;
  border: 2px solid white;
  border-radius: 30px;
  overflow: hidden;
  width: 80%;
  max-width: 450px;
  margin: 0 auto;
}

.form-fields input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: none; /* zostawiasz jak masz */
    background: transparent;
    font-size: 0.95rem;
    color: white;
    transition: color 0.4s ease; /* <- to jest ważne */
  }

/* Placeholder kolor wymuszony */
.form-fields input::placeholder {
  color: rgba(255,255,255,0.75) !important;
}

input[type="email"] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

/* poprawny email */
.input-valid {
    color: #A8FFBE !important;
  }
  
  /* błędny email */
  .input-invalid {
    color: rgba(255,150,150,0.85) !important;
  }
  
  /* domyślny */
  .input-default {
    color: rgba(255,255,255,0.85) !important;
  }

/* Przycisk */
.form-fields button {
  background: white;
  color: #4C2580;
  padding: 12px 20px;
  border: none;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
}

.form-fields button:hover:enabled {
  background: #ddd;
}

.form-fields button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Checkbox pod spodem */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
  font-weight: 300; /* light */
  max-width: 80%;
  text-align: left;
}

.consent input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

/* Animacja formularza subskrypcji */
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Powiadomienia toast w centrum ekranu */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 250px;
  max-width: 90%;
  background: white;
  color: #4C2580;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Pokaż toast */
.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Typ zielony dla sukcesu */
.toast.success {
  color: #4C2580;
  background: #A8FFBE;
}

/* Typ czerwony dla błędu */
.toast.error {
  color: #ffffff;
  background: #FF7F7F;
}