.t-interaction-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
    direction: rtl;
}

/* حل مشکل فونت‌های انگلیسی و اعداد */
.t-interaction-wrapper :dir(ltr) {
    font-family: system-ui, -apple-system, sans-serif !important;
}

.t-interaction-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.t-question-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 25px 0;
    line-height: 1.6;
    text-align: start;
    unicode-bidi: isolate;
}

/* فیلد ضد اسپم (باید کاملا مخفی باشه) */
.t-honey-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* استایل فیلد متنی (Q&A) */
.t-qa-textarea {
    width: 100%;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 15px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #374151;
    resize: vertical;
    transition: all 0.3s ease;
    outline: none;
    text-align: start;
    unicode-bidi: isolate;
}

.t-qa-textarea:focus {
    background: #ffffff;
    border-color: #FFC107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
}

/* استایل نظرسنجی (Poll) */
.t-poll-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.t-poll-label {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.t-poll-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.t-poll-custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    margin-left: 15px; /* برای LTR با جاوااسکریپت هندل میشه اگر نیاز بود */
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.t-poll-label:dir(ltr) .t-poll-custom-radio {
    margin-left: 0;
    margin-right: 15px;
}

.t-poll-custom-radio::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #FFC107;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-poll-label:hover {
    background: #ffffff;
    border-color: #d1d5db;
}

.t-poll-label:has(input[type="radio"]:checked) {
    background: #ffffff;
    border-color: #FFC107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.08);
}

.t-poll-label input[type="radio"]:checked ~ .t-poll-custom-radio {
    border-color: #FFC107;
}

.t-poll-label input[type="radio"]:checked ~ .t-poll-custom-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.t-poll-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    transition: color 0.3s ease;
    text-align: start;
    unicode-bidi: isolate;
}

.t-poll-label input[type="radio"]:checked ~ .t-poll-text {
    color: #111827;
}

/* دکمه ارسال */
.t-submit-row {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
}

.t-interaction-wrapper:dir(ltr) .t-submit-row {
    justify-content: flex-start;
}

.t-submit-btn {
    background: #FFC107;
    color: #111827;
    border: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.t-submit-btn:hover {
    background: #e5a900;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.2);
}

.t-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* لودر و پیام رسان */
.t-loader {
    width: 18px; height: 18px;
    border: 3px solid rgba(17, 24, 39, 0.2);
    border-top-color: #111827;
    border-radius: 50%;
    animation: t-spin 1s linear infinite;
}

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

.t-response-msg {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    padding: 10px;
    display: none;
}

.t-msg-success {
    display: block;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.t-msg-error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}