/* =========================================
   استایل محتوای بالای صفحه نظرسنجی
   ========================================= */

.survey-page-wrapper {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit; /* استفاده از فونت قالب شما */
    direction: rtl;
}

/* بخش لوگو */
.survey-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.survey-logo {
    max-width: 180px;
    height: auto;
}

/* هدر صفحه */
.survey-header {
    text-align: center;
    margin-bottom: 30px;
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(74, 90, 141, 0.08);
}

.survey-title {
    color: #4A5A8D;
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}

.survey-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* کارت‌های راهنما (ویژگی‌ها) */
.survey-features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.survey-feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-bottom: 3px solid #4A5A8D;
    transition: transform 0.3s ease;
}

.survey-feature-card:hover {
    transform: translateY(-5px);
}

.survey-feature-card .icon-wrapper {
    font-size: 2.5rem;
    color: #4A5A8D;
    margin-bottom: 15px;
}

.survey-feature-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.survey-feature-card p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* پیام تشکر */
.survey-thank-you {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f7fe;
    border: 1px dashed #4A5A8D;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    color: #4A5A8D;
    text-align: center;
}

.survey-thank-you i {
    font-size: 1.8rem;
    margin-left: 15px;
    color: #e53935; /* رنگ قرمز برای قلب */
}

.survey-thank-you p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

/* رسپانسیو برای موبایل */
@media (max-width: 600px) {
    .survey-title {
        font-size: 1.4rem;
    }
    .survey-features-container {
        grid-template-columns: 1fr;
    }
    .survey-thank-you {
        flex-direction: column;
        gap: 10px;
    }
    .survey-thank-you i {
        margin-left: 0;
    }
}

.dynamic-form-section{
.padding:35px;
.border-radius:25px;
}

/* اصلاح باکس اصلی فرم (اگر در فایل CSS می‌نویسید) */
#dynamic-form-section {
    padding: 35px !important;
    border-radius: 25px !important;
}

/* ۱ و ۲. حل مشکل تو هم رفتن و ریسپانسیو نبودن Select2 */
.select2-container {
    width: 100% !important; /* این کد عرض ثابت پیکسلی را باطل کرده و آن را ریسپانسیو می‌کند */
    max-width: 100%;
}

/* ۳. حل مشکل افتادن لیست بازشوی Select2 روی هدر (z-index) */
.select2-dropdown {
    z-index: 99 !important; /* اگر باز هم روی هدر افتاد، این عدد را کمتر کنید (مثلا 10) */
}

/* استایل‌دهی بهتر برای خود فیلدهای Select2 تا با فیلدهای متنی هم‌ارتفاع شوند */
.select2-container .select2-selection--single {
    height: 38px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    top: 1px !important;
}
/* کنترل z-index خود فیلد Select2 تا زیر هدر برود */
.select2-container {
    width: 100% !important;
    max-width: 100%;
    z-index: 1 !important; /* اضافه شدن این خط */
}

/* کنترل z-index لیست بازشو (وقتی روی فیلد کلیک می‌کنید) */
.select2-dropdown {
    z-index: 9 !important; /* عدد را بسیار پایین آوردیم */
}

