{"id":2597,"date":"2026-11-24T12:20:03","date_gmt":"2026-11-24T12:20:03","guid":{"rendered":"https:\/\/wotech-eg.com\/?page_id=2597"},"modified":"2026-11-24T12:21:07","modified_gmt":"2026-11-24T12:21:07","slug":"raw-material-supply","status":"publish","type":"page","link":"https:\/\/wotech-eg.com\/ar\/raw-material-supply\/","title":{"rendered":"Raw Material Supply"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"2597\" class=\"elementor elementor-2597\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5692a82 e-con-full e-flex e-con e-parent\" data-id=\"5692a82\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-10ce0b1 elementor-widget__width-inherit elementor-widget elementor-widget-html\" data-id=\"10ce0b1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<section id=\"supplier-form\" class=\"wotech-supform-section\" aria-labelledby=\"supform-title\">\r\n  <div class=\"wotech-supform-container\">\r\n    \r\n    <!-- Header -->\r\n    <div class=\"wotech-supform-header\">\r\n      <h2 id=\"supform-title\" class=\"wotech-supform-title\">Raw Material Supplier Registration<\/h2>\r\n      <div class=\"wotech-supform-divider\" aria-hidden=\"true\"><\/div>\r\n      <p class=\"wotech-supform-subtitle\">\r\n        Join WOTECH\u2019s sustainable supply network for seasonal agricultural residues. Please provide your details below.\r\n      <\/p>\r\n    <\/div>\r\n\r\n    <!-- Form Box -->\r\n    <div class=\"wotech-supform-card\">\r\n      \r\n      <!-- Alert Message Banner -->\r\n      <div id=\"wotech-sup-alert\" class=\"wotech-sup-alert\" style=\"display:none;\" role=\"alert\"><\/div>\r\n\r\n      <form id=\"wotech-supplier-form\" novalidate>\r\n        \r\n        <!-- Field 1: Name -->\r\n        <div class=\"wotech-form-group\">\r\n          <label for=\"supplier_name\" class=\"wotech-label\">\r\n            Full Name <span class=\"required\">*<\/span>\r\n          <\/label>\r\n          <input \r\n            type=\"text\" \r\n            id=\"supplier_name\" \r\n            name=\"supplier_name\" \r\n            class=\"wotech-input\" \r\n            placeholder=\"e.g. Mohamed Ahmed\" \r\n            required\r\n>\r\n        <\/div>\r\n\r\n        <!-- Field 2: Phone Number -->\r\n        <div class=\"wotech-form-group\">\r\n          <label for=\"supplier_phone\" class=\"wotech-label\">\r\n            Phone Number <span class=\"required\">*<\/span>\r\n          <\/label>\r\n          <input \r\n            type=\"tel\" \r\n            id=\"supplier_phone\" \r\n            name=\"supplier_phone\" \r\n            class=\"wotech-input\" \r\n            placeholder=\"e.g. 010xxxxxxxx\" \r\n            required\r\n>\r\n        <\/div>\r\n\r\n        <!-- Field 3: Entity Type (Company vs Agricultural Property Owner) -->\r\n        <div class=\"wotech-form-group\">\r\n          <label class=\"wotech-label\">\r\n            Entity Type <span class=\"required\">*<\/span>\r\n          <\/label>\r\n          \r\n          <div class=\"wotech-radio-grid\">\r\n            <label class=\"wotech-radio-card\">\r\n              <input type=\"radio\" name=\"entity_type\" value=\"Owner\" checked>\r\n              <span class=\"radio-custom\"><\/span>\r\n              <span class=\"radio-text\">\r\n                <strong>Owner of an agricultural property<\/strong>\r\n                <small>\u0645\u0627\u0644\u0643 \u062d\u064a\u0627\u0632\u0629 \u0632\u0631\u0627\u0639\u064a\u0629 \/ \u0645\u0632\u0631\u0639\u0629<\/small>\r\n              <\/span>\r\n            <\/label>\r\n\r\n            <label class=\"wotech-radio-card\">\r\n              <input type=\"radio\" name=\"entity_type\" value=\"Company\">\r\n              <span class=\"radio-custom\"><\/span>\r\n              <span class=\"radio-text\">\r\n                <strong>Company<\/strong>\r\n                <small>\u0634\u0631\u0643\u0629 \/ \u0643\u064a\u0627\u0646 \u062a\u062c\u0627\u0631\u064a \/ \u0645\u0642\u0627\u0648\u0644 \u0628\u0627\u0644\u0627\u062a<\/small>\r\n              <\/span>\r\n            <\/label>\r\n          <\/div>\r\n        <\/div>\r\n\r\n        <!-- Field 4: Conditional Company Name (Toggles when \"Company\" is selected) -->\r\n        <div id=\"wotech-company-field\" class=\"wotech-form-group\" style=\"display: none;\">\r\n          <label for=\"company_name\" class=\"wotech-label\">\r\n            Company Name <span class=\"required\">*<\/span>\r\n          <\/label>\r\n          <input \r\n            type=\"text\" \r\n            id=\"company_name\" \r\n            name=\"company_name\" \r\n            class=\"wotech-input\" \r\n            placeholder=\"e.g. Delta Agricultural Services Co.\"\r\n          >\r\n        <\/div>\r\n\r\n        <!-- Optional: Location \/ Governorate -->\r\n        <div class=\"wotech-form-group\">\r\n          <label for=\"supplier_location\" class=\"wotech-label\">\r\n            Governorate \/ Area <span class=\"optional\">(Optional)<\/span>\r\n          <\/label>\r\n          <input \r\n            type=\"text\" \r\n            id=\"supplier_location\" \r\n            name=\"supplier_location\" \r\n            class=\"wotech-input\" \r\n            placeholder=\"e.g. Beheira \/ Kafr El Sheikh \/ Sharkia\"\r\n          >\r\n        <\/div>\r\n\r\n        <!-- Optional: Notes -->\r\n        <div class=\"wotech-form-group\">\r\n          <label for=\"supplier_notes\" class=\"wotech-label\">\r\n            Notes <span class=\"optional\">(Optional)<\/span>\r\n          <\/label>\r\n          <textarea \r\n            id=\"supplier_notes\" \r\n            name=\"supplier_notes\" \r\n            rows=\"3\" \r\n            class=\"wotech-input wotech-textarea\" \r\n            placeholder=\"e.g. Approximate feddans or tons of rice straw available...\"\r\n          ><\/textarea>\r\n        <\/div>\r\n\r\n        <!-- Submit Button -->\r\n        <div class=\"wotech-form-submit\">\r\n          <button type=\"submit\" id=\"wotech-sup-btn\" class=\"wotech-sup-submit-btn\">\r\n            <span class=\"btn-text\">Submit Supplier Registration<\/span>\r\n            <span class=\"btn-arrow\" aria-hidden=\"true\">&rsaquo;<\/span>\r\n            <span class=\"btn-spinner\" style=\"display:none;\" aria-hidden=\"true\"><\/span>\r\n          <\/button>\r\n        <\/div>\r\n\r\n      <input type=\"hidden\" name=\"trp-form-language\" value=\"ar\"\/><\/form>\r\n    <\/div>\r\n\r\n  <\/div>\r\n<\/section>\r\n\r\n<!-- Scoped Styles for Supplier Form -->\r\n<style>\r\n.wotech-supform-section {\r\n  position: relative;\r\n  background-color: #FFFFFF;\r\n  padding: 60px 24px 80px;\r\n  width: 100% !important;\r\n  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\r\n  box-sizing: border-box;\r\n}\r\n\r\n@media (min-width: 1024px) {\r\n  .wotech-supform-section {\r\n    padding: 80px 48px 90px;\r\n  }\r\n}\r\n\r\n.wotech-supform-container {\r\n  max-width: 760px;\r\n  margin: 0 auto;\r\n}\r\n\r\n\/* Header *\/\r\n.wotech-supform-header {\r\n  text-align: center;\r\n  margin-bottom: 36px;\r\n}\r\n\r\n.wotech-supform-title {\r\n  font-size: clamp(24px, 3.5vw, 34px) !important;\r\n  font-weight: 700 !important;\r\n  color: #9CAF88 !important;\r\n  margin: 0 0 12px 0 !important;\r\n  line-height: 1.25 !important;\r\n}\r\n\r\n.wotech-supform-divider {\r\n  width: 48px;\r\n  height: 3px;\r\n  background-color: #5F3D20;\r\n  margin: 12px auto 16px auto;\r\n  border-radius: 2px;\r\n}\r\n\r\n.wotech-supform-subtitle {\r\n  font-size: 15px !important;\r\n  line-height: 1.6 !important;\r\n  color: #4A5568 !important;\r\n  margin: 0 !important;\r\n}\r\n\r\n\/* Card Container *\/\r\n.wotech-supform-card {\r\n  background: #FFFFFF;\r\n  border: 1px solid rgba(95, 61, 32, 0.12);\r\n  padding: 36px 28px;\r\n  box-shadow: 0 15px 35px rgba(95, 61, 32, 0.05);\r\n  box-sizing: border-box;\r\n}\r\n\r\n@media (min-width: 640px) {\r\n  .wotech-supform-card {\r\n    padding: 44px 40px;\r\n  }\r\n}\r\n\r\n\/* Form Groups & Labels *\/\r\n.wotech-form-group {\r\n  margin-bottom: 22px;\r\n}\r\n\r\n.wotech-label {\r\n  display: block;\r\n  font-size: 14px;\r\n  font-weight: 700;\r\n  color: #5F3D20;\r\n  margin-bottom: 8px;\r\n}\r\n\r\n.wotech-label .required {\r\n  color: #c53030;\r\n}\r\n\r\n.wotech-label .optional {\r\n  font-size: 12px;\r\n  font-weight: 400;\r\n  color: #718096;\r\n}\r\n\r\n\/* Inputs *\/\r\n.wotech-input {\r\n  width: 100%;\r\n  padding: 12px 16px;\r\n  font-size: 15px;\r\n  font-family: inherit;\r\n  color: #2D3748;\r\n  background-color: #FFFFFF;\r\n  border: 1px solid rgba(95, 61, 32, 0.20);\r\n  box-sizing: border-box;\r\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\r\n}\r\n\r\n.wotech-input:focus {\r\n  outline: none;\r\n  border-color: #5F3D20;\r\n  box-shadow: 0 0 0 3px rgba(95, 61, 32, 0.08);\r\n}\r\n\r\n.wotech-textarea {\r\n  resize: vertical;\r\n  min-height: 80px;\r\n}\r\n\r\n\/* Radio Cards Grid *\/\r\n.wotech-radio-grid {\r\n  display: grid;\r\n  grid-template-columns: 1fr;\r\n  gap: 12px;\r\n}\r\n\r\n@media (min-width: 640px) {\r\n  .wotech-radio-grid {\r\n    grid-template-columns: 1fr 1fr;\r\n  }\r\n}\r\n\r\n.wotech-radio-card {\r\n  display: flex;\r\n  align-items: flex-start;\r\n  gap: 12px;\r\n  padding: 14px 16px;\r\n  background: #F8F6F2;\r\n  border: 1px solid rgba(95, 61, 32, 0.15);\r\n  cursor: pointer;\r\n  transition: all 0.2s ease;\r\n  user-select: none;\r\n}\r\n\r\n.wotech-radio-card:hover {\r\n  border-color: #9CAF88;\r\n}\r\n\r\n.wotech-radio-card input[type=\"radio\"] {\r\n  position: absolute;\r\n  opacity: 0;\r\n  pointer-events: none;\r\n}\r\n\r\n.radio-custom {\r\n  width: 18px;\r\n  height: 18px;\r\n  border-radius: 50%;\r\n  border: 2px solid rgba(95, 61, 32, 0.4);\r\n  background: #FFFFFF;\r\n  display: inline-block;\r\n  flex-shrink: 0;\r\n  margin-top: 2px;\r\n  position: relative;\r\n  transition: border-color 0.2s ease;\r\n}\r\n\r\n.wotech-radio-card input[type=\"radio\"]:checked + .radio-custom {\r\n  border-color: #5F3D20;\r\n}\r\n\r\n.wotech-radio-card input[type=\"radio\"]:checked + .radio-custom::after {\r\n  content: '';\r\n  position: absolute;\r\n  top: 3px;\r\n  left: 3px;\r\n  width: 8px;\r\n  height: 8px;\r\n  border-radius: 50%;\r\n  background: #5F3D20;\r\n}\r\n\r\n.wotech-radio-card.active {\r\n  background: #FFFFFF;\r\n  border-color: #5F3D20;\r\n  box-shadow: 0 4px 12px rgba(95, 61, 32, 0.08);\r\n}\r\n\r\n.radio-text {\r\n  display: flex;\r\n  flex-direction: column;\r\n}\r\n\r\n.radio-text strong {\r\n  font-size: 14px;\r\n  color: #5F3D20;\r\n  line-height: 1.3;\r\n}\r\n\r\n.radio-text small {\r\n  font-size: 12px;\r\n  color: #718096;\r\n  margin-top: 2px;\r\n}\r\n\r\n\/* Submit Button *\/\r\n.wotech-form-submit {\r\n  margin-top: 28px;\r\n}\r\n\r\n.wotech-sup-submit-btn {\r\n  width: 100%;\r\n  display: inline-flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n  gap: 10px;\r\n  padding: 14px 28px;\r\n  background-color: #5F3D20;\r\n  color: #FFFFFF !important;\r\n  font-size: 15px;\r\n  font-weight: 700;\r\n  font-family: inherit;\r\n  border: none;\r\n  cursor: pointer;\r\n  box-shadow: 0 4px 14px rgba(95, 61, 32, 0.25);\r\n  transition: all 0.3s ease;\r\n}\r\n\r\n.wotech-sup-submit-btn:hover:not(:disabled) {\r\n  background-color: #4D3118;\r\n  transform: translateY(-2px);\r\n  box-shadow: 0 6px 18px rgba(95, 61, 32, 0.35);\r\n}\r\n\r\n.wotech-sup-submit-btn:disabled {\r\n  opacity: 0.7;\r\n  cursor: not-allowed;\r\n}\r\n\r\n.wotech-sup-submit-btn .btn-arrow {\r\n  font-size: 20px;\r\n  line-height: 1;\r\n  transition: transform 0.2s ease;\r\n}\r\n\r\n.wotech-sup-submit-btn:hover:not(:disabled) .btn-arrow {\r\n  transform: translateX(4px);\r\n}\r\n\r\n\/* Spinner *\/\r\n.btn-spinner {\r\n  width: 16px;\r\n  height: 16px;\r\n  border: 2px solid rgba(255, 255, 255, 0.3);\r\n  border-radius: 50%;\r\n  border-top-color: #ffffff;\r\n  animation: wotech-spin 0.8s linear infinite;\r\n}\r\n\r\n@keyframes wotech-spin {\r\n  to { transform: rotate(360deg); }\r\n}\r\n\r\n\/* Alert Banner *\/\r\n.wotech-sup-alert {\r\n  padding: 14px 18px;\r\n  margin-bottom: 24px;\r\n  font-size: 14px;\r\n  line-height: 1.5;\r\n  box-sizing: border-box;\r\n}\r\n\r\n.wotech-sup-alert.success {\r\n  background-color: #edf7ed;\r\n  border: 1px solid #c8e6c9;\r\n  color: #1e4620;\r\n}\r\n\r\n.wotech-sup-alert.error {\r\n  background-color: #fdecea;\r\n  border: 1px solid #f5c6cb;\r\n  color: #611a15;\r\n}\r\n<\/style>\r\n\r\n<!-- Vanilla JS: Conditional Logic & AJAX Submission -->\r\n<script>\r\n(function() {\r\n  const form = document.getElementById('wotech-supplier-form');\r\n  if (!form) return;\r\n\r\n  const entityRadios = form.querySelectorAll('input[name=\"entity_type\"]');\r\n  const companyField = document.getElementById('wotech-company-field');\r\n  const companyInput = document.getElementById('company_name');\r\n  const alertBox     = document.getElementById('wotech-sup-alert');\r\n  const submitBtn    = document.getElementById('wotech-sup-btn');\r\n  const btnText      = submitBtn.querySelector('.btn-text');\r\n  const btnArrow     = submitBtn.querySelector('.btn-arrow');\r\n  const btnSpinner   = submitBtn.querySelector('.btn-spinner');\r\n\r\n  \/\/ 1. Conditional Logic: Toggle Company Name field\r\n  function updateEntityState() {\r\n    const selected = form.querySelector('input[name=\"entity_type\"]:checked');\r\n    entityRadios.forEach(r => {\r\n      r.closest('.wotech-radio-card').classList.toggle('active', r.checked);\r\n    });\r\n\r\n    if (selected && selected.value === 'Company') {\r\n      companyField.style.display = 'block';\r\n      companyInput.required = true;\r\n    } else {\r\n      companyField.style.display = 'none';\r\n      companyInput.required = false;\r\n      companyInput.value = '';\r\n    }\r\n  }\r\n\r\n  entityRadios.forEach(radio => radio.addEventListener('change', updateEntityState));\r\n  updateEntityState(); \/\/ Initial check\r\n\r\n  \/\/ 2. AJAX Submission Handler\r\n  form.addEventListener('submit', function(e) {\r\n    e.preventDefault();\r\n\r\n    \/\/ Client-side quick check\r\n    const name  = document.getElementById('supplier_name').value.trim();\r\n    const phone = document.getElementById('supplier_phone').value.trim();\r\n    const entity = form.querySelector('input[name=\"entity_type\"]:checked').value;\r\n\r\n    if (!name || !phone) {\r\n      showAlert('Please fill in your name and phone number.', 'error');\r\n      return;\r\n    }\r\n\r\n    if (entity === 'Company' && !companyInput.value.trim()) {\r\n      showAlert('Please provide your company name.', 'error');\r\n      companyInput.focus();\r\n      return;\r\n    }\r\n\r\n    \/\/ Prepare FormData\r\n    const formData = new FormData(form);\r\n    formData.append('action', 'wotech_submit_supplier');\r\n\r\n    \/\/ UI Loading state\r\n    submitBtn.disabled = true;\r\n    btnText.textContent = 'Submitting registration...';\r\n    btnArrow.style.display = 'none';\r\n    btnSpinner.style.display = 'inline-block';\r\n    alertBox.style.display = 'none';\r\n\r\n    \/\/ Submit to WordPress admin-ajax.php\r\n    fetch('\/wp-admin\/admin-ajax.php', {\r\n      method: 'POST',\r\n      body: formData\r\n    })\r\n    .then(res => res.json())\r\n    .then(data => {\r\n      if (data.success) {\r\n        showAlert(data.data.message || 'Registration submitted successfully!', 'success');\r\n        form.reset();\r\n        updateEntityState();\r\n      } else {\r\n        showAlert(data.data.message || 'An error occurred. Please try again.', 'error');\r\n      }\r\n    })\r\n    .catch(err => {\r\n      showAlert('Network error. Please check your connection and try again.', 'error');\r\n    })\r\n    .finally(() => {\r\n      submitBtn.disabled = false;\r\n      btnText.textContent = 'Submit Supplier Registration';\r\n      btnArrow.style.display = 'inline';\r\n      btnSpinner.style.display = 'none';\r\n    });\r\n  });\r\n\r\n  function showAlert(message, type) {\r\n    alertBox.textContent = message;\r\n    alertBox.className = 'wotech-sup-alert ' + type;\r\n    alertBox.style.display = 'block';\r\n    alertBox.scrollIntoView({ behavior: 'smooth', block: 'nearest' });\r\n  }\r\n})();\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Raw Material Supplier Registration Join WOTECH\u2019s sustainable supply network for seasonal agricultural residues. Please provide your details below. Full Name * Phone Number * Entity Type * Owner of an agricultural property \u0645\u0627\u0644\u0643 \u062d\u064a\u0627\u0632\u0629 \u0632\u0631\u0627\u0639\u064a\u0629 \/ \u0645\u0632\u0631\u0639\u0629 Company \u0634\u0631\u0643\u0629 \/ \u0643\u064a\u0627\u0646 \u062a\u062c\u0627\u0631\u064a \/ \u0645\u0642\u0627\u0648\u0644 \u0628\u0627\u0644\u0627\u062a Company Name * Governorate \/ Area (Optional) Notes (Optional) Submit&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_post_transparent":"","_kad_post_title":"hide","_kad_post_layout":"fullwidth","_kad_post_sidebar_id":"","_kad_post_content_style":"unboxed","_kad_post_vertical_padding":"hide","_kad_post_feature":"hide","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"class_list":["post-2597","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wotech-eg.com\/ar\/wp-json\/wp\/v2\/pages\/2597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wotech-eg.com\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wotech-eg.com\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wotech-eg.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wotech-eg.com\/ar\/wp-json\/wp\/v2\/comments?post=2597"}],"version-history":[{"count":5,"href":"https:\/\/wotech-eg.com\/ar\/wp-json\/wp\/v2\/pages\/2597\/revisions"}],"predecessor-version":[{"id":2603,"href":"https:\/\/wotech-eg.com\/ar\/wp-json\/wp\/v2\/pages\/2597\/revisions\/2603"}],"wp:attachment":[{"href":"https:\/\/wotech-eg.com\/ar\/wp-json\/wp\/v2\/media?parent=2597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}