/* =============================================
   Davies Conversions — Blog CTA + Exit Popup
   Brand: sky blue #00b6de, spring green #aac713, dark #1f2438, white #fff
   ============================================= */

/* ── Blog Post CTA Banner ─────────────────── */

.dwm-cta-banner {
    margin-top: 32px;
    padding: 36px 32px 24px;
    background: linear-gradient(135deg, #e8f6fa, #f0fafb);
    border: 2px solid #b1d6de;
    border-radius: 16px;
    color: #1f2438;
    box-sizing: border-box;
}

.dwm-cta-columns {
    display: flex;
    gap: 32px;
}

.dwm-cta-col {
    flex: 1 1 0;
}

.dwm-cta-heading {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2438;
}

.dwm-cta-sub {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #5d6275;
}

.dwm-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dwm-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.dwm-cta-btn--primary {
    background: #aac713;
    color: #1f2438;
}

.dwm-cta-btn--outline {
    background: transparent;
    color: #00b6de;
    border: 2px solid #00b6de;
}

.dwm-cta-btn--outline:hover {
    background: #00b6de;
    color: #fff;
}

.dwm-cta-disclosure {
    margin: 20px 0 0;
    font-size: 0.75rem;
    color: #8892a8;
    text-align: center;
}

/* ── Responsive: stack on mobile ────────── */

@media (max-width: 680px) {
    .dwm-cta-columns {
        flex-direction: column;
        gap: 24px;
    }

    .dwm-cta-banner {
        padding: 28px 20px 20px;
    }
}

/* =============================================
   Exit-Intent Popup
   ============================================= */

.dwm-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 99997;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dwm-exit-overlay.dwm-exit--visible {
    opacity: 1;
    pointer-events: auto;
}

.dwm-exit-modal {
    position: relative;
    width: 92%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    color: #1f2438;
    box-sizing: border-box;
    text-align: center;
    border-top: 4px solid #00b6de;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.dwm-exit-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #8892a8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.dwm-exit-close:hover {
    color: #1f2438;
}

.dwm-exit-headline {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00b6de;
}

.dwm-exit-subheadline {
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.5;
    color: #5d6275;
}

.dwm-exit-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.dwm-exit-input {
    flex: 1 1 200px;
    max-width: 260px;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 2px solid #b1d6de;
    border-radius: 8px;
    background: #f8fcfd;
    color: #1f2438;
    outline: none;
}

.dwm-exit-input::placeholder {
    color: #8892a8;
}

.dwm-exit-input:focus {
    border-color: #00b6de;
}

.dwm-exit-submit {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #aac713;
    color: #1f2438;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dwm-exit-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(170,199,19,0.35);
}

.dwm-exit-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dwm-exit-msg {
    margin: 16px 0 0;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.dwm-exit-msg--success {
    color: #aac713;
}

.dwm-exit-msg--error {
    color: #eb5757;
}
