/* ===== استایل‌های عمومی ===== */
.survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    direction: rtl;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

.survey-field {
    margin-bottom: 15px;
}

.survey-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.survey-field input[type="text"],
.survey-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.survey-field input[type="text"]:focus,
.survey-field textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.survey-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===== ستاره‌ها ===== */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    padding: 5px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 35px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating input:checked ~ label {
    color: #ffc107;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

/* ===== باکس سوال ===== */
.survey-question {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eef2f6;
}

.survey-question p:first-child {
    margin-top: 0;
    font-size: 16px;
    color: #1e1e1e;
}

.survey-user-info {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eef2f6;
}

.survey-user-info h3 {
    margin-top: 0;
    color: #2271b1;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
}

/* ===== خطا ===== */
.survey-error {
    padding: 15px 20px;
    background: #fef3f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    text-align: center;
    font-weight: 500;
}

/* ===== دکمه ===== */
.survey-container .button-primary {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border: none;
    color: #fff;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.survey-container .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.survey-container .button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== باکس کد قرعه‌کشی ===== */
.raffle-code-box {
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: slideDown 0.5s ease;
}

/* ===== پاسخگو ===== */
@media (max-width: 768px) {
    .survey-container {
        padding: 15px;
    }
    
    .star-rating label {
        font-size: 28px;
    }
    
    .raffle-code-box {
        padding: 20px !important;
    }
    
    .raffle-code-box div[style*="font-size: 36px"] {
        font-size: 24px !important;
    }
    
    .survey-question {
        padding: 15px;
    }
    
    .survey-user-info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .star-rating label {
        font-size: 22px;
    }
    
    .survey-container .button-primary {
        font-size: 14px;
        padding: 12px 20px;
    }
}

.report-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}