.surveyspark-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.surveyspark-popup-container {
    background: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.surveyspark-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.surveyspark-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.surveyspark-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.surveyspark-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.surveyspark-form {
    padding: 30px;
    background: white;
    color: #333;
}

.surveyspark-form-group {
    margin-bottom: 20px;
}

.surveyspark-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.surveyspark-form-group input[type="text"],
.surveyspark-form-group input[type="email"],
.surveyspark-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background: white;
    color: #2c3e50;
}

.surveyspark-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.surveyspark-form-group input.error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.surveyspark-question {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.surveyspark-question.error {
    border-left-color: #e74c3c;
    background-color: #ffe6e6;
}

.surveyspark-question-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.surveyspark-radio-label,
.surveyspark-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: #34495e;
    font-size: 14px;
}

.surveyspark-radio-label:hover,
.surveyspark-checkbox-label:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.surveyspark-radio-label input,
.surveyspark-checkbox-label input {
    margin-right: 10px;
    transform: scale(1.2);
}

.surveyspark-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.surveyspark-submit-btn,
.surveyspark-reset-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.surveyspark-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.surveyspark-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.surveyspark-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.surveyspark-reset-btn {
    background: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
}

.surveyspark-reset-btn:hover {
    background: #d5dbdb;
}

.surveyspark-success-message {
    padding: 40px 30px;
    text-align: center;
    background: white;
    color: #2c3e50;
}

.surveyspark-success-message h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 24px;
}

.surveyspark-success-message p {
    font-size: 16px;
    margin: 0;
}

@media (max-width: 768px) {
    .surveyspark-popup-container {
        width: 95%;
        margin: 10px;
    }
    
    .surveyspark-popup-header {
        padding: 20px;
    }
    
    .surveyspark-title {
        font-size: 20px;
    }
    
    .surveyspark-form {
        padding: 20px;
    }
    
    .surveyspark-form-actions {
        flex-direction: column;
    }
}