.tf-contact-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--white, #fff);
  box-shadow: 0 12px 40px rgba(43, 52, 74, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}

.tf-contact-toast.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.tf-contact-toast.is-success {
  border-left: 4px solid #22c55e;
}

.tf-contact-toast.is-error {
  border-left: 4px solid #ef4444;
}

.tf-contact-toast-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-contact-toast.is-success .tf-contact-toast-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.tf-contact-toast.is-error .tf-contact-toast-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.tf-contact-toast.is-success .icon-error,
.tf-contact-toast.is-error .icon-success {
  display: none;
}

.tf-contact-toast-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.tf-contact-toast-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--main, #111);
}

.tf-contact-toast-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--secondary-2, #6b7280);
}

.tf-contact-toast-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface, #f3f4f6);
  color: var(--main, #111);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tf-contact-toast-close:hover {
  background: #e5e7eb;
}

#contactform.is-submitting {
  opacity: 0.72;
  pointer-events: none;
}

#contactform .contact-field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #dc2626;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 575px) {
  .tf-contact-toast {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    width: auto;
    transform: translateY(calc(100% + 40px));
  }

  .tf-contact-toast.active {
    transform: translateY(0);
  }
}
