/* public/sites/<site>/lp/lp.css
   Google Ads landing pages. Layered on top of the site's departments/dept.css
   (which supplies the :root tokens, reset, typography and .btn styles) — this
   file only adds what a conversion page needs: a quiet logo bar with no site
   navigation, a single-column hero whose headline, subhead and CTA fit above
   the fold on a phone, a few short sections, the inquiry form and its
   success state. Identical copies live in civicvanguard/lp/ and civquest/lp/;
   keep them in step. Mobile first — the wider breakpoints are at the end. */

/* Quiet header: a logo that goes nowhere. Paid traffic has one job here.
   Static, not sticky — every pixel above the fold belongs to the headline. */
.lp-nav {
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid var(--border);
}
.lp-nav-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
}
.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--black);
    text-decoration: none;
}
.lp-logo img { height: 32px; width: auto; display: block; }

/* One column, everywhere. */
.lp-container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Hero: H1, subhead, one button, one line under it. */
.lp-hero { padding: 36px 0 28px; }
.lp-hero h1 {
    font-size: clamp(1.9rem, 7.2vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--black);
    margin-bottom: 14px;
}
.lp-hero-lede {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 52ch;
}
.lp-cta { display: grid; gap: 10px; justify-items: start; }
.lp-cta .btn { padding: 14px 24px; font-size: 1.05rem; border-radius: 10px; }
.lp-cta .btn svg { width: 18px; height: 18px; }
.lp-cta-note { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Sections: a label, then short lines. No body copy by design. */
.lp-section { padding: 22px 0; border-top: 1px solid var(--border); }
.lp-section h2 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
}
.lp-list, .lp-steps, .lp-qa { margin: 0; padding: 0; }
.lp-list { list-style: none; display: grid; gap: 10px; }
.lp-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.45;
}
.lp-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.lp-steps { list-style: none; display: grid; gap: 12px; counter-reset: lp-step; }
.lp-steps li {
    counter-increment: lp-step;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.45;
}
.lp-steps li::before {
    content: counter(lp-step);
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.lp-qa { display: grid; gap: 8px; }
.lp-qa div { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 1.05rem; line-height: 1.45; }
.lp-qa dt { color: var(--text); }
.lp-qa dd { margin: 0; color: var(--black); font-weight: 700; }

/* The form, at the bottom, inside a card. The hero CTA jumps here. */
.lp-form-section { padding: 28px 0 56px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
.lp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    padding: 20px;
}
/* lp.js toggles the `hidden` attribute on the form, the button's text/loading
   spans and the success panel. Any author `display` rule (the grid/inline-flex
   rules below) beats the UA's [hidden] { display: none }, so make the
   attribute win explicitly. The honeypot (.lp-hp) is deliberately excluded:
   it must stay off-screen, not display:none. */
.lp-form[hidden], .lp-form [hidden], #lp-success[hidden] { display: none !important; }
.lp-form { display: grid; gap: 16px; }
.lp-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.lp-field label .req { color: var(--primary); }
.lp-field label .opt { font-weight: 400; color: var(--text-muted); }
.lp-field input,
.lp-field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-field input:focus,
.lp-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.2);
}
.lp-field textarea { min-height: 96px; resize: vertical; }
.lp-help { font-size: 0.85rem; color: var(--text-muted); margin: 6px 0 0; line-height: 1.4; }
/* Per-field inline errors. Empty slots take no space. */
.lp-error { font-size: 0.85rem; color: #B91C1C; margin: 6px 0 0; line-height: 1.4; }
.lp-error:empty { display: none; }
.lp-field.has-error input,
.lp-field.has-error textarea { border-color: #B91C1C; }
.lp-field.has-error input:focus,
.lp-field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18); }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.lp-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lp-form .btn { width: 100%; justify-content: center; padding: 15px 20px; font-size: 1.05rem; border-radius: 10px; }
.lp-form .btn .btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.lp-form .btn:disabled { opacity: 0.75; cursor: progress; transform: none; }
.lp-spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
    animation: lp-spin 0.8s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }
/* Whole-form message: network / server errors only; field errors sit inline. */
.lp-message { font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; }
.lp-message:empty { display: none; }
.lp-message.error { color: #B91C1C; }
.lp-form .lp-cta-note { text-align: center; }
#lp-turnstile:empty { display: none; }

/* Success state replaces the form in place. */
.lp-success { text-align: center; padding: 12px 4px; }
.lp-success .lp-success-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(0, 168, 150, 0.12); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.lp-success .lp-success-icon svg { width: 28px; height: 28px; }
.lp-success p { color: var(--text); font-size: 1.05rem; line-height: 1.55; }

/* Visible focus for every interactive element (keyboard users). */
.lp-logo:focus-visible,
.btn:focus-visible,
.lp-field input:focus-visible,
.lp-field textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
.lp-field input:focus-visible,
.lp-field textarea:focus-visible { outline-offset: 0; }

@media (prefers-reduced-motion: reduce) {
    .lp-spinner { animation-duration: 2s; }
    .btn { transition: none; }
}

/* Wider screens: more air, same single column. */
@media (min-width: 640px) {
    .lp-nav-container { padding: 14px 24px; }
    .lp-logo img { height: 36px; }
    .lp-container { padding: 0 24px; }
    .lp-hero { padding: 64px 0 40px; }
    .lp-hero h1 { margin-bottom: 18px; }
    .lp-hero-lede { font-size: 1.2rem; margin-bottom: 28px; }
    .lp-section { padding: 30px 0; }
    .lp-form-section { padding: 40px 0 80px; }
    .lp-card { padding: 32px; }
}
