﻿:root {
    --surveyPage-rating-track-bg: #f1f3f5; /* قسمت خالی (روشن) */
    --surveyPage-rating-fill-bg: #4a4a4a; /* قسمت پر شده (تیره) */
}

#surveyPage .surveyPage__header {
    border: 0 !important;
    background-color: #f8fafe;
}

#surveyPage .surveyPage__progress-bar {
    border: 0 !important;
    background-color: #F6F7FA;
    padding: 10px 0;
}

#surveyPage .surveyPage__progress-bar #surveyProgressText {
    font-size: 18px;
}

#surveyPage .surveyPage__progress-bar #surveyProgressStatistics {
    font-size: 18px;
}

#surveyPage .surveyPage__progress-bar #surveyProgressBar {
    background-color: #2166AE;
    border-radius: 30px;
}

#surveyPage .surveyPage__question {
    border: 1px solid #EDEDED;
}

#surveyPage .surveyPage__options-group {
    border:0;
}

#surveyPage .surveyPage__options-item {
    border: 0;
    font-size:16px;
    margin:5px 0;
    line-height:0;
    padding:0;
    color:#444;
}

/* اسلایدر امتیاز داخل فرم نظرسنجی */
.surveyPage__rating-input {


    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--surveyPage-rating-track-bg);
    outline: none;
    cursor: pointer;
}

    /* ترک در WebKit (کروم، سافاری) */
    .surveyPage__rating-input::-webkit-slider-runnable-track {
        height: 6px;
        border-radius: 999px;
        background: transparent; /* گرادیان را خود input می‌گیرد */
    }

    /* دکمه گرد در WebKit */
    .surveyPage__rating-input::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #ffffff;
        border: 2px solid #0d6efd; /* اگر می‌خوای مثل دکمه‌ی آبی باشه */
        margin-top: -5px; /* وسط ترک قرار بگیرد */
    }

    /* فایرفاکس */
    .surveyPage__rating-input::-moz-range-track {
        height: 6px;
        border-radius: 999px;
        background: transparent;
    }

    .surveyPage__rating-input::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #ffffff;
        border: 2px solid #0d6efd;
        cursor: pointer;
    }

.surveyPage__pagination{
    border:0;
    margin:20px 0;
}

    .surveyPage__pagination button {
        outline: none;
        background: none;
        border: 0;
        background: #2166AE;
        color:#fff;
        font-size:14px;
        padding:8px 12px;
        border-radius:4px;
    }

        .surveyPage__pagination button:disabled {
            background: #F6F7FA;
            color:#2166AE;
        }

        .surveyPage__pagination button.btn-submit {
            background-color: #27AE60;
        }

.surveyPage__question .fw-bold{
    font-weight:600 !important;
    font-size:16px !important;
    margin-bottom:10px !important;
    display:block !important;
}

.surveyPage__question .text-muted {
    font-size: 14px !important;
    margin:10px 20px;
}

.surveyPage__option-tags{
    margin:10px 40px 10px 0;
}

.surveyPage__tag-pill {
    background: none;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    color: #444;
    font-size: 12px;
}


    .surveyPage__tag-pill.active {
        border: 1px solid #2166AE;
    }

    .form-label strong{
        font-size:14px;
        font-weight:600;
    }

.surveyPage__answer-input{
    font-size:14px;
}

#surveyPage .btn-retry{
    background-color:#2166AE;
    color:#fff;
    padding:4px 10px;
    border-radius:4px;
    font-size:14px;
}

#surveyThankYouPage{

}

    #surveyThankYouPage .card {
        background-color: #F6F7FA;
        margin: 40px 0;
    }

    #surveyThankYouPage .card .footer{
        background-color:#fff;
    }

        #surveyThankYouPage .card .footer a{
            color:#2166AE;
        }

        #surveyThankYouPage .success-icon{
            width:120px;
        }

    #surveyThankYouPage .social-icon {
        width: 40px;
    }

