/* ===== صفحة الاتصال - ستايلات مخصصة ===== */

:root {
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
}

/* تأثيرات التحريك */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
}

.scroll-animation.active {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* إضافة تأثير خلفية للأقسام المنشطة */
.scroll-animation.active.cta-section {
    background: var(--gradient-primary), url('../images/pattern-bg-new.svg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center center;
    position: relative;
}

/* تطبيق نفس تصميم خلفية partnerships.html على page-title عند التفعيل */
.scroll-animation.active.page-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b57 50%, #001a33 100%);
    position: relative;
    overflow: hidden;
}

.scroll-animation.active.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 0;
}

.scroll-animation.active.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/partnerships.svg'),
                      radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb, 184, 134, 11), 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(var(--accent-rgb, 184, 134, 11), 0.15) 0%, transparent 50%);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 0.15;
    animation: float-bg 12s infinite ease-in-out;
    filter: blur(3px);
    z-index: 0;
}

.scroll-animation.active.page-title *,
.scroll-animation.active.cta-section * {
    position: relative;
    z-index: 1;
}

.animate-on-load {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-bg {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

/* تحسينات قسم العنوان */
.page-title {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b57 50%, #001a33 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/partnerships.svg'),
                      radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb, 184, 134, 11), 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(var(--accent-rgb, 184, 134, 11), 0.15) 0%, transparent 50%);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    opacity: 0.15;
    animation: float-bg 12s infinite ease-in-out;
    filter: blur(3px);
}

@keyframes float-bg {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}

.page-title h1,
.scroll-animation.active.page-title h1 {
    margin-bottom: 15px;
    color: white;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 80%;
    height: 3px;
    background: var(--accent-color, #b8860b);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(var(--accent-rgb, 184, 134, 11), 0.7);
}

.page-title p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* تحسينات نموذج الاتصال */
.contact-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: var(--transition-medium);
}

.contact-form-container:hover {
    box-shadow: var(--box-shadow-hover);
}

.form-header {
    margin-bottom: 25px;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    transition: var(--transition-fast);
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    background-color: white;
}

.contact-form .btn {
    width: 100%;
    padding: 12px 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form .btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.contact-form .btn:hover i {
    transform: translateX(5px);
}

/* تحسينات بطاقة معلومات الاتصال */
.contact-info {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: var(--transition-medium);
}

.contact-info:hover {
    box-shadow: var(--box-shadow-hover);
}

.info-header {
    margin-bottom: 25px;
}

.info-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: var(--transition-fast);
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.info-item:hover .info-icon {
    transform: scale(1.1);
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
}

.direct-contact {
    margin-top: 30px;
}

.direct-contact h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-buttons {
    display: flex;
    gap: 10px;
}

.contact-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* تحسينات قسم الخريطة */
.map-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition-medium);
}

.map-container:hover {
    box-shadow: var(--box-shadow-hover);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* تحسينات قسم الأسئلة الشائعة */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition-medium);
}

.faq-item.fade-in-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
}

/* تحسينات قسم الدعوة للعمل */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary), url('../images/pattern-bg-new.svg');
    background-blend-mode: overlay;
    color: white;
    text-align: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
    position: relative;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* تعديلات متجاوبة */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        padding: 60px 0;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-form-container,
    .contact-info {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .page-title p {
        font-size: 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}