/* Survey Plugin Styles */
.survey-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.survey-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.survey-form h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.radio-group input[type="radio"]:checked + span,
.checkbox-group input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: #3498db;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f6391);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.survey-success {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    text-align: center;
}

.survey-success h2 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 24px;
}

.discount-code-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px dashed #3498db;
}

.discount-code {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    background: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.discount-info {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
}

.referral-section {
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.referral-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.referral-section input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 12px;
    margin: 10px 0;
}

.copy-btn {
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #219a52;
}

.survey-loading {
    text-align: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-step {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
}

.discount-preview {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid #27ae60;
    color: #27ae60;
}

.survey-results {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.result-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.result-item input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .survey-container {
        padding: 10px;
    }
    
    .survey-form {
        padding: 20px;
    }
    
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .discount-code {
        font-size: 18px;
        padding: 10px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select {
        padding: 10px 12px;
    }
}

/* Animation for form elements */
.form-group {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Success animation */
.survey-success {
    animation: slideInFromTop 0.5s ease;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Checkbox and radio custom styles */
.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    accent-color: #3498db;
    width: 16px;
    height: 16px;
}

/* Terms and conditions checkbox */
.form-group label:has(input[type="checkbox"][name="acepta_terminos"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}

/* Focus states for accessibility */
.form-group input:focus,
.form-group select:focus,
.submit-btn:focus,
.copy-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Error states */
.form-group.has-error input,
.form-group.has-error select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Success states */
.form-group.has-success input,
.form-group.has-success select {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}