/* الخطوط الافتراضية للنصوص العربية */
body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

/* العناوين العربية */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 700;
    color: #111;
}

/* الخطوط الافتراضية للنصوص الإنجليزية */
body.en {
    font-family: 'Open Sans', 'Poppins', 'Montserrat', sans-serif;
}

/* العناوين الإنجليزية */
h1.en, h2.en, h3.en, h4.en, h5.en, h6.en {
    font-family: 'Montserrat', 'Poppins', 'Open Sans', sans-serif;
    font-weight: 700;
    color: #111;
}

/* روابط، أزرار، قوائم */
a, button, nav {
    font-family: 'Cairo', 'Montserrat', sans-serif;
    font-weight: 500;
}

/* ========== أنماط خاصة بصفحة الاتصال ========== */

:root {
    --primary-color: #4361ee; /* لم نغيره لأن بعض العناصر تعتمد عليه */
    --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    --whatsapp-color: #25D366;
    --whatsapp-dark: #128C7E;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.15);
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.7;
    color: #2d3748;
}

/* تنسيق أيقونات الأعلام داخل القائمة المنسدلة */
.fi {
    margin-left: 8px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    vertical-align: middle;
}

.flag-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* تحسين شكل الحقول */
.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s;
    background-color: #fafbfc;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67,97,238,0.1);
    background-color: white;
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem;
}
.form-label i {
    color: #257ee4; /* تغيير لون الأيقونات */
    font-size: 1.1rem;
}

/* شارات الثقة */
.trust-badges {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-badge {
    flex: 1;
    min-width: 100px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-sm);
}
.trust-badge:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}
.trust-badge i {
    font-size: 2rem;
    color: #257ee4; /* تغيير لون الأيقونات */
    margin-bottom: 0.5rem;
}
.trust-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    display: block;
}

/* تحسين زر الإرسال */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* تحسين معلومات الاتصال */
.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(67,97,238,0.2);
    transition: transform 0.3s;
}
.contact-icon i {
    color: white; /* أيقونات معلومات الاتصال تبقى بيضاء (لأن الخلفية ملونة) */
}
.contact-icon:hover {
    transform: scale(1.1);
}

/* تنسيق الهيرو */
.page-hero .hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .page-hero .hero-title {
        font-size: 2.2rem;
    }
}

/* تحسين رسائل النجاح والخطأ */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem;
}
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}
.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* الخريطة */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* زر واتساب محسّن (يبقى كما هو) */
.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 36px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 2s infinite;
    border: 3px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.6);
    border-color: white;
    color: white;
}

.whatsapp-float i {
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
    color: white; /* تأكيد أن أيقونة الواتساب بيضاء */
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* تحسينات التجاوب */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 32px;
    }
    .trust-badge {
        min-width: 80px;
        padding: 0.8rem;
    }
}

/* ========== نهاية أنماط صفحة الاتصال ========== */