
.modal {
  position: fixed;
  z-index: 999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 1.5em;
  border-radius: 8px;
  max-width: 300px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close-button {
  position: absolute;
  top: 0.5em;
  right: 0.8em;
  font-size: 1.5em;
  color: #666;
  cursor: pointer;
}

#register-form {
  display: flex;
  flex-direction: column;
  /*gap: 0.8em;*/
}

#register-form label {
  margin-bottom: 0.2em;
  font-weight: 600;
}

#register-form input,
#register-form select {
  /*padding: 0.4em 0.6em;*/
  font-size: 0.95em;
}

#register-form button {
  margin-top: 1em;
  padding: 0.6em;
  font-size: 1em;
  background-color: #004851;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

/* Purpose group in row by default */
.purpose-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
}

.purpose-group label {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

#purpose-other-text {
  margin-left: 8px;
  width: 200px;
}

.eula-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 1em 0;
  font-size: 0.9em;
}

.eula-checkbox a {
  color: #004851;
  text-decoration: underline;
  cursor: pointer;
}

.modal-content.large {
  max-width: 800px;
  height: 80vh;
  overflow: hidden;
}

.eula-scrollbox {
  height: 65vh;
  overflow-y: auto;
  padding-right: 1em;
  margin-top: 1em;
  font-size: 0.9em;
  line-height: 1.5em;
}

.modal-footer {
  text-align: right;
  margin-top: 1em;
}



/* Responsive for small screens */
@media (max-width: 600px) {
  .purpose-group {
    flex-direction: column;
    align-items: flex-start;
  }
}
