/*
 * PlacePal shared form-pill component (email signup input + button) + form error.
 * Single source for index.html and subscribe.html. Depends on tokens.css for vars.
 * Error style: Option A (accent text, no box). Both pages reveal the error via JS
 * (errorEl.style.display = 'block'), which overrides the display:none below.
 */
.form-pill {
  display: flex;
  align-items: stretch;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-pill:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 110, 80, 0.15);
}
.form-pill input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-pill input[type="email"]:focus { outline: none; }
.form-pill input[type="email"]::placeholder { color: var(--text-dim); }
.form-pill button {
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  color: #FFFFFF;
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.form-pill button:hover { background: var(--accent-hover); }
.form-pill .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Error message — Option A: accent-colored text, no box. Hidden until JS sets display:block. */
.form-error {
  display: none;
  margin-top: 16px;
  font-family: 'Urbanist', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--accent);
  max-width: 480px;
}
