
{include file="orderforms/$carttpl/common.tpl"}
<div class="main-banner banner-home banner-{$siteBannerStyle} banner-domain-register">
    <div class="container">
        <h1 class="banner-title">{$LANG.findyourdomain}</h1>
        <form method="post" action="{$WEB_ROOT}/cart.php" id="frmDomainChecker" {if isset($RSThemes['addonSettings']['tld_cycle_switcher']) && $RSThemes['addonSettings']['tld_cycle_switcher'] == 'true'}data-show-tld-cycle-switcher {if isset($smarty.get.period)}data-period="{$smarty.get.period}"{/if}{/if}>
            <input type="hidden" name="a" value="checkDomain">
            <div class="domain-search-input search-group search-group-lg search-group-combined">
                <div class="search-field d-flex flex-nowrap">
                    {if ($RSThemes['pages'][$templatefile]['config']['SearchPrefix'] || $RSThemes['pages'][$templatefile]['config']['SearchPrefix'] == "1")}
                        <div class="inline-form-prefix">
                            <span>{$LANG.orderForm.www}</span>
                        </div>
                    {/if}
                    <input class="form-control"  type="text" name="domain" placeholder="{$LANG.findyourdomain}" value="{$lookupTerm}" id="inputDomain" data-domain-search-input data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{lang key='orderForm.domainOrKeyword'}" data-domain-search />
                    <div class="search-field-icon"><i class="lm lm-search" aria-hidden="true"></i></div>
                </div>
                <div class="search-group-btn">
                    <button tabindex="0" class="btn btn-primary domain-check-availability {if $captcha}{$captcha->getButtonClass($captchaForm)}{/if}" type="submit" id="btnCheckAvailability">
                        <span>{$LANG.search}</span>
                        <div class="loader loader-button">
                            {include file="$template/includes/common/loader.tpl" classes="spinner-sm"}  
                        </div>
                    </button>
                </div>
            </div>
            {include file="orderforms/$carttpl/includes/domain/captcha.tpl" pageClass="rspage-modern"}
        </form>
        {if $hasPromoInCart && $RSThemes['addonSettings']['promocode_banner_label'] == "enabled"}    
            <div class="main-header-label">
                {include file="$template/includes/common/label-promo.tpl"}
            </div>
        {/if}
    </div>
        {if $RSThemes.styles.iconType == "modern"}
            {include file="$template/includes/common/svg-illustration.tpl" illustration="site/modern/banner-bg"} 
        {else} 
            {include file="$template/includes/common/svg-illustration.tpl" illustration="site/banner-bg"} 
        {/if}
</div>
<div class="main-body">
    <div class="container">
        <div class="m-w-lg m-h-a">
            {* <div class="section domain-lookup-loader message message-lg hidden" id="primaryLookupSearching">
                <div class="loader">
                    {include file="$template/includes/common/loader.tpl"}  
                </div>
            </div> *}
            <div class="section hidden" id="DomainSearchResults" data-scroll-to-results="false">
                <div class="domain-checker-result-headline" id="searchDomainInfo">
                    <div class="hidden" id="primaryLookupResult">
                        {include file="orderforms/$carttpl/includes/domain/search-result.tpl"}
                    </div>
                </div>
                {if $spotlightTlds}
                    {include file="orderforms/$carttpl/includes/domain/spotlight.tpl"}
                {/if}
                {include file="orderforms/$carttpl/includes/domain/suggested.tpl"}
            </div>
            {if $RSThemes['pages'][$templatefile]['config']['showFeaturedTLD'] == '1'}
            {include file="orderforms/$carttpl/includes/domain/featured-tlds.tpl"}
            {/if}
            {include file="orderforms/$carttpl/includes/domain/tld-pricing.tpl"}
            {include file="orderforms/$carttpl/includes/domain/bottom-sticky.tpl" type="domainsearch"}
        </div>
    </div>
</div>
{if $invalid}
<script>
    jQuery(document).ready(function() {
        jQuery('#primaryLookupSearching').toggle();
        jQuery('#primaryLookupResult').children().toggle();
        jQuery('#primaryLookupResult').toggle();
        jQuery('#DomainSearchResults').toggle();
        jQuery('.domain-invalid').toggle();
    });
</script>
{/if}

{if ($lookupTerm && !$captchaError && !$invalid) || (!$captcha->isEnabled() && $lookupTerm && !$invalid)}
<script>
    jQuery(document).ready(function() {
        {literal}
            setTimeout(function(){
                jQuery('#btnCheckAvailability').trigger('click');
            }, 500);
        {/literal}
    });
</script>              
{/if}