/*
 * BLRS CTA Modal — Frontend Styles
 * Plugin: BLRS CTA Modal v1.0.0
 * Author: Waterfront Creatives
 */

/* ── OVERLAY — dark semi-transparent background ── */
#blrs-cta-overlay {
    position: fixed;
    inset: 0;                          /* covers the whole viewport */
    background: rgba(0, 0, 0, 0.72);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: blrsFadeIn 0.3s ease;
}

/* ── MODAL BOX ── */
#blrs-cta-modal {
    position: relative;
    background: #ffffff;
    border-radius: 6px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: blrsSlideUp 0.35s ease;
    text-align: center;
}

/* ── CLOSE BUTTON ── */
#blrs-cta-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#blrs-cta-close:hover {
    background: rgba(0,0,0,0.8);
}

/* ── IMAGE CTA ── */
.blrs-cta-image-wrap {
    width: 100%;
    line-height: 0; /* removes gap under image */
}
.blrs-cta-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── TEXT CTA ── */
.blrs-cta-text-wrap {
    padding: 32px 32px 0;
    color: #1B2D6B;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ── CAPTION ── */
.blrs-cta-caption {
    margin: 16px 24px 4px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* ── BUTTON ── */
.blrs-cta-button {
    display: inline-block;
    margin: 16px 24px 28px;
    padding: 13px 32px;
    background: #1B2D6B;        /* BLRS navy */
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s;
}
.blrs-cta-button:hover {
    background: #4CAF50;        /* BLRS green on hover */
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── ANIMATIONS ── */
@keyframes blrsFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes blrsSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── MOBILE ── */
@media (max-width: 480px) {
    #blrs-cta-modal {
        border-radius: 4px;
    }
    .blrs-cta-button {
        display: block;
        margin: 16px 20px 24px;
    }
}
