.reusable-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 24px;
}

.reusable-modal.is-open {
  display: grid;
}

.reusable-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 28, 48, .42);
  backdrop-filter: blur(7px);
}

.reusable-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(9, 28, 48, .28);
  animation: reusableModalIn .24s ease;
}

.reusable-modal-header,
.reusable-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}

.reusable-modal-header {
  border-bottom: 1px solid var(--line);
}

.reusable-modal-header strong {
  display: block;
  color: var(--heading);
  font-size: 1.05rem;
}

.reusable-modal-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
}

.reusable-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef4f8;
  color: var(--heading);
  cursor: pointer;
}

.reusable-modal-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.reusable-modal-body label {
  display: grid;
  gap: 8px;
  color: var(--heading);
  font-size: .88rem;
  font-weight: 800;
}

.reusable-modal-body input,
.reusable-modal-body textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dbe6ee;
  border-radius: var(--radius-md);
  font: inherit;
  color: var(--heading);
  background: #f8fbfd;
  outline: none;
}

.reusable-modal-body textarea {
  min-height: 220px;
  resize: vertical;
}

.reusable-modal-body input:focus,
.reusable-modal-body textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
}

.reusable-modal-footer {
  border-top: 1px solid var(--line);
}

.modal-secondary-btn,
.modal-primary-btn {
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
}

.modal-secondary-btn {
  background: #eef4f8;
  color: var(--heading);
}

.modal-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
}

@keyframes reusableModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}