.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 96px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  /* min-width: 320px; */
  max-width: 944px;
  width: 752px;
  position: relative;
  animation: modalFadeIn 0.2s;
  display: flex;
  align-items: center;

  @media all and (max-width: 980px) {
    margin: 15px;
    padding: 50px;
  }

  @media all and (max-width: 600px) {
    padding: 30px;
  }
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 96px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  /* min-width: 320px; */
  max-width: 944px;
  width: 752px;
  position: relative;
  animation: modalFadeIn 0.2s;
  display: flex;
  align-items: center;

  @media all and (max-width: 980px) {
    margin: 15px;
    padding: 50px;
  }

  @media all and (max-width: 600px) {
    padding: 30px;
  }

  @media all and (max-width: 400px) {
    padding: 20px;
  }
}

@keyframes modalFadeIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #495057;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #e74c3c;
}

.modal-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
}

.modal-body {
  /* margin-bottom: 1.5rem; */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* License form styles */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content label {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.modal-content input[type="text"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.modal-content input[type="text"]:focus {
  border-color: #0073e6;
}

.modal-content button[type="submit"] {
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-content button[type="submit"]:hover {
  background: #005bb5;
}

.modal-content button[type="button"] {
  background: #eee;
  color: #333;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 0.5em;
  transition: background 0.2s;
}

.modal-content button[type="button"]:hover {
  background: #ddd;
}
