
    /* استایل لینک‌های خطا */
    a.arpack-error-link {
        color: #C74A4A !important; /* رنگ قرمز */
        text-decoration: none !important;
        border-bottom: 1px dashed #C74A4A;
        font-weight: bold;
        transition: all 0.3s;
        cursor: pointer;
    }

    a.arpack-error-link:hover {
        background-color: #ffe6e6;
        border-bottom: 1px solid red;
    }

    /* باکس کلی خطا */
    .validation_error_custom {
        background-color: #fff;
        border-right: 5px solid #C74A4A;
        padding: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }
/* وسط‌چین کردن کل کادر سکشن در فرم 8 */
    #gform_wrapper_9 .gsection {
        text-align: center !important;
        border-bottom: 2px solid #eee !important; /* خط جداکننده زیر سکشن */
        padding-bottom: 10px !important;
        margin-bottom: 20px !important;
    }

    /* وسط‌چین کردن عنوان سکشن */
    #gform_wrapper_9 .gsection_title {
        float: none !important;      /* حذف حالت شناور پیش‌فرض */
        display: block !important;   /* تمام عرض کردن بلوک */
        width: 100% !important;
        text-align: center !important;
        font-size: 20px !important;  /* سایز فونت (اختیاری) */
        color: #333 !important;      /* رنگ متن (اختیاری) */
    }

    /* وسط‌چین کردن توضیحات زیر سکشن (اگر متنی نوشته باشید) */
    #gform_wrapper_9 .gsection_description {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin-top: 5px !important;
    }


    /* -----------------------------------------------------------
       استایل کانتینر اصلی (اصلاح شده برای ارتفاع برابر)
       ----------------------------------------------------------- */
    .gform_wrapper form .gform_fields {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
        gap: 20px;
        align-items: start
    }

    /* -----------------------------------------------------------
       استایل باکس‌های هر سکشن
       ----------------------------------------------------------- */
    .arpack-section-group {
        padding: 20px;
        margin-bottom: 0;
        border-radius: 12px;
        height: 100%; /* *** مهم: پر کردن کل ارتفاع برای هم‌اندازه شدن *** */
        
        /* تنظیمات چیدمان داخلی هر باکس */
        display: flex;
        flex-direction: column; 
        gap: 15px; 
        
        /* تراز محتوا به سمت بالا (حتی اگر باکس بلندتر باشد) */
        justify-content: flex-start; 
        
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .arpack-section-group:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    }

    .arpack-section-group .gfield {
        width: 100% !important;
        min-width: 0;
    }

    /* رنگ زمینه برای گروه‌های فرد (سفید) */
    .arpack-section-group.group-odd {
        background-color: #ffffff;
        border: 1px solid #eef0f5;
    }

    /* رنگ زمینه برای گروه‌های زوج (طوسی خیلی ملایم) */
    .arpack-section-group.group-even {
        background-color: #f8f9fa;
        border: 1px solid #eee;
    }

    .arpack-section-group .gsection {
        margin-top: 0 !important;
        border-bottom: 2px solid rgba(0,0,0,0.03) !important;
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .arpack-section-group .gsection_title {
        font-size: 18px !important;
        color: #444;
    }

    @media only screen and (max-width: 641px) {
        .gform_wrapper form .gform_fields {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        .arpack-section-group {
            padding: 15px;
            height: auto; /* در موبایل ارتفاع خودکار باشد */
        }
    }


    /* این استایل فقط روی فرم شماره 8 اعمال می‌شود */
    #gform_wrapper_9 input::placeholder,
    #gform_wrapper_9 textarea::placeholder {
        color: #cccccc !important;  /* رنگ خاکستری خیلی روشن */
        opacity: 0.5 !important;    /* شفافیت 50 درصد */
        font-weight: 300 !important; /* نازک‌تر کردن فونت (اختیاری) */
    }

    /* برای اطمینان در مرورگرهای مختلف */
    #gform_wrapper_9 input::-webkit-input-placeholder,
    #gform_wrapper_9 textarea::-webkit-input-placeholder {
        color: #cccccc !important;
        opacity: 1 !important;
    }
