/* ====================================
   Contact Section - Split Layout Modern
   Info Side + Form/Map Side
   ==================================== */

/* Main Container */
.contact-modern-split {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 30%, #f1f5f9 70%, #ffffff 100%);
    overflow: hidden;
}

.contact-modern-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(67, 17, 169, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(93, 43, 196, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(67, 17, 169, 0.04) 0%, transparent 60%);
    z-index: 0;
    animation: background-pulse 15s ease-in-out infinite;
}

.contact-modern-split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(67, 17, 169, 0.02) 49%, rgba(67, 17, 169, 0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(93, 43, 196, 0.02) 49%, rgba(93, 43, 196, 0.02) 51%, transparent 52%);
    background-size: 60px 60px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

@keyframes background-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Left Side - Contact Info */
.contact-info-side {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    padding: 120px 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-right: 1px solid rgba(67, 17, 169, 0.1);
}

.contact-info-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(67, 17, 169, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(93, 43, 196, 0.06) 0%, transparent 50%);
    z-index: 0;
    animation: bg-pulse 12s ease-in-out infinite;
}

.contact-info-side::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(67, 17, 169, 0.08), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float-bg-circle 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes bg-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float-bg-circle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

.info-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(67, 17, 169, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 85% 75%, rgba(93, 43, 196, 0.1) 0%, transparent 60%);
    z-index: 0;
    filter: blur(100px);
    animation: gradient-move 25s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes gradient-move {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -40px) scale(1.15);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.info-content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Info Header */
.info-header-modern {
    margin-bottom: 50px;
}

.header-badge-split {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(67, 17, 169, 0.12), rgba(93, 43, 196, 0.12));
    backdrop-filter: blur(15px);
    border-radius: 50px;
    margin-bottom: 32px;
    border: 2px solid rgba(67, 17, 169, 0.2);
    box-shadow: 0 6px 25px rgba(67, 17, 169, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-badge-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 17, 169, 0.1), transparent);
    transition: left 0.6s ease;
}

.header-badge-split:hover::before {
    left: 100%;
}

.header-badge-split:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(67, 17, 169, 0.25);
    border-color: rgba(67, 17, 169, 0.4);
    background: linear-gradient(135deg, rgba(67, 17, 169, 0.18), rgba(93, 43, 196, 0.18));
}

.badge-dot-split {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #4311a9, #5d2bc4);
    border-radius: 50%;
    animation: pulse-split 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(67, 17, 169, 0.8);
}

@keyframes pulse-split {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px rgba(67, 17, 169, 0.8);
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
        box-shadow: 0 0 25px rgba(67, 17, 169, 1);
    }
}

.badge-text-split {
    background: linear-gradient(135deg, #4311a9, #5d2bc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.info-title-modern {
    font-size: 54px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a202c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    position: relative;
}

.info-title-modern::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #4311a9, #5d2bc4, #4311a9);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: title-line 3s ease infinite;
    box-shadow: 0 2px 10px rgba(67, 17, 169, 0.3);
}

@keyframes title-line {
    0%, 100% {
        background-position: 0% 50%;
        width: 120px;
    }
    50% {
        background-position: 100% 50%;
        width: 160px;
    }
}

.info-subtitle-modern {
    font-size: 20px;
    color: #475569;
    line-height: 1.9;
    margin: 0;
    font-weight: 400;
}

/* Contact Items */
.contact-items-modern {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item-split {
    display: flex;
    gap: 24px;
    padding: 36px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    border: 2px solid rgba(67, 17, 169, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.contact-item-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 17, 169, 0.05), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.contact-item-split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4311a9, #5d2bc4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 1;
}

.contact-item-split:hover::before {
    left: 100%;
}

.contact-item-split:hover::after {
    transform: scaleX(1);
}

.contact-item-split:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    transform: translateX(-10px) scale(1.02);
    box-shadow: 0 18px 50px rgba(67, 17, 169, 0.2), 0 0 0 1px rgba(67, 17, 169, 0.2) inset;
    border-color: rgba(67, 17, 169, 0.3);
}

[dir="rtl"] .contact-item-split:hover {
    transform: translateX(10px) scale(1.02);
}

[dir="rtl"] .contact-link-split:hover {
    transform: translateX(4px);
}

[dir="rtl"] .info-title-modern::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .form-title-split::after {
    left: auto;
    right: 0;
}

