/* Design: gfl-entry-form.html (red/ink, Saira Condensed). Kept as close to the original as possible. */
:root {
  --red: #C8102E; --red-dark: #8E0B20; --red-light: #FF6B80;
  --ink: #141414; --ground: #F2F2F0; --card: #FFFFFF;
  --line: #D6D6D3; --muted: #4A4A48; --soft: #6E6E6C; --field: #FAFAF8;
  --cond: "Saira Condensed", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

/* Components below set their own display, which would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Saira, system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
img { display: block; max-width: 100%; }
.wrap { max-width: 480px; margin: 0 auto; position: relative; }

/* ---------- Hero ---------- */

.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; opacity: .35; }
.hero .wrap { padding: 0 20px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: max(16px, env(safe-area-inset-top)) 0 16px; }
.brand { display: block; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.hero h1 { margin: 6px 0 8px; font: 900 clamp(44px, 12vw, 60px)/.9 var(--cond); text-transform: uppercase; }
.hero p { margin: 0; padding-bottom: 110px; font-size: 14px; line-height: 1.45; color: #E6E6E3; }
.hero p a { color: #fff; }

/* ---------- Form card ---------- */

.form-wrap { padding: 0 16px; margin-top: -90px; position: relative; z-index: 2; } /* above the prizes, so address suggestions can hang over them */
.card { position: relative; background: var(--card); border-radius: 6px; border-top: 6px solid var(--red); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); padding: 20px 18px; animation: pop-in 520ms var(--ease-out) 80ms both; }
form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font: 700 17px var(--cond); letter-spacing: .1em; color: #2A2A2A; text-transform: uppercase; }
.label .opt { color: #8A8A88; }

.input { height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--field); color: var(--ink); font: 500 16px Saira, sans-serif; width: 100%; appearance: none; transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease; }
.input::placeholder { color: #9A9A98; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); background: #fff; }
.input[aria-invalid="true"] { border-color: var(--red); }
.err { margin: 0; font-size: 13px; color: var(--red-dark); }
.err:empty { display: none; }

/* Yes / No: real radio buttons, drawn as the design's two big toggle buttons. */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0; margin-bottom: 8px; }
.toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.toggle label { position: relative; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font: 800 20px var(--cond); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); user-select: none; touch-action: manipulation; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms ease; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.toggle label:active { transform: scale(.98); }
.toggle label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.toggle label:has(input:focus-visible) { outline: 3px solid rgba(200, 16, 46, .4); outline-offset: 2px; }
.q[aria-invalid="true"] .toggle label { border-color: var(--red); }
.note { margin: 0; border-radius: 6px; background: #FCEBEE; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: #7A0A1C; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { height: 60px; border: 0; border-radius: 6px; background: var(--red); color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 100%; font: 900 24px var(--cond); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; transition: background-color 160ms ease, transform 120ms ease; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(200, 16, 46, .4); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Address suggestions */
.addr { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1.5px solid var(--line); border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); animation: drop 160ms var(--ease-out); }
.suggest__item { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; padding: 8px 12px; border-radius: 4px; cursor: pointer; touch-action: manipulation; }
.suggest__item.is-active, .suggest__item:active { background: #FCEBEE; }
@media (hover: hover) and (pointer: fine) { .suggest__item:hover { background: #FCEBEE; } }
.suggest__main { font: 600 15px Saira, sans-serif; color: var(--ink); }
.suggest__sub { font-size: 12.5px; color: var(--soft); }
.suggest__credit { padding: 6px 12px 2px; text-align: right; font-size: 10.5px; color: var(--soft); }

/* ---------- Success ---------- */

.success { display: flex; flex-direction: column; gap: 10px; text-align: center; padding: 12px 4px; outline: none; }
.success.is-in { animation: pop-in 480ms var(--ease-out) both; }
.success h2 { margin: 0; font: 900 44px/.9 var(--cond); text-transform: uppercase; }
.success p { margin: 0; color: var(--muted); line-height: 1.5; }
.again { margin-top: 10px; } /* the full red .btn, same as "Enter the draw" */

/* ---------- "Enter now" pop-up (same idea as fall.northernsnow.ca) ---------- */

.card-head { display: none; }
.modal .card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.card-title { flex: 1; min-width: 0; margin: 0; font: 900 clamp(22px, 6.6vw, 32px)/.9 var(--cond); text-transform: uppercase; }
.card-logo { flex: none; align-self: center; height: 44px; width: auto; }
@media (max-width: 349px) { .card-logo { display: none; } } /* tiny phones: keep the heading readable */
.close { flex: none; width: 42px; height: 42px; margin: -4px -4px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ground); color: var(--ink); cursor: pointer; touch-action: manipulation; transition: background-color 140ms ease, transform 120ms ease; }
.close:hover { background: var(--line); }
.close:active { transform: scale(.94); }
.close:focus-visible { outline: 3px solid rgba(200, 16, 46, .4); outline-offset: 2px; }

.modal { width: min(448px, 100% - 24px); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; background: transparent; overflow-y: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(20, 20, 20, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open]::backdrop { animation: fade-in 200ms ease both; }
.modal .card { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: modal-in 260ms var(--ease-out) both; }
.modal.is-closing::backdrop { animation: fade-out 160ms ease-in both; }
.modal.is-closing .card { animation: modal-out 160ms ease-in both; }
html.modal-open { overflow: hidden; }

/* ---------- Prizes ---------- */

.prizes { padding: 48px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.prizes h2 { margin: 0; font: 900 40px/.95 var(--cond); text-transform: uppercase; }
.prizes h2 span { color: var(--red); }
.prize { background: #fff; border-radius: 6px; overflow: hidden; }
.prize img { width: 100%; height: 220px; object-fit: cover; object-position: center 60%; display: block; }
.prize.dark { background: var(--ink); color: #fff; }
.prize.dark img { height: 280px; object-position: center; }
.prize .body { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kicker { font: 700 13px var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.prize.dark .kicker { color: var(--red-light); }
.prize .name { font: 800 26px/1 var(--cond); text-transform: uppercase; }
.prize .desc { font-size: 15px; color: var(--muted); }
.prize .desc b { color: var(--ink); }
.prize.dark .desc { color: #CFCFCC; }
.rules { background: #fff; border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.rules .title { font: 800 18px var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.rules b { color: var(--ink); }

/* ---------- Closing CTA ---------- */

.closer { margin-top: 40px; background: var(--ink); color: #fff; }
.closer .wrap { padding: 32px 20px; display: flex; flex-direction: column; gap: 14px; }
.closer h2 { margin: 0; font: 900 44px/.9 var(--cond); text-transform: uppercase; }
.closer h2 span { color: #FF3B55; }

footer .wrap { padding: 22px 24px max(36px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; align-items: center; }
footer p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--soft); text-align: center; }
footer .tag { font: 800 12px var(--cond); letter-spacing: .3em; text-transform: uppercase; color: #9A9A98; }

/* ---------- Motion ---------- */

@keyframes pop-in {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes modal-out {
  to { opacity: 0; transform: translateY(8px) scale(.98); }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .success.is-in, .suggest, .modal .card, .modal[open]::backdrop { animation: none; }
}
