/* Frontend Survey Styles - Simple & Clean */

/* Container - بدون پس‌زمینه */
.advanced-survey-container {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    max-width: 700px;
    margin: 40px auto;
    padding: 0;
}

/* Form - سفید ساده */
.survey-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Questions */
.survey-question {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.survey-question:last-of-type {
    border-bottom: none;
}

/* Labels */
.survey-label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.survey-label .required {
    color: #dc3545;
    margin-right: 3px;
}

/* Inputs */
.survey-input,
.survey-textarea,
.survey-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Tahoma, Arial, sans-serif;
    background: white;
}

.survey-input:focus,
.survey-textarea:focus,
.survey-select:focus {
    outline: none;
    border-color: #4CAF50;
}

.survey-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Options */
.survey-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.survey-option {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.survey-option:hover {
    background: #f0f0f0;
}

.survey-option input[type="radio"],
.survey-option input[type="checkbox"] {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.survey-option span {
    font-size: 14px;
    color: #333;
}

/* Conditional Questions */
.conditional-question {
    margin-right: 30px;
    margin-top: 15px;
    padding: 15px;
    background: #fffbf0;
    border-right: 3px solid #ffc107;
    border-radius: 4px;
}

.conditional-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* Star Rating */
.rating-stars {
    display: flex;
    gap: 5px;
    font-size: 28px;
    direction: ltr;
    justify-content: flex-end;
}

.star {
    color: #ddd;
    cursor: pointer;
}

.star:hover,
.star.active {
    color: #ffc107;
}

/* Submit Button */
.survey-submit {
    text-align: center;
    margin-top: 25px;
}

.survey-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.survey-button:hover {
    background: #45a049;
}

.survey-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages - رنگ مشخص */
.survey-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.survey-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.survey-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.survey-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #ffc107;
}

/* Mobile */
@media (max-width: 768px) {
    .advanced-survey-container {
        margin: 20px 10px;
    }
    
    .survey-form {
        padding: 20px;
    }
    
    .survey-button {
        padding: 10px 30px;
        font-size: 15px;
    }
}

