/* Electrozombies reader survey
   Light grey page, white cards, black type, Electrozombies pink as accent.
   No external fonts or files are loaded. */

:root {
  --ez-pink: #e30b5c;
  --ez-pink-dark: #b8084a;
  --ez-pink-soft: #fdebf2;
  --ez-bg: #ececec;
  --ez-card: #ffffff;
  --ez-ink: #111111;
  --ez-ink-2: #444444;
  --ez-muted: #6d6d6d;
  --ez-line: #dadada;
  --ez-line-strong: #b9b9b9;
  --ez-error: #c4002f;
  --ez-radius: 3px;
  --ez-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ez-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 18px rgba(0, 0, 0, .05);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ez-bg);
  color: var(--ez-ink);
  font-family: var(--ez-font);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ez-pink); }
a:hover { color: var(--ez-pink-dark); }

:focus-visible {
  outline: 3px solid var(--ez-pink);
  outline-offset: 2px;
}

.ez-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ez-ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.ez-skip:focus { left: 8px; top: 8px; }

/* Header */

.ez-header {
  background: #fff;
  border-bottom: 1px solid var(--ez-line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.ez-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ez-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ez-ink); }
.ez-logo img { display: block; height: 26px; width: auto; }
.ez-wordmark { font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-transform: uppercase; }
.ez-wordmark b { color: var(--ez-pink); }

.ez-header-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ez-muted);
}

.ez-progress { height: 4px; background: #f3f3f3; }
.ez-progress-bar {
  height: 100%;
  width: 0;
  background: var(--ez-pink);
  transition: width .35s ease;
}

/* Layout */

.ez-main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.ez-main:focus { outline: none; }

.ez-card {
  background: var(--ez-card);
  border-radius: var(--ez-radius);
  box-shadow: var(--ez-shadow);
  padding: 40px 44px;
}

.ez-loading { color: var(--ez-muted); }

.ez-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ez-pink);
  margin: 0 0 10px;
}

.ez-title {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 22px;
}

.ez-section-title {
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.ez-section-title:focus { outline: none; }

.ez-lead { font-size: 19px; color: var(--ez-ink-2); }
.ez-muted { color: var(--ez-muted); font-size: 15px; }
.ez-small { font-size: 14px; color: var(--ez-muted); }

.ez-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 26px 0 30px;
  list-style: none;
}
.ez-facts li {
  border: 1px solid var(--ez-line-strong);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 600;
}

.ez-section-intro {
  margin: 12px 0 0;
  padding: 14px 18px;
  background: #f6f6f6;
  border-left: 4px solid var(--ez-pink);
  color: var(--ez-ink-2);
}

/* Questions */

.ez-question {
  border: 0;
  padding: 0;
  margin: 34px 0 0;
  min-width: 0;
}

.ez-question legend,
.ez-question .ez-q-text {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  padding: 0;
  margin: 0 0 4px;
}

.ez-q-num {
  color: var(--ez-pink);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.ez-hint { font-size: 14px; color: var(--ez-muted); margin: 0 0 12px; }
.ez-question legend + .ez-options,
.ez-question legend + .ez-scale { margin-top: 14px; }

.ez-question.has-error legend,
.ez-question.has-error .ez-q-text { color: var(--ez-error); }

.ez-error-msg {
  color: var(--ez-error);
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 0;
}

/* Choice options */

.ez-options { display: grid; gap: 8px; }
.ez-options.is-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.ez-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 2px solid var(--ez-line);
  border-radius: var(--ez-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  line-height: 1.35;
}
.ez-option:hover { border-color: var(--ez-line-strong); }

.ez-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ez-mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid var(--ez-line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  transition: border-color .15s, background-color .15s;
}
.ez-option input[type="radio"] + .ez-mark { border-radius: 50%; }
.ez-option input[type="checkbox"] + .ez-mark { border-radius: 2px; }

.ez-option input:checked + .ez-mark {
  border-color: var(--ez-pink);
  background: var(--ez-pink);
}
.ez-option input[type="radio"]:checked + .ez-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.ez-option input[type="checkbox"]:checked + .ez-mark::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.ez-option:has(input:checked) {
  border-color: var(--ez-pink);
  background: var(--ez-pink-soft);
}
.ez-option:has(input:focus-visible) {
  outline: 3px solid var(--ez-pink);
  outline-offset: 2px;
}

/* 1 to 5 scale */

.ez-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ez-scale .ez-option {
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  padding: 14px 0;
}
.ez-scale .ez-mark { display: none; }
.ez-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ez-muted);
  margin-top: 6px;
  gap: 12px;
}
.ez-scale-labels span:last-child { text-align: right; }

/* Agreement grid (likert) */

.ez-likert { margin-top: 14px; }
.ez-likert-head,
.ez-likert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(6, 64px);
  align-items: center;
  gap: 4px;
}
.ez-likert-head {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ez-muted);
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ez-ink);
  position: sticky;
  top: 66px;
  background: #fff;
  z-index: 2;
}
.ez-likert-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--ez-line);
}
.ez-likert-row.has-error .ez-likert-text { color: var(--ez-error); }
.ez-likert-text { font-size: 16px; padding-right: 10px; margin: 0; }
.ez-likert-cell {
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 6px 0;
}
.ez-likert-cell input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ez-likert-cell .ez-mark { border-radius: 50%; width: 24px; height: 24px; flex-basis: 24px; }
.ez-likert-cell input:checked + .ez-mark { border-color: var(--ez-pink); background: var(--ez-pink); }
.ez-likert-cell input:checked + .ez-mark::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.ez-likert-cell input:focus-visible + .ez-mark { outline: 3px solid var(--ez-pink); outline-offset: 2px; }
.ez-likert-cell .ez-cell-label { display: none; }
.ez-likert-cell.is-dk .ez-mark { border-style: dashed; }

