/* WhatsApp Widget Styles */
.wwp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wwp-button {
    position: relative;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: wwp-pulse 2s infinite;
}

.wwp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
    animation: none;
}

@keyframes wwp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.wwp-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: wwp-bounce 1s infinite;
}

@keyframes wwp-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.wwp-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.wwp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.wwp-button:hover .wwp-tooltip {
    opacity: 1;
    visibility: visible;
}

.wwp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.wwp-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wwp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.wwp-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: wwp-modal-in 0.3s ease-out;
}

@keyframes wwp-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wwp-modal-header {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wwp-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wwp-header-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
}

.wwp-header-text h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.wwp-header-text p {
    margin: 4px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.wwp-close-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wwp-close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wwp-form {
    padding: 24px;
}

.wwp-form-group {
    margin-bottom: 20px;
}

.wwp-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.wwp-form-group label svg {
    color: #9ca3af;
}

.wwp-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wwp-form-group input:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.wwp-form-group input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.wwp-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.wwp-error.show {
    display: block;
}

.wwp-submit-button {
    width: 100%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wwp-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.wwp-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wwp-privacy-note {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin: 16px 0 0 0;
    line-height: 1.4;
}

/* Loading state */
.wwp-loading .wwp-submit-button {
    pointer-events: none;
}

.wwp-loading .wwp-submit-button span {
    opacity: 0;
}

.wwp-loading .wwp-submit-button::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wwp-spin 1s linear infinite;
}

@keyframes wwp-spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .wwp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .wwp-button {
        width: 56px;
        height: 56px;
    }
    
    .wwp-modal-content {
        margin: 20px;
        max-width: none;
    }
    
    .wwp-tooltip {
        display: none;
    }
}