/* --- Promotional Pop-up Styles --- */

/* The semi-transparent background overlay */
#promo-popup-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050; /* Sits on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(36, 36, 36, 0.7); /* Dark overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* The actual pop-up box */
#promo-popup-modal .popup-content {
    background-color: var(--clr-background-light);
    color: var(--clr-text-dark);
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Style for when the pop-up is active */
#promo-popup-modal.active {
    display: block; /* Show the pop-up */
    opacity: 1;
}

#promo-popup-modal.active .popup-content {
    transform: scale(1);
}

/* The close button (X) in the corner */
#promo-popup-modal .popup-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

#promo-popup-modal .popup-close:hover,
#promo-popup-modal .popup-close:focus {
    color: var(--clr-text-dark);
    text-decoration: none;
}

/* Styling for the content inside the pop-up */
#promo-popup-modal h2 {
    color: var(--clr-primary-accent);
    margin-top: 0;
    text-align: center;
}

#promo-popup-modal p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

#promo-popup-modal .popup-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box; /* Important for width: 100% */
}