:root {
--primary-green: #4a8f29;
--secondary-green: #6bbd46;
--light-green: #e8f5e9;
--dark-green: #2e5e1a;
--text-color: #333;
--border-color: #ddd;
--error-color: #d32f2f;
--success-color: #388e3c;
}
* {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.container {
max-width: 800px;
margin: 0 auto;
background: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.header {
background-color: var(--primary-green);font-size: 24px;
color: white;
padding: 20px;
text-align: center;
}
.google-warning {
background-color: #f8f9fa;
border-bottom: 1px solid var(--border-color);
padding: 12px 20px;
font-size: 14px;
color: #666;
}
.form-container {
padding: 20px;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--text-color);
}
.required::after {
content: " *";
color: var(--error-color);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
width: 100%;
padding: 12px;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 16px;
transition: border-color 0.3s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
outline: none;
border-color: var(--primary-green);
box-shadow: 0 0 0 2px rgba(74, 143, 41, 0.2);
}
textarea {
min-height: 120px;
resize: vertical;
}
.radio-group {
margin-top: 10px;
}
.radio-option {
display: flex;
align-items: center;
margin-bottom: 8px;
}
.radio-option input {
margin-right: 10px;
}
.checkbox-group {
margin-top: 10px;
}
.checkbox-option {
display: flex;
align-items: center;
margin-bottom: 8px;
}
.checkbox-option input {
margin-right: 10px;
}
.captcha-container {
background-color: var(--light-green);
padding: 15px;
border-radius: 4px;
margin-bottom: 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.captcha-question {
font-size: 18px;
font-weight: bold;
margin-right: 10px;
}
.captcha-input {
width: 80px;
padding: 8px;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 16px;
}
.form-footer {
display: flex;
justify-content: space-between;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid var(--border-color);
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 4px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.3s;
}
.btn-submit {
background-color: var(--primary-green);
color: white;
}
.btn-submit:hover {
background-color: var(--dark-green);
}
.btn-reset {
background-color: #f5f5f5;
color: var(--text-color);
}
.btn-reset:hover {
background-color: #e0e0e0;
}
.error-message {
color: var(--error-color);
font-size: 14px;
margin-top: 5px;
display: none;
}
.success-message {
color: var(--success-color);
font-size: 16px;
text-align: center;
margin-top: 20px;
display: none;
}
@media (max-width: 600px) {
.form-footer {
flex-direction: column;
}
.btn {
width: 100%;
margin-bottom: 10px;
}
.captcha-container {
flex-direction: column;
align-items: flex-start;
}
.captcha-input {
width: 100%;
margin-top: 10px;
}
}
Contact AgriAxis
👉 Use the form below to reach out for:
- General inquiries
- News tips or story submissions
- Partnership or collaboration requests
- Advertisements & promotions
- Job & training submissions
- Technical support
- Feedback & suggestions
Your message will be directed to the right team, and we’ll get back to you as soon as possible.
Note: The name and email associated with your submission will be recorded.
Choose
General Inquiry
Content Submission
Donation / Sponsorship
Feedback / Suggestions
Complaint / Report
Membership / Registration
Support Request
Advertisement / Promotion
Partnership / Collaboration
Event / Training Request
Press / Media Inquiry
Research / Academic Request
Product / Service Listing Request
Job / Volunteer Request
Other
5 + 3 = ?
document.addEventListener('DOMContentLoaded', function() {
// Generate math captcha
generateCaptcha();
// Restrict WhatsApp field to numbers only
const whatsappInput = document.getElementById('entry.1744151416');
whatsappInput.addEventListener('input', function() {
this.value = this.value.replace(/[^0-9]/g, '');
});
// Handle response method "Other" option
document.querySelectorAll('input[name="entry.951328867"]').forEach(radio => {
radio.addEventListener('change', function() {
const otherText = document.getElementById('response-other-text');
otherText.style.display = this.value === 'Other' ? 'inline-block' : 'none';
// If "Other" is selected, update the value when typing
if (this.value === 'Other') {
otherText.addEventListener('input', function() {
document.querySelector('input[name="entry.951328867"][value="Other"]').value = this.value;
});
}
});
});
// Form validation and submission
const form = document.getElementById('agriaxis-form');
form.addEventListener('submit', function(e) {
e.preventDefault();
if (validateForm()) {
// For the "Other" response method, update the value
const otherRadio = document.querySelector('input[name="entry.951328867"][value="Other"]');
if (otherRadio && otherRadio.checked) {
otherRadio.value = document.getElementById('response-other-text').value;
}
// Submit the form
form.submit();
// Show success message
document.getElementById('success-message').style.display = 'block';
form.reset();
generateCaptcha();
// Scroll to success message
setTimeout2 {
showError('email-error', 'Please enter a valid email address');
isValid = false;
} else {
hideError('email-error');
}
// Validate WhatsApp (if provided)
const whatsapp = document.getElementById('entry.1744151416').value.trim();
if (whatsapp && !validatePhone(whatsapp)) {
showError('whatsapp-error', 'Please enter a valid phone number (digits only)');
isValid = false;
} else {
hideError('whatsapp-error');
}
// Validate contact reason
const contactReason = document.getElementById('entry.2101557723').value;
if (!contactReason) {
showError('contact-reason-error', 'Please select a contact reason');
isValid = false;
} else {
hideError('contact-reason-error');
}
// Validate subject
const subject = document.getElementById('entry.1664485274').value.trim();
if (!subject) {
showError('subject-error', 'Please enter a subject');
isValid = false;
} else {
hideError('subject-error');
}
// Validate message (minimum 5 words)
const message = document.getElementById('entry.1197795755').value.trim();
const wordCount = message ? message.split(/s+/).length : 0;
if (wordCount {
el.style.display = 'none';
});
}
function generateCaptcha() {
const num1 = Math.floor(Math.random() * 10);
const num2 = Math.floor(Math.random() * 10);
const operators = ['+', '-'];
const operator = operators[Math.floor(Math.random() * operators.length)];
let question, answer;
if (operator === '+') {
question = `${num1} + ${num2} = ?`;
answer = num1 + num2;
} else {
// Ensure we don't get negative answers
if (num1 >= num2) {
question = `${num1} - ${num2} = ?`;
answer = num1 - num2;
} else {
question = `${num2} - ${num1} = ?`;
answer = num2 - num1;
}
}
document.getElementById('captcha-question').textContent = question;
document.getElementById('captcha-answer').value = answer;
document.getElementById('captcha-input').value = '';
}
});
:root { --primary-green: #4a8f29; --secondary-green: #6bbd46; --light-green: #e8f5e9; --dark-green: #2e5e1a; --text-color: #333; --border-color: #ddd; --error-color: #d32f2f; --success-color: #388e3c; } * { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } .container { max-width: 800px; margin: 0 auto; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); overflow: hidden; } .header { background-color: var(--primary-green);font-size: 24px; color: white; padding: 20px; text-align: center; } .google-warning { background-color: #f8f9fa; border-bottom: 1px solid var(--border-color); padding: 12px 20px; font-size: 14px; color: #666; } .form-container { padding: 20px; } .form-group { margin-bottom: 20px; } label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-color); } .required::after { content: " *"; color: var(--error-color); } input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 16px; transition: border-color 0.3s; } input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 2px rgba(74, 143, 41, 0.2); } textarea { min-height: 120px; resize: vertical; } .radio-group { margin-top: 10px; } .radio-option { display: flex; align-items: center; margin-bottom: 8px; } .radio-option input { margin-right: 10px; } .checkbox-group { margin-top: 10px; } .checkbox-option { display: flex; align-items: center; margin-bottom: 8px; } .checkbox-option input { margin-right: 10px; } .captcha-container { background-color: var(--light-green); padding: 15px; border-radius: 4px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; } .captcha-question { font-size: 18px; font-weight: bold; margin-right: 10px; } .captcha-input { width: 80px; padding: 8px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 16px; } .form-footer { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); } .btn { padding: 12px 24px; border: none; border-radius: 4px; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color 0.3s; } .btn-submit { background-color: var(--primary-green); color: white; } .btn-submit:hover { background-color: var(--dark-green); } .btn-reset { background-color: #f5f5f5; color: var(--text-color); } .btn-reset:hover { background-color: #e0e0e0; } .error-message { color: var(--error-color); font-size: 14px; margin-top: 5px; display: none; } .success-message { color: var(--success-color); font-size: 16px; text-align: center; margin-top: 20px; display: none; } @media (max-width: 600px) { .form-footer { flex-direction: column; } .btn { width: 100%; margin-bottom: 10px; } .captcha-container { flex-direction: column; align-items: flex-start; } .captcha-input { width: 100%; margin-top: 10px; } }document.addEventListener('DOMContentLoaded', function() { // Generate math captcha generateCaptcha();// Restrict WhatsApp field to numbers only const whatsappInput = document.getElementById('entry.1744151416'); whatsappInput.addEventListener('input', function() { this.value = this.value.replace(/[^0-9]/g, ''); });// Handle response method "Other" option document.querySelectorAll('input[name="entry.951328867"]').forEach(radio => { radio.addEventListener('change', function() { const otherText = document.getElementById('response-other-text'); otherText.style.display = this.value === 'Other' ? 'inline-block' : 'none';// If "Other" is selected, update the value when typing if (this.value === 'Other') { otherText.addEventListener('input', function() { document.querySelector('input[name="entry.951328867"][value="Other"]').value = this.value; }); } }); });// Form validation and submission const form = document.getElementById('agriaxis-form');form.addEventListener('submit', function(e) { e.preventDefault();if (validateForm([↩]Contact AgriAxis
👉 Use the form below to reach out for:- General inquiries
- News tips or story submissions
- Partnership or collaboration requests
- Advertisements & promotions
- Job & training submissions
- Technical support
- Feedback & suggestions
Your message will be directed to the right team, and we’ll get back to you as soon as possible.
Note: The name and email associated with your submission will be recorded.
Choose General Inquiry Content Submission Donation / Sponsorship Feedback / Suggestions Complaint / Report Membership / Registration Support Request Advertisement / Promotion Partnership / Collaboration Event / Training Request Press / Media Inquiry Research / Academic Request Product / Service Listing Request Job / Volunteer Request Other5 + 3 = ?- ) => { document.getElementById('success-message').scrollIntoView({ behavior: 'smooth' }); }, 100); } });// Reset form document.getElementById('reset-btn').addEventListener('click', function() { form.reset(); document.getElementById('response-other-text').style.display = 'none'; document.getElementById('success-message').style.display = 'none'; generateCaptcha(); hideAllErrors(); });// Validation functions function validateForm() { let isValid = true;// Validate full name const fullName = document.getElementById('entry.1158914830').value.trim(); if (!fullName) { showError('full-name-error', 'Please enter your full name'); isValid = false; } else { hideError('full-name-error'); }// Validate email const email = document.getElementById('entry.1833597407').value.trim(); if (!email || !validateEmail(email[↩]
