        
/* المتغيرات العامة */
:root {
  /* الألوان التونسية */
  --primary-blue: #1e40af;
  --secondary-green: #059669;
  --accent-orange: #ea580c;
  --light-blue: #dbeafe;
  --light-green: #d1fae5;
  --light-orange: #fed7aa;
  
  /* الألوان المساعدة */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* الخطوط */
  --font-arabic: 'Noto Sans Arabic', Arial, sans-serif;
  
  /* الظلال */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* الانتقالات */
  --transition: all 0.3s ease;
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Cairo', sans-serif;
            background: #f0f4f8;
            min-height: 100vh;
            padding: 20px;
            direction: rtl;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            animation: slideUp 0.8s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .header {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-green) 100%);
            color: white;
            padding: 40px 30px;
            text-align: center;
            position: relative;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        }

        .icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 1;
        }

        .icon svg {
            width: 40px;
            height: 40px;
            fill: #4CAF50;
        }

        .header h1 {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }

        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
            position: relative;
            z-index: 1;
        }

        .form-container {
            padding: 40px 30px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 1.1rem;
        }

        .form-group input,
        .form-group textarea,
        .form-group select  {
            width: 100%;
            padding: 15px 20px;
            border: 2px solid #e1e5e9;
            border-radius: 12px;
            font-size: 1rem;
            font-family: 'Cairo', sans-serif;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: #4CAF50;
            background: white;
            box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
            transform: translateY(-2px);
        }

        .form-group input[type="date"] {
            color: #666;
        }

        .file-upload {
            position: relative;
            display: inline-block;
            width: 100%;
        }

        .file-upload input[type="file"] {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        .file-upload-label {
            display: block;
            padding: 20px;
            border: 2px dashed #4CAF50;
            border-radius: 12px;
            text-align: center;
            background: #f0f8f0;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #4CAF50;
            font-weight: 600;
        }

        .file-upload-label:hover {
            background: #e8f5e8;
            border-color: #45a049;
        }

        .file-upload-label svg {
            width: 30px;
            height: 30px;
            margin-bottom: 10px;
            fill: #4CAF50;
        }

        .submit-btn {
            width: 100%;
            padding: 18px;
            background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1.2rem;
            font-weight: 600;
            font-family: 'Cairo', sans-serif;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px;
            position: relative;
            overflow: hidden;
        }

        .submit-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .submit-btn:hover::before {
            left: 100%;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .info-box {
            background: #e3f2fd;
            border: 1px solid #2196F3;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
            color: #1976D2;
        }

        .info-box h3 {
            margin-bottom: 10px;
            font-weight: 600;
        }

        .info-box ul {
            margin-right: 20px;
        }

        .info-box li {
            margin-bottom: 5px;
        }

        @media (max-width: 768px) {
            .container {
                margin: 10px;
                border-radius: 15px;
            }

            .header {
                padding: 30px 20px;
            }

            .header h1 {
                font-size: 1.8rem;
            }

            .form-container {
                padding: 30px 20px;
            }

            .form-group input,
            .form-group textarea {
                padding: 12px 15px;
            }

            .submit-btn {
                padding: 15px;
                font-size: 1.1rem;
            }
        }

        .required {
            color: #f44336;
        }

        .form-group small {
            color: #666;
            font-size: 0.9rem;
            margin-top: 5px;
            display: block;
        }

        .center-page {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        #bouton_retour{
            width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #790b0b 0%, #e45a61 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
        }

    #bouton_retour:hover{
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(172, 13, 39, 0.3);
}

/* ملاحظات مهمة */
.important-note {
  background: linear-gradient(135deg, var(--light-blue), var(--light-green));
  border: 1px solid var(--primary-blue);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.important-note::before {
  content: '💡';
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--white);
  padding: 5px 10px;
  border-radius: 50%;
  font-size: 1.2rem;
}

.note-title {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}


.btn-secondary {
    display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-arabic);
  font-size: 1rem;
  width: 100%;
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-secondary strong {
  color: darkslategray;
}
.btn-secondary:hover strong {
  color: var(--white);
}


/* التذييل */
.footer {
  background: var(--gray-900);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--secondary-green);
  transform: translateX(5px);
}

#cont_footer{
    background: var(--gray-900);
}
.form-group select {
    -webkit-appearance: none; /* Remove default arrow in Chrome/Safari */
    -moz-appearance: none;    /* Remove default arrow in Firefox */
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234CAF50" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 20px 20px;
    padding-left: 50px; /* Add space for the icon */
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}
