#wsc-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}
#wsc-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  display: none;
  max-width: 300px;
  text-align: center;
}
#wsc-close {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-weight: bold;
}

    #wsc-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        z-index: 999998;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    #wsc-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    #wsc-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90%;
        max-width: 750px;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
        z-index: 999999;
        opacity: 1;
        visibility: visible;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    #wsc-popup.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }
    
    #wsc-popup-content {
        display: flex;
        flex-direction: row;
        min-height: 450px;
    }
    
    .wsc-popup-left {
        flex: 0 0 35%;
        background: linear-gradient(45deg, #555, #d3d3d3);
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        overflow: hidden;
    }
    
    .wsc-discount-badge {
        position: absolute;
        top: 20px;
        right: 20px;
        background-color: rgba(255, 255, 255, 0.9);
        color: #3a7bd5;
        font-weight: 700;
        padding: 8px 15px;
        border-radius: 30px;
        font-size: 18px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
        transform: rotate(5deg);
    }
    
    .wsc-popup-graphic {
        text-align: center;
        margin: 0 auto;
        opacity: 0.8;
    }
    
    .wsc-popup-graphic svg {
        stroke: #ffffff;
        width: 70%;
        height: auto;
    }
    
    .wsc-popup-right {
        flex: 0 0 65%;
        padding: 40px;
        display: flex;
        flex-direction: column;
    }
    
    #wsc-popup-title {
        font-size: 26px;
        font-weight: 700;
        margin: 0 0 15px;
        color: #333;
        line-height: 1.3;
    }
    
    #wsc-popup-description {
        font-size: 16px;
        color: #666;
        margin: 0 0 25px;
        line-height: 1.5;
    }
    
    #wsc-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        color: #999;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        z-index: 10;
        transition: color 0.2s;
    }
    
    #wsc-close:hover {
        color: #333;
    }
    
    .wsc-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .wsc-form-group {
        display: flex;
        flex-direction: column;
        margin: 15px 0;
        text-align: left;
    }
    
    .wsc-label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 6px;
        color: #555;
    }
    
    .wsc-input-icon {
        position: relative;
    }
    
    .wsc-input-icon svg {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
    }
    
    .wsc-input-icon input {
        width: 100%;
        padding: 12px 12px 12px 40px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    
    .wsc-input-icon input:focus {
        outline: none;
        border-color: #3a7bd5;
        box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
    }
    
    .wsc-privacy-policy {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 5px;
    }
    
    .wsc-privacy-policy input {
        margin-top: 3px;
    }
    
    .wsc-privacy-policy label {
        font-size: 13px;
        color: #777;
        line-height: 1.4;
    }
    
    #wsc-submit {
        position: relative;
        background: linear-gradient(45deg, #3a7bd5, #00d2ff);
        color: white;
        border: none;
        padding: 14px 24px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #wsc-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
    }
    
    #wsc-submit:active {
        transform: translateY(0);
    }
    
    .wsc-button-text {
        transition: opacity 0.2s;
    }
    
    .wsc-spinner {
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        opacity: 0;
        visibility: hidden;
    }
    
    #wsc-submit.loading .wsc-button-text {
        opacity: 0;
    }
    
    #wsc-submit.loading .wsc-spinner {
        opacity: 1;
        visibility: visible;
        animation: spin 0.8s linear infinite;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    #wsc-msg {
        margin-top: 15px;
        padding: 10px;
        border-radius: 6px;
        font-size: 14px;
        text-align: center;
        opacity: 1;
        transform: translateY(10px);
        transition: all 0.3s;
    }
    
    #wsc-msg.error {
        background-color: #fff8f8;
        color: #e53935;
        border: 1px solid #ffcdd2;
        opacity: 1;
        transform: translateY(0);
    }
    
    #wsc-msg.success {
        background-color: #f1f8e9;
        color: #43a047;
        border: 1px solid #dcedc8;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Animation for popup entrance */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translate(-50%, -40%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }
    
    /* Mobile Responsiveness */
    @media (max-width: 768px) {
        #wsc-popup-content {
            flex-direction: column;
            min-height: auto;
        }
        
        .wsc-popup-left {
            display: none;
        }
        
        .wsc-popup-right {
            flex: 1;
            padding: 30px 20px;
        }
        
        #wsc-popup-title {
            font-size: 22px;
            text-align: center;
        }
        
        #wsc-popup-description {
            text-align: center;
        }
        
        .wsc-discount-badge {
            position: static;
            margin: 0 auto 20px;
            transform: none;
        }
    }