/**
 * MODAL
 */
dialog {
  background-color: white;
  color: black;
  width: 90%;
  max-width: 32em;
  border-radius: 20px;
  border: none;
  padding: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
}

dialog > div {
  padding: 1.5em;
  max-height: 90vh;
  overflow-y: auto;
}

dialog[open] {
  animation: zoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

dialog:hover {
  cursor: auto;
}

.modal__header {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: bold;
  margin-bottom: 1rem;
  color: black;
  background-color: white;
}

.modal__content {
  color: black;
  background-color: white;
  margin: 1.5rem 0;
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.form__content {
  color: black;
  background-color: white;
  margin-top: 20px;
}

@keyframes zoom {
  from {
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

dialog[open]::backdrop {
  animation: fade 0.2s ease-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  dialog {
    width: 95%;
    border-radius: 15px;
  }
  
  dialog > div {
    padding: 1em;
  }
}