/* Registration-Forum.css */
     
/* --- بداية النمط المشترك 1: تعريف المتغيرات الجذرية (Root Variables) --- */
   /* تعريف الألوان الجديدة (الأساسي أخضر/فيروزي والثانوي برتقالي) */
        :root {
            --primary-color: #01886E; /* أخضر داكن/زبرجدي (لون العلامة التجارية) (يمثل النمط المشترك: اللون الأساسي الداكن) */
            --secondary-color: #e56235; /* برتقالي حيوي (Accent - لنقاط الإرسال والتميز) (يمثل النمط المشترك: اللون الثانوي/Accent) */
            --background-color: #f7f9fc; /* خلفية الصفحة فاتحة (يمثل النمط المشترك: لون الخلفية الفاتح) */
            --card-background: #ffffff; /* خلفية النموذج بيضاء ناصعة (يمثل النمط المشترك: خلفية البطاقات) */
            --text-color: #444; /* يمثل النمط المشترك: لون النص الداكن */
            --border-color: #e0e0e0; /* يمثل النمط المشترك: لون الحدود القياسي */
            --light-primary: #48C9B0; /* الأخضر الفاتح (يمثل النمط المشترك: لون الحدود عند التركيز) */
        }
/* --- نهاية النمط المشترك 1: تعريف المتغيرات الجذرية (Root Variables) --- */

