<style>
    .newsletter-form label {
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 2px;
        line-height: 1.2;
    }

    .field-required-mark {
        color: #F00;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
    }

    .newsletter-form input {
        border-radius: 40px;
        font-size: 14px;
        font-style: normal;
        font-weight: 300;
        line-height: 20px;
        padding: 12px 16px 12px 16px;
        margin-bottom: 16px;
    }

    .newsletter-form select {
        border-radius: 40px;
        color: #666 !important;
        padding: 12px 16px 12px 16px;
        margin-bottom: 16px;
        font-size: 14px;
        font-style: normal;
        font-weight: 300;
        line-height: 20px;
        appearance: none;
    }

    selector input::placeholder,
    textarea::placeholder {
        color: #666 !important;
        font-size: 14px;
        font-style: normal;
        font-weight: 300;
        line-height: 20px;
        opacity: 1;
    }


    .newsletter-form input[type="submit"] {
        border: none;
        padding: 8px 20px 8px 20px;
        font-family: inherit;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 22px;
        text-transform: capitalize;
    }

    .form-profession-wrapper .select-caret-down-wrapper-profession,
    .form-country-wrapper .select-caret-down-wrapper-country {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9' viewBox='0 0 18 9' fill='none'%3E%3Cpath d='M2 2L7.69842 6.88436C8.4474 7.52634 9.5526 7.52634 10.3016 6.88436L16 2' stroke='%230099F5' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat no-repeat;
        background-position: center center;
        background-size: cover;
        height: 6px;
        width: 14px;
        overflow: visible;
    }

    .form-country-wrapper .select-caret-down-wrapper-country {
        position: absolute;
        top: 51.5%;
        left: 95%;
        transform: translateY(-50%);
        inset-inline-end: 10px;
        pointer-events: none;
        font-size: 11px;
    }


    .form-profession-wrapper .select-caret-down-wrapper-profession {
        position: absolute;
        top: 69.5%;
        left: 95%;
        transform: translateY(-50%);
        inset-inline-end: 10px;
        pointer-events: none;
        font-size: 11px;
    }

    .form-profession-wrapper,
    .form-country-wrapper {
        position: relative;
    }
</style>