/* Text fields */

.ez-input,
.ez-textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 12px 14px;
  border: 2px solid var(--ez-line);
  border-radius: var(--ez-radius);
  background: #fff;
}
.ez-input:focus,
.ez-textarea:focus { border-color: var(--ez-pink); outline: none; }
.ez-textarea { min-height: 110px; resize: vertical; }
.ez-counter { font-size: 13px; color: var(--ez-muted); text-align: right; margin-top: 4px; }
.ez-label { display: block; font-weight: 700; margin: 0 0 6px; }

/* Audio */

.ez-audio {
  display: block;
  width: 100%;
  margin: 10px 0 14px;
}

/* Buttons */

.ez-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ez-line);
}
.ez-actions-right { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.ez-actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }

.ez-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border: 2px solid var(--ez-ink);
  border-radius: var(--ez-radius);
  background: #fff;
  color: var(--ez-ink);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.ez-btn:hover { background: var(--ez-ink); color: #fff; }
.ez-btn-primary { background: var(--ez-pink); border-color: var(--ez-pink); color: #fff; }
.ez-btn-primary:hover { background: var(--ez-pink-dark); border-color: var(--ez-pink-dark); color: #fff; }
.ez-btn-ghost { border-color: transparent; color: var(--ez-muted); padding-left: 0; padding-right: 0; }
.ez-btn-ghost:hover { background: transparent; color: var(--ez-ink); }
.ez-btn[disabled] { opacity: .55; cursor: wait; }

.ez-step-count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ez-muted);
  margin: 0 0 10px;
}

.ez-notice,
.ez-error {
  padding: 14px 18px;
  border-radius: var(--ez-radius);
  margin: 0 0 18px;
}
.ez-notice { background: #f6f6f6; border-left: 4px solid var(--ez-ink); }
.ez-error { background: #fdecef; border-left: 4px solid var(--ez-error); color: var(--ez-error); font-weight: 600; }

/* Thank you and raffle */

.ez-thanks-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ez-pink);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ez-thanks-mark::after {
  content: "";
  width: 22px;
  height: 12px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: translateY(-3px) rotate(-45deg);
}

.ez-raffle {
  margin-top: 34px;
  padding: 26px 28px;
  background: #f6f6f6;
  border-top: 4px solid var(--ez-pink);
}
.ez-raffle h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.ez-raffle-form { display: grid; gap: 12px; margin-top: 16px; }
.ez-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.ez-check input { margin-top: 4px; accent-color: var(--ez-pink); width: 18px; height: 18px; }

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

/* Footer */

.ez-footer { background: #1a1a1a; color: #bbb; }
.ez-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
}
.ez-footer a { color: #ddd; text-decoration: none; }
.ez-footer a:hover { color: var(--ez-pink); }

/* Export page */

.ez-export-form { display: grid; gap: 12px; max-width: 360px; }
.ez-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.ez-stat { background: #f6f6f6; padding: 18px; border-top: 4px solid var(--ez-pink); }
.ez-stat-num { display: block; font-size: 36px; font-weight: 800; line-height: 1; }
.ez-stat-label { font-size: 14px; color: var(--ez-muted); }

/* Small screens */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .ez-main { padding: 18px 12px 40px; }
  .ez-card { padding: 26px 20px; }
  .ez-header-inner { padding: 12px 16px; }
  .ez-logo img { height: 22px; }
  .ez-header-tag { font-size: 11px; }

  .ez-likert-head { display: none; }
  .ez-likert-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 16px 0;
  }
  .ez-likert-text { grid-column: 1 / -1; padding: 0 0 6px; font-weight: 600; }
  .ez-likert-cell {
    border: 2px solid var(--ez-line);
    border-radius: var(--ez-radius);
    padding: 8px 4px;
    gap: 4px;
    min-height: 64px;
  }
  .ez-likert-cell .ez-mark { width: 18px; height: 18px; flex-basis: 18px; }
  .ez-likert-cell .ez-cell-label { display: block; font-size: 12px; line-height: 1.15; text-align: center; color: var(--ez-ink-2); }
  .ez-likert-cell:has(input:checked) { border-color: var(--ez-pink); background: var(--ez-pink-soft); }

  .ez-scale .ez-option { padding: 12px 0; font-size: 18px; }
  .ez-actions { flex-direction: column-reverse; align-items: stretch; }
  .ez-actions-right { margin-left: 0; flex-direction: column-reverse; }
  .ez-actions .ez-btn { width: 100%; }
  .ez-raffle { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Headings receive focus after each step for screen readers, no ring needed */
[tabindex="-1"]:focus { outline: none; }

/* Selected value on the 1 to 5 scale */
.ez-scale .ez-option:has(input:checked) { background: var(--ez-pink); border-color: var(--ez-pink); color: #fff; }
