.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: min(500px, 100%);
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  margin: 0;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-body form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-body input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
}

.modal-body button {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-footer {
  margin-top: 1.5rem;
}

.modal-close,
.modal-header button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-close:hover,
.modal-header button:hover {
  background-color: #f3f4f6;
}

.form-error {
  margin: 0;

  color: #dc2626;
  font-size: 0.875rem;
}
