/* community.css — "Keep informed about POAI events / join the community" box.
   Without JavaScript the form is simply visible. With it, the "Click here" button opens it in place. */

.community { padding-bottom: 56px; }

.community__box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.community__title { font-size: 26px; line-height: 1.15; }
.community__consent { font-size: 15px; color: var(--ink-muted); }

/* the opener only exists when JavaScript can use it */
.community__open { display: none; align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.js .community__open { display: inline-flex; }
.js .community__panel { display: none; }
.js .community.is-open .community__panel { display: flex; }
.js .community.is-open .community__open { display: none; }

.community__panel { flex-direction: column; gap: 16px; }
.community__form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }

.community__field { display: flex; flex-direction: column; gap: 6px; }
.community__label { font-weight: 600; font-size: 16px; }
.community__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 18px;            /* 16px or more so iOS does not zoom */
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
}
.community__input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--navy); }

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

.community__submit { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.community__submit[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

.community__error { color: #A3260B; font-weight: 600; font-size: 16px; }
.community__error:empty { display: none; }

.community__thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.community__thanks p { font-size: 20px; }
.community__status:empty { display: none; }

@media (min-width: 760px) {
  .community__box { padding: 36px; }
  .community__title { font-size: 32px; }
}

.community__form[hidden] { display: none; }
