/* Goodmore bag tag scan page. Phone first, high contrast for outdoor light. */
:root {
  --navy: #1b2a4a;
  --blue: #1d4ed8;
  --bg: #f2f4f7;
  --card: #ffffff;
  --line: #d5dae1;
  --text: #111827;
  --muted: #4b5563;
  --green: #166534;
  --green-bg: #dcfce7;
  --amber: #92400e;
  --amber-bg: #fef3c7;
  --red: #b91c1c;
  --red-bg: #fef2f2;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--blue); }
h1, h2, h3, h4, p { margin: 0 0 10px; }
h1 { font-size: 22px; line-height: 1.25; color: var(--navy); }
h1:focus { outline: none; }
h2 { font-size: 18px; color: var(--navy); }
h3 { font-size: 16px; margin-top: 4px; color: var(--navy); }
h4 { font-size: 13px; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.top { background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 16px; text-align: center; }
.logo { width: 200px; max-width: 70%; height: auto; display: inline-block; vertical-align: middle; }
.wrap { max-width: 560px; margin: 0 auto; padding: 14px 12px 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 12px; }
fieldset.card { min-width: 0; }
legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--navy); }
legend + * { clear: both; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.tagcard h1 { margin-bottom: 8px; }
.tagmeta { margin: 0; color: var(--muted); }
.code-chip { display: inline-block; font-weight: 700; letter-spacing: 0.04em; color: var(--navy); background: #e8edf5; border-radius: 6px; padding: 1px 8px; margin-right: 4px; }
.opts { display: grid; gap: 8px; margin-top: 8px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.opt input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--navy); }
.opt:has(input:checked) { border-color: var(--navy); background: #eef2f8; font-weight: 600; }
.plan { padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); }
.plan-included { background: var(--green-bg); color: var(--green); }
.guarantee { padding: 12px; border-radius: 10px; background: var(--green-bg); color: var(--green); font-weight: 700; font-size: 17px; }
.module { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.module:first-child { border-top: 0; margin-top: 0; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0f3; }
.item:last-child { border-bottom: 0; }
.item.picked .stepper input { background: #e8edf5; font-weight: 700; color: var(--navy); }
.item-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.item-name { font-weight: 600; overflow-wrap: anywhere; }
.badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.badge-in { background: var(--green-bg); color: var(--green); }
.badge-out { background: var(--amber-bg); color: var(--amber); }
.badge-exp { background: var(--red-bg); color: var(--red); }
.stepper { display: flex; align-items: center; flex: none; }
.stepper input { width: 48px; height: 44px; text-align: center; font-size: 18px; border: 1px solid var(--line); border-left: 0; border-right: 0; border-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step { width: 44px; height: 44px; font-size: 22px; line-height: 1; border: 1px solid var(--line); background: #f7f8fa; color: var(--navy); cursor: pointer; padding: 0; }
.step:first-child { border-radius: 10px 0 0 10px; }
.step:last-child { border-radius: 0 10px 10px 0; }
.step:disabled, .stepper input:disabled { opacity: 0.45; cursor: not-allowed; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.warn { padding: 10px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-weight: 600; }
.field { margin-top: 12px; }
.field-label { display: block; font-weight: 600; margin-bottom: 4px; }
.req { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 17px;
  color: var(--text); background: #fff; border: 1px solid #b8c0cc; border-radius: 10px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; }
.code-row { display: flex; gap: 8px; }
.code-row input { text-transform: uppercase; letter-spacing: 0.06em; }
.btn { min-height: 48px; padding: 10px 18px; font: inherit; font-weight: 700; color: #fff; background: var(--navy); border: 0; border-radius: 10px; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-quiet { background: #e8edf5; color: var(--navy); }
.btn-big { width: 100%; min-height: 54px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.error { scroll-margin-top: 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-weight: 600; }
#code-error { margin-top: 10px; }
.addr { padding: 10px 12px; border-radius: 10px; background: #f7f8fa; border: 1px solid var(--line); }
.addr-line { display: block; }
.support { margin: 10px 0 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.spinner { width: 36px; height: 36px; margin: 12px auto; border: 4px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.tick { width: 56px; height: 56px; margin: 6px auto 12px; border-radius: 50%; background: var(--green-bg); position: relative; }
.tick::after { content: ""; position: absolute; left: 20px; top: 12px; width: 14px; height: 26px; border: solid var(--green); border-width: 0 5px 5px 0; transform: rotate(45deg); }
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 0 16px 24px; }
