/* =========================================
   تنسيقات صفحة تواصل معنا (contact.css)
   ========================================= */

/* الشبكة الرئيسية */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* بطاقات المعلومات */
.contact-info-section h2, 
.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-info-section h2::after, 
.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; width: 50px; height: 3px;
    background-color: var(--secondary-color);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateX(-5px);
    border-right: 4px solid var(--secondary-color);
}

.contact-icon {
    width: 50px; height: 50px;
    background-color: var(--bg-light);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}

.contact-detail h3 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 5px; }
.contact-detail p { color: var(--text-light); font-size: 0.95rem; margin: 0; line-height: 1.6; }

/* قسم السوشيال الداخلي */
.social-contact { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.social-contact h3 { margin-bottom: 15px; color: var(--text-dark); font-size: 1.1rem; }

.social-icons { display: flex; gap: 10px; }

/* استخدام نفس تنسيق social-icon من web.css ولكن يمكن تخصيصه هنا */
.social-icon {
    width: 40px; height: 40px;
    background-color: var(--bg-light);
    color: var(--text-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; font-size: 1.2rem;
}

/* ألوان العلامات التجارية عند التحويم */
.social-icon.facebook:hover { background-color: #1877f2; color: #fff; }
.social-icon.x-platform:hover { background-color: #000; color: #fff; }
.social-icon.linkedin:hover { background-color: #0077b5; color: #fff; }
.social-icon.whatsapp:hover { background-color: #25d366; color: #fff; }

/* نموذج الاتصال */
.contact-form-section {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.contact-form-section > p { margin-bottom: 30px; color: var(--text-light); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; }

.form-control {
    width: 100%; padding: 12px;
    border: 1px solid #ddd; border-radius: 5px;
    font-family: inherit; font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

textarea.form-control { resize: vertical; }

/* رفع الملف */
.file-label {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg-light); color: var(--primary-color);
    padding: 10px 20px; border: 1px dashed #ccc; border-radius: 5px;
    cursor: pointer; transition: 0.3s;
}
.file-label:hover { border-color: var(--primary-color); background: #e3f2fd; }
.file-info { margin-top: 5px; font-size: 0.85rem; color: var(--success); font-weight: 600; }

.submit-contact-btn {
    width: 100%;
    background: var(--primary-color); color: #fff;
    border: none; padding: 15px; border-radius: 5px;
    font-family: inherit; font-weight: 700; font-size: 1.1rem;
    cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}

.submit-contact-btn:hover { background: var(--secondary-color); }

.form-message {
    margin-top: 20px; padding: 15px; border-radius: 5px;
    text-align: center; display: none; font-weight: 600;
}
.form-message.success { background: #d4edda; color: #155724; display: block; }

/* الأسئلة الشائعة (FAQ) */
.faq-section { margin-bottom: 60px; }
.faq-section h2 { text-align: center; color: var(--primary-color); margin-bottom: 40px; font-size: 2rem; }

.faq-grid { display: grid; gap: 15px; max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; background: var(--white); transition: 0.3s;
}

.faq-question:hover { background: var(--bg-light); }
.faq-question h3 { margin: 0; font-size: 1.1rem; color: var(--text-dark); }
.faq-question i { color: var(--secondary-color); transition: transform 0.3s; }

.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
    background: #fcfcfc;
}

.faq-answer p { padding: 20px; border-top: 1px solid #eee; margin: 0; color: var(--text-light); }

/* التجاوب */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}