body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #333;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@font-face {
  font-family: SwedenSans;
  src: url(res/SwedenSansRegular.otf);
}

h1 {
  color: #2b2d42;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  font-family: SwedenSans;
  font-weight: normal;
  line-height: 2rem;
}

.footer-text {
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-text a {
  display: inline;
  white-space: nowrap; /* keeps "organizing team" together */
}

h2 {
  color: #393b54;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-family: SwedenSans;
  font-weight: normal;
}

a {
  display: inline;
  text-decoration: none;
  color: #3e3ef9;
  font-weight: 400;
}

a:hover {
  text-decoration: underline;
}

form {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[list] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

input:focus {
  border-color: rgba(62, 62, 249, 50);
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
  outline: none;
}
textarea:focus {
  border-color: rgba(62, 62, 249, 50);
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
  outline: none;
}

button {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.75rem 2rem;
  background: #3e3ef9;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: auto;
  font-family: SwedenSans;
}

button:hover {
  background: #1919cd;
}
button:disabled {
  background: #888888;
}

textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  min-height: 4.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

#registrations-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 2rem auto;
}

.registration {
  text-align: center;
  margin-bottom: 2rem;
}

.registration strong {
  font-weight: 600;
}

.registration .quote {
  display: inline-block;
  background: #fbecee;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-style: italic;
  margin-top: 0.75rem;
}

.submit-wrapper {
  position: relative;
  display: block;
  width: fit-content;
  margin: 1.5rem auto;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3e3ef9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  form {
    padding: 1.5rem;
  }
  h1 {
    font-size: 1.4rem;
  }
  button {
    min-height: 52px;
  }
}
