{% assign month = '01' %}
{% assign day = '01' %}
{%- assign page_url = content_for_header | split:'"pageurl":"' | last | split:'"' | first | split: request.host | last | replace:'\/','/' | replace:'%20',' ' | replace:'\u0026','&' -%}
{%- assign param = blank -%}
{%- for i in (1..1) -%}
{%- unless page_url contains "?" -%}{% break %}{%- endunless -%}
{%- assign query_string = page_url | split:'?' | last -%}
{%- assign qry_parts= query_string | split:'&' -%}
{%- for part in qry_parts -%}
{%- assign key_and_value = part | split:'=' -%}
{%- if key_and_value.size > 1 -%}
{%- if key_and_value[0] == 'birth_month' -%}
{%- assign month = key_and_value[1] -%}
{%- endif -%}
{%- if key_and_value[0] == 'birth_day' -%}
{%- assign day = key_and_value[1] -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
<form method="GET" action="/pages/find-your-zodiac-sign">
<label for="birth_month">Birth Month:</label>
<input type="number" value="{{ month }}" id="birth_month" name="birth_month" min="1" max="12" required>
<br>
<label for="birth_day">Birth Day:</label>
<input type="number" value="{{ day }}" id="birth_day" name="birth_day" min="1" max="31" required>
<br>
{%- assign min = 1 -%}
{%- assign max = 10000 -%}
{%- assign diff = max | minus: min -%}
{%- assign random_number = "now" | date: "%N" | modulo: diff | plus: min -%}
<input type="hidden" value="{{ random_number }}" name="type">
<button type="submit">Find Zodiac Sign</button>
</form>
{% assign month = month | times: 1 %}
{% assign day = day | times: 1 %}
{{month }}
{{day }}