/* Anka Foods brand: the logo's charcoal and green (as the PDF application). Phone first; wider screens get two columns. */
:root { --ink:#222222; --muted:#5d6760; --green:#92C53E; --deep:#4A7A1C; --tint:#F3F8EC; --line:#CDD8C1; --rule:#E3E9DC;
        --err:#B5452A; --bg:#F6F7F4; --card:#FFFFFF; --radius:10px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff;
       border-bottom: 4px solid var(--green); }
.top .logo { height: 40px; width: auto; }
.top .co { text-align: right; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.top .co span { font-weight: 400; color: var(--muted); letter-spacing: 0; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.intro h1 { font-size: 26px; line-height: 1.15; margin: 8px 0 6px; letter-spacing: -.01em; }
.intro p { margin: 0 0 10px; color: #39433c; }

.progress { display: flex; gap: 4px; margin: 12px 0 6px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--rule); }
.progress span.on { background: var(--green); }
.stepname { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.restart { margin: 0 0 8px; text-align: right; }
button.link { border: 0; background: none; padding: 2px 0; font-size: 13px; color: var(--muted); text-decoration: underline; }
.banner p { margin: 0 0 8px; }

.step { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 16px 6px; }
.step h2 { margin: 0 0 14px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.step h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center;
              justify-content: center; font-size: 15px; font-weight: 800; flex: none; }
.step h3 { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 680px) { .grid { grid-template-columns: 1fr 1fr; } .full { grid-column: 1 / -1; } }

.field { margin-bottom: 14px; min-width: 0; }
.field label.lab { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.req { color: var(--err); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--tint); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(146,197,62,.45); border-color: var(--deep); background: #fff; }
.hint { font-size: 13px; color: var(--muted); margin-top: 3px; }
.err { font-size: 13px; color: var(--err); margin-top: 3px; min-height: 0; }
.field.bad input, .field.bad textarea, .field.bad .pad, .field.bad .photo { border-color: var(--err); }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
         background: var(--tint); cursor: pointer; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--deep); flex: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line);
                 border-radius: 8px; background: var(--tint); cursor: pointer; font-size: 15px; }
.choices input { width: 20px; height: 20px; margin: 0; accent-color: var(--deep); }
.choices label:has(input:checked) { border-color: var(--deep); background: #fff; box-shadow: inset 0 0 0 1px var(--deep); }

.legal { font-size: 14px; color: #2c352f; background: #FBFCFA; border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px;
         margin-bottom: 16px; }
.legal h4 { margin: 10px 0 4px; font-size: 14px; }
.legal h4:first-child { margin-top: 0; }
.legal p { margin: 0 0 8px; }
.legal ol, .legal ul { margin: 0 0 8px; padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal .callout { background: var(--tint); border-left: 3px solid var(--green); padding: 8px 10px; font-weight: 700; }
.legal .note { font-size: 12px; color: var(--muted); }

.pad { position: relative; border: 1px solid var(--line); border-radius: 8px; background: #fff; touch-action: none; }
.pad canvas { display: block; width: 100%; height: 170px; border-radius: 8px; cursor: crosshair; }
.pad .base { position: absolute; left: 14px; right: 14px; bottom: 34px; border-bottom: 1px dashed #9aa395; pointer-events: none; }
.pad .x { position: absolute; left: 14px; bottom: 38px; color: #9aa395; font-size: 18px; pointer-events: none; }
.pad .clear { position: absolute; right: 8px; top: 8px; }
.pad .say { position: absolute; left: 14px; bottom: 8px; font-size: 12px; color: var(--muted); pointer-events: none; }

.photo { display: flex; gap: 12px; align-items: center; border: 1px dashed #9aa395; border-radius: 8px; padding: 10px; background: #fff; }
.photo img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--tint); }
.photo .ph { width: 96px; height: 64px; border-radius: 6px; background: var(--tint); display: flex; align-items: center;
             justify-content: center; color: var(--muted); font-size: 12px; text-align: center; flex: none; }
.photo input { display: none; }
.photo .state { font-size: 13px; color: var(--muted); }

button { font: inherit; font-size: 16px; border-radius: 8px; padding: 12px 18px; cursor: pointer; border: 1px solid var(--ink); }
button.primary { background: var(--ink); color: #fff; font-weight: 700; }
button.primary:disabled { opacity: .55; cursor: wait; }
button.secondary { background: #fff; color: var(--ink); }
button.small { font-size: 13px; padding: 5px 10px; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.nav button { min-width: 120px; }

.review dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
.review dt { color: var(--muted); }
.review dt.sub { grid-column: 1 / -1; color: var(--ink); font-weight: 700; margin-top: 6px; }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review h4 { margin: 14px 0 6px; display: flex; justify-content: space-between; align-items: center; }
.review .thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.review .thumbs img { height: 60px; border: 1px solid var(--rule); border-radius: 4px; }

.banner { padding: 12px 14px; border-radius: 8px; margin: 10px 0; }
.banner.error { background: #FBEDE8; border: 1px solid #E8B4A3; color: #6d2a18; }
.banner.ok { background: var(--tint); border: 1px solid var(--line); }
.done h2 { font-size: 22px; margin: 4px 0 8px; }
.done .ref { font-size: 13px; color: var(--muted); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.foot { max-width: 760px; margin: 0 auto; padding: 12px 16px 28px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px;
        color: var(--muted); }
.foot a { color: var(--muted); }
