/* Popup Overlay */
.spc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spc-popup-overlay.spc-active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.spc-popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.spc-popup-overlay.spc-active .spc-popup-container {
    transform: scale(1);
}

/* Close Button */
.spc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
    padding: 0;
}

.spc-popup-close:hover {
    background: #333333;
}

/* Popup Content */
.spc-popup-content {
    padding: 50px 40px 40px;
    text-align: center;
}

/* Image */
.spc-popup-image {
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
}

.spc-popup-image img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Headline */
.spc-popup-headline {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 20px;
    color: #000000;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Ivar Text", sans-serif;
}

/* Body Text */
.spc-popup-body {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 25px;
}

.spc-popup-body p {
    margin: 0 0 15px;
}

.spc-popup-body p:last-child {
    margin-bottom: 0;
}

/* Form */
.spc-popup-form {
    margin-top: 25px;
}

.spc-popup-form a {
    color: #d63384;
    text-decoration: underline;
    font-weight: 500;
}

.spc-popup-form a:hover {
    color: #a02669;
}

/* Responsive Design */
@media (max-width: 600px) {
    .spc-popup-container {
        max-width: 95%;
        margin: 10px;
    }
    
    .spc-popup-content {
        padding: 50px 25px 30px;
    }
    
    .spc-popup-headline {
        font-size: 24px;
    }
    
    .spc-popup-body {
        font-size: 14px;
    }
    
    .spc-popup-image img {
        max-width: 150px;
    }
}

/* Prevent body scroll when popup is open */
body.spc-popup-open {
    overflow: hidden;
}
