/* وب‌فونت وزیرمتن */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اعمال وزیرمتن روی کل نظرسنجی‌های RTL (مثل فارسی) */
html[dir="rtl"] body {
    font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
}


/* پس‌زمینه کلی */
body {
    background-color: #f3f4f6;
}

/* عرض معقول برای محتوا */
#outerframeContainer,
.outerframe.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* گروه کلی را شفاف کن */
.group-outer-container {
    border: none;
    background: transparent;
}

/* کارت هر سوال */
.question-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    margin: 20px 0;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.question-container:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    transform: translateY(-2px);
}

/* نوار بالای سوال (تیتر) */
.question-title-container {
    background: linear-gradient(90deg, #0f766e, #0ea5e9);
    color: #ffffff;
    padding: 12px 18px;
    margin: -1px -1px 0 -1px;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.question-title-container .question-text,
.question-title-container .ls-question-title {
    font-weight: 600;
    font-size: 1.05rem;
}

/* بدنه و پاسخ‌ها */
.question-container .answer-container,
.question-container .panel-body,
.question-container .row {
    padding: 18px 20px;
}

/* راست‌چین‌کردن متن‌ها در حالت RTL */
html[dir="rtl"] .question-text,
html[dir="rtl"] .answers-list,
html[dir="rtl"] .list-radio,
html[dir="rtl"] .ls-questionhelp,
html[dir="rtl"] .ls-question-message {
    text-align: right;
}

/* گزینه‌های رادیویی - بلوکی */
.answers-list .answer-item,
.list-radio .answer-item {
    margin-bottom: 10px;
    position: relative;
}

/* خود اینپوت را مخفی می‌کنیم تا فقط بلاک دیده شود */
.answers-list .answer-item input[type="radio"],
.list-radio .answer-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* ظاهر بلاک گزینه */
.answers-list .answer-item label,
.list-radio .answer-item label {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    cursor: pointer;
    transition: all .18s ease;
}

/* افکت hover روی گزینه‌ها */
.answers-list .answer-item label:hover,
.list-radio .answer-item label:hover {
    background-color: #f9fafb;
    border-color: #cbd5e1;
}

/* حالت انتخاب‌شده (بلوک زرد) */
.answers-list .answer-item input[type="radio"]:checked + label,
.list-radio .answer-item input[type="radio"]:checked + label {
    background-color: #facc15;
    border-color: #eab308;
}

/* دکمه‌های بعدی/قبلی – گرد و رنگی */
.ls-move-btn {
    border-radius: 999px;
    padding: 0.45rem 1.6rem;
    font-weight: 600;
}

/* Next */
#ls-button-submit,
.ls-move-btn-submit {
    background-color: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

#ls-button-submit:hover,
.ls-move-btn-submit:hover {
    background-color: #115e59;
    border-color: #115e59;
}

/* Previous */
#ls-button-previous,
.ls-move-btn-previous {
    background-color: transparent;
    border: 2px solid #0f766e;
    color: #0f766e;
}

#ls-button-previous:hover,
.ls-move-btn-previous:hover {
    background-color: rgba(15, 118, 110, .07);
}

/* فاصله‌ی پایین صفحه از دکمه‌ها */
#navigator-container {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* رادیوها با متن در یک خط و وسط عمودی */
.list-radio .answer-item {
    display: flex;
    flex-direction: row-reverse;   /* برای RTL: دایره سمت راست، متن چپ */
    align-items: center;
}

/* خود دکمه رادیو */
.list-radio .answer-item input[type="radio"] {
    margin: 0 0 0 0.6rem;   /* فاصله‌ی دایره از متن */
}

/* متن گزینه */
.list-radio .answer-item label {
    flex: 1;
    padding-top: 8px;
    padding-bottom: 8px;
}
/* لیست‌های بازشو هم وزیرمتن شوند */
select,
select.form-control,
select.form-control option,
.bootstrap-select .dropdown-menu li a span.text {
    font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.95rem;
}
/* اندازه کلی متن بدنه کمی بزرگ‌تر */
html[dir="rtl"] body {
    font-size: 15px;
}

/* متن سوال‌ها درشت‌تر */
.question-title-container .question-text,
.question-title-container .ls-question-title {
    font-size: 1.15rem;
    font-weight: 600;
}

/* متن گزینه‌ها */
.answers-list .answer-item label,
.list-radio .answer-item label {
    font-size: 1rem;
}

/* گزینه‌های داخل select هم کمی درشت‌تر */
select.form-control,
select.form-control option {
    font-size: 0.95rem;
}
/* متن توضیحی اجباری‌بودن را کلاً مخفی کن، فقط ستاره بماند */
.question-container .sr-only,
.question-container .visually-hidden {
    display: none !important;
}
/* بعد از شماره سؤال، خط تیره بیاید */
html[dir="rtl"] .ls-question-number::after {
    content: " - ";
    margin: 0 .25rem;
}
/* عنوان سؤال درشت‌تر و خواناتر */
.question-title-container .ls-question-title,
.question-title-container .ls-label-question,
.question-title-container .question-text {
    font-size: 1.25rem !important;
    line-height: 1.8;
    font-weight: 700;
}
.answers-list .answer-item label,
.list-radio .answer-item label {
    font-size: 1.05rem;
}

/* بازگرداندن رفتار sr-only / visually-hidden (فقط برای صفحه‌خوان‌ها) */
.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* عنوان سؤال درشت‌تر */
.question-title-container .ls-question-title,
.question-title-container .ls-label-question,
.question-title-container .question-text {
    font-size: 1.3rem !important;
    line-height: 1.8;
    font-weight: 700;
}

/* نوار پیشرفت در بالای صفحه – ضخیم‌تر */
.top-container .progress {
    height: 14px;              /* هرچقدر می‌خواهی می‌توانی بیشترش کنی */
    border-radius: 999px;
    background-color: #e5e7eb;
}

.top-container .progress .progress-bar {
    background: linear-gradient(90deg, #0f766e, #22c55e);
    line-height: 14px;         /* متن درصد داخل نوار، وسط عمودی */
    font-size: 0.85rem;
}
/* مرکز کردن عمودی دایره‌ی رادیو نسبت به متن */
.radio-item label::before,
.radio-item label::after {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* خود گزینه‌ها هم با فلکس وسط شوند */
.answers-list .radio-item,
.list-radio .radio-item {
    display: flex;
    flex-direction: row-reverse;   /* دایره سمت راست، متن سمت چپ برای RTL */
    align-items: center;
}

/* متن گزینه فضای باقیمانده را بگیرد */
.answers-list .radio-item label,
.list-radio .radio-item label {
    flex: 1;
    padding-top: 10px;
    padding-bottom: 10px;
}







/* ۱) اگر قبلاً بعد از شماره سوال خط تیره گذاشته بودیم، خنثی کن */
.question-title-container .question-number::after,
.question-title-container .ls-question-number::after {
    content: "";
}

/* ۲) استایل دایره‌ای برای شماره سؤال در سمت چپ */
.question-title-container .question-number,
.question-title-container .ls-question-number {
    float: left;                    /* همان رفتار پیش‌فرض تم، در سمت چپ */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 8px 0 0;              /* فاصله از متن سؤال */
    border-radius: 50%;
    background-color: yellow;      /* رنگ دایره */
    color: #ffffff;                 /* رنگ عدد داخل دایره */
    font-weight: 700;
    font-size: 0.9rem;
}






/* مودال‌های خطا و پیام در زبان‌های RTL */
html[dir="rtl"] .modal-dialog,
html[dir="rtl"] .modal-content,
html[dir="rtl"] .modal-body {
    direction: rtl;
    text-align: right;
}

/* بستن (×) برود سمت چپ برای RTL */
html[dir="rtl"] .modal-header .close {
    float: left;
}
/* پیام خطا در خود کارت سوال */
html[dir="rtl"] .ls-question-message,
html[dir="rtl"] .ls-question-error,
html[dir="rtl"] .alert-danger,
html[dir="rtl"] .errormandatory {
    direction: rtl;
    text-align: right;
}

