@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "Cairo", sans-serif;
            font-optical-sizing: auto;
            background: linear-gradient(135deg, #e4e6ea 0%, #f5f4f7 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
             font-family: "Cairo", sans-serif;
            font-optical-sizing: auto;
            max-width: 500px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #feffff, #fafbfb);
            color: #fcaa21;
            padding: 30px 20px;
            text-align: center;
        }

        .logo {
            font-size: 2.5em;
            font-weight: bold;
            margin-bottom: 2px;
            letter-spacing: 2px;
        }
        .header-banner-img {
    width: 100%;      /* لجعل الصورة تملأ عرض الحاوية */
    height: auto;     /* للحفاظ على الأبعاد الأصلية للصورة */
    display: block;   /* لمنع أي مسافات إضافية أسفل الصورة */
}

.header-banner-img2 {
    width: 25%;      /* لجعل الصورة تملأ عرض الحاوية */
    height: auto;     /* للحفاظ على الأبعاد الأصلية للصورة */
    
    display: block;   /* لمنع أي مسافات إضافية أسفل الصورة */
}

        .subtitle {
            font-size: 0.9em;
            opacity: 0.9;
            margin-bottom: 15px;
        }

        .title {
            font-size: 1.4em;
            line-height: 1.5;
            font-weight: 600;
        }

        .form-container {
             font-family: "Cairo", sans-serif;
            font-optical-sizing: auto;
            padding: 30px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .input-field {
             font-family: "Cairo", sans-serif;
            font-optical-sizing: auto;
            text-align: right;
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #f9f9f9;
        }

        .input-field:focus {
            outline: none;
            border-color: #C9A961;
            background: white;
            box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
        }

        .error-message {
            color: #e74c3c;
            font-size: 14px;
            margin-top: 5px;
            display: none;
        }

        .success-message {
            color: #27ae60;
            font-size: 14px;
            margin-top: 5px;
            display: none;
        }

        .submit-btn {
             font-family: "Cairo", sans-serif;
            font-optical-sizing: auto;
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3);
        }

        .submit-btn:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .footer-logos {
            padding: 20px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            background: #f8f9fa;
            border-top: 1px solid #e0e0e0;
        }

        .logo-item {
            text-align: center;
            font-size: 12px;
            color: #666;
        }

        /* ID Card Styles */
        .id-card-container {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .id-card {
            background: white;
            width: 400px;
            border-radius: 15px;
            padding: 30px;
            position: relative;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        }

        .id-header {
            text-align: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #C9A961;
            padding-bottom: 15px;
        }

        .id-logo {
            font-size: 2em;
            font-weight: bold;
            color: #C9A961;
            margin-bottom: 5px;
        }

        .id-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .id-info {
            flex: 1;
        }

        .id-info h3 {
            color: #333;
            margin-bottom: 5px;
        }

        .id-info p {
            color: #666;
            margin-bottom: 3px;
            font-size: 14px;
        }

        .qr-section {
            text-align: center;
            margin-left: 20px;
        }

        .id-footer {
            text-align: center;
            font-size: 12px;
            color: #999;
            border-top: 1px solid #eee;
            padding-top: 15px;
        }

        .print-btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin: 10px 5px;
        }

        .close-btn {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin: 10px 5px;
        }

        /* Verification Page */
        .verification-container {
            display: none;
            max-width: 600px;
            margin: 50px auto;
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .verification-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .scan-area {
            border: 3px dashed #C9A961;
            border-radius: 15px;
            padding: 40px;
            text-align: center;
            margin-bottom: 20px;
        }

        .verification-result {
            display: none;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
        }

        .valid {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .invalid {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        @media (max-width: 768px) {
            .container {
                margin: 10px;
                border-radius: 15px;
            }
            
            .id-card {
                width: 90%;
                margin: 20px;
            }
        }

        .loading {
            display: none;
            text-align: center;
            margin: 20px 0;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #C9A961;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .nav-buttons {
             font-family: "Cairo", sans-serif;
            font-optical-sizing: auto;
            text-align: center;
            margin: 20px 0;
        }

        .nav-btn {
             font-family: "Cairo", sans-serif;
            font-optical-sizing: auto;

            background: #C9A961;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            cursor: pointer;
            margin: 0 10px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .nav-btn:hover {
            background: #B8941F;
            transform: translateY(-2px);
        }


           
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

      
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            direction: rtl;
        } */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================
   تنسيق رسائل الخطأ
   ======================== */

.error-message {
    color: #e74c3c; /* لون أحمر واضح للخطأ */
    font-size: 14px;  /* حجم خط مقروء */
    font-weight: bold; /* خط عريض */
    margin-top: 5px;   /* مسافة صغيرة فوق الرسالة */
    min-height: 16px;  /* حجز مساحة حتى لا "تقفز" الصفحة */
    display: block;    /* تأكيد أن العنصر ظاهر */
    text-align: right; /* محاذاة لليمين */
}

/* * هذا الكلاس سيعطيه الجافاسكريبت للرسالة
 * عندما يكون الرقم "متاح"
*/
.error-message.success {
    color: #2ecc71; /* لون أخضر للنجاح */
}

/* * هذا لتلوين رسالة "جاري التحقق..." 
 * بلون مختلف
*/
#nationalIdError,
#phoneError,
#parentPhoneError {
    color: #3498db; /* لون أزرق لرسائل "جاري التحقق" */
}

/* * هذا الكود سيجعل الرسائل التي 
 * لونها أحمر أو أخضر هي فقط التي تأخذ هذا اللون
*/
#nationalIdError.success,
#phoneError.success,
#parentPhoneError.success {
    color: #2ecc71; /* أخضر */
}

#nationalIdError:not(.success),
#phoneError:not(.success),
#parentPhoneError:not(.success) {
    /* أي رسالة ليست خضراء، ستأخذ اللون الأحمر الافتراضي */
    color: #e74c3c;
}






    
   