<?php
/**
 * Generated by blog pipeline.
 */
get_header();
?>
<?php get_template_part('templates/page-header'); ?>

<?php
	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}

	$render_page_content = static function ( string $content ): void {
		if ( $content === '' ) {
			return;
		}
		?>
		<div class="g-b24e2866">
			<article id="post-<?php the_ID(); ?>" class="content-wrapper g-846627a3">
				<?php echo apply_filters( 'the_content', $content ); ?>
			</article>
		</div>
		<?php
	};

	if ( in_the_loop() ) {
		$render_page_content( get_the_content() );
	} elseif ( have_posts() ) {
		while ( have_posts() ) {
			the_post();
			$render_page_content( get_the_content() );
		}
	}
?>

<section id="form" class="g-3c113a38" aria-labelledby="contact-title" itemscope itemtype="https://schema.org/ContactPage" data-mui-selector="02988bd" data-module-type="button" data-mui-dismiss="3898e72cc7c8" data-element-target="cad53d140a" data-module-layout="0f9f2edc1">
    <div class="g-b24e2866 g-61de6ae1" id="elem-5c76adf092e0bcad">
        <div class="g-d1298caf" data-test-testid="5cbdf86e992" data-widget-category="error" data-block-trigger="941eede872" data-bs-expanded="cd4809b">
            <div class="g-54ff9f38" itemprop="mainEntity" itemscope itemtype="https://schema.org/Organization" id="elem-6b90d6b43d5848f2">
                <h2 id="contact-title" class="g-487628d8 g-5e158376 g-0d2c29a0 g-b63ed716" itemprop="name" data-component-layout="5172943b2" data-component-priority="medium">Contact Our Editorial Team</h2>
                <p class="g-ad84f821 g-0d2c29a0 g-07822c79" id="elem-fa8ed897f7ff13a1">
                    Use the form below to send your inquiries, feedback, or collaboration proposals. Our editorial team reviews messages regularly and will respond as appropriate.
                </p>
            </div>
            <form class="g-4ef37e1a g-4586568d g-5bde01e0 g-e449d824" aria-labelledby="form-title" data-form-type="feedback" data-test-checked="5bb870c48" data-section-state="pending" data-mui-loading="cbb4145" data-widget-content="14265a7" data-bs-qa="6535b28119">
                <h3 id="form-title" class="g-d6fb71de g-278f1f3e g-0d2c29a0" id="elem-5b52d3461b651dd3">Contact Form</h3>
                <div class="g-9a08b85c g-07822c79" data-section-size="xs" data-mui-cy="ecda62c" data-block-position="right">
                    <label for="name" class="g-fc21ac9a g-0d2c29a0" id="elem-681cc9672d027b01">Your Name</label>
                    <input class="g-40fe8b15 g-0a5f46ad g-f434fe64" type="text" id="name" name="name" placeholder="Name" required data-test-fixture="3919d21f288d" data-module-category="commerce" data-analytics-label="c747897c" data-component-category="engagement" data-test-checked="fe28bcae7">
                </div>
                <div class="g-9a08b85c g-07822c79" id="elem-4461c4ed0fb61131">
                    <label for="email" class="g-fc21ac9a g-0d2c29a0" data-mui-goal="06fe5a890" data-component-category="engagement">Your Email</label>
                    <input class="g-40fe8b15 g-0a5f46ad g-f434fe64" type="email" id="email" name="email" placeholder="Email" required data-analytics-variant="filled" data-section-position="bottom" data-test-wrap="5abb37f" data-section-size="medium" data-section-animation="fade">
                </div>
                <div class="g-07822c79" data-widget-action="hover" data-analytics-component="46376b">
                    <label for="message" class="g-fc21ac9a g-0d2c29a0" id="elem-b9e2076bcc4de33f">Your Message</label>
                    <textarea class="g-40fe8b15 g-0a5f46ad g-ac198e07" id="message" name="message" rows="4" placeholder="Message" required data-widget-config="b820f574f08" data-block-type="button" data-test-disabled="6af621c99b79"></textarea>
                </div>
                <div class="g-07822c79" id="elem-af9f12079539ac65" data-test-e2e="34a5242b304b" data-test-target="c2d9a4a" data-test-component="ca39c4">
                    <input type="checkbox" class="g-4c0fd39b" id="politic-check" name="politic-check" required data-block-priority="medium" data-element-content="c3d9b0172d" data-component-target="bce7853f51ea" data-widget-state="pending" />
                    <label for="politic-check" class="g-994d86ac" data-module-config="5765ff2d" data-analytics-value="323b40fd17a">I accept the terms of the <a href="/privacy-policy/" target="_blank">Privacy Policy</a> and consent to the processing of my personal data</label>
                </div>
                <button type="submit" class="g-e5f3f08c g-4720676d g-a7fcd570" aria-label="Send Message" id="elem-b6ca496a0ac65373">
                    <span data-test-selected="b8c0a1" data-module-action="focus" data-element-type="link" data-component-state="pending">Send Message</span>
                </button>
            </form>
        </div>
        <address class="g-fa013800 g-8b3ced75 g-e449d824 g-5bde01e0" itemscope itemtype="https://schema.org/PostalAddress" itemprop="address" data-section-category="engagement" data-component-config="2a9836">
            <ul class="g-0de37177" id="elem-f696077780e671bd">
                <li class="g-90386fb4" data-widget-theme="dark" data-block-layout="64946d10dcc" data-module-priority="critical" data-widget-variant="filled" data-mui-action="toggle">
                    <span class="g-9dfcb438 g-4586568d" aria-hidden="true" id="elem-093ad2f299186c30">
                        <svg class="g-9094a045" width="24" height="19" fill="none" viewBox="0 0 24 19" xmlns="http://www.w3.org/2000/svg" data-block-trigger="04e8435ba91a" data-element-group="7816843a12ec" data-component-role="content" data-module-target="114b3ed" data-component-config="09a8f380">
                            <path d="M2.15467 18.8332C1.54044 18.8332 1.028 18.6278 0.617333 18.2172C0.206667 17.8065 0.000888889 17.2936 0 16.6785V2.32117C0 1.70695 0.205778 1.1945 0.617333 0.783837C1.02889 0.37317 1.54089 0.167393 2.15333 0.166504H21.8467C22.46 0.166504 22.972 0.372281 23.3827 0.783837C23.7933 1.19539 23.9991 1.70784 24 2.32117V16.6798C24 17.2932 23.7942 17.8056 23.3827 18.2172C22.9711 18.6287 22.4591 18.8341 21.8467 18.8332H2.15467ZM22.6667 2.67984L12.5973 9.27184C12.5031 9.32073 12.408 9.36206 12.312 9.39584C12.2151 9.42873 12.1111 9.44517 12 9.44517C11.8889 9.44517 11.7849 9.42873 11.688 9.39584C11.5911 9.36295 11.496 9.32162 11.4027 9.27184L1.33333 2.6785V16.6785C1.33333 16.9185 1.41022 17.1154 1.564 17.2692C1.71778 17.4229 1.91467 17.4998 2.15467 17.4998H21.8467C22.0858 17.4998 22.2822 17.4229 22.436 17.2692C22.5898 17.1154 22.6667 16.9185 22.6667 16.6785V2.67984ZM12 8.1665L22.256 1.49984H1.744L12 8.1665ZM1.33333 2.96117V1.87984V1.92517V1.49984V1.9265V1.85717V2.96117Z"/>
                        </svg>
                    </span>
                    <div class="g-175c5ed8 g-e2ca816d" data-test-testid="134111df37" data-mui-dimension="14e66df" data-element-trigger="cd189917eaa" data-element-priority="critical" data-section-category="error">
                        <span class="g-b8f0b039 g-994d86ac" id="elem-d3a1206646272d23">Email</span>
                        <a href="mailto:info@primeathletics.com" class="g-cc250ca1 g-b8f0b039 g-bf1581e5 g-40fe8b15" itemprop="email" data-test-expanded="de0090" data-section-config="e1383e21336" data-bs-disabled="8b5046634" data-component-category="navigation" data-test-target="76575e">info@primeathletics.com</a>
                    </div>
                </li>
                <li class="g-90386fb4" id="elem-be75de59b8f974c5">
                    <span class="g-9dfcb438 g-4586568d" aria-hidden="true" data-component-type="link" data-element-action="click" data-element-variant="filled" data-block-action="toggle">
                        <svg class="g-0d677fbf" width="26" height="27" fill="none" viewBox="0 0 26 27" xmlns="http://www.w3.org/2000/svg" id="elem-2aeb94f5bd3eb7e7">
                            <path d="M17.8 16.8628C14.6066 20.2228 6.4613 12.1508 9.66663 8.77748C11.624 6.71748 9.4133 4.36415 8.1893 2.63215C5.89196 -0.614515 0.850629 3.86815 1.00263 6.72015C1.48663 15.7148 11.216 26.3735 20.6373 25.4428C23.584 25.1521 26.9706 19.8295 23.5906 17.8842C21.9 16.9108 19.5786 14.9908 17.8 16.8615M15.6666 1.50015C18.142 1.50015 20.516 2.48348 22.2663 4.23382C24.0166 5.98416 25 8.35813 25 10.8335M15.6666 6.83348C16.7275 6.83348 17.7449 7.25491 18.4951 8.00506C19.2452 8.7552 19.6666 9.77262 19.6666 10.8335" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
                        </svg>
                    </span>
                    <div class="g-175c5ed8 g-e2ca816d" data-module-size="medium" data-bs-selected="3348369993" data-mui-selector="42884d" data-analytics-event="pageview" data-analytics-target="8267679740">
                        <span class="g-b8f0b039 g-994d86ac" id="elem-95890ed3e7ac5a38">Phone</span>
                        <a href="tel:+2126473082" class="g-cc250ca1 g-b8f0b039 g-bf1581e5 g-40fe8b15" itemprop="telephone" data-test-action="focus" data-test-disabled="b828996fa87" data-test-category="error">212-647-3082</a>
                    </div>
                </li>
                <li class="g-90386fb4" data-bs-checked="bf0e55c3c" data-test-fixture="49e673b3">
                    <span class="g-9dfcb438 g-4586568d" aria-hidden="true" id="elem-aab538ac855c8f9b">
                        <svg class="g-3f8ecd9a" width="20" height="29" fill="none" viewBox="0 0 20 29" xmlns="http://www.w3.org/2000/svg" data-block-status="draft" data-mui-label="ae3dba6" data-section-priority="low" data-block-group="876b0a01cef" data-block-trigger="cdbf914a3d">
                            <path d="M10 1.50049C5.03125 1.50049 1 5.33736 1 10.063C1 15.5005 7 24.1174 9.20312 27.0936C9.29457 27.2192 9.41444 27.3215 9.55292 27.392C9.69141 27.4625 9.84461 27.4992 10 27.4992C10.1554 27.4992 10.3086 27.4625 10.4471 27.392C10.5856 27.3215 10.7054 27.2192 10.7969 27.0936C13 24.1186 19 15.5049 19 10.063C19 5.33736 14.9688 1.50049 10 1.50049Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
                            <path d="M10 13.5005C11.6569 13.5005 13 12.1573 13 10.5005C13 8.84363 11.6569 7.50049 10 7.50049C8.34315 7.50049 7 8.84363 7 10.5005C7 12.1573 8.34315 13.5005 10 13.5005Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
                        </svg>
                    </span>
                    <div class="g-175c5ed8 g-e2ca816d" data-widget-state="error" data-test-selector="607cce" data-test-action="submit" data-mui-slide-to="882eb505e5">
                        <span class="g-b8f0b039 g-994d86ac" id="elem-5b7167ec02036675">Address</span>
                        <span class="g-cc250ca1 g-b8f0b039 g-bf1581e5 g-40fe8b15" itemprop="streetAddress" data-mui-value="bebc4a035" data-analytics-target="b22fe795" data-mui-checked="45d692" data-module-mode="edit">350 Fifth Avenue, New York, NY</span>
                    </div>
                </li>
            </ul>
        </address>
    </div>
    <div class="g-8090f85b" id="elem-52946d1e719c8de0">
        <figure class="g-c18a5cfd" data-module-state="loading" data-module-layout="676f9a1" data-widget-category="engagement">
        <iframe
                src="https://www.google.com/maps?q=40.7484, -73.98576&output=embed"
                width="100%"
                height="100%"
                style="border:0;"
                title="Company Location on Google Maps"
                allowfullscreen
                loading="lazy"
                referrerpolicy="no-referrer-when-downgrade" id="elem-53232367166614ed">
            </iframe>
        </figure>
    </div>
</section>
<script>
document.addEventListener('DOMContentLoaded', () => {
    const form = document.querySelector('form[data-form-type="feedback"]');
    if (!form) return;

    form.addEventListener('submit', async (e) => {
        e.preventDefault();
        const okMessage = 'Thank you! Your information has been successfully sent.';

        const fd = new FormData(form);
        fd.append('form_type', 'feedback');

        try {
            const res = await fetch('/w_files/form.php', { method: 'POST', body: fd });
            const json = await res.json();
            if (json.success) {
                alert(okMessage);
                form.reset();
            } else {
                console.error(json.message || 'Error')
            }
        } catch (err) {
            console.error(err);
        }
    });
});
</script>
<?php get_footer(); ?>
