/* ─────────────────────────────────────────────
   Lead Webforms — webform.css v2.14.0
   ───────────────────────────────────────────── */

/* ── Full-page background wrapper ── */
#abs-page-wrap {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 16px;
    box-sizing: border-box;
    font-family: inherit;
}

/* ── White card ── */
#abs-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    box-sizing: border-box;
    overflow: hidden; /* clips the sliding steps */
}

/* ── Logo ── */
#abs-logo-wrap { margin-bottom: 20px; }
#abs-logo      { max-height: 48px; width: auto; }

/* ── Copy ── */
#abs-subheadline {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}
#abs-headline {
    font-size: 2.6rem;
    font-weight: 900;
    margin: 0 0 12px;
    color: #111;
    line-height: 1.1;
}
#abs-offer-text {
    font-size: 1rem;
    color: #444;
    margin: 0 0 16px;
    line-height: 1.4;
}
.abs-legal {
    font-size: 0.70rem;
    color: #666;
    line-height: 1.3;
    text-align: justify;
}
.abs-legal a {
    color: #1a4f8a;
    text-decoration: underline;
}

/* ── Step containers ── */
/*
 * BUG FIX: display:none + CSS transitions don't mix — the browser skips
 * the transition entirely when an element goes from display:none to display:block.
 * Fix: keep all steps in the flow with visibility/opacity/height instead,
 * or use a wrapper approach. Here we use max-height + pointer-events so the
 * inactive step takes no space but transitions still fire correctly.
 */
.abs-step {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}
.abs-step-active {
    opacity: 1;
    transform: translateX(0);
    max-height: 1000px; /* large enough to never clip content */
    pointer-events: auto;
    overflow: visible;
}
.abs-step-exit {
    opacity: 0;
    transform: translateX(-40px);
    pointer-events: none;
}

/* ── Honeypot ── */
.abs-trap {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

/* ── Message banners ── */
#abs-email-message,
#abs-phone-message {
    display: none;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
}
.abs-success {
    color: #1a6b2f;
    background: #e6f4ea;
    border: 1px solid #a8d5b5;
}
.abs-error {
    color: #922020;
    background: #fdecea;
    border: 1px solid #f5b7b1;
}

/* ── Inputs ── */
.abs-step label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

#abs-email-input,
#abs-phone {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    text-align: center;
}
#abs-email-input:focus,
#abs-phone:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* ── Buttons ── */
#abs-email-submit-btn,
#abs-submit-btn {
    display: block;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #004c80;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    width: 100%
}
#abs-email-submit-btn:hover:not(:disabled),
#abs-submit-btn:hover:not(:disabled) {
    background: #005f8d;
}
#abs-email-submit-btn:disabled,
#abs-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}
#abs-email-submit-btn:disabled::after,
#abs-submit-btn:disabled::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: abs-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes abs-spin {
    to { transform: rotate(360deg); }
}

/* ── Success state ── */
#abs-success-wrap {
    padding: 20px 0 10px;
    text-align: center;
}
#abs-success-wrap svg {
    display: block;
    margin: 0 auto 16px;
}
#abs-success-msg {
    font-size: 1.05rem;
    color: #1a6b2f;
    line-height: 1.6;
    margin: 0;
}

/* ── Signup hint SVG ── */
#abs-signup-hint {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 400px) {
    #abs-card {
        padding: 28px 20px;
    }
    #abs-email-submit-btn,
    #abs-submit-btn {
        width: 100%;
        justify-content: center;
    }
}