/* ClearGrow coming-soon page: the signup form and its messages. */

/* Signup */
.section-signup {
  background: var(--white);
  border-top: 1px solid var(--tint-strong);
}

.signup-box {
  max-width: 44rem;
}

.signup-form {
  margin-top: 1.75rem;
}

.signup-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.signup-form input[type="email"] {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--grey-60);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.signup-form input[type="email"]:focus-visible,
.signup-form select:focus-visible {
  outline-offset: 0;
  border-color: var(--ink);
}

.field-row .button {
  flex: 0 0 auto;
}

.signup-form .label-secondary {
  margin-top: 1.25rem;
}

.optional {
  color: var(--grey-60);
  font-weight: 400;
}

.signup-form select {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--grey-60);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

@media (max-width: 480px) {
  .field-row .button {
    flex: 1 1 100%;
  }
}

.consent {
  margin-top: 0.75rem;
  color: var(--grey-60);
  font-size: 0.875rem;
}

/* Honeypot: off screen, not display:none, so simple bots still fill it. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Messages after a no-JS submit: the server's redirect targets one of these. */
.notice {
  display: none;
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 500;
}

.notice:target {
  display: block;
}

.notice:focus {
  outline: none;
}

.notice-error {
  border-left-color: var(--error);
  color: var(--error);
}

.notice-error a {
  color: var(--error);
}

/* Once the script has answered in place, hide any message from an earlier redirect. */
.signup-box[data-answered] .notice {
  display: none;
}

.live {
  margin-top: 1rem;
  font-weight: 500;
}

.live:empty {
  margin-top: 0;
}

.live[data-state="ok"] {
  padding: 0.875rem 1rem;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--white);
}

.live[data-state="error"] {
  padding: 0.875rem 1rem;
  border-left: 4px solid var(--error);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--error);
}

.signup-box .section-lead + p {
  margin-top: 1rem;
  font-weight: 600;
}
