/* =====================================================
   Burger's Popup Pro – Frontend Styles
   v2.0.0
   ===================================================== */

/* ---- Overlay ---- */
.bpp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bpp-overlay.bpp--visible {
    opacity: 1;
    pointer-events: all;
}

/* Slide-in variants */
.bpp-overlay.bpp-slidein {
    align-items: flex-end;
    justify-content: flex-end;
    background: transparent !important;
}

.bpp-overlay.bpp-slidein.bpp-slidein--bottom-left {
    justify-content: flex-start;
}

/* ---- Modal Container ---- */
.bpp-modal {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: #fff;
    /* Animation base */
    transform: translateY(30px);
    transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.35s ease;
    opacity: 0;
}

.bpp-overlay.bpp--visible .bpp-modal {
    transform: translateY(0);
    opacity: 1;
}

/* Zoom animation */
.bpp-overlay[data-animation="zoom"] .bpp-modal {
    transform: scale(0.85);
}
.bpp-overlay[data-animation="zoom"].bpp--visible .bpp-modal {
    transform: scale(1);
}

/* Fade only */
.bpp-overlay[data-animation="fade"] .bpp-modal {
    transform: none;
}

/* Slide-in modal */
.bpp-slidein .bpp-modal {
    max-width: 360px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
}

/* ---- Close Button ---- */
.bpp-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: .7;
    transition: opacity .2s;
    z-index: 2;
}

.bpp-close:hover {
    opacity: 1;
}

/* ---- Content ---- */
.bpp-content {
    margin-bottom: 16px;
}

.bpp-content p:last-child {
    margin-bottom: 0;
}

/* ---- CTA Button ---- */
.bpp-btn-wrap {
    margin-top: 16px;
}

.bpp-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .02em;
    transition: background-color .2s, transform .1s;
    border: none;
    cursor: pointer;
    line-height: 1.3;
    box-sizing: border-box;
}

.bpp-cta-btn:hover {
    transform: translateY(-1px);
}

.bpp-cta-btn:active {
    transform: translateY(0);
}

/* ---- Image ---- */
.bpp-image-wrap {
    overflow: hidden;
}

.bpp-image {
    display: block;
    height: auto;
}



/* ---- Lead Form ---- */
.bpp-form-wrap {
    margin-top: 16px;
}

.bpp-form-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.bpp-form__group {
    margin-bottom: 12px;
}

.bpp-form__group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bpp-required {
    color: #c00;
}

.bpp-form__group input[type="text"],
.bpp-form__group input[type="email"] {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
}

.bpp-form__group input:focus {
    border-color: #2271b1;
}

.bpp-form__msg {
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 18px;
}

.bpp-form__msg--error {
    color: #c00;
}

.bpp-form__msg--success {
    color: #1a7a1a;
}

.bpp-form__btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    letter-spacing: .02em;
}

.bpp-form__btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.bpp-form__spinner {
    display: inline-block;
    margin-left: 6px;
    animation: bpp-spin 1s linear infinite;
}

@keyframes bpp-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Accessibility ---- */
.bpp-overlay:focus-within .bpp-modal {
    outline: none;
}

/* ---- Scrollbar lock helper ---- */
body.bpp-locked {
    overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .bpp-overlay {
        padding: 12px;
        align-items: center;
    }

    .bpp-countdown__block strong {
        font-size: 22px;
    }

    .bpp-cta-btn {
        width: 100%;
        text-align: center;
    }
}
