/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: 100%;
}

.toast-notification {
  background: #ff6600;
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.3);
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: none;
  outline: none;
  cursor: default;
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.toast-notification .toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast-notification .toast-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-notification .toast-message {
  flex: 1;
  word-wrap: break-word;
}

.toast-notification .toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
  opacity: 0.8;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.toast-notification .toast-close:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  
  .toast-notification {
    padding: 14px 16px;
    font-size: 13px;
    border-radius: 10px;
  }
  
  .toast-notification .toast-content {
    gap: 10px;
  }
  
  .toast-notification .toast-icon {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
  
  .toast-notification {
    padding: 12px 14px;
    font-size: 12px;
    border-radius: 8px;
  }
}

/* Animation keyframes for smooth transitions */
@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Enhanced form styles for better UX */
.form-submitting {
  opacity: 0.8;
  pointer-events: none;
}

.form-submitting input,
.form-submitting textarea,
.form-submitting select,
.form-submitting button {
  opacity: 0.8;
}

/* Loading state for submit buttons */
.submit-loading {
  position: relative;
  color: transparent !important;
}

.submit-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
