.page {
  background: #fff;
  color: #00378e;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  font-family: var(--font-geist-sans, Arial, sans-serif);
}

.logoContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

.logo {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.form {
  background: #f8faff;
  border: 1px solid #00378e22;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px 0 #00378e11;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 320px;
  max-width: 400px;
}

.form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #00378e;
  gap: 6px;
}

.form input,
.form textarea {
  border: 1px solid #00378e44;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1rem;
  background: #fff;
  color: #00378e;
  margin-top: 2px;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid #00378e;
  border-color: #00378e;
}

.submitBtn {
  background: #00378e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.submitBtn:hover {
  background: #00245c;
}

.main ol {
  font-family: var(--font-geist-mono);
  padding-left: 0;
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: -0.01em;
  list-style-position: inside;
}

.main li:not(:last-of-type) {
  margin-bottom: 8px;
}

.main code {
  font-family: inherit;
  background: var(--gray-alpha-100);
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
}

.ctas {
  display: flex;
  gap: 16px;
}

.ctas a {
  appearance: none;
  border-radius: 128px;
  height: 48px;
  padding: 0 20px;
  border: none;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}

a.primary {
  background: var(--foreground);
  color: var(--background);
  gap: 8px;
}

a.secondary {
  border-color: var(--gray-alpha-200);
  min-width: 158px;
}

.footer {
  grid-row-start: 3;
  display: flex;
  gap: 24px;
}

.footer a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer img {
  flex-shrink: 0;
}

/* Enable hover only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  a.primary:hover {
    background: var(--button-primary-hover);
    border-color: transparent;
  }

  a.secondary:hover {
    background: var(--button-secondary-hover);
    border-color: transparent;
  }

  .footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 32px;
    padding-bottom: 80px;
  }

  .main {
    align-items: center;
  }

  .main ol {
    text-align: center;
  }

  .ctas {
    flex-direction: column;
  }

  .ctas a {
    font-size: 14px;
    height: 40px;
    padding: 0 16px;
  }

  a.secondary {
    min-width: auto;
  }

  .footer {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
}

@media (prefers-color-scheme: dark) {
  .logo {
    filter: invert();
  }
}

.stripeElementWrapper {
  margin: 16px 0;
  padding: 12px 0;
}

.message {
  margin-top: 16px;
  color: #00378e;
  font-weight: 600;
  text-align: center;
}
