.vakilsoal-wrapper {
    max-width: 900px;
    margin: 30px auto;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.vakilsoal-wrapper * {
    box-sizing: border-box;
}

.vakilsoal-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.vakilsoal-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 700;
}

.vakilsoal-textarea {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.2s;
}

.vakilsoal-textarea:focus {
    border-color: #2563eb;
}

.vakilsoal-counter-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
}

.vakilsoal-fee-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 14px;
    padding: 15px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-right: 4px solid #16a34a;
    border-radius: 10px;
    color: #166534;
}

.vakilsoal-fee-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.vakilsoal-fee-amount {
    font-size: 1.12rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: .1px;
}

.vakilsoal-fee-amount small {
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .vakilsoal-fee-box {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

.vakilsoal-rules-box {
    background: #f8fafc;
    border-right: 4px solid #3b82f6;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    font-size: 0.85rem;
    color: #475569;
}

.vakilsoal-gateway-selector {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #dbe4ef;
    border-radius: 9px;
}

.vakilsoal-gateway-selector legend {
    padding: 0 8px;
    font-weight: 700;
    color: #334155;
}

.vakilsoal-gateway-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vakilsoal-gateway-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 125px;
    padding: 10px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    cursor: pointer;
    background: #fff;
}

.vakilsoal-gateway-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.vakilsoal-gateway-option input {
    margin: 0;
}

.vakilsoal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vakilsoal-button-primary {
    background: var(--vakilsoal-pay-bg, #2563eb);
    color: var(--vakilsoal-pay-text, #ffffff);
}

.vakilsoal-button-primary:hover {
    background: var(--vakilsoal-pay-hover-bg, #1d4ed8);
    color: var(--vakilsoal-pay-hover-text, #ffffff);
}

.vakilsoal-btn-user-delete { margin-top: 10px; padding: 8px 14px; border: 1px solid #dc2626; border-radius: 6px; background: #fff; color: #b91c1c; cursor: pointer; }
.vakilsoal-btn-user-delete:hover { background: #fef2f2; }

.vakilsoal-feedback {
    margin-top: 12px;
    font-size: 0.9rem;
}

.vakilsoal-tab-headers {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    gap: 8px;
}

.vakilsoal-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.vakilsoal-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.vakilsoal-tab-content {
    display: none;
}

.vakilsoal-tab-content.active {
    display: block;
}

.vakilsoal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}

.vakilsoal-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vakilsoal-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
}

.vakilsoal-badge-waiting {
    background: #fef3c7;
    color: #92400e;
}

.vakilsoal-badge-answered {
    background: #d1fae5;
    color: #065f46;
}

.vakilsoal-box-q, .vakilsoal-box-a {
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.vakilsoal-box-q {
    background: #f8fafc;
}

.vakilsoal-box-a {
    background: #ecfdf5;
    border-right: 3px solid #10b981;
}

.vakilsoal-satisfaction-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.vakilsoal-btn-vote {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    margin-left: 8px;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.vakilsoal-btn-like:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.vakilsoal-btn-dislike:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.vakilsoal-vote-recorded {
    font-size: 0.9rem;
    font-weight: 600;
}

.vakilsoal-vote-yes { color: #059669; }
.vakilsoal-vote-no { color: #dc2626; }