#surveyModule {
    position: fixed;
    top: 200px !important;
    right: 0;
    z-index: 1000000000000000;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

    #surveyModule.closed {
        transform: translateX(calc(100% - 118px));
    }

    #surveyModule .body {
        background-color: #fff;
        box-shadow: 0 0 7px 0 #E0E0E0;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        height: auto;
        width: 100%;
        padding: 18px 0;
        margin: 0; /* حذف فاصله */
    }

        #surveyModule .body h3 {
            font-size: 16px;
            font-weight: 600;
            padding: 0 30px;
            margin-top: 10px;
        }

    #surveyModule button{
        z-index:-1;
    }

    #surveyModule button.start {
        transform: rotate(-90deg);
        transform-origin: right top; /* چرخش از گوشه راست بالا */
        outline: none;
        border: 0;
        background-color: #2166AE;
        color: #fff;
        padding: 8px 24px;
        font-size: 14px;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        width: 140px;
        height: auto;
        cursor: pointer;
        margin: 0; /* حذف فاصله اضافی */
        position: relative;
        left: -38px; /* چسباندن کامل به بادی */
        top: -50px;
    }


    #surveyModule.survey-module .btn-continue,
    #surveyModule.survey-module .btn-submit-survey {
        background-color: #2166AE;
        color: #fff;
        padding: 6px 12px;
        margin: 0 30px;
        border-radius: 4px;
        border: none;
        font-size: 14px;
    }


        #surveyModule.survey-module .btn-continue[disabled] {
            background-color: #E0E0E0;
            color: #444;
            pointer-events: none;
            opacity: 0.6;
            cursor: not-allowed;
        }

    #surveyModule.survey-module .descriptionContainer {
        padding: 0 30px;
        margin-top: 20px;
    }


.survey-module .scoreContainer .img-container {
    background-color: #F6F7FA;
    margin: 20px 6px 6px 6px;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.survey-module .scoreContainer img {
    width: 36px;
}

.survey-module .img-container.score-5:hover,
.survey-module .img-container.score-5.selected {
    background-color: #e0f1e8;
}

.survey-module .img-container.score-4:hover,
.survey-module .img-container.score-4.selected {
    background-color: #e4e7d8;
}

.survey-module .img-container.score-3:hover,
.survey-module .img-container.score-3.selected {
    background-color: #f2eee6;
}

.survey-module .img-container.score-2:hover,
.survey-module .img-container.score-2.selected {
    background-color: #f2dfd9;
}

.survey-module .img-container.score-1:hover,
.survey-module .img-container.score-1.selected {
    background-color: #f0e1e4;
}


.survey-module .tag span {
    background-color: transparent;
    padding: 16px 0px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    white-space: nowrap;
    width: 100% !important;
    display: block;
    margin: 10px auto;
    font-size: 14px;
    text-align: center;
}

.survey-module .tag.selected span {
    border-color: #2166AE;
}

.survey-module .btn-cancel {
    border-radius: 4px;
    padding: 8px 40px;
    color: #2166AE;
    border: 1px solid #2166AE;
    background-color: transparent;
}

    .survey-module .btn-cancel:hover {
        border: 1px solid #2166AE;
        background-color: #2166AE;
        color: #fff;
    }

.survey-module .btn-submit {
    border-radius: 4px;
    padding: 8px 40px;
    color: #fff;
    border: 1px solid #2166AE;
    background-color: #2166AE;
    margin-right: 4px;
}

.survey-module textarea {
    font-size: 14px;
}

.survey-module .alertContainer img {
    width: 20px;
}

.survey-module .hidden-preserve-space {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.survey-module .visible-preserve-space {
    opacity: 1;
    visibility: visible;
    height: auto;
    pointer-events: auto;
}

.survey-module .score-desc {
    font-size: 12px;
    display: block;
}


@media screen and (max-width: 512px) {
    .survey-module .scoreContainer img {
        width: 24px !important;
    }

    .survey-module .tag span {
        font-size: 12px !important;
    }

    .survey-module .btn-submit,
    .survey-module .btn-cancel {
        padding: 8px 40px !important;
        font-size: 12px;
    }
}