/* ── MGest Promotions Popup/Banner Styles ──────────────────── */

/* Overlay */
.mgest-promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mgest-promo-overlay.mgest-promo-visible {
    opacity: 1;
}

/* Popup box */
.mgest-promo-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 28px 24px;
    animation: mgestPromoSlideIn 0.35s ease-out;
}
@keyframes mgestPromoSlideIn {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Close */
.mgest-promo-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 1;
}
.mgest-promo-close:hover { color: #333; }

/* Image */
.mgest-promo-img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Title */
.mgest-promo-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #222;
}

/* Description */
.mgest-promo-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
}
.mgest-promo-desc img { max-width: 100%; height: auto; border-radius: 6px; }

/* CTA */
.mgest-promo-cta {
    display: inline-block;
    padding: 10px 24px;
    background: #4a39a6;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
    transition: background 0.2s;
}
.mgest-promo-cta:hover { background: #3a2d86; }

/* Lead form */
.mgest-promo-lead-form {
    margin-top: 14px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}
.mgest-promo-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.mgest-promo-input:focus {
    border-color: #4a39a6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 57, 166, 0.15);
}
.mgest-promo-submit {
    display: block;
    width: 100%;
    padding: 10px;
    background: #4a39a6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.mgest-promo-submit:hover { background: #3a2d86; }
.mgest-promo-submit:disabled { background: #aaa; cursor: not-allowed; }

/* Messages */
.mgest-promo-msg { margin-top: 8px; font-size: 0.85rem; text-align: center; min-height: 1.2em; }
.mgest-promo-msg-ok { color: #28a745; }
.mgest-promo-msg-err { color: #dc3545; }

/* Mobile */
@media (max-width: 600px) {
    .mgest-promo-box { padding: 20px 16px 18px; border-radius: 8px; }
    .mgest-promo-title { font-size: 1.15rem; }
}
