/* "Stay Connected" signup page. Base, nav and footer styles come from pay.css and nav.css. */
.stay-hero { padding: 7.5rem 5% 2.5rem; background: var(--parchment); text-align: center; }
.stay-hero-inner { max-width: 720px; margin: 0 auto; }
.stay-hero h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); margin: 0.4rem 0 0.9rem; overflow-wrap: anywhere; }
.stay-hero .section-label { font-size: 0.8rem; color: #6b5120; }
.stay-sub { font-size: 1.1rem; color: var(--text); max-width: 560px; margin: 0 auto; }

.stay-main { max-width: 680px; margin: 0 auto; padding: 2rem 5% 4rem; }
.stay-card {
  background: var(--cream); border: 1px solid var(--border); border-top: 4px solid var(--gold);
  border-radius: 14px; padding: 1.5rem 1.25rem;
}

.stay-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.stay-field { margin-bottom: 1.1rem; min-width: 0; }
.stay-field label, .stay-interests legend {
  display: block; font-size: 0.95rem; font-weight: 600; color: var(--forest-dark); margin-bottom: 0.4rem;
}
.stay-optional { font-weight: 400; color: var(--text-light); }
.stay-field input, .stay-field textarea {
  width: 100%; min-height: 52px; padding: 0.75rem 0.9rem; font: inherit; font-size: 1.05rem;
  color: var(--text); background: var(--warm-white); border: 1.5px solid #bda887; border-radius: 10px;
}
.stay-field textarea { min-height: 96px; resize: vertical; }
.stay-field input:focus, .stay-field textarea:focus { outline: 3px solid var(--gold-dark); outline-offset: 1px; border-color: var(--gold-dark); }
.stay-field input[aria-invalid="true"] { border-color: #a23b3b; }

.stay-interests { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.stay-check {
  display: flex; align-items: center; gap: 0.8rem; min-height: 52px; padding: 0.4rem 0.8rem;
  margin-bottom: 0.5rem; background: var(--warm-white); border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; font-size: 1.02rem; color: var(--text);
}
.stay-check input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: var(--forest); }
.stay-check span { min-width: 0; }
.stay-check:has(input:checked) { border-color: var(--forest); background: #eef3ef; }
.stay-check:has(input:focus-visible) { outline: 3px solid var(--gold-dark); outline-offset: 2px; }

.stay-error { margin: 0.4rem 0 0.8rem; padding: 0.6rem 0.8rem; font-size: 0.95rem; color: #8a2d2d; background: #fbeaea; border-radius: 8px; }
.stay-error[hidden], .stay-success[hidden] { display: none; }

.stay-submit {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0.7rem 1.2rem;
  font: inherit; font-weight: 600; font-size: 1.08rem; letter-spacing: 0.02em; color: var(--cream);
  background: var(--forest); border: 2px solid var(--forest); border-radius: 40px; cursor: pointer;
  transition: background 0.2s;
}
.stay-submit:hover { background: var(--forest-dark); }
.stay-submit:disabled { opacity: 0.7; cursor: wait; }
.stay-submit:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.stay-privacy { margin: 1rem 0 0; font-size: 0.9rem; color: #5f554c; text-align: center; line-height: 1.5; }

/* honeypot: invisible to people, tempting to bots */
.stay-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.stay-success { text-align: center; padding: 1.5rem 0.5rem; }
.stay-success:focus { outline: none; }
.stay-success-mark {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 2rem; color: var(--cream); background: var(--forest);
}
.stay-success h2 { font-size: 2rem; margin-bottom: 0.6rem; }
.stay-success p { color: var(--text); margin-bottom: 1rem; }
.stay-link { color: var(--forest-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 640px) {
  .stay-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; }
  .stay-card { padding: 2rem 2rem; }
}
@media (prefers-reduced-motion: reduce) { .stay-submit { transition: none; } }
