/* Shared toast notification — used by contact, careers, evaluation, and booking forms */

#toast-root {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  pointer-events: none;
}

html[dir="rtl"] #toast-root {
  right: auto;
  left: 20px;
}

.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-family: inherit;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

html[dir="rtl"] .app-toast {
  transform: translateX(-120%);
}

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

.app-toast.leaving {
  transform: translateX(120%);
  opacity: 0;
}

html[dir="rtl"] .app-toast.leaving {
  transform: translateX(-120%);
}

.app-toast__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.app-toast__icon svg {
  width: 15px;
  height: 15px;
}

.app-toast--success .app-toast__icon {
  background: #e7f8ef;
  color: #16a34a;
}

.app-toast--error .app-toast__icon {
  background: #fdecec;
  color: #dc2626;
}

.app-toast__body {
  flex: 1;
  min-width: 0;
}

.app-toast__title {
  font-weight: 700;
  font-size: 14.5px;
  color: #0f172a;
  margin: 0 0 2px;
  line-height: 1.35;
}

.app-toast__message {
  font-size: 13.5px;
  color: #55607a;
  margin: 0;
  line-height: 1.45;
}

.app-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #9aa3b5;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  margin-left: 4px;
}

html[dir="rtl"] .app-toast__close {
  margin-left: 0;
  margin-right: 4px;
}

.app-toast__close:hover {
  color: #55607a;
}

@media (max-width: 480px) {
  #toast-root {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
  }

  html[dir="rtl"] #toast-root {
    left: 12px;
    right: 12px;
  }
}
