.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .58);
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(680px, 100%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15,23,42,.3);
  overflow: hidden;
}

.modal-card__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-border);
}

.modal-card__header h2,
.modal-card__header p {
  margin: 0;
}

.modal-card__header p {
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.modal-card form {
  padding: 24px;
}

.modal-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

body.is-modal-open {
  overflow: hidden;
}
