/* Estilos para los mensajes del formulario de contacto */
.contact-message {
  margin: 20px 0;
  padding: 0;
  border-radius: 8px;
  animation: slideIn 0.3s ease-out;
}

.contact-message__content {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-message--success .contact-message__content {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-message--error .contact-message__content {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f1b0b7;
}

.contact-message__text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.contact-message__close {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.contact-message--success .contact-message__close {
  color: #155724;
}

.contact-message--error .contact-message__close {
  color: #721c24;
}

.contact-message__close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Animación de entrada */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para el botón durante el envío */
button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
