/* استایل کلی سیستم پرسش و پاسخ */
.tqa-wrapper {
    max-width: 800px;
    margin: 20px auto;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

/* باکس فرم */
.tqa-form-container {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.tqa-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    display: inline-block;
}

/* فیلدها */
.tqa-field {
    margin-bottom: 18px;
}

.tqa-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 0.95rem;
}

.tqa-field label .required {
    color: #e74c3c;
}

.tqa-field input[type="text"],
.tqa-field select,
.tqa-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background-color: #fcfcfc;
}

.tqa-field input[type="text"]:focus,
.tqa-field select:focus,
.tqa-field textarea:focus {
    border-color: #3498db;
    outline: none;
    background-color: #fff;
}

.tqa-field input[type="file"] {
    display: block;
    padding: 8px;
    background: #f8f9fa;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.tqa-hint {
    display: block;
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 0.82rem;
}

/* دکمه ثبت */
#tqa-submit-btn {
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

#tqa-submit-btn:hover {
    background-color: #219150;
}

/* پیغام‌ها */
.tqa-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    display: none;
    font-size: 0.9rem;
}
.tqa-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.tqa-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* لیست سوالات */
.tqa-list-container {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tqa-list-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #2c3e50;
}

.tqa-questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tqa-questions-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tqa-questions-list li:last-child {
    border-bottom: none;
}

.tqa-questions-list a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tqa-questions-list a:hover {
    color: #16a085;
}

.tqa-date {
    font-size: 0.8rem;
    color: #95a5a6;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
}