body {
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh; /* Centers vertically */
  font-family: "ff-providence-sans-web-pro", sans-serif;
  letter-spacing: 0.05em;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  color: white;
  background-color: black;
  background-image: url(https://www.mothermothersite.com/images/Adobe-Express---file.png);
  line-height: 1.5;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  text-align: center;
}
h2 {
  font-size: 1.4rem;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: normal;
  line-height: 1.5rem;
}

a {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.event {
  font-family: sans-serif;
  font-weight: 300;
  margin: 10px 0;
  text-align: center;
  font-size: 14px;
}
.event-name {
  font-size: 1.1em;
  font-weight: 400;
}

.event-signup {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: #ff1398;
  margin: 25px 0;
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-group.optin {
  font-family: sans-serif;
  letter-spacing: 0em;
  font-size: 0.8em;
}

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

input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

input[type="checkbox"] {
  width: auto;
}

.required:after {
  content: " *";
  color: #ff1398;
  font-weight: bold;
}

button {
  background-color: #ff1398;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.8rem;
  width: 100%;
  font-family: "ff-providence-sans-web-pro", sans-serif;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: #e00d86;
}

@media (min-width: 600px) {
  button {
    width: auto;
  }
}

.error-text {
  color: #e32;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  display: none;
}

input:invalid:not(:focus):not(:placeholder-shown) + .error-text {
  display: block;
}

.thank-you-message {
  display: none;
  background-color: white;
  color: black;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
}

.error-message {
  display: none;
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
}

.loading {
  display: none;
  text-align: center;
  margin-top: 20px;
}

@font-face {
  font-family: "Dreja text";
  src: url("../fonts/Dreja-Text.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
