/**
 * Toast Notification System for Contact Form 7
 * Displays success and error messages in top-right corner
 */

/* Hide default Contact Form 7 response messages under forms */
.wpcf7-response-output {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Hide response output in footer forms */
.footer-form-wrapper .wpcf7-response-output {
  display: none !important;
}

/* Hide response output in custom forms */
.custom-cf7-form .wpcf7-response-output {
  display: none !important;
}

/* Toast Container - Fixed position top right */
.cf7-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 40px);
}

/* Individual Toast */
.cf7-toast {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.15);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease-out;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  min-width: 280px;
  max-width: 100%;
  position: relative;
}

/* Toast visible state */
.cf7-toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* Toast hiding state */
.cf7-toast.hide {
  opacity: 0;
  transform: translateX(400px);
}

/* Success Toast */
.cf7-toast.success {
  border-left: 4px solid #048743; /* green */
}

/* Error Toast */
.cf7-toast.error {
  border-left: 4px solid #D0451B; /* red */
}

/* Toast Content */
.cf7-toast-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Toast Status Label (SUCCESS/ERROR) */
.cf7-toast-status {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Success Status Label */
.cf7-toast.success .cf7-toast-status {
  color: #048743; /* green - same as border */
}

/* Error Status Label */
.cf7-toast.error .cf7-toast-status {
  color: #D0451B; /* red - same as border */
}

/* Toast Message */
.cf7-toast-message {
  font-size: 14px;
  line-height: 20px;
  color: #12171D; /* darkgray */
  font-weight: 500;
  margin: 0;
}

/* Toast Close Button - Top Right Position */
.cf7-toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  transition: color 0.2s ease;
  z-index: 10;
}

.cf7-toast-close:hover {
  color: #12171D;
}

.cf7-toast-close svg {
  width: 16px;
  height: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cf7-toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    width: auto;
  }

  .cf7-toast {
    min-width: auto;
    width: 100%;
    padding: 14px 16px;
  }

  .cf7-toast-message {
    font-size: 13px;
    line-height: 18px;
  }
}

