/* Spin to Win Popup Styles */
#stw-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#stw-popup-wrapper.active {
    display: flex;
    opacity: 1;
}

.stw-container {
    background: #fff;
    width: 95%;
    max-width: 900px;
    border-radius: 24px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stw-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    z-index: 10;
    color: #333;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stw-close:hover {
    background: #f8f9fa;
    transform: rotate(90deg);
}

.stw-wheel-side {
    flex: 1.2;
    min-width: 350px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.stw-info-side {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

/* Wheel Styling */
.stw-wheel-container {
    position: relative;
    width: 350px;
    height: 350px;
}

#stw-canvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.stw-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    z-index: 5;
}

.stw-pointer-inner {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 36px solid #333;
    margin: 0 auto;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.3));
}

/* Form Styling */
.stw-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    color: #1a1a1a;
}

.stw-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

.stw-form input {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.stw-form input:focus {
    border-color: #ff4d4d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.1);
    outline: none;
}

.stw-form .consent-area {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.stw-form .consent-area input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
}

.stw-form .consent-area label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.stw-form .consent-area label a {
    color: #333;
    font-weight: 600;
    text-decoration: underline;
}

.stw-spin-btn {
    width: 100%;
    padding: 0px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    box-shadow: 0 8px 15px rgba(255, 75, 43, 0.3);
    transition: all 0.3s ease;
}

.stw-spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(255, 75, 43, 0.4);
}

.stw-spin-btn:active {
    transform: scale(0.97);
}

.stw-spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Success View */
.stw-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: stwFadeIn 0.5s ease;
}

.stw-success.active {
    display: flex;
}

.stw-prize-label {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ff4d4d;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stw-coupon-box {
    background: #f8f9fa;
    padding: 20px;
    border: 3px dashed #ff416c;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 32px;
    font-weight: 700;
    margin: 20px 0;
    color: #333;
    letter-spacing: 2px;
}

.stw-copy-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #333;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.stw-copy-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes stwFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .stw-container {
        flex-direction: column;
        /* max-height: 90vh; */
        width: 92%;
        border-radius: 20px;
        overflow-y: auto;
    }

    .stw-wheel-side {
        padding: 30px 15px;
        min-width: 100%;
        background: #f8f9fa;
    }

    .stw-wheel-container {
        width: 240px;
        height: 240px;
    }

    .stw-info-side {
        padding: 30px 20px;
        min-width: 100%;
    }

    .stw-tagline {
        font-size: 28px;
    }

    .stw-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .stw-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .stw-wheel-container {
        width: 200px;
        height: 200px;
    }

    .stw-wheel-side {
        padding: 25px 10px;
    }

    .stw-info-side {
        padding: 25px 15px;
    }

    .stw-tagline {
        font-size: 24px;
    }

    .stw-form input {
        padding: 12px 15px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    .stw-prize-label {
        font-size: 24px;
    }

    .stw-coupon-box {
        font-size: 24px;
        padding: 15px;
    }
}