.diensten-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  &.is-open {
    display: flex;
    animation: dmFadeIn 0.18s ease;
  }
}

@keyframes dmFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.diensten-modal-overlay .wpforms-block {
  margin-top: 12px !important;
}

.diensten-modal-box {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  box-sizing: border-box;
  position: relative;
  animation: dmSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dmSlideUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.diensten-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition:
    background 0.12s,
    color 0.12s;
  z-index: 99;
  a {
    text-decoration: none;
    outline: unset;
  }
  &:hover {
    background: #f5f5f5;
    color: #111;
  }
}

div.wpforms-container-full .wpforms-confirmation-container-full,
div[submit-success]
  > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
  margin: 24px auto;
}
div#dienstenModal>div {
  max-height: 90%;
  overflow: auto;
}
