<section id="<?= $id ?>" class="<?= $class ?>"> <style><?= file_get_contents( __DIR__.'/style.css' ) ?></style> <style> @media screen and (min-width: 0px) { <?php if( $ContactObject->getMainBgColor() ) : ?> section.theme-area.commercialcontactform#<?= $id ?> { background-color: <?= $ContactObject->getMainBgColor() ?>; } <?php endif; ?> <?php if( $ContactObject->getMainBgBranding() && $ContactObject->getMainBgBranding() != 'disabled' ) : ?> section.theme-area.commercialcontactform#<?= $id ?> { background-image: url('<?= $ContactObject->getMainBgBranding() ?>'); } <?php endif; ?> <?php if( $ContactObject->getMainHeroImage() ) : ?> section.theme-area.commercialcontactform#<?= $id ?> .background-image-wrapper { background-image: url('<?= $ContactObject->getMainHeroImage()->getFullPath() ?>'); } <?php endif; ?> <?php if( $ContactObject->getMainHeroImageAlign() ) : ?> section.theme-area.commercialcontactform#<?= $id ?> .background-image-wrapper { background-position: top <?= $ContactObject->getMainHeroImageAlign() ?>; } <?php endif; ?> <?php if( $ContactObject->getSidebarDashColor() ) : ?> section.theme-area.commercialcontactform#<?= $id ?> .info-content::before { background-color: <?= $ContactObject->getSidebarDashColor() ?>; } <?php endif; ?> <?php if( $ContactObject->getMainHeroHeadingColor() ) : ?> section.theme-area.commercialcontactform#<?= $id ?> h1.heading { color: <?= $ContactObject->getMainHeroHeadingColor() ?>; } <?php endif; ?> <?php if( $ContactObject->getSidebarHeadingColor() ) : ?> section.theme-area.commercialcontactform#<?= $id ?> h2.info-heading { color: <?= $ContactObject->getSidebarHeadingColor() ?>; } <?php endif; ?> <?php if( $ContactObject->getSidebarBgColor() ) : ?> section.theme-area.commercialcontactform#<?= $id ?> .contact-information { background-color: <?= $ContactObject->getSidebarBgColor() ?>; } <?php endif; ?> <?php if( $ContactObject->getSidebarTextColor() ) : ?> section.theme-area.commercialcontactform#<?= $id ?> .contact-information { color: <?= $ContactObject->getSidebarTextColor() ?>; } <?php endif; ?> } </style> <div class="background-image-wrapper"> <div class="interior"> <?php /* HEADING */ ?> <?php if( $ContactObject->getMainHeroHeadingText() ) : ?> <h1 class="heading"><?= $ContactObject->getMainHeroHeadingText() ?></h1> <?php endif; ?> <div class="grid-x contact-form-container"> <?php /* SIDEBAR */ ?> <div class="medium-4 cell contact-information"> <?php foreach( $ContactObject->getSidebarInfo() as $SidebarInfo ) : ?> <div class="info-wrapper"> <?php if( !empty( $SidebarInfo[ 'Heading' ]->getData() ) ) : ?> <h2 class="info-heading"><?= $SidebarInfo[ 'Heading' ]->getData() ?></h2> <?php endif; ?> <?php if( !empty( $SidebarInfo[ 'Content' ]->getData() ) ) : ?> <div class="info-content"><?= $SidebarInfo[ 'Content' ]->getData() ?></div> <?php endif; ?> </div> <?php endforeach; ?> </div> <?php /* CONTACT FORM */ ?> <div class="medium-8 cell contact-form"> <?php /* FEEDBACK MESSAGING */ ?> <?php if( $RequestResponse ) : ?> <div class="callout <?= substr( $RequestResponse, 0, 7 ) == 'Success' ? 'success' : 'alert' ?>"><?= $RequestResponse ?></div> <?php endif; ?> <form method="POST"> <input type="hidden" name="component_id" value="<?= $id ?>" /> <input type="hidden" name="object_id" value="<?= $ContactObject->getId() ?>" /> <fieldset class="form-columns-2"> <div class="hs_firstname hs-firstname hs-fieldtype-text field hs-form-field"> <div class="input"> <input type="text" id="fName" name="fName" placeholder="First Name" required /> </div> </div> <div class="hs_lastname hs-lastname hs-fieldtype-text field hs-form-field"> <div class="input"> <input type="text" id="lName" name="lName" placeholder="Last Name" required /> </div> </div> </fieldset> <fieldset class="form-columns-2"> <div class="email"> <div class="input"> <input type="email" id="email" name="email" placeholder="Primary Email Address" required /> </div> </div> <div class="phone"> <div class="input"> <input type="tel" id="phone" name="phone" placeholder="XXX-XXX-XXXX" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" /> </div> </div> </fieldset> <fieldset class="form-columns-1"> <div class="hs_message hs-message hs-fieldtype-textarea field hs-form-field"> <div class="input"> <textarea name="message" id="message" cols="5" rows="10" placeholder="What can we assist you with?"></textarea> <div class="hp-wrap"><textarea name="additional" id="additional" cols="5" rows="10" placeholder="Any additional requests?" tabindex="-1"></textarea></div> </div> </div> </fieldset> <fieldset class="form-columns-1"> <div class="hs_desired_county hs-desired_county hs-fieldtype-select field hs-form-field"> <legend class="hs-field-desc" style="display:block;">Which location are you intersted in?</legend> <div class="input"> <select class="hs-input" name="location" id="location" placeholder="Please choose you location" required> <option value="" disabled selected>Select location...</option> <?php foreach( $select_options as $select_option ) : ?> <option value="<?= $select_option ?>"><?= $select_option ?></option> <?php endforeach; ?> </select> </div> </div> </fieldset> <div class="input"> <div class="g-recaptcha" data-sitekey="6LfTvr0UAAAAAMxrQ8hvTvljTHHpicRPgETlx6v0"></div> </div> <div class="hs_submit"> <div class="class="> <input type="submit" value="Get In Touch" class="hs-button"> </div> </div> </form> </div> </div> </div> </div> <script src="https://www.google.com/recaptcha/api.js" async defer></script></section>