<main role="main">
    <div class="subscription-form">
        <div class="container-fluid">
            <div class="text-center">
                <div class="newsletter">
                    <h1 class="title text-uppercase">Stay Connected With Us</h1>
                    <br>
                    <p>Stay connected with INAX for exclusive news and industry insights on shaping the future of water. Sign up now!</p>
                </div>
            </div>
            <div class="subscription-form-content-container">
                <div class="col-lg"></div>
                <div class="col-lg">
                    <!--  ----------------------------------------------------------------------  -->
                    <!--  NOTE: Please add the following <FORM> element to your page.             -->
                    <!--  ----------------------------------------------------------------------  -->

                    <!--  NOTE: This is the URL for submit to PROD -->
                    <!-- <form action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&orgId=00D5g000004hUsN" method="POST"> -->
                    <form
                        action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&orgId=00D5g000004hUsN"
                        method="POST" class="newsletter-form">

                        <!--  NOTE: change keyname based on brand. Eg americanstandard or grohe or inax -->
                        <!--  NOTE: change retURL value as needed for the correct thank you page -->
                        <!-- <input type=hidden name='captcha_settings' value='{"keyname":"grohe","fallback":"true","orgId":"00D5g000004hUsN","ts":""}'> -->
                        <input type=hidden name="oid" value="00D5g000004hUsN">
                        <input type=hidden name="retURL" value="http://inax.com.sg/support/subscription-form/">

                        <!--  ----------------------------------------------------------------------  -->
                        <!--  NOTE: These fields are optional debugging elements. Please uncomment    -->
                        <!--  these lines if you wish to test in debug mode.                          -->
                        <!-- <input type="hidden" name="debug" value=1>                              -->
                        <!-- <input type="hidden" name="debugEmail" value="milan.tubic@ematicsolutions.com">                                         -->
                        <!--  ----------------------------------------------------------------------  -->

                        <!--  NOTE: change label for frontend form as needed, example, can change first name to translated term -->
                        <!--  NOTE: do not touch any ID field -->
                        <label class="text-uppercase" for="first_name">First Name <span
                                class="field-required-mark">*</span></label><input id="first_name" class="form-control"
                            maxlength="40" name="first_name" size="20" type="text" placeholder="Enter first name" /><br>
                        <label class="text-uppercase" for="last_name">Last Name <span class="field-required-mark">*</span></label><input class="form-control"
                            id="last_name" maxlength="80" name="last_name" size="20" type="text"
                            placeholder="Enter last name" /><br>

                        <label class="text-uppercase" for="email">Email <span class="field-required-mark">*</span></label><input class="form-control" id="email"
                            maxlength="80" name="email" size="20" type="text"
                            placeholder="Enter email address" /><br>

                        <!--  NOTE: suggest to reduce the country list. -->
                        <!--  NOTE: change the label between the greater than and less than arrows, in other words, the second mention of the country code in each line-->
                        <label class="text-uppercase" for="country_code">Country</label>
                        <div class="form-country-wrapper">
                            <div class="select-caret-down-wrapper-country"></div>
                            <select class="form-control" id="country_code" name="country_code">
                                <option value="">Select Country</option>
                                <option value="AF">Afghanistan</option>
                                <option value="AX">Åland Islands</option>
                                <option value="AL">Albania</option>
                                <option value="DZ">Algeria</option>
                                <option value="AD">Andorra</option>
                                <option value="AO">Angola</option>
                                <option value="AI">Anguilla</option>
                                <option value="AQ">Antarctica</option>
                                <option value="AG">Antigua and Barbuda</option>
                                <option value="AR">Argentina</option>
                                <option value="AM">Armenia</option>
                                <option value="AW">Aruba</option>
                                <option value="AU">Australia</option>
                                <option value="AT">Austria</option>
                                <option value="AZ">Azerbaijan</option>
                                <option value="BS">Bahamas</option>
                                <option value="BH">Bahrain</option>
                                <option value="BD">Bangladesh</option>
                                <option value="BB">Barbados</option>
                                <option value="BY">Belarus</option>
                                <option value="BE">Belgium</option>
                                <option value="BZ">Belize</option>
                                <option value="BJ">Benin</option>
                                <option value="BM">Bermuda</option>
                                <option value="BT">Bhutan</option>
                                <option value="BO">Bolivia, Plurinational State of</option>
                                <option value="BQ">Bonaire, Sint Eustatius and Saba</option>
                                <option value="BA">Bosnia and Herzegovina</option>
                                <option value="BW">Botswana</option>
                                <option value="BV">Bouvet Island</option>
                                <option value="BR">Brazil</option>
                                <option value="IO">British Indian Ocean Territory</option>
                                <option value="BN">Brunei Darussalam</option>
                                <option value="BG">Bulgaria</option>
                                <option value="BF">Burkina Faso</option>
                                <option value="BI">Burundi</option>
                                <option value="KH">Cambodia</option>
                                <option value="CM">Cameroon</option>
                                <option value="CA">Canada</option>
                                <option value="CV">Cabo Verde</option>
                                <option value="KY">Cayman Islands</option>
                                <option value="CF">Central African Republic</option>
                                <option value="TD">Chad</option>
                                <option value="CL">Chile</option>
                                <option value="CN">China</option>
                                <option value="CX">Christmas Island</option>
                                <option value="CC">Cocos (Keeling) Islands</option>
                                <option value="CO">Colombia</option>
                                <option value="KM">Cameroon</option>
                                <option value="CG">Congo</option>
                                <option value="CD">Congo, Democratic Republic of the</option>
                                <option value="CK">Cook Islands</option>
                                <option value="CR">Costa Rica</option>
                                <option value="CI">CÃ´te d'Ivoire</option>
                                <option value="HR">Croatia</option>
                                <option value="CU">Cuba</option>
                                <option value="CW">Curaçao</option>
                                <option value="CY">Cyprus</option>
                                <option value="CZ">Czech Republic</option>
                                <option value="DK">Denmark</option>
                                <option value="DJ">Djibouti</option>
                                <option value="DM">Dominica</option>
                                <option value="DO">Dominican Republic</option>
                                <option value="EC">Ecuador</option>
                                <option value="EG">Egypt</option>
                                <option value="SV">El Salvador</option>
                                <option value="GQ">Equatorial Guinea</option>
                                <option value="ER">Eritrea</option>
                                <option value="EE">Estonia</option>
                                <option value="ET">Ethiopia</option>
                                <option value="FK">Falkland Islands (Malvinas)</option>
                                <option value="FO">Faroe Islands</option>
                                <option value="FJ">Fiji</option>
                                <option value="FI">Finland</option>
                                <option value="FR">France</option>
                                <option value="GF">French Guiana</option>
                                <option value="PF">French Polynesia</option>
                                <option value="TF">French Southern Territories</option>
                                <option value="GA">Gabon</option>
                                <option value="GM">Gambia</option>
                                <option value="GE">Georgia</option>
                                <option value="DE">Germany</option>
                                <option value="GH">Ghana</option>
                                <option value="GI">Gibraltar</option>
                                <option value="GR">Greece</option>
                                <option value="GL">Greenland</option>
                                <option value="GD">Grenada</option>
                                <option value="GP">Guadeloupe</option>
                                <option value="GT">Guatemala</option>
                                <option value="GG">Guernsey</option>
                                <option value="GN">Guinea</option>
                                <option value="GW">Guinea-Bissau</option>
                                <option value="GY">Guyana</option>
                                <option value="HT">Haiti</option>
                                <option value="HM">Heard Island and McDonald Islands</option>
                                <option value="VA">Holy See</option>
                                <option value="HN">Honduras</option>
                                <option value="HK">Hong Kong</option>
                                <option value="HU">Hungary</option>
                                <option value="IS">Iceland</option>
                                <option value="IN">India</option>
                                <option value="ID">Indonesia</option>
                                <option value="IR">Iran, Islamic Republic of</option>
                                <option value="IQ">Iraq</option>
                                <option value="IE">Ireland</option>
                                <option value="IM">Isle of Man</option>
                                <option value="IL">Israel</option>
                                <option value="IT">Italy</option>
                                <option value="JM">Jamaica</option>
                                <option value="JP">Japan</option>
                                <option value="JE">Jersey</option>
                                <option value="JO">Jordan</option>
                                <option value="KZ">Kazakhstan</option>
                                <option value="KE">Kenya</option>
                                <option value="KI">Kiribati</option>
                                <option value="KP">Korea, Democratic People's Republic of</option>
                                <option value="KR">Korea, Republic of</option>
                                <option value="XK">XK</option>
                                <option value="KW">Kuwait</option>
                                <option value="KG">Kyrgyzstan</option>
                                <option value="LA">Lao People's Democratic Republic</option>
                                <option value="LV">Latvia</option>
                                <option value="LB">Lebanon</option>
                                <option value="LS">Lesotho</option>
                                <option value="LR">Liberia</option>
                                <option value="LY">Libya</option>
                                <option value="LI">Liechtenstein</option>
                                <option value="LT">Lithuania</option>
                                <option value="LU">Luxembourg</option>
                                <option value="MO">Macao</option>
                                <option value="MK">Macedonia, the former Yugoslav Republic of</option>
                                <option value="MG">Madagascar</option>
                                <option value="MW">Malawi</option>
                                <option value="MY">Malaysia</option>
                                <option value="MV">Maldives</option>
                                <option value="ML">Mali</option>
                                <option value="MT">Malta</option>
                                <option value="MQ">Martinique</option>
                                <option value="MR">Mauritania</option>
                                <option value="MU">Mauritius</option>
                                <option value="YT">Mayotte</option>
                                <option value="MX">Mexico</option>
                                <option value="MD">Moldova, Republic of</option>
                                <option value="MC">Monaco</option>
                                <option value="MN">Mongolia</option>
                                <option value="ME">Montenegro</option>
                                <option value="MS">Montserrat</option>
                                <option value="MA">Morocco</option>
                                <option value="MZ">Mozambique</option>
                                <option value="MM">Myanmar</option>
                                <option value="NA">Namibia</option>
                                <option value="NR">Nauru</option>
                                <option value="NP">Nepal</option>
                                <option value="NL">Netherlands</option>
                                <option value="NC">New Caledonia</option>
                                <option value="NZ">New Zealand</option>
                                <option value="NI">Nicaragua</option>
                                <option value="NE">Niger</option>
                                <option value="NG">Nigeria</option>
                                <option value="NU">Niue</option>
                                <option value="NF">Norfolk Island</option>
                                <option value="NO">Norway</option>
                                <option value="OM">Oman</option>
                                <option value="PK">Pakistan</option>
                                <option value="PS">Palestine, State of</option>
                                <option value="PA">Panama</option>
                                <option value="PG">Papua New Guinea</option>
                                <option value="PY">Paraguay</option>
                                <option value="PE">Peru</option>
                                <option value="PH">Philippines</option>
                                <option value="PN">Pitcairn</option>
                                <option value="PL">Poland</option>
                                <option value="PT">Portugal</option>
                                <option value="QA">Qatar</option>
                                <option value="RE">Réunion</option>
                                <option value="RO">Romania</option>
                                <option value="RU">Russian Federation</option>
                                <option value="RW">Rwanda</option>
                                <option value="BL">Saint Barthélemy</option>
                                <option value="SH">Saint Helena, Ascension and Tristan da Cunha</option>
                                <option value="KN">Saint Kitts and Nevis</option>
                                <option value="LC">Saint Lucia</option>
                                <option value="MF">Saint Martin (French part)</option>
                                <option value="PM">Saint Pierre and Miquelon</option>
                                <option value="VC">Saint Vincent and the Grenadines</option>
                                <option value="WS">Samoa</option>
                                <option value="SM">San Marino</option>
                                <option value="ST">Sao Tome and Principe</option>
                                <option value="SA">Saudi Arabia</option>
                                <option value="SN">Senegal</option>
                                <option value="RS">Serbia</option>
                                <option value="SC">Seychelles</option>
                                <option value="SL">Sierra Leone</option>
                                <option value="SG">Singapore</option>
                                <option value="SX">Sint Maarten (Dutch part)</option>
                                <option value="SK">Slovakia</option>
                                <option value="SI">Slovenia</option>
                                <option value="SB">Solomon Islands</option>
                                <option value="SO">Somalia</option>
                                <option value="ZA">South Africa</option>
                                <option value="GS">South Georgia and the South Sandwich Islands</option>
                                <option value="SS">South Sudan</option>
                                <option value="ES">Spain</option>
                                <option value="LK">Sri Lanka</option>
                                <option value="SD">Sudan</option>
                                <option value="SR">Suriname</option>
                                <option value="SJ">Svalbard and Jan Mayen</option>
                                <option value="SZ">Eswatini</option>
                                <option value="SE">Sweden</option>
                                <option value="CH">Switzerland</option>
                                <option value="SY">Syrian Arab Republic</option>
                                <option value="TW">Taiwan, Province of China</option>
                                <option value="TJ">Tajikistan</option>
                                <option value="TZ">Tanzania, United Republic of</option>
                                <option value="TH">Thailand</option>
                                <option value="TL">Timor-Leste</option>
                                <option value="TG">Togo</option>
                                <option value="TK">Tokelau</option>
                                <option value="TO">Tonga</option>
                                <option value="TT">Trinidad and Tobago</option>
                                <option value="TN">Tunisia</option>
                                <option value="TR">Turkey</option>
                                <option value="TM">Turkmenistan</option>
                                <option value="TC">Turks and Caicos Islands</option>
                                <option value="TV">Tuvalu</option>
                                <option value="UG">Uganda</option>
                                <option value="UA">Ukraine</option>
                                <option value="AE">United Arab Emirates</option>
                                <option value="GB">United Kingdom</option>
                                <option value="US">United States of America</option>
                                <option value="UY">Uruguay</option>
                                <option value="UZ">Uzbekistan</option>
                                <option value="VU">Vanuatu</option>
                                <option value="VE">Venezuela, Bolivarian Republic of</option>
                                <option value="VN">Viet Nam</option>
                                <option value="VG">Virgin Islands, British</option>
                                <option value="WF">Wallis and Futuna</option>
                                <option value="EH">Western Sahara</option>
                                <option value="YE">Yemen</option>
                                <option value="ZM">Zambia</option>
                                <option value="ZW">Zimbabwe</option>
                            </select>
                        </div>
                        <br>

                        <!--  NOTE: resequence option values if necessary. Do not add. -->
                        <!--  NOTE: delete entire option value row if necessary. Do not add. -->
                        <div class="form-profession-wrapper">
                            <label for="00N5g00000atiP5">PROFESSION</label> <span class="field-required-mark">*</span>
                            <div class="select-caret-down-wrapper-profession"></div>
                            <select class="form-control" id="00N5g00000atiP5" name="00N5g00000atiP5" title="Profession">
                                <option value="">--None--</option>
                                <option value="Architect">Architect</option>
                                <option value="Consultant">Consultant</option>
                                <option value="Designer">Designer</option>
                                <option value="Developer">Developer</option>
                                <option value="Engineer">Engineer</option>
                                <option value="Hotel Operator">Hotel Operator</option>
                                <option value="Installer">Installer</option>
                                <option value="Journalist">Journalist</option>
                                <option value="Student">Student</option>
                                <option value="Others">Others</option>
                            </select>
                        </div>
                        <br>

                        <!--  NOTE: Checkbox value either 1 or 0. 1 means TRUE. 0 means false. -->
                        <!--  NOTE: when generating new script, it defaults to 1. -->
                        <input id="00N5g00000dEEta" name="00N5g00000dEEta" type="checkbox" value="1" checked
                            required="true" />
                        I would like
                        to receive news and information on LIXIL’s products and services.<br>
                        <input name="tos_and_privacy" type="checkbox" value="1" checked required="true" /> I have read
                        and agree
                        to LIXIL’s
                        <a href="https://www.lixil.com/en/terms_use/">Terms of Use</a> and <a
                            href="https://grohe.asia/privacy">Privacy
                            Policy</a><br>
                        <br>
                        <div class="g-recaptcha" data-sitekey="6LeaC3EpAAAAAKa-Scp5z8GTqvNTjDgVxDjnH4Rm"></div><br> 
                        <input class="btn btn-primary text-uppercase" type="submit" name="submit" id="submit" value="Subscribe Now">

                        <!--  NOTE: COMMENT out unnecessary brands. -->

                        <!--  
