/* ══════════════════════════════════════════
   BONMINDS PROMO POPUP — FRONTEND STYLES
   Simple. Clean. Unique.
   ══════════════════════════════════════════ */

/* Overlay */
.bm-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.bm-popup-overlay.bm-active {
    opacity: 1;
    visibility: visible;
}

/* Modal box */
.bm-popup-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.bm-popup-overlay.bm-active .bm-popup-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* No-image variant: centered content */
.bm-popup-no-img {
    max-width: 500px;
    flex-direction: column;
}
.bm-popup-no-img .bm-popup-body {
    text-align: center;
}
.bm-popup-no-img .bm-popup-badge,
.bm-popup-no-img .bm-popup-btn {
    align-self: center;
}

/* Close button */
.bm-popup-x {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #334155;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: color 0.2s, transform 0.2s;
}
.bm-popup-x:hover {
    color: #dc2626;
    transform: rotate(90deg);
}

/* Image side */
.bm-popup-img-side {
    flex: 0 0 45%;
    min-height: 280px;
    overflow: hidden;
    background: #f1f5f9;
}
.bm-popup-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content side */
.bm-popup-body {
    flex: 1 1 55%;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Badge */
.bm-popup-badge {
    display: inline-block;
    align-self: flex-start;
    background: #f0fdfa;
    color: #0d9488;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #ccfbf1;
    margin-bottom: 16px;
}

/* Heading */
.bm-popup-heading {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

/* Sub heading */
.bm-popup-sub {
    font-size: 16px;
    font-weight: 600;
    color: #0d9488;
    margin: 0 0 14px;
    line-height: 1.4;
}

/* Description */
.bm-popup-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 24px;
}
.bm-popup-desc p { margin: 0 0 8px; }
.bm-popup-desc p:last-child { margin-bottom: 0; }

/* CTA button */
.bm-popup-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 12px 24px;
    background: #0d9488;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.bm-popup-btn:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.4);
    color: #fff !important;
}
.bm-popup-btn svg {
    transition: transform 0.2s;
}
.bm-popup-btn:hover svg {
    transform: translateX(3px);
}

/* ─── POWERED BY BONMINDS ─── */
.bm-popup-credit {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.01em;
}
.bm-popup-credit a {
    color: #0d9488;
    font-weight: 700;
    text-decoration: none;
}
.bm-popup-credit a:hover {
    text-decoration: underline;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .bm-popup-box { flex-direction: column; }
    .bm-popup-has-img .bm-popup-img-side {
        flex: 0 0 auto;
        min-height: 180px;
        max-height: 200px;
    }
    .bm-popup-body { padding: 28px 22px; }
    .bm-popup-heading { font-size: 22px; }
    .bm-popup-sub { font-size: 14px; }
    .bm-popup-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bm-popup-overlay,
    .bm-popup-box,
    .bm-popup-x,
    .bm-popup-btn,
    .bm-popup-btn svg {
        transition: none !important;
    }
}
