/* ==================== CONTACT PAGE STYLES ==================== */
.contact-section {
    padding: 8rem 2rem 6rem;
    background: linear-gradient(135deg, var(--light) 0%, white 50%, var(--light) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="rgba(37,99,235,0.03)" d="M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z"/></svg>') repeat-x;
    opacity: 0.5;
    pointer-events: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(245,158,11,0.05));
    transition: var(--transition);
}

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

.contact-card:hover {
    border-left-color: var(--secondary-color);
    transform: translateX(10px);
    box-shadow: var(--shadow-xl);
}

.contact-card-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-mixed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(37,99,235,0.3);
    position: relative;
    z-index: 1;
}

.contact-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact-card-content h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-card-content p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.social-links {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.social-links h4 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 55px;
    height: 55px;
    background: var(--light);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-icon.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(24,119,242,0.3);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(225,48,108,0.3);
}

.social-icon.twitter:hover {
    background: #000000;
    color: white;
    border-color: #000000;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(0,119,181,0.3);
}

.contact-form-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
    animation: formPulse 4s ease-in-out infinite;
}

@keyframes formPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group-modern {
    position: relative;
}

.form-group-modern input,
.form-group-modern textarea {
    width: 100%;
    padding: 1.2rem 1rem;
    border: none;
    border-bottom: 2px solid var(--gray-light);
    background: transparent;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    outline: none;
}

.form-group-modern label {
    position: absolute;
    left: 0;
    top: 1.2rem;
    color: var(--gray);
    font-size: 1rem;
    transition: var(--transition);
    pointer-events: none;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus,
.form-group-modern input:not(:placeholder-shown),
.form-group-modern textarea:not(:placeholder-shown) {
    border-bottom-color: var(--primary-color);
}

.form-group-modern input:focus ~ label,
.form-group-modern textarea:focus ~ label,
.form-group-modern input:not(:placeholder-shown) ~ label,
.form-group-modern textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-mixed);
    transition: var(--transition);
}

.form-group-modern input:focus ~ .form-underline,
.form-group-modern textarea:focus ~ .form-underline {
    width: 100%;
}

.form-group-modern textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success Message Animation */
@keyframes successPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-section {
        padding: 2rem;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-card:hover {
        transform: translateY(-5px);
    }
}