# RATEC Contact Form - Quick Start Guide

## 📋 Installation Steps

1. **Copy to WordPress**
   - Copy the entire `test` folder to `/wp-content/plugins/`
   - Rename it to something like `ratec-contact-form`

2. **Activate in WordPress**
   - Go to WordPress Dashboard → Plugins
   - Find "RATEC Contact Form"
   - Click "Activate"

3. **Add to Your Page**
   - Go to any page or post in WordPress
   - Edit the page
   - Add this shortcode: `[ratec_contact_form]`
   - Publish/Update

That's it! Your beautiful contact form is now live.

---

## 🎨 What You Get

✅ Beautiful, modern contact form
✅ Works on all devices (mobile, tablet, desktop)
✅ Automatically sends emails to admin
✅ Sends confirmation email to visitors
✅ Professional form validation
✅ Built-in spam protection
✅ Secure (WordPress nonce verification)
✅ Responsive and fast

---

## 📝 Form Fields Included

- Full Name (Required)
- Email Address (Required)
- Phone Number (Optional)
- Subject (Required)
- Message Area (Required)

---

## 🔧 How It Works

1. **Visitor fills form** → Beautiful modern interface
2. **Validation happens** → Real-time feedback
3. **Form submits** → No page refresh needed
4. **Email received** → Automatically sent to admin
5. **Confirmation sent** → User gets a thank you email

---

## 🛠 Customization

### Change the Title and Subtitle

Use shortcode with custom text:

```
[ratec_contact_form title="Get in Touch" subtitle="We respond within 24 hours"]
```

### Change Button Text

```
[ratec_contact_form submit_text="Submit Now"]
```

### Combine All

```
[ratec_contact_form title="Contact Us" subtitle="Questions? Let's talk!" submit_text="Send My Message"]
```

---

## 📧 Email Settings

**Where emails are sent:** Admin email in WordPress settings
- Go to Settings → General → Administrator Email Address

**Emails sent automatically:**
- Admin notification of new submission
- Confirmation email to visitor

---

## 🔐 Security Features

- ✅ CSRF protection (nonce verification)
- ✅ Spam protection (honeypot field)
- ✅ Data validation (server-side)
- ✅ Email verification
- ✅ XSS protection (data sanitization)

---

## 🎯 Tips for Best Results

1. **Test the form** - Fill it out yourself first
2. **Check email** - Verify emails go to the right address
3. **Mobile test** - Check how it looks on phone
4. **Customize** - Update title/subtitle to match your brand
5. **Monitor** - Keep an eye on submissions

---

## ❓ FAQ

**Q: Can I add more fields?**
A: Yes. Edit `ratec-contact-form.php` and add more input fields

**Q: How do I change colors?**
A: Edit `assets/css/style.css` and modify the color values

**Q: Can I remove the phone field?**
A: Yes. Remove the phone field form-group from `ratec-contact-form.php`

**Q: What if emails aren't sending?**
A: Check your hosting provider's email settings or contact support

**Q: Can I use multiple forms on one site?**
A: Yes! Add the shortcode to multiple pages

---

## 📞 Need Help?

1. Check the README.md file for detailed documentation
2. Ensure WordPress is up to date
3. Try deactivating other plugins to check for conflicts
4. Contact your hosting provider if emails won't send

---

**You're all set! Enjoy your beautiful contact form! 🎉**
