/**
 * Return Visit Popup Styles
 * 
 * @author Alexander Pechkarev
 * @date 2026-01-28
 * @copyright Blackpool Pleasure Beach
 */

/* Overlay */
.rv-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.rv-popup-overlay.rv-popup-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Modal */
.rv-popup-modal {
    background: #041163;
    border-radius: 8px;
    border: 3px solid #ff00d0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;

}

.rv-popup-visible .rv-popup-modal {
    transform: scale(1);
}

/* Close Button */
.rv-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1;
    transition: color 0.2s;
}

.rv-popup-close:hover {
    color: #000;
}

/* Content */
.rv-popup-content {
    padding: 40px 30px 30px;
    text-align: center;
}

.rv-popup-content h2 {
    margin: 0 0 20px;
    font-size: 28px;
    color: #f0eded;
    line-height: 1.3;
}

.rv-popup-content p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #f0eded;
    line-height: 1.6;
}

.rv-popup-content-p {
 font-size: 14px !important;
}

.rv-popup-highlight {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    background: #ff00d0;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0b8989;
    margin: 0 0 20px;
}

.rv-popup-highlight p{
    margin: 0 0 20px;
    font-size: 16px;
    color: #f0eded;
    line-height: 1.6;
}

.rv-popup-highlight strong {
    color: #f0eded;
    font-size: 24px;
}

.rv-popup-second-highlight {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    /* background: #ff00d0; */
    padding: 15px;
    /* border-radius: 6px; */
    /* border-left: 4px solid #0b8989; */
    margin: 0 0 20px;
}

/* .rv-popup-second-highlight p{
    margin: 0 0 20px;
    font-size: 16px;
    color: #f0eded;
    line-height: 1.6;
} */



.rv-popup-feature::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 10px;
}

.rv-popup-terms {
    font-size: 14px !important;
    color: #999;
    margin-top: 20px !important;
    margin-bottom: 0;
    font-style: italic;
}

/* Actions */
.rv-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Buttons */
.rv-popup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-align: center;
}

.rv-popup-btn-primary {
    color: white;
    font-family: Barlow, sans-serif !important;
    font-size: 24px;
    line-height: 35px;
    text-align: center;
    background-color: #00c598 !important;
    border: 2px solid #00c598;
    background: 0 0;
    width: 100%;
    color: #fff;
    margin: auto;
    display: table;    
}

.rv-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    background-color: #ff00bd !important;
    border: 2px solid #ff00bd;
    background: 0 0;
    width: 100%;
    color: #fff;    
}

.rv-popup-btn-secondary {
    background-color: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.rv-popup-btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: #bbb;
}

/* Responsive */
@media (max-width: 600px) {
    .rv-popup-modal {
        width: 95%;
        margin: 20px;
    }

    .rv-popup-content {
        padding: 35px 20px 25px;
    }

    .rv-popup-content h2 {
        font-size: 24px;
    }

    .rv-popup-content p {
        font-size: 15px;
    }
}

/* Animation for popup entrance */
@keyframes rv-popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
