.elementor-15915 .elementor-element.elementor-element-ceb48d1{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;overflow:visible;}/* Start custom CSS for html, class: .elementor-element-002d6c5 *//* --- تنظیمات اصلی و ایزولاسیون (ضد تداخل) --- */
#rex-survey-pro {
    all: initial;
    display: block; width: 100%; min-height: 100vh;
    
    /* پالت رنگی */
    --rx-red: #e31e24;
    --rx-dark: #0f172a;
    --rx-gray: #64748b;
    --rx-bg: #f8fafc;
    --rx-border: #cbd5e1;
    --rx-radius: 20px;
    
    /* رنگ‌های NPS */
    --nps-red: #ef4444;
    --nps-yellow: #f59e0b;
    --nps-green: #10b981;

    background-color: var(--rx-bg);
    font-family: 'Vazirmatn', sans-serif !important;
    direction: rtl;
    box-sizing: border-box !important;
    padding: 60px 20px;
    position: relative;
}

#rex-survey-pro * { box-sizing: border-box !important; font-family: 'Vazirmatn', sans-serif !important; }

/* پس‌زمینه */
#rex-survey-pro .rx-bg-layer {
    position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0 !important; pointer-events: none;
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.4;
}

/* کانتینر اصلی */
#rex-survey-pro .survey-card {
    position: relative; z-index: 2;
    width: 100%; max-width: 700px;
    background: #ffffff;
    border-radius: var(--rx-radius);
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.1);
    border: 1px solid #fff;
    padding: 40px;
    margin: 0 auto;
}

/* نوار پیشرفت */
#rex-survey-pro .progress-track {
    height: 6px; background: #f1f5f9; border-radius: 10px; margin-bottom: 30px; overflow: hidden;
}
#rex-survey-pro .progress-bar {
    height: 100%; width: 25%; background: var(--rx-red); transition: width 0.4s ease;
}

/* --- مراحل (نمایش/مخفی) --- */
#rex-survey-pro .step-box {
    display: none; /* پیش‌فرض مخفی */
    animation: fadeIn 0.5s ease;
}
#rex-survey-pro .step-box.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* تایپوگرافی */
#rex-survey-pro h2 {
    font-size: 24px !important; font-weight: 900 !important; color: var(--rx-dark);
    margin: 0 0 10px 0 !important;
}
#rex-survey-pro .step-desc {
    font-size: 14px !important; color: var(--rx-gray); margin-bottom: 30px !important;
}

/* فیلدها */
#rex-survey-pro .input-group { margin-bottom: 20px; }
#rex-survey-pro label {
    display: block; font-size: 13px !important; font-weight: 700 !important;
    color: var(--rx-dark); margin-bottom: 8px !important;
}
#rex-survey-pro input[type="text"],
#rex-survey-pro input[type="tel"],
#rex-survey-pro textarea {
    width: 100%; padding: 14px;
    border: 1px solid var(--rx-border); border-radius: 10px;
    background: #fff; color: var(--rx-dark); font-size: 14px !important;
    outline: none; transition: 0.2s;
}
#rex-survey-pro input:focus, #rex-survey-pro textarea:focus {
    border-color: var(--rx-red); box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}
#rex-survey-pro .input-error { border-color: var(--nps-red) !important; background: #fff5f5 !important; }

/* --- NPS Grid (اعداد) --- */
#rex-survey-pro .nps-grid {
    display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 20px;
}
#rex-survey-pro .nps-label {
    flex: 1; min-width: 40px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--rx-border); border-radius: 8px;
    font-weight: 700; cursor: pointer; transition: 0.2s; background: #fff;
    color: var(--rx-gray); font-size: 14px !important;
}
#rex-survey-pro input[type="radio"]:checked + .nps-label {
    color: #fff; border-color: transparent; transform: scale(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#rex-survey-pro input[type="radio"] { display: none; }

/* رنگ‌های NPS */
#rex-survey-pro .nps-radio:nth-child(-n+7) input:checked + .nps-label { background: var(--nps-red); }
#rex-survey-pro .nps-radio:nth-child(n+8):nth-child(-n+9) input:checked + .nps-label { background: var(--nps-yellow); }
#rex-survey-pro .nps-radio:nth-child(n+10) input:checked + .nps-label { background: var(--nps-green); }

/* --- ستاره‌ها --- */
#rex-survey-pro .star-row {
    background: #f1f5f9; padding: 15px; border-radius: 12px; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
#rex-survey-pro .star-q { font-weight: 700 !important; font-size: 13px !important; margin: 0 !important; }
#rex-survey-pro .star-wrapper { display: flex; flex-direction: row-reverse; gap: 5px; }
#rex-survey-pro .star-label { font-size: 24px !important; color: #cbd5e1; cursor: pointer; transition: 0.2s; }
#rex-survey-pro .star-label:hover,
#rex-survey-pro .star-label:hover ~ .star-label,
#rex-survey-pro input:checked ~ .star-label { color: #f59e0b; }

/* دکمه‌ها */
#rex-survey-pro .actions { margin-top: 30px; display: flex; justify-content: space-between; }
#rex-survey-pro .btn {
    padding: 12px 30px; border-radius: 50px; font-weight: 700 !important;
    font-size: 14px !important; cursor: pointer; border: none; transition: 0.3s;
}
#rex-survey-pro .btn-next { background: var(--rx-dark); color: #fff; }
#rex-survey-pro .btn-next:hover { background: var(--rx-red); }
#rex-survey-pro .btn-prev { background: transparent; color: var(--rx-gray); border: 1px solid var(--rx-border); }
#rex-survey-pro .btn-submit { background: var(--nps-green); color: #fff; display: none; }

/* پیام شرطی */
#rex-survey-pro .logic-msg {
    padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 20px; border: 2px solid transparent;
}

/* موبایل */
@media (max-width: 600px) {
    #rex-survey-pro { padding: 20px 10px; align-items: flex-start; }
    #rex-survey-pro .star-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    #rex-survey-pro .star-wrapper { width: 100%; justify-content: space-between; }
}/* End custom CSS */