/* WP Auto Promo Frontend Shared Styles */

/* Honeypot anti-spam - disembunyikan total */
.wpap-honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Status alerts */
#wpap-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    text-align: center;
    display: none;
    line-height: 1.5;
}

#wpap-form-message.success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#wpap-form-message.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

#wpap-form-message.loading {
    display: block;
    background-color: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

/* Spinner animer */
.wpap-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: wpap-spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes wpap-spin {
    to { transform: rotate(360deg); }
}

.wpap-sticky-cta {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.wpap-float-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background-color: #25D366;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.wpap-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    color: #fff !important;
}

/* Pastikan footer tidak tertutup oleh sticky button */
.wpp-footer {
    padding-bottom: 80px !important;
}
@media (max-width: 600px) {
    .wpap-sticky-cta {
        bottom: 16px;
        left: 16px;
    }
    .wpap-float-btn-text {
        display: none !important;
    }
    .wpap-float-btn {
        width: 48px;
        height: 48px;
        padding: 0 !important;
        justify-content: center;
        border-radius: 50% !important;
    }
    .wpap-float-btn svg {
        margin: 0 !important;
    }
}

/* Hide external injected body elements (like third-party chat/floating buttons) in preview mode */
body.wpap-preview-body > *:not(.wpap-preview-wrapper):not(script):not(style):not(link) {
    display: none !important;
}



