/* Clause5 Canonical Signup Form — Shared Component CSS (v1.0)
 *
 * Variant modifier classes preserve per-surface visual identity:
 *   .c5-signup-form--hero    — homepage hero (matches legacy .waitlist-form)
 *   .c5-signup-form--inline  — inline calculator email-gate
 *   .c5-signup-form--card    — Flux widget engagement card
 *
 * Adds nothing to body weight unless a [data-signup-form] mount exists.
 * Honeypot is positioned out-of-flow via inline style on the input (component
 * JS), so this CSS file doesn't need to repeat it.
 */

.c5-signup-form { display: block; }

/* Honeypot — display:none is the strongest signal screen readers honor
   (NVDA/JAWS/VoiceOver all skip display:none subtrees). Matches the
   landing/welding/symbols/pdf/index.html:609 .form-helper pattern. */
.c5-signup-form__hp {
  display: none;
  font-size: 1rem;
}

.c5-signup-form__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.c5-signup-form__email,
.c5-signup-form__company {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.c5-signup-form__company {
  /* Optional company sits next to email — give it less visual weight */
  flex: 0.7;
}

.c5-signup-form__email::placeholder,
.c5-signup-form__company::placeholder { color: var(--text-muted); }

.c5-signup-form__email:focus,
.c5-signup-form__company:focus {
  border-color: var(--arc);
  box-shadow: 0 0 0 3px var(--arc-glow);
}

.c5-signup-form__submit {
  background: linear-gradient(135deg, var(--arc) 0%, var(--arc-hot) 100%);
  color: var(--bg);
  border: 1px solid rgba(255, 182, 39, 0.3);
  border-radius: 8px;
  padding: 15px 36px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.c5-signup-form__submit::after {
  content: '\2192';
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s ease;
  font-size: 1em;
}

.c5-signup-form__submit:hover {
  background: linear-gradient(135deg, var(--arc-hot) 0%, var(--arc) 100%);
  box-shadow: 0 0 32px var(--arc-glow-strong), 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
  border-color: rgba(255, 182, 39, 0.5);
}

.c5-signup-form__submit:hover::after { transform: translateX(4px); }

.c5-signup-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 0 16px var(--arc-glow), 0 1px 2px rgba(0,0,0,0.3);
}

.c5-signup-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.c5-signup-form__status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.c5-signup-form__status--error { color: var(--danger, #e35a5a); }
.c5-signup-form__status--success { color: var(--arc); }

/* Hero variant — preserve the entrance animation legacy .waitlist-form had.
   slideUp keyframe is also defined in landing/shared.css:139 (loaded on every
   page); re-declared here so the component is self-contained for surfaces
   that don't include shared.css (e.g., embeds). Keyframe is idempotent — last
   declaration wins, but the definitions match. */
.c5-signup-form--hero {
  opacity: 0;
  animation: slideUp 0.8s ease 0.3s forwards;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile stacking — replaces legacy @media at index.html:811. */
@media (max-width: 720px) {
  .c5-signup-form__row { flex-direction: column; }
  .c5-signup-form__submit {
    width: 100%;
    padding: 16px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }
}