/* --- بداية النمط المشترك 2: التنسيق الأساسي لـ Body و HTML --- */
        body {
            font-family: 'Tajawal', sans-serif; /* يمثل النمط المشترك: الخط العربي */
            background: var(--background-color);
            margin: 0;
            padding: 0;
            color: var(--text-color);
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
/* --- نهاية النمط المشترك 2: التنسيق الأساسي لـ Body و HTML --- */

/* --- بداية النمط المشترك 4: تنسيق الهيدر والـ Nav (شريط التنقل) --- */
        /* تنسيق الرأس (Header) */
        header {
            background-color: var(--primary-color);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            position: sticky;
            top: 0;
            z-index: 1000;
        }
/* --- نهاية النمط المشترك 4: تنسيق الهيدر والـ Nav (شريط التنقل) --- */
        
        /* تنسيق المحتوى الرئيسي */
        main {
            flex-grow: 1;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

/* --- بداية النمط المشترك 3: تنسيق الحاوية الرئيسية (Container) --- */
        .container {
            width: 100%;
            max-width: 650px;
        }
/* --- نهاية النمط المشترك 3: تنسيق الحاوية الرئيسية (Container) --- */

        /* ----- تصميم الأقسام والخطوات ----- */
        .form-section {
            background-color: var(--card-background);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); /* يمثل النمط المشترك: الظل الناعم */
            margin-bottom: 25px;
            border: 1px solid var(--border-color);
            transition: all 0.5s ease;
        }
        
/* --- بداية النمط المشترك 5: تنسيق عناوين الأقسام (Section Titles) --- */
        /* عناوين أيقونية متقدمة - الدائرة البرتقالية ممتازة */
        h2 {
            color: var(--primary-color);
            border-bottom: 3px solid var(--secondary-color); /* يمثل النمط المشترك: الخط السفلي بلون Accent */
            padding-bottom: 8px;
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 20px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        h2 .response-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: var(--secondary-color);
            color: white;
            font-size: 1.1em;
            font-weight: 700;
        }
/* --- نهاية النمط المشترك 5: تنسيق عناوين الأقسام (Section Titles) --- */

        /* ----- شريط التقدم (Progress Bar) - تنحيفه قليلاً ----- */
        .progress-container {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            background-color: var(--card-background);
            padding: 10px 20px; /* تقليل حجم الحشو (padding) */
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .step {
            flex-grow: 1;
            text-align: center;
            position: relative;
            color: #aaa;
            font-weight: 500;
            font-size: 13px; /* تصغير الخط قليلاً */
        }

        .step-icon {
            /* أيقونة شريط التقدم */
            display: block;
            width: 26px; /* تصغير الأيقونة */
            height: 26px; /* تصغير الأيقونة */
            line-height: 26px;
            border-radius: 50%;
            background-color: #e0e0e0;
            color: white;
            margin: 0 auto 6px; /* تقليل الهامش السفلي */
            z-index: 10;
            position: relative;
            border: 2px solid #ccc;
            transition: all 0.3s ease;
            font-size: 12px; /* تصغير رقم الخطوة */
        }

        .step.active .step-icon {
            background-color: var(--primary-color); 
            border-color: var(--primary-color);
        }
        
        .step.active {
            color: var(--primary-color);
        }

        .step.completed .step-icon {
            background-color: var(--secondary-color); 
            border-color: var(--secondary-color);
        }
        
        /* الخط الواصل بين الأيقونات */
        .step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 17px; /* تعديل الموضع ليناسب الأيقونة الأصغر */
            right: 50%; 
            width: 100%;
            height: 2px; /* تنحيف الخط */
            background-color: #e0e0e0;
            z-index: 1;
            transform: translateX(50%);
        }

        .step.completed:not(:last-child)::after {
            background-color: var(--secondary-color); 
            transition: background-color 0.3s ease;
        }
        
        /* ----- أزرار الحركة والتنقل (Ghost Buttons) ----- */
        .btn-action {
            /* زر التالي - الآن شفاف بحدود خضراء */
            width: 100%;
            padding: 12px 20px; /* تقليل حجم الحشو */
            background: transparent; 
            color: var(--primary-color); /* لون نص العلامة التجارية */
            border: 2px solid var(--primary-color); /* إطار رقيق وواضح */
            border-radius: 8px; /* يمثل النمط المشترك: --border-radius-base */
            font-size: 16px;
            font-weight: 500; /* تقليل سماكة الخط لجعله أنعم */
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 15px;
        }

        /* زر السابق (Previous Button) */
        .btn-action.prev-btn {
            /* يمكن أن يكون بنفس النمط (Ghost Button) لكن بخط أرق */
            font-weight: 500; 
        }
        
        /* تأثيرات التحويم (Hover) */
        .btn-action:hover {
            background-color: var(--primary-color); /* عند التحويم، يظهر اللون الأخضر */
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(1, 136, 110, 0.2);
        }
        
/* --- بداية النمط المشترك 7: تنسيق الأزرار الرئيسية (Submit Buttons) --- */
        /* زر الإرسال النهائي (الأكثر بروزًا) */
        .btn-submit {
            background: var(--secondary-color); /* الأساس برتقالي - قوي وبارز */
            color: white;
            border: none;
            border-radius: 8px; /* يمثل النمط المشترك: --border-radius-base */
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
            width: 100%;
            padding: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease, transform 0.2s ease;
            margin-top: 15px;
        }

        .btn-submit:hover {
            background-color: #cc542e; /* برتقالي أغمق عند التحويم */
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(229, 98, 53, 0.3); /* يمثل النمط المشترك: تأثير التحويم على الأزرار */
        }
/* --- نهاية النمط المشترك 7: تنسيق الأزرار الرئيسية (Submit Buttons) --- */
        
        /* ----- منطقة سحب وإفلات الملفات (Drag and Drop Area) ----- */
        .drag-and-drop-area {
            /* تم الإبقاء على الحدود البرتقالية كنقطة تركيز لعملية مهمة */
            border: 2px dashed var(--secondary-color); 
            border-radius: 10px;
            padding: 25px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background-color: #fffaf7; 
        }
        
        .drag-and-drop-area:hover,
        .drag-and-drop-area.drag-over {
            border-color: var(--primary-color); 
            background-color: #f0f8f7; 
        }
        
        .drag-and-drop-area i {
            font-size: 40px;
            color: var(--secondary-color); 
            margin-bottom: 10px;
            display: block;
        }

        /* ----- تنسيقات الحقول العامة ----- */
        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }

