/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Replaced static shape with animated blobs */
.contact-section::before,
.contact-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 122, 62, 0.07) 0%, rgba(45, 122, 62, 0) 70%);
    z-index: 0;
    animation: contactBlobFloat 25s infinite ease-in-out alternate;
    will-change: transform;
}

.contact-section::before {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.contact-section::after {
    width: 800px;
    height: 800px;
    bottom: -200px;
    right: -200px;
    animation-delay: -12s;
}

@keyframes contactBlobFloat {
    from {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    to {
        transform: translate(80px, -60px) scale(1.1) rotate(180deg);
    }
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 48px;
    align-items: start;
}

/* Custom entry animations for contact grid children */
.entry-zoom .contact-info-wrapper {
    animation: slideInRight 1s cubic-bezier(.25, .46, .45, .94) 0.2s both;
}
.entry-zoom .contact-form-wrapper {
    animation: slideInLeft 1s cubic-bezier(.25, .46, .45, .94) 0.4s both;
}

/* Contact Info Side */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* NEW: Animated gradient border on hover */
.contact-info-card::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--gradient-primary);
    z-index: -1;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.contact-info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(45, 122, 62, 0.15);
    border-color: transparent;
}

.contact-info-card:hover::after {
    opacity: 1;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* NEW: More expressive icon animation */
@keyframes iconJiggle {
    0%, 100% { transform: rotate(0) scale(1.1); }
    25% { transform: rotate(-15deg) scale(1.1); }
    50% { transform: rotate(15deg) scale(1.1); }
    75% { transform: rotate(-10deg) scale(1.1); }
}

.contact-info-card:hover .contact-info-icon {
    background: var(--primary-green);
    color: var(--white);
    animation: iconJiggle 0.8s ease-in-out;
}

.contact-info-card h3 {
    font-size: 22px;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.contact-info-card p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.contact-link {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-green);
    transition: width 0.3s ease;
}

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

/* Contact Form Side */
.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.5) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 20px 50px rgba(45, 122, 62, 0.2);
    transform: translateY(-5px);
}
.contact-form-wrapper:hover::before {
    opacity: 1;
}

.contact-form h3 {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 70%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.contact-form .panel-subtext {
    color: var(--gray-600);
}

.form-whatsapp-notice {
    background: var(--light-green);
    color: var(--dark-green);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 24px !important;
    border-right: 4px solid var(--primary-green);
    line-height: 1.6;
}

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

.contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: block;
}

/* NEW: Custom button animations */
.contact-form .btn {
    background-size: 300% 100%;
    background-image: linear-gradient(to right, var(--secondary-green), var(--primary-green), var(--accent-green), var(--secondary-green));
    transition: all .4s ease-in-out;
}

.contact-form .btn:hover {
    background-position: 100% 0;
}

.contact-form .btn .btn-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-form .btn:hover .btn-icon {
    transform: rotate(15deg) scale(1.1) translateX(-2px) translateY(-2px);
}


/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form-wrapper {
        padding: 40px;
    }
    .contact-form h3 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    .contact-info-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .contact-info-card {
        flex: 1 1 280px;
    }
}

@media (max-width: 480px) {
    .contact-form h3 {
        font-size: 24px;
    }
    .contact-info-wrapper {
        flex-direction: column;
    }
}