/**
 * New website promotional popup.
 * Matches Veritas UAT design tokens (Geist, brand red #B83445).
 */

:root {
  --vnw-brand: #b83445;
  --vnw-brand-hover: #9a2b3a;
  --vnw-text: #1e1e1e;
  --vnw-muted: #5a5a5a;
  --vnw-overlay: rgba(17, 28, 39, 0.55);
  --vnw-surface: #ffffff;
  --vnw-radius: 12px;
  --vnw-shadow: 0 16px 40px rgba(17, 28, 39, 0.18);
  --vnw-font: "Geist", Arial, Helvetica, sans-serif;
  --vnw-duration: 280ms;
}

.vnw-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--vnw-duration) ease, visibility var(--vnw-duration) ease;
}

.vnw-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vnw-popup__overlay {
  position: absolute;
  inset: 0;
  background: var(--vnw-overlay);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.vnw-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 90vw);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--vnw-surface);
  border-radius: var(--vnw-radius);
  box-shadow: var(--vnw-shadow);
  padding: 36px 32px 28px;
  font-family: var(--vnw-font);
  color: var(--vnw-text);
  transform: scale(0.95);
  opacity: 0;
  transition:
    transform var(--vnw-duration) ease,
    opacity var(--vnw-duration) ease;
}

.vnw-popup.is-open .vnw-popup__dialog {
  transform: scale(1);
  opacity: 1;
}

.vnw-popup.is-closing .vnw-popup__dialog {
  transform: scale(0.95);
  opacity: 0;
}

.vnw-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vnw-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.vnw-popup__close:hover,
.vnw-popup__close:focus-visible {
  background: rgba(184, 52, 69, 0.08);
  color: var(--vnw-brand);
  outline: none;
}

.vnw-popup__title {
  margin: 0 0 14px;
  padding: 0 28px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--vnw-text);
  text-align: center;
}

.vnw-popup__desc {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--vnw-muted);
  text-align: center;
}

.vnw-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vnw-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--vnw-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
}

.vnw-popup__btn--primary {
  border: 0;
  background: var(--vnw-brand);
  color: #ffffff;
}

.vnw-popup__btn--primary:hover,
.vnw-popup__btn--primary:focus-visible {
  background: var(--vnw-brand-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(184, 52, 69, 0.3);
  outline: none;
}

.vnw-popup__btn--secondary {
  border: 1px solid rgba(30, 30, 30, 0.2);
  background: transparent;
  color: var(--vnw-text);
}

.vnw-popup__btn--secondary:hover,
.vnw-popup__btn--secondary:focus-visible {
  border-color: var(--vnw-brand);
  color: var(--vnw-brand);
  outline: none;
}

body.vnw-popup-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .vnw-popup {
    padding: 16px;
  }

  .vnw-popup__dialog {
    width: 90vw;
    padding: 28px 20px 22px;
  }

  .vnw-popup__title {
    font-size: 22px;
    margin: 0 0 14px;
    padding: 0 24px;
  }

  .vnw-popup__desc {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .vnw-popup__btn {
    min-height: 46px;
    font-size: 15px;
  }
}
