/* WhatsApp Modal Styles */
.whatsapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whatsapp-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.whatsapp-modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background-color: #25D366;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.modal-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.whatsapp-preview {
    background-color: #DCF8C6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
    position: relative;
}

.whatsapp-preview:after {
    content: '';
    position: absolute;
    top: 15px;
    left: -10px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #DCF8C6 transparent;
    transform: rotate(90deg);
}

.preview-message {
    font-size: 14px;
    color: #303030;
}

.modal-whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.modal-whatsapp-btn:hover {
    background-color: #128C7E;
}

/* Enhanced QR Code Styles */
.qr-code {
    position: relative;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-code:after {
    content: 'Scan to chat';
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    color: #128C7E;
    font-weight: 500;
}

/* Form Message Enhancements */
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.form-message.info {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
}

/* WhatsApp Button Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-whatsapp {
    animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
}