American Standard Brand Interest:<input  id="00N5g00000BySDB" name="00N5g00000BySDB" type="checkbox" value="1" /><br>
American Standard Communication Opt In:<input  id="00N5g00000au23D" name="00N5g00000au23D" type="checkbox" value="1" /><br>
-->
                        <!-- AS test -->
                        <input id="00N5g00000au23D" hidden="true" name="00N5g00000au23D" type="checkbox" value="1"
                            checked /><br>

                        <!--  NOTE: GROHE is NOT commented out. Only label is commented out -->
                        <!--  Grohe Brand Interest: -->
                        <!-- <input id="00N5g00000BySDV" hidden="true" name="00N5g00000BySDV" type="checkbox" value="1"
                            checked /><br> -->
                        <!--  Grohe Communication Opt In: -->
                        <!-- <input id="00N5g00000au23E" hidden="true" name="00N5g00000au23E" type="checkbox" value="1"
                            checked /><br> -->
                        <!-- Inax Brand Interest: -->
                        <input  id="00N5g00000BySDG" hidden="true" name="00N5g00000BySDG" type="checkbox" value="1" checked/><br>

                        <!--  
INAX Brand Interest:<input  id="00N5g00000BySDG" name="00N5g00000BySDG" type="checkbox" value="1" /><br>
INAX Communication Opt In:<input  id="00N5g00000au23F" name="00N5g00000au23F" type="checkbox" value="1" /><br>
Lixil Brand Interest:<input  id="00N5g00000dFizc" name="00N5g00000dFizc" type="checkbox" value="1" /><br>
Lixil Communication Opt In:<input  id="00N5g00000dFizd" name="00N5g00000dFizd" type="checkbox" value="1" /><br>
-->

                        <input id="00N5g00000au23F" hidden="true" name="00N5g00000au23F" type="checkbox" value="1"
                            checked />
                        <!-- <input id="00N5g00000dFizd" hidden="true" name="00N5g00000dFizd" type="checkbox" value="1"
                            checked /> -->

                        <!--  NOTE: for any field to be hidden -->
                        <!--  copy and paste : type="hidden" -->
                        <!--  NOTE: commenting away the label -->
                        <!--  For Marketing Only?: -->
                        <input id="00N5g00000atiP3" type="hidden" name="00N5g00000atiP3" type="checkbox" value="1" />

                        <!--  NOTE: adding default value of Website - GROHE into this lead channel by using value= -->
                        <!--  Lead Channel: -->
                        <input id="00N5g00000atiP4" type="hidden" name="00N5g00000atiP4" title="Lead Channel"
                            value="Website - INAX">

                        <!-- Custom request -->
                        <input id="00N5g00000dEEtZ" type="hidden" name="CampaignName__c" value="Newsletter - INAX">

                        <!--  NOTE: these are the options for lead channel -->
                        <!--  
