/* Marco Fishing Company check-in. Colors from the existing guest photo page (share.marcofishingcompany.com). */
:root {
  --ink: #1f1f1f; --charcoal: #404040; --muted: #555; --line: #c9cecd;
  --bg: #f7f6f2; --card: #fff; --sea: #e9f3f2;
  --brand: #a94f1f;      /* dark orange: white text on it passes WCAG AA */
  --brand-hi: #8a3f17; --err: #b00020; --ok: #2f7d4f; --focus: #0b5cad;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--charcoal); color: #fff; font-weight: 700; letter-spacing: .02em; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
h1 { font-size: 1.5rem; line-height: 1.2; margin: 8px 0 4px; }
a { color: var(--brand-hi); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.draft { background: #ffe7e7; border: 2px solid var(--err); color: var(--err); font-weight: 700; padding: 8px 12px; border-radius: 8px; }

.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 4px 0 8px; font-size: .85rem; color: var(--muted); }
.steps li { flex: 1; border-top: 4px solid var(--line); padding-top: 4px; }
.steps li[aria-current="step"], .steps li.done { border-color: var(--brand); color: var(--ink); font-weight: 600; }

label, legend { display: block; font-weight: 600; margin: 14px 0 4px; }
fieldset { border: 0; padding: 0; margin: 0; }
input, select { width: 100%; min-height: 52px; padding: 10px 12px; font: inherit; color: inherit; background: var(--card); border: 2px solid var(--line); border-radius: 10px; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 360px) { .row { grid-template-columns: 1fr; } }
.fielderr { color: var(--err); font-size: .95rem; margin: 4px 0 0; min-height: 0; }
.fielderr:empty { display: none; }
.errbox { background: #fff0f0; border: 2px solid var(--err); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }

.stepper { display: flex; gap: 6px; }
.stepper input { text-align: center; min-width: 0; }
.stepper button { flex: 0 0 52px; min-height: 52px; font-size: 1.5rem; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }

.choices { display: grid; gap: 8px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 52px; padding: 8px 12px; background: var(--card); border: 2px solid var(--line); border-radius: 10px; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--brand); background: #fbf1ea; }
.choice input, .check input { width: 26px; height: 26px; min-height: 0; margin: 0; flex: 0 0 26px; accent-color: var(--brand); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }

.minor { display: grid; grid-template-columns: 1fr 88px 44px; gap: 8px; align-items: end; margin-top: 8px; }
.minor label { margin-top: 0; font-size: .9rem; }
.minor .rm { min-height: 52px; border: 0; background: none; font-size: 1.4rem; color: var(--muted); }

.btn { display: block; width: 100%; min-height: 56px; margin-top: 20px; padding: 14px; font: inherit; font-weight: 700; text-align: center; text-decoration: none; color: #fff; background: var(--brand); border: 0; border-radius: 12px; }
.btn:active { background: var(--brand-hi); }
.btn[disabled] { opacity: .6; }
.btn.ghost { background: var(--card); color: var(--brand-hi); border: 2px solid var(--brand); margin-top: 12px; }
.link { background: none; border: 0; padding: 8px 4px; font: inherit; color: var(--brand-hi); text-decoration: underline; min-height: 44px; }

.waiver { max-height: 40vh; overflow-y: auto; background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 4px 14px; font-size: .95rem; }
.sigwrap { position: relative; }
#sig { display: block; width: 100%; height: 180px; background: #fff; border: 2px dashed var(--charcoal); border-radius: 10px; touch-action: none; }
#clearSig { position: absolute; top: 2px; right: 6px; }
.optin { margin-top: 22px; padding: 4px 14px 10px; background: var(--sea); border-radius: 10px; }
.optin-head { margin: 8px 0 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.optin .check { font-size: .95rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#done h1 { color: var(--ok); }
.foot { margin-top: 32px; text-align: center; }
.doc p { max-width: 65ch; }

/* Admin */
.boat { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 4px 14px 12px; margin: 14px 0; }
.boat h2 { font-size: 1.15rem; margin: 10px 0 4px; }
.trip { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.count { display: inline-block; font-weight: 800; padding: 2px 10px; border-radius: 999px; color: #fff; background: var(--ok); }
.count.short { background: var(--err); }
.people { margin: 6px 0 0; padding-left: 20px; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.toolbar input { width: auto; flex: 1; }
.toolbar .btn { width: auto; margin: 0; min-height: 52px; padding: 0 16px; }
