/* ==============================
   تنسيقات قسم التواصل المحسّن
   ============================== */

/* خلفية القسم */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4560 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* عناوين القسم */
.contact .section-title,
.contact .section-description {
    color: var(--white);
}

/* المحتوى المحسن */
.contact-content-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

/* قسم معلومات التواصل */
.contact-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card-enhanced {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.1), transparent);
    transition: right 0.6s ease;
}

.contact-card-enhanced:hover::before {
    right: 100%;
}

.contact-card-enhanced:hover {
    transform: translateX(-10px);
    box-shadow: 0 15px 50px rgba(245, 166, 35, 0.3);
}

.contact-icon-enhanced {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, var(--accent-color), #D98E19);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
    transition: all 0.4s ease;
}

.contact-card-enhanced:hover .contact-icon-enhanced {
    transform: rotate(360deg) scale(1.1);
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 5px 0;
    line-height: 1.6;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-details a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.contact-details a i {
    font-size: 18px;
}

/* النموذج المحسن */
.contact-form-enhanced {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

.contact-form-enhanced::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-form-enhanced:hover::before {
    opacity: 0.5;
}

.form-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-group-enhanced {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-input-enhanced {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 2px solid rgba(46, 74, 98, 0.2);
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input-enhanced:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(245, 166, 35, 0.2);
    transform: translateY(-2px);
}

.form-input-enhanced::placeholder {
    color: rgba(108, 117, 125, 0.6);
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.form-group-enhanced:focus-within .input-icon {
    transform: translateY(-50%) scale(1.2);
    color: var(--primary-color);
}

.form-input-enhanced.textarea {
    min-height: 140px;
    resize: vertical;
    padding-top: 15px;
}

.submit-btn-enhanced {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--accent-color), #D98E19);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn-enhanced:hover::before {
    width: 400px;
    height: 400px;
}

.submit-btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 166, 35, 0.6);
}

.submit-btn-enhanced i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.submit-btn-enhanced:hover i {
    transform: translateX(-5px);
}

.submit-btn-enhanced span {
    position: relative;
    z-index: 2;
}

/* الخريطة المحسنة */
.map-container-enhanced {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
    height: 500px;
    margin-top: 60px;
    transition: all 0.5s ease;
}

.map-container-enhanced:hover {
    box-shadow: 0 25px 80px rgba(245, 166, 35, 0.4);
    transform: translateY(-5px);
}

.map-container-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 2;
    pointer-events: none;
}

.map-container-enhanced iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.map-container-enhanced:hover iframe {
    filter: grayscale(0%);
}

.map-overlay {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(245, 166, 35, 0.3);
    transition: all 0.4s ease;
}

.map-overlay:hover {
    box-shadow: 0 15px 50px rgba(245, 166, 35, 0.4);
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.map-overlay h4 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-overlay h4::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    font-size: 1.4rem;
}

.map-overlay p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 5px 0;
    font-weight: 600;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--accent-color), #D98E19);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(245, 166, 35, 0.3);
}

.map-btn:hover {
    background: linear-gradient(135deg, #D98E19, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.6);
}

.map-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.map-btn:hover i {
    transform: translateX(-3px);
}

/* معلومات إضافية */
.contact-extra-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.info-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.3);
}

.info-box i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.info-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* التصميم المتجاوب */
@media (max-width: 1200px) {
    .contact-content-enhanced {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .contact-content-enhanced {
        grid-template-columns: 1fr;
    }
    
    .contact-extra-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-form-enhanced {
        padding: 30px;
    }
    
    .form-title {
        font-size: 1.7rem;
    }
    
    .contact-card-enhanced {
        padding: 25px;
    }
    
    .contact-icon-enhanced {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .contact-extra-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-container-enhanced {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-form-enhanced {
        padding: 25px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .submit-btn-enhanced {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .map-overlay {
        position: static;
        margin-bottom: 15px;
    }
}
