/* ============================================================================
   H69 NEWSLETTER FIELD — founder-chosen deviations from the frozen WPForms look.
   This file layers ON TOP of the frozen fidelity sheets (frozen-a/frozen-b) —
   never edit those; every deliberate visual change lives here.

   BLOCK 1 — SUBMIT button: "Abyss Diver checkout" paint graft (2026-07-09).
   Reproduces the PMPro L3/L4 checkout submit look (source of truth:
   data/newsletter-transplant/checkout_button_style_spec.md — the real painter
   is style.css:2738 #pmpro_form .pmpro_btn-submit-checkout, NOT functions.php).
   PAINT ONLY: no width/height/padding/position/display/clip-path/font-size/
   border-radius/transform touched — geometry is sacred (scroll glitch).
   AD palette hardcoded on purpose: the checkout sources var(--tier-bg) etc.,
   which on a public/guest page would fall back to cyan; the founder chose AD.
   Physics notes: the container clip-path (inset 6px round 200px) clips outer
   box-shadows + edge borders, so the checkout's outer glow + 1px border are
   rendered as an INSET ring + inner glow (closest in-constraint equivalent);
   the checkout hover scale(1.03) is blocked by nectar transform:none!important,
   substituted with filter:brightness(1.05). Selector specificity (2,3,2) beats
   every frozen/nectar painter in all three loading regimes.
   ============================================================================ */
/* ============================================================================
   BLOCK 3 — SUCCESS PILL STATE (FOUNDER RULING 2026-07-10). On a successful
   subscribe the field does NOT get replaced by the old WPForms green rectangle.
   Instead: the SUBMIT button disappears, the pill keeps its exact shape/size,
   its outline turns H69 brand green (#69db7a — the platform's canonical green)
   with a soft glow, and the founder-blessed text "Success! Await free drops!"
   sits centered inside in the same Tektur/size, green. The JS adds
   .h69-nl-success on the container and writes the text as the input value.
   ============================================================================ */
#ajax-content-wrap #wpforms-995.h69-nl-success .wpforms-submit-container {
    display: none !important;
}
#ajax-content-wrap #wpforms-995.h69-nl-success .wpforms-form input#wpforms-995-field_2 {
    border-color: #69db7a !important;
    box-shadow: 0 0 15px rgba(105, 219, 122, 0.35), inset 0 0 8px rgba(105, 219, 122, 0.12) !important;
    color: #69db7a !important;
    text-align: center !important;
    padding-right: 1em !important;    /* the button is gone; balance nectar's 25% right pad so centering is true */
    caret-color: transparent !important;
    pointer-events: none !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

/* ============================================================================
   BLOCK 2 — FIDELITY CORRECTION: per-page container padding (2026-07-09/10).
   The WPForms-era ORIGINAL (each page's "best"): /subscribe = 20px top/bottom,
   homepage footer = 0px. They tie at specificity (0,2,1) between nectar's 20px
   longhand and the WPForms bundle's padding:0 shorthand, so SOURCE ORDER decided,
   and the order differed per page (bundle early on /subscribe -> 20px; late on the
   homepage global-section -> 0px).
   Two order-flips happened during the transplant:
     1. frozen-b loaded late everywhere -> flipped /subscribe 20px -> 0px.
     2. WPForms DELETION removed nectar-wpforms; frozen-a (its clone, carrying the
        20px rule) now loads AFTER frozen-b -> flipped the HOMEPAGE 0px -> 20px
        (a +40px vertical shift that also moved the reveal-footer scroll-glitch).
   Fix = pin BOTH pages to their EXACT original, page-scoped at (0,3,2) so it wins
   regardless of any future load order (custom.css also loads last): /subscribe=20px,
   homepage(page-id-10)=0px. Restoring the homepage 0px also restores the original
   glitch geometry. Unifying the two is a founder design call, not a fidelity fix.
   ============================================================================ */
body.page-id-7281 div.wpforms-container-full.nectar-inline-subscribe-form {
    padding-top: 20px;
    padding-bottom: 20px;
}
body.page-id-10 div.wpforms-container-full.nectar-inline-subscribe-form {
    padding-top: 0;
    padding-bottom: 0;
}

#ajax-content-wrap div.wpforms-container-full.nectar-inline-subscribe-form .wpforms-form button#wpforms-submit-995 {
    background-color: #cc99ff !important;               /* checkout var(--tier-bg) @ AD */
    background-image: none !important;                  /* solid fill, no gradient (checkout has none) */
    color: #000000 !important;                          /* checkout var(--tier-text) — black text pre-hover */
    box-shadow: inset 0 0 0 1px #0d0d0d,
                inset 0 0 8px rgba(204, 153, 255, 0.35) !important; /* checkout border+glow, inset (clip-path-safe) */
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;               /* exact checkout timing */
}
#ajax-content-wrap div.wpforms-container-full.nectar-inline-subscribe-form .wpforms-form button#wpforms-submit-995:hover,
#ajax-content-wrap div.wpforms-container-full.nectar-inline-subscribe-form .wpforms-form button#wpforms-submit-995:active {
    background-color: #a37fd3 !important;               /* checkout var(--tier-hover-bg) */
    background-image: none !important;
    color: #ffffff !important;                          /* checkout hover text */
    box-shadow: inset 0 0 0 1px #d2b2fb,
                inset 0 0 12px rgba(204, 153, 255, 0.6) !important; /* checkout hover border+glow, inset */
    opacity: 0.9 !important;                            /* checkout hover dim */
    filter: brightness(1.05) !important;                /* substitute for the blocked scale(1.03) "pop" */
}