<option value="">--None--</option>
<option value="Bimstore">Bimstore</option>
<option value="Calendly">Calendly</option>
<option value="Mailchimp">Mailchimp</option>
<option value="PH Projects">PH Projects</option>
<option value="Showroom">Showroom</option>
<option value="TH CCC">TH CCC</option>
<option value="Typeform">Typeform</option>
<option value="Website - American Standard">Website - American Standard</option>
<option value="Website - ASDA">Website - ASDA</option>
<option value="Website - ASDC">Website - ASDC</option>
<option value="Website - GROHE">Website - GROHE</option>
<option value="Website - INAX">Website - INAX</option>
</select><br>
-->
                        <!--  
<label for="lead_source">Lead Source</label>
-->
                        <input id="lead_source" type="hidden" name="lead_source" value="SFMC">
                        <!--  NOTE: these are the options for lead source -->
                        <!--  
<option value="">--None--</option>
<option value="BCI Asia">BCI Asia</option>
<option value="Campaign">Campaign</option>
<option value="Customer Event">Customer Event</option>
<option value="Email">Email</option>
<option value="Global Data">Global Data</option>
<option value="iCONS (Thailand)">iCONS (Thailand)</option>
<option value="IKAM">IKAM</option>
<option value="Mailchimp">Mailchimp</option>
<option value="Other">Other</option>
<option value="Partner Source">Partner Source</option>
<option value="SAP">SAP</option>
<option value="SFMC">SFMC</option>
<option value="Social Media">Social Media</option>
<option value="Trade Show">Trade Show</option>
<option value="Website">Website</option>
</select><br>
-->


                        <!--  NOTE: replace sitekey as necessary for each brand -->
                        <!-- <div class="g-recaptcha" data-sitekey="6LcECXEpAAAAALfrndKUch7UCZUZVFvNKd2T6J5Y"></div><br> -->
                    </form>
                </div>
                <div class="col-lg"></div>
            </div>
        </div>
    </div>
</main>

<script>
    let form = document.querySelector('.newsletter-form')

    form.addEventListener('submit', (e) => {
        e.preventDefault();
        // let data = new FormData(form)

        // data.forEach((value) => console.log("value : ", value))

        setTimeout(() => {
            if (validateForm()) {
                alert(
                    'Success. Thank you for your enquiry! We will get back to you soon.');
                HTMLFormElement.prototype.submit.call(form);
            } else {
                alert('Please fill in all the fields!');
            }
        }, 500);
    })

    function validateForm() {
        let isValid = [...document.querySelectorAll('input[id="first_name"], input[id="last_name"], input[id="email"], select[id]')]
    .every(el => el.value.trim() !== '');

        return isValid
    }
</script>