/* styles.css — Mobile-first, audytorium 55+: DUŻE fonty, wysoki kontrast, proste UI.
   Cel <50KB całego frontu — CSS bez frameworków. */

:root {
  --brand: #1f6f43;
  --bg: #ffffff;
  --fg: #161616;
  --muted: #555;
  --error: #b00020;
  --border: #c9c9c9;
  --radius: 12px;
  --tap: 56px; /* min. cel dotykowy dla 55+ */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;          /* duża baza */
  line-height: 1.55;
}

.topbar { position: sticky; top: 0; background: var(--bg); z-index: 10; }
.progress { height: 8px; background: #eee; }
.progress-bar { height: 100%; width: 5%; background: var(--brand); transition: width .3s ease; }

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.screen { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 { font-size: 1.9rem; line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: .5rem 0 1rem; }
.lead { font-size: 1.25rem; color: var(--fg); }
.agitacja { background: #f4f7f5; border-left: 6px solid var(--brand); padding: 1rem 1.1rem; border-radius: var(--radius); margin: 1.25rem 0; }
.micro { font-size: .95rem; color: var(--muted); margin-top: 1.25rem; }
.qcount { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.question { font-size: 1.6rem; }

/* Przyciski — duże cele dotykowe */
.btn-primary {
  display: block; width: 100%;
  min-height: var(--tap);
  font-size: 1.3rem; font-weight: 700;
  color: #fff; background: var(--brand);
  border: none; border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-top: 1.25rem;
  cursor: pointer;
}
.btn-primary:disabled { opacity: .6; cursor: default; }

.options { display: flex; flex-direction: column; gap: .85rem; margin-top: 1rem; }
.btn-option {
  width: 100%; min-height: var(--tap);
  text-align: left; font-size: 1.25rem;
  background: #fff; color: var(--fg);
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem; cursor: pointer;
}
.btn-option:hover, .btn-option:focus { border-color: var(--brand); background: #f4f7f5; }

.preframing { list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.preframing li {
  font-size: 1.2rem; padding: .75rem 1rem; margin-bottom: .6rem;
  background: #f4f7f5; border-radius: var(--radius);
}

/* Formularz */
label { display: block; font-size: 1.15rem; font-weight: 600; margin: 1rem 0 .4rem; }
input[type="text"], input[type="tel"] {
  width: 100%; min-height: var(--tap);
  font-size: 1.3rem; padding: .75rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius);
}
input.invalid { border-color: var(--error); }
.field-error { color: var(--error); font-size: 1.05rem; min-height: 1.2rem; margin: .35rem 0 0; }

.consents { margin: 1.25rem 0; }
.consent { display: flex; align-items: flex-start; gap: .75rem; font-weight: 400; font-size: 1.05rem; margin-bottom: 1rem; }
.consent input[type="checkbox"] { width: 28px; height: 28px; margin-top: 2px; flex: 0 0 auto; }

/* Honeypot — niewidoczny dla ludzi, dostępny dla botów */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { text-align: center; padding: 1.5rem 1rem; font-size: .95rem; color: var(--muted); }
.footer a { color: var(--muted); }

a { color: var(--brand); }

/* Bardzo małe ekrany */
@media (max-width: 360px) {
  html, body { font-size: 18px; }
  h1 { font-size: 1.6rem; }
}