/* --- بداية النمط المشترك 6: تنسيق عناصر الإدخال (Form Inputs) --- */
        input[type="text"],
        input[type="number"],
        input[type="tel"],
        input[type="email"],
        input[type="url"],
        textarea,
        select {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border-color); /* يمثل النمط المشترك: لون الحدود القياسي */
            border-radius: 8px; /* يمثل النمط المشترك: --border-radius-base */
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
            font-size: 16px;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        input:focus,
        textarea:focus,
        select:focus {
            border-color: var(--primary-color); /* يمثل النمط المشترك: تأثير التركيز (Focus) */
            outline: none;
            box-shadow: 0 0 5px rgba(1, 136, 110, 0.1); /* يمثل النمط المشترك: تأثير التركيز (Focus) */
        }
/* --- نهاية النمط المشترك 6: تنسيق عناصر الإدخال (Form Inputs) --- */

        textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        /* أخف زر لاختيار الملف (CV) */
        .file-input {
            display: none; /* إخفاء حقل الإدخال الأصلي */
        }
        
        .file-info {
            font-size: 12px;
            color: #777;
            margin: 0;
            padding: 2px 0;
        }

        /* رسائل الاستجابة والتحميل */
        .loading-indicator {
            display: none;
            text-align: center;
            padding: 15px;
            background-color: #e0f7fa;
            color: #00bcd4;
            border-radius: 8px;
            font-weight: 700;
            margin-top: 20px;
            border: 1px solid #b2ebf2;
        }

        .loading-indicator.active {
            display: block;
        }

/* --- بداية النمط المشترك 8: رسائل الحالة (Status Messages) --- */
        .success-message, .error-message {
            display: none;
            padding: 15px;
            border-radius: 8px;
            font-weight: 500;
            margin-top: 20px;
            text-align: right;
            line-height: 1.6;
        }

        .success-message.show {
            display: block;
            background-color: #e8f5e9;
            color: #388e3c;
            border: 1px solid #c8e6c9;
        }

        .error-message.show {
            display: block;
            background-color: #ffebee;
            color: #d32f2f;
            border: 1px solid #ffcdd2;
        }
/* --- نهاية النمط المشترك 8: رسائل الحالة (Status Messages) --- */
        
        .response-icon {
            margin-left: 10px;
            font-size: 1.2em;
        }
        
        .expectation-message {
            background-color: #f0f7f7;
            padding: 15px;
            border-radius: 8px;
            color: var(--primary-color);
            font-size: 14px;
            font-weight: 500;
            border: 1px solid #d4eaea;
            margin-top: 25px;
            text-align: center;
        }
        
        /* تنسيق الـ Footer */
        footer {
            background-color: #333;
            color: white;
            padding: 20px;
            text-align: center;
            margin-top: 30px;
        }

        .footer-social a {
            color: white;
            font-size: 20px;
            margin: 0 10px;
            transition: color 0.3s;
        }

        .footer-social a:hover {
            color: var(--secondary-color);
        }

        .footer-copyright {
            margin-top: 10px;
            font-size: 12px;
            color: #bbb;
        }
        
        /* تنسيق الترحيب - اللوجو */
        .welcome {
            line-height: 1.8;
            font-size: 15px;
            color: #555;
            margin-bottom: 25px;
        }
        
        .logo {
            display: block;
            width: 150px; 
            height: auto;
            margin: 0 auto 20px;
            border-radius: 50%;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        }

        /* تنسيق الروابط في الـ Header */
        header a {
            color: white;
            text-decoration: none;
            margin-right: 15px;
            font-weight: 500;
            transition: color 0.3s;
        }

        header a:hover {
            color: var(--secondary-color);
        }
        
        /* تنسيق الخطوة الحالية */
        .form-step {
            display: none;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .form-step.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
