.video-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(7, 2, 15, 0.84);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__frame {
  position: relative;
  width: min(420px, 92vw);
}

.video-modal__frame.is-wide {
  width: min(960px, 94vw);
}

.video-modal iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.video-modal__frame.is-wide iframe {
  aspect-ratio: 16 / 9;
}

.video-modal__close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #14081f;
  color: #fff;
  cursor: pointer;
}

.form-success {
  margin-top: 1rem;
  font-weight: 700;
  color: #6d28d9;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
