/* Contact / newsletter form outcome modal (matches document download popover) */

.upsign-form-outcome-modal {
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  display: none;
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.upsign-form-outcome-modal.is-open {
  display: flex;
  opacity: 1;
}

.upsign-form-outcome-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.upsign-form-outcome-modal__panel {
  background-color: #3f51b5;
  border-radius: 8px;
  width: min(430px, calc(100vw - 40px));
  padding: 40px 36px 36px;
  position: relative;
  text-align: center;
  transform: scale(0.9) translateY(28px);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1.15, 0.36, 1),
    opacity 0.32s ease;
}

.upsign-form-outcome-modal.is-open .upsign-form-outcome-modal__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.upsign-form-outcome-modal.is-closing .upsign-form-outcome-modal__panel {
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition:
    transform 0.22s ease-in,
    opacity 0.22s ease-in;
}

.upsign-form-outcome-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.upsign-form-outcome-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.upsign-form-outcome-modal__icon {
  margin: 0 auto 20px;
}

.upsign-form-outcome-modal__title {
  color: #fff;
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.upsign-form-outcome-modal__text {
  color: #fff;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.45;
}

.upsign-form-outcome-modal__text strong {
  font-weight: 600;
  word-break: break-word;
}

.upsign-form-outcome-modal__hint {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.4;
}

.upsign-form-outcome-modal__done {
  min-width: 140px;
  color: #3f51b5;
  background-color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.upsign-form-outcome-modal--error .upsign-form-outcome-modal__panel {
  background-color: #24327e;
}

.upsign-form-outcome-modal--error .upsign-form-outcome-modal__hint {
  color: rgba(255, 255, 255, 0.85);
}

/* Hide legacy Webflow inline messages on contact page */
.section-contact .w-form-done,
.section-contact .w-form-fail,
.section-contact .success-message {
  display: none !important;
}

.upsign-form-outcome-modal__icon-error {
  display: none;
}

.upsign-form-outcome-modal--error .upsign-form-outcome-modal__icon-success {
  display: none;
}

.upsign-form-outcome-modal--error .upsign-form-outcome-modal__icon-error {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .upsign-form-outcome-modal,
  .upsign-form-outcome-modal__panel {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
