/* Container لتوسيط النموذج */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* العنوان */
.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* شبكة الحقول (صفين) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* تنسيق كل حقل */
.form-group {
    display: flex;
    flex-direction: column;
}

/* تسميات الحقول */
.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

/* حقول الإدخال */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

/* تأثير عند التركيز على الحقل */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* الأزرار */
.form-container button {
    width:max-content;
    padding: 12px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.form-container button:hover {
    background-color: #0056b3;
}

/* استجابة للأجهزة الصغيرة */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
    