/**
 * Provarro Pulse open-session signup page — scoped styles.
 *
 * Story: nx-eb58301f28b0 (feature nx-e422137cd7c9). Cloned from the
 * /ai-superusers/ shell (Reg Form Pattern §3.1 lean shape / §3.19 form
 * module). Own class prefix (`pulse-`); layout / form / header / footer
 * styling is inherited from /styles.css, so this file stays thin.
 */

/* Hero — quieter than a full paid-workshop hero; the form is the next section. */
.pulse-hero {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-2xl);
}

.pulse-kicker {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted-foreground);
    margin-bottom: var(--space-sm);
}

.pulse-nowrap {
    white-space: nowrap;
}

.pulse-when {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* ── Form section ───────────────────────────────────────────────────────── */
.pulse-form-block {
    max-width: 40rem;
    margin: 0 auto;
}

.pulse-helper {
    color: var(--color-muted-foreground);
    font-size: 0.9rem;
    margin: 0.375rem 0 0;
}

/* Honeypot — off-screen, not display:none (some bots skip hidden inputs). */
.pulse-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pulse-turnstile {
    margin-bottom: var(--space-lg);
    min-height: 65px;
}

.pulse-form-error {
    background-color: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-sm);
    color: #B12C39;
    padding: 0.75rem 1rem;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

/* Field-level error state — the control named by the backend's 400 `field`. */
.pulse-form .form-group input[aria-invalid="true"],
.pulse-form .form-group select[aria-invalid="true"] {
    border-color: #B12C39;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.pulse-field-error,
.pulse-load-error {
    color: #B12C39;
    font-size: 0.9rem;
    margin: 0.375rem 0 0;
}

.pulse-submit {
    width: 100%;
}

.pulse-fine-print {
    color: var(--color-muted-foreground);
    font-size: 0.9rem;
    margin: var(--space-sm) 0 0;
}

@media (min-width: 768px) {
    .pulse-submit {
        width: auto;
    }
}

/* ── Inline confirmation state ──────────────────────────────────────────── */
.pulse-ack {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-xl) 0;
}

.pulse-ack-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--color-foreground);
    margin-bottom: var(--space-md);
}

.pulse-ack-line {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-foreground);
}

.pulse-ack-line + .pulse-ack-line {
    margin-top: var(--space-md);
    color: var(--color-muted-foreground);
}

/* ── Sessions checkbox group (story nx-86c3c41ad09b) ────────────────────── */
/* Fieldset reset; the legend wears the same small mono field-label voice as
   the .form-group labels below it (styles.css). */
.pulse-form fieldset.pulse-sessions {
    border: 0;
    padding: 0;
    margin: 0 0 var(--space-lg);
    min-inline-size: 0;
}

.pulse-form fieldset.pulse-sessions legend {
    display: block;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted-foreground);
    margin-bottom: var(--space-xs);
}

.pulse-sessions .pulse-helper {
    margin: 0 0 var(--space-sm);
}

.pulse-sessions-list:empty {
    display: none;
}

/* Boxed option (the forge-checkbox shape). Overrides `.form-group label`
   so the session title reads in body voice, not the mono field-label one. */
.pulse-form .form-group label.pulse-session {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin: 0 0 var(--space-xs);
    cursor: pointer;
    background: var(--color-card);
    transition: border-color 0.15s, background 0.15s;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--color-foreground);
}

.pulse-form .form-group label.pulse-session:hover {
    border-color: var(--color-brand-indigo);
}

.pulse-form .form-group label.pulse-session:has(input:checked) {
    border-color: var(--color-brand-indigo);
}

.pulse-session input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--color-brand-indigo);
    cursor: pointer;
}

.pulse-session input[type="checkbox"][aria-invalid="true"] {
    outline: 2px solid #B12C39;
    outline-offset: 1px;
}

.pulse-session-text {
    flex: 1;
    min-width: 0;
}

.pulse-session-title,
.pulse-session-when {
    display: block;
    line-height: 1.4;
}

.pulse-session-title {
    font-weight: 600;
}

.pulse-session-when {
    color: var(--color-muted-foreground);
    font-size: 0.95rem;
}

/* Picked sessions on the confirmation (AC4). */
.pulse-ack-sessions {
    list-style: none;
    margin: 0 0 var(--space-md);
    padding: 0;
}

.pulse-ack-session {
    padding: var(--space-xs) 0;
}

.pulse-ack-session .pulse-session-title {
    color: var(--color-foreground);
}
