/* Contact Form Styles */

/* WhatsApp Modal Animations */
@keyframes bounce-gentle {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-15px,0);
    }
    70% {
        transform: translate3d(0,-7px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Modal backdrop blur effect */
.whatsapp-modal {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* WhatsApp button hover effect */
.whatsapp-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
}

/* WhatsApp button permanent in form */
#whatsapp-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    position: relative;
    overflow: hidden;
}

#whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#whatsapp-btn:hover::before {
    left: 100%;
}

#whatsapp-btn:active {
    transform: scale(0.98);
}

/* Pulse effect for WhatsApp button */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

#whatsapp-btn:focus {
    animation: whatsapp-pulse 1.5s infinite;
}

/* Form field focus animation */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 90, 51, 0.15);
}

/* Success/Error message animations */
.form-message {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner for submit button */
.btn-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Validation styles */
.field-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-5px);
    }
    40%, 80% {
        transform: translateX(5px);
    }
}

/* Character counter animation */
.char-counter.warning {
    animation: pulse 1s infinite;
    color: #ef4444;
}

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

/* Phone input formatting hint */
.phone-hint {
    font-size: 0.75rem;
    color: #6b7280;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phone-input:focus + .phone-hint {
    opacity: 1;
}

/* Modal entrance animation */
.modal-enter {
    animation: modalEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalEnter {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }
    50% {
        transform: scale(1.05) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* WhatsApp icon bounce animation */
.whatsapp-icon-bounce {
    animation: bounce-gentle 2s infinite;
}

/* Success checkmark animation */
.success-checkmark {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-modal .bg-white {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .whatsapp-modal h3 {
        font-size: 1.5rem;
    }
}
