/* Top 97.0: the voting steps. */

.vote-steps { display: flex; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-3); }

.vote-steps__item {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--surface);
}

.vote-steps__item span {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-muted);
  line-height: 26px;
  text-align: center;
}

.vote-steps__item.is-current { color: var(--text); box-shadow: inset 0 -3px 0 var(--red); }
.vote-steps__item.is-current span { background: var(--red); color: #fff; }
.vote-steps__item.is-done span { background: var(--green); color: #fff; }

.vote { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }

/* The vote list is a normal panel: it grows with the list and the page scrolls,
   no scrollbar of its own. The vote bar below stays just above the player. */
.vote__list { scroll-margin-top: calc(var(--header-h) + 12px); }
.vote__list:focus { outline: none; }
.vote__tally { font-size: 15px; font-weight: 800; color: var(--red-dark); font-variant-numeric: tabular-nums; }

.vote__find { display: flex; gap: 10px; }
.vote__field { position: relative; flex: 1 1 auto; min-width: 0; }
.vote__field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--text-3); pointer-events: none; }
.vote__field .input { padding-left: 42px; }
.vote__count { height: 48px; font-variant-numeric: tabular-nums; }

.vote__status { margin: 10px 0 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.vote__status:empty { margin: 12px 0 0; }
.vote__status.is-error { color: var(--red-dark); }

/* "Niet gevonden?": a jump to the four own-entry fields under the list. */
.vote__free-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 52px; margin-top: 12px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--tile); font-weight: 700; }
.vote__free-link:hover { border-color: var(--red); }
.vote__free-open { color: var(--red-dark); }

.vote__sub { margin: -8px 0 12px; font-size: 14px; color: var(--text-3); }

/* The four fixed own-entry fields under "Jouw stemlijst" (spec p. 5). */
.free { min-width: 0; margin: 16px 0 0; padding: 16px; border: 0; border-radius: var(--radius-s); background: var(--tile); display: grid; gap: 12px; scroll-margin-top: calc(var(--header-h) + 12px); }
.free:focus { outline: none; }
.free__title { float: left; width: 100%; padding: 0; font-size: 17px; font-weight: 800; }
.free__hint { clear: both; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.free__field { gap: 4px; }
.free__field .input { background: var(--surface); }
.free__field.is-filled .input { border-color: var(--red); background: #fff; }
.free__field.is-error .input { border-color: var(--red-dark); box-shadow: 0 0 0 1px var(--red-dark); }
.free__state { min-height: 18px; font-size: 13px; color: var(--text-3); }
.free__state:empty { min-height: 0; }
.free__field.is-error .free__state { color: var(--red-dark); font-weight: 600; }
.free__note { font-size: 13.5px; color: var(--text-3); }

.empty-line { padding: 14px 4px; font-size: 14.5px; color: var(--text-3); }

/* Always in reach, just above the radio player. */
.vote-bar {
  position: sticky;
  bottom: calc(var(--player-h) + 10px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--red-dark) 0%, var(--maroon) 100%);
  color: #fff;
  box-shadow: var(--shadow-hero);
}

.vote-bar__text { font-size: 15px; font-weight: 700; }
/* Not enough choices yet: still readable and clickable (it then tells why), but clearly not the way forward. */
.vote-bar .pill[aria-disabled='true'] { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; cursor: not-allowed; filter: none; }

.vote-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.vote-actions--center { justify-content: center; }
.vote-actions--start { justify-content: flex-start; }
.vote-saved { min-height: 20px; font-size: 13.5px; color: var(--text-3); text-align: right; }

.callback { min-width: 0; margin: 4px 0 0; padding: 16px; border: 0; border-radius: var(--radius-s); background: var(--tile); display: grid; gap: 12px; }
.callback__title { float: left; width: 100%; padding: 0; font-size: 18px; font-weight: 800; }
.callback__text { clear: both; font-size: 14.5px; color: var(--text-2); }
.callback__phone { margin: -4px 0 0 32px; }
.callback .check .text-link { white-space: nowrap; }
.callback .check { align-items: center; min-height: 44px; }
.callback .check input { margin: 0; }
.callback__note { font-size: 13.5px; color: var(--text-3); }

.thanks { text-align: center; }
.thanks .panel__lead { margin: 6px auto 16px; }
.thanks .share { justify-content: center; }
.thanks__note { margin-top: 10px; font-size: 13.5px; color: var(--text-3); }
.thanks__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 50%; background: var(--green); color: #fff; font-size: 30px; }

/* With the site sidebar beside it the column is ~960px at most: below a wide
   screen the search and the list stack instead of squeezing side by side. */
@media (max-width: 1240px) {
  .vote { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .vote-steps__item { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 12.5px; text-align: center; }
  .vote-bar { padding-left: 14px; }
  .vote-bar__text { font-size: 14px; }
  .vote-actions .pill { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .vote__find { flex-wrap: wrap; }
  .vote__count { flex: 1 1 100%; }
}

/* Own entry: the text and, next to it, the category the listener picks. */
.free__field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 190px); column-gap: 8px; align-items: center; }
.free__field > .field__label,
.free__field > .free__state { grid-column: 1 / -1; }
.free__genre { appearance: auto; padding-right: 10px; cursor: pointer; font-weight: 600; }
.free__field.is-filled .free__genre.is-empty { border-color: var(--red-dark); box-shadow: 0 0 0 1px var(--red-dark); color: var(--red-dark); }
.free__field .free__genre.is-empty { color: var(--text-3); font-weight: 500; }
@media (max-width: 520px) { .free__field { grid-template-columns: minmax(0, 1fr); row-gap: 6px; } }