.item-icon-split {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #4311a9, #5d2bc4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    border: 2px solid rgba(67, 17, 169, 0.2);
    box-shadow: 0 10px 30px rgba(67, 17, 169, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.item-icon-split::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.contact-item-split:hover .item-icon-split {
    transform: scale(1.12) rotate(5deg);
    background: linear-gradient(135deg, #d43848, #2d7ba8);
    box-shadow: 0 15px 45px rgba(67, 17, 169, 0.5);
    border-color: rgba(67, 17, 169, 0.4);
}

.contact-item-split:hover .item-icon-split::before {
    width: 200%;
    height: 200%;
}

.item-icon-split svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.contact-item-split:hover .item-icon-split svg {
    transform: scale(1.15);
}

.item-content-split {
    flex: 1;
}

.item-title-split {
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 1;
}

.item-details-split {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link-split {
    color: #475569;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.contact-link-split::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4311a9, #5d2bc4);
    transition: width 0.3s ease;
}

.contact-link-split:hover {
    color: #4311a9;
    transform: translateX(-4px);
}

.contact-link-split:hover::after {
    width: 100%;
}

[dir="rtl"] .contact-link-split:hover {
    transform: translateX(3px);
}

.address-text-split {
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Decorative Circles */
.decorative-circles-split {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.circle-split {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 17, 169, 0.1), transparent 70%);
    filter: blur(40px);
}

.circle-split.circle-1 {
    width: 350px;
    height: 350px;
    top: -120px;
    left: -120px;
    animation: float-circle-1 20s ease-in-out infinite;
}

.circle-split.circle-2 {
    width: 280px;
    height: 280px;
    bottom: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(93, 43, 196, 0.1), transparent 70%);
    animation: float-circle-2 18s ease-in-out infinite;
}

@keyframes float-circle-1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

@keyframes float-circle-2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, -20px);
    }
}

/* Right Side - Form & Map */
.contact-form-side {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
}

.contact-form-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(93, 43, 196, 0.08), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float-bg-circle-form 22s ease-in-out infinite;
    z-index: 0;
}

@keyframes float-bg-circle-form {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.form-map-wrapper {
    padding: 120px 80px;
    position: relative;
    z-index: 1;
}

/* Form Section */
.form-section-modern {
    margin-bottom: 60px;
}

.form-header-split {
    margin-bottom: 32px;
}

.form-title-split {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    position: relative;
}

.form-title-split::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4311a9, #5d2bc4);
    border-radius: 2px;
}

.form-desc-split {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

.form-body-split {
    /* Form styles inherited from contact-form component */
}

/* Map Section */
.map-section-modern {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(67, 17, 169, 0.1) inset;
    border: 2px solid rgba(67, 17, 169, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.map-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 17, 169, 0.05), rgba(93, 43, 196, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.map-section-modern:hover {
    box-shadow: 0 20px 60px rgba(67, 17, 169, 0.2), 0 0 0 1px rgba(67, 17, 169, 0.2) inset;
    border-color: rgba(67, 17, 169, 0.3);
    transform: translateY(-5px);
}

.map-section-modern:hover::before {
    opacity: 1;
}

.map-wrapper-split {
    position: relative;
    height: 450px;
    z-index: 0;
}

.map-wrapper-split iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(0.1);
    transition: filter 0.4s ease;
}

.map-section-modern:hover .map-wrapper-split iframe {
    filter: grayscale(0);
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-info-side {
        min-height: auto;
        padding: 80px 50px;
        border-right: none;
        border-bottom: 1px solid rgba(67, 17, 169, 0.1);
    }

    .form-map-wrapper {
        padding: 80px 50px;
    }

    .info-title-modern {
        font-size: 40px;
    }

    .form-title-split {
        font-size: 32px;
    }

    .contact-item-split:hover {
        transform: translateX(0) scale(1.01);
    }

    [dir="rtl"] .contact-item-split:hover {
        transform: translateX(0) scale(1.01);
    }
    
    .contact-info-side::after,
    .contact-form-side::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .contact-info-side {
        padding: 60px 30px;
    }

    .form-map-wrapper {
        padding: 60px 30px;
    }

    .info-title-modern {
        font-size: 32px;
    }

    .info-title-modern::after {
        width: 100px;
        height: 4px;
    }

    .info-subtitle-modern {
        font-size: 17px;
    }

    .contact-items-modern {
        gap: 24px;
    }

    .contact-item-split {
        padding: 28px;
        flex-direction: column;
        text-align: center;
    }

    .item-icon-split {
        margin: 0 auto;
        width: 64px;
        height: 64px;
    }

    .form-title-split {
        font-size: 28px;
    }

    .form-title-split::after {
        width: 60px;
        height: 3px;
    }

    .map-wrapper-split {
        height: 350px;
    }

    .circle-split {
        display: none;
    }
    
    .header-badge-split {
        padding: 10px 24px;
    }
}

/* Print Styles */
@media print {
    .contact-info-side {
        background: #f7fafc;
        color: #000000;
        min-height: auto;
    }

    .info-title-modern,
    .info-subtitle-modern,
    .item-title-split,
    .contact-link-split {
        color: #000000;
    }

    .decorative-circles-split,
    .info-bg-gradient {
        display: none;
    }
}
