<div class="pp-container" dir="rtl">
<div class="pp-header-card">
<div class="pp-card-icon">✉️</div>
<h2>تواصل معنا</h2>
<p>نسعد باستقبال استفساراتكم، شكاواكم، واقتراحاتكم لتطوير وظائف دوت كوم</p>
</div>
<div class="pp-card">
<div class="pp-card-icon">💡</div>
<h3>كيف يمكننا مساعدتك؟</h3>
<p>سواء كنت صاحب عمل ترغب في نشر وظيفة، أو باحثاً يواجه مشكلة تقنية، فريقنا متواجد للرد عليك. يرجى التأكد من كتابة بريدك الإلكتروني بشكل صحيح لنتمكن من التواصل معك.</p>
<div class="pp-action-box" style="border-color: #3b82f6; color: #cbd5e1;">
<strong>ملاحظة:</strong> نقوم بالرد على كافة الرسائل خلال 24-48 ساعة عمل كحد أقصى.
</div>
</div>
<div class="contact-form-wrapper" id="contact-wrapper">
<form action="https://formsubmit.co/
[email protected]" id="contact-form" method="POST">
<div class="form-group">
<label>الاسم بالكامل</label>
<input id="name" name="name" placeholder="اكتب اسمك هنا..." required type="text" />
</div>
<div class="form-group">
<label>البريد الإلكتروني</label>
<input id="email" name="email" placeholder="
[email protected]" required type="email" />
</div>
<div class="form-group">
<label>الموضوع</label>
<input id="subject" name="subject" placeholder="ما هو غرض الرسالة؟" required type="text" />
</div>
<div class="form-group">
<label>الرسالة</label>
<textarea id="message" name="message" placeholder="اكتب تفاصيل استفسارك هنا..." required></textarea>
</div>
<input name="_subject" type="hidden" value="رسالة جديدة من وظائف دوت كوم!" />
<input name="_captcha" type="hidden" value="false" />
<input name="_template" type="hidden" value="table" />
<button class="form-submit-button" id="submit-btn" type="submit">إرسال الرسالة الآن</button>
</form>
</div>
</div>
<style>
/* التنسيق العام الموحد */
.pp-container {
font-family: 'Segoe UI', Tahoma, sans-serif;
color: #fff;
max-width: 900px;
margin: 0 auto;
padding: 20px;
background: #0f172a;
}
.pp-header-card {
text-align: center;
background: #1e293b;
padding: 40px 20px;
border-radius: 25px;
border: 2px solid #e91e63;
margin-bottom: 30px;
}
.pp-header-card h1 { color: #e91e63; margin: 0; font-size: 2.2rem; }
.pp-card {
background: #1e293b;
border-radius: 20px;
padding: 25px;
margin-bottom: 25px;
border-right: 6px solid #e91e63;
}
.pp-card h3 { margin: 0 0 15px 0; color: #ffffff; font-size: 1.4rem; border-bottom: 1px solid #334155; padding-bottom: 10px; }
.pp-card p { color: #cbd5e1; line-height: 1.8; }
.pp-action-box {
background: rgba(15, 23, 42, 0.7);
padding: 15px;
border-radius: 12px;
border: 1px dashed #e91e63;
font-size: 0.95rem;
}
/* تنسيق النموذج (Form) ليناسب الوضع الداكن */
.contact-form-wrapper {
background: #1e293b;
padding: 35px;
border-radius: 25px;
border: 1px solid #334155;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #e91e63; }
.form-group input, .form-group textarea {
width: 100%;
padding: 15px;
background: #0f172a;
border: 1px solid #334155;
border-radius: 12px;
color: #fff;
font-family: inherit;
box-sizing: border-box;
transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
outline: none;
border-color: #e91e63;
box-shadow: 0 0 10px rgba(233, 30, 99, 0.2);
}
.form-group textarea { min-height: 150px; }
.form-submit-button {
width: 100%;
padding: 18px;
background: #e91e63;
color: #fff;
border: none;
border-radius: 12px;
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
transition: 0.3s;
}
.form-submit-button:hover {
background: #d81b60;
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}
.form-success-message {
text-align: center;
padding: 50px 20px;
}
.form-success-message h3 { color: #10b981; font-size: 1.8rem; margin-bottom: 15px; }
.form-success-message p { color: #cbd5e1; }
@media (max-width: 768px) {
.pp-header-card h1 { font-size: 1.6rem; }
.contact-form-wrapper { padding: 20px; }
}
</style>
<script>
//<![CDATA[
document.getElementById('contact-form').addEventListener('submit', function (e) {
e.preventDefault();
const form = e.target;
const wrapper = document.getElementById('contact-wrapper');
const btn = document.getElementById('submit-btn');
btn.disabled = true;
btn.textContent = 'جاري إرسال رسالتك...';
const formData = new FormData(form);
fetch(form.action, {
method: 'POST',
body: formData,
headers: { 'Accept': 'application/json' }
}).then(response => {
if (response.ok) {
wrapper.innerHTML = `
<div class="form-success-message">
<div style="font-size: 60px; margin-bottom: 20px;">✅</div>
<h3>تم الإرسال بنجاح!</h3>
<p>شكراً لتواصلك مع وظائف دوت كوم. سنقوم بالرد عليك في أقرب وقت ممكن.</p>
</div>`;
} else {
throw new Error();
}
}).catch(error => {
alert('عذراً، حدث خطأ. يرجى المحاولة مرة أخرى.');
btn.disabled = false;
btn.textContent = 'إرسال الرسالة الآن';
});
});
//]]>
</script>