/* TOCCA Voter — component polish (forms, modals, questions, summary, landing) */

.category-grid .voter-skeleton {
  min-height: 3.75rem;
}

@media (min-width: 576px) {
  .category-grid .voter-skeleton:nth-child(n + 7) {
    display: none;
  }
}

/* ─── Landing / index ─── */
body.voter-page--home:not(.voter-appearance-custom) {
  background: linear-gradient(165deg, #e8f2fc 0%, #d4e5f9 40%, #c0d8f5 100%);
  background-attachment: fixed;
}

.voter-page--home .voter-shell {
  max-width: 960px;
}

.voter-instruction-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .voter-instruction-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.voter-instruction-step {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: #f8fbff;
  border: 1px solid var(--tocca-border);
  border-radius: var(--tocca-radius-sm);
  transition: border-color var(--tocca-transition), box-shadow var(--tocca-transition);
}

.voter-instruction-step:hover {
  border-color: rgba(77, 171, 247, 0.45);
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.08);
}

.voter-instruction-step .step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: #fff;
  background: linear-gradient(135deg, var(--tocca-primary) 0%, var(--tocca-primary-soft) 100%);
  border-radius: 50%;
}

.voter-instruction-step .step-body {
  font-size: 0.9rem;
  color: var(--tocca-text);
  line-height: 1.55;
}

.voter-instruction-step .step-body strong {
  color: var(--tocca-navy);
}

.voter-instruction-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--tocca-text-muted);
  background: #fff8e6;
  border-left: 4px solid #fab005;
  border-radius: 0 var(--tocca-radius-sm) var(--tocca-radius-sm) 0;
}

.btn-voter-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 420px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(135deg, var(--tocca-primary) 0%, var(--tocca-primary-soft) 100%);
  border: none;
  border-radius: var(--tocca-radius-sm);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
  cursor: pointer;
  transition: transform var(--tocca-transition), box-shadow var(--tocca-transition), filter var(--tocca-transition);
}

.btn-voter-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(30, 64, 175, 0.4);
  color: #fff;
}

.btn-voter-primary:focus-visible {
  outline: 3px solid var(--tocca-accent);
  outline-offset: 3px;
}

/* ─── Modals ─── */
.modal.voter-modal .modal-content,
.voter-modal .modal-content {
  border: none;
  border-radius: var(--tocca-radius);
  box-shadow: 0 24px 64px rgba(1, 0, 102, 0.2);
  overflow: hidden;
}

.voter-modal .modal-header {
  background: linear-gradient(135deg, var(--tocca-navy) 0%, var(--tocca-primary) 100%);
  color: #fff;
  border: none;
  padding: 1.15rem 1.35rem;
}

.voter-modal .modal-header .modal-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.voter-redirect-modal .modal-body {
  text-align: center;
  padding: 1.25rem 1.25rem 1.4rem;
}

.voter-redirect-modal .redirect-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--tocca-primary), var(--tocca-primary-soft));
}

.voter-redirect-modal .redirect-text {
  margin: 0;
  color: var(--tocca-text);
  font-weight: 600;
}

.voter-modal .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.voter-modal .modal-body {
  padding: 1.35rem;
  text-align: left;
}

.voter-modal .modal-footer {
  border-top: 1px solid var(--tocca-border);
  padding: 1rem 1.35rem;
  background: #f8fafc;
}

/* Stacked confirm/sign-out actions: primary on top, cancel below */
#voterConfirmModal .modal-footer,
#confirmSignOutModal .modal-footer {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.5rem;
}

#voterConfirmModal #voterConfirmOkBtn,
#confirmSignOutModal #confirmSignOutBtn {
  order: -1;
}

.voter-modal .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--tocca-navy);
}

.voter-modal .form-control {
  border-radius: var(--tocca-radius-sm);
  padding: 0.65rem 0.9rem;
}

.voter-modal .form-control:focus {
  border-color: var(--tocca-accent);
  box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

.voter-modal .form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.voter-modal .form-control:focus::placeholder {
  color: #cbd5e1;
}

.voter-modal .form-control:not(:placeholder-shown) {
  color: var(--tocca-navy, #1e293b);
}

.voter-modal .btn-primary {
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--tocca-radius-sm);
  color: #fff !important;
  background: linear-gradient(135deg, var(--tocca-primary) 0%, var(--tocca-primary-soft) 100%);
  border: none;
}

.voter-modal .btn-primary:hover,
.voter-modal .btn-primary:focus {
  color: #fff !important;
}

.voter-modal .btn-primary:disabled {
  color: #fff !important;
  background: #94a3b8 !important;
  border: none;
  opacity: 0.85;
  box-shadow: none;
}

.voter-modal .intro-consent-box {
  background: #f0f6ff;
  border: 1px solid var(--tocca-border);
  border-radius: var(--tocca-radius-sm);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
}

.voter-modal .form-check-label a {
  font-weight: 600;
  color: var(--tocca-primary);
}

#mobileResultModal .modal-content {
  border-radius: var(--tocca-radius);
}

#mobileResultModal #mobileResultIcon {
  font-size: 2.75rem !important;
}

#mobileResultModal .modal-dialog {
  z-index: 1065;
}

/* ─── Search & controls (vote page) ─── */
.voter-search-panel {
  background: #f8fbff;
  border: 1px solid var(--tocca-border);
  border-radius: var(--tocca-radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.voter-search-panel .form-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--tocca-navy);
  margin-bottom: 0.35rem;
}

.voter-search-panel .form-control {
  border-radius: var(--tocca-radius-sm);
}

.voter-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  border: 1px solid var(--tocca-border);
  border-radius: var(--tocca-radius-sm);
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .voter-controls-bar {
    justify-content: space-between;
  }
}

.voter-controls-bar .btn {
  font-weight: 600;
  border-radius: var(--tocca-radius-sm);
  min-height: 2.75rem;
}

.voter-controls-bar #submitVoteBtn {
  flex: 1 1 auto;
  min-width: 200px;
}

@media (min-width: 576px) {
  .voter-controls-bar #submitVoteBtn {
    margin-left: auto;
  }
}

#pageControls.voter-page-nav {
  padding: 0.75rem 0;
  margin-top: 0.5rem;
}

/* ─── Question cards ─── */
#questionsContainer.category-panel {
  background: #fafcff;
  border: 1px solid var(--tocca-border);
  border-radius: var(--tocca-radius);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  min-height: 200px;
}

.voter-question-card {
  background: #fff;
  border: 1px solid var(--tocca-border) !important;
  border-radius: var(--tocca-radius-sm) !important;
  padding: 1.25rem 1.35rem !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 2px 8px rgba(1, 0, 102, 0.04);
  transition: box-shadow var(--tocca-transition), border-color var(--tocca-transition);
}

.voter-question-card:hover {
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.08);
}

.voter-question-card.border-success,
.voter-question-card.bg-light.border-success {
  border-color: #51cf66 !important;
  background: linear-gradient(135deg, #f4fdf5 0%, #fff 100%) !important;
}

.voter-question-card > .form-label.fw-bold {
  font-size: 1.05rem;
  font-weight: 800 !important;
  color: var(--tocca-navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  padding-right: 4rem;
}

.voter-question-card .open-text-pair {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  margin-top: 0.15rem;
}

.voter-question-card .open-text-field {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.voter-question-card .open-text-field .form-label {
  display: block;
  margin-bottom: 0.3rem;
}

.voter-question-card .open-text-field .choices {
  margin-bottom: 0;
}

.voter-question-card .form-label.text-primary {
  color: var(--tocca-primary-soft) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}

.voter-question-card .view-business-btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.choice-media-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  background: #f0f7ff;
  border-radius: var(--tocca-radius-sm);
  border: 1px dashed rgba(30, 64, 175, 0.25);
  color: var(--tocca-primary);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.choice-media-hint__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 0.95rem;
}

.choice-media-hint__text {
  flex: 1 1 0;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.choice-media-hint__name {
  display: inline;
  word-break: break-word;
}

@media (max-width: 576px) {
  .choice-media-hint {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* Toast above modals when both visible briefly */
.voter-page .toast-container {
  z-index: 1100;
  pointer-events: none;
}

.voter-page .toast-container .toast {
  pointer-events: auto;
}

body.modal-open .voter-page .toast-container {
  z-index: 1105;
}

.choice-preview-btn {
  font-weight: 600;
  border-radius: var(--tocca-radius-sm);
  white-space: nowrap;
}

/* ─── Business media modal ─── */
.choice-media-modal-body {
  min-height: 200px;
}

.choice-media-empty-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef4fc;
  color: var(--tocca-primary);
  font-size: 1.35rem;
}

#choiceMediaCarousel .carousel-item img,
#choiceMediaCarousel .carousel-item video {
  width: 100%;
  max-height: min(60vh, 480px);
  object-fit: contain;
  background: #0f172a;
  border-radius: var(--tocca-radius-sm);
}

#choiceMediaCarousel .carousel-item {
  background: #0f172a;
  border-radius: var(--tocca-radius-sm);
  min-height: 200px;
}

#choiceMediaCarousel .carousel-item > div {
  min-height: 200px;
}

#choiceMediaCarousel .carousel-control-prev-icon,
#choiceMediaCarousel .carousel-control-next-icon {
  background-color: rgba(15, 23, 42, 0.65);
  border-radius: 50%;
  padding: 1rem;
}

.view-business-btn {
  border: 1px solid var(--tocca-primary);
  background: #f0f7ff;
  color: var(--tocca-primary);
}

.view-business-btn:hover:not(:disabled) {
  background: var(--tocca-primary);
  color: #fff;
  border-color: var(--tocca-primary);
}

.view-business-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

html.dark-mode .view-business-btn {
  background: rgba(13, 110, 253, 0.12);
  color: #93c5fd;
  border-color: #93c5fd;
}

.voter-question-card .is-invalid {
  border-color: #fa5252 !important;
  box-shadow: 0 0 0 2px rgba(250, 82, 82, 0.15);
}

/* Choice dropdown — business logo before name (Choices.js) */
.choice-option-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
}

.choice-option-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.choice-option-name {
  line-height: 1.35;
  word-break: break-word;
}

.voter-question-card .choices__list--dropdown .choices__item--selectable {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.voter-question-card .choices__list--single .choice-option-logo {
  width: 28px;
  height: 28px;
}

.voter-question-card .choices[data-type*="select-one"] .choices__inner {
  padding-right: 4.25rem;
}

.voter-question-card .choices[data-type*="select-one"] .choices__button {
  right: 2.15rem;
}

/* ─── Summary rows ─── */
.summary-row {
  padding: 1rem 1.15rem !important;
  border-color: var(--tocca-border) !important;
  gap: 0.75rem;
  transition: background var(--tocca-transition);
}

.summary-row:hover {
  background: #f8fbff !important;
}

.summary-row.finalized-item {
  background: linear-gradient(90deg, #f4fdf6 0%, #fff 100%) !important;
  border-left: 4px solid #37b24d !important;
}

.summary-row.summary-row--attention {
  background: #fff9db !important;
  border-left: 4px solid #f59f00 !important;
  box-shadow: inset 0 0 0 1px rgba(245, 159, 0, 0.25);
  animation: summary-attention-pulse 1.2s ease-in-out 2;
}

@keyframes summary-attention-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(245, 159, 0, 0.25);
  }
  50% {
    box-shadow: inset 0 0 0 2px rgba(245, 159, 0, 0.45);
  }
}

.summary-row .question-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tocca-navy);
  line-height: 1.35;
}

.summary-row .answer-preview {
  font-size: 0.875rem;
  color: var(--tocca-text-muted);
  margin-top: 0.25rem;
}

.summary-row .answer-preview.is-empty {
  color: #c92a2a;
  font-weight: 600;
}

.summary-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 576px) {
  .summary-row-actions {
    justify-content: flex-end;
    flex-shrink: 0;
  }
}

.voter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  white-space: nowrap;
}

.voter-badge--voted {
  background: #d3f9d8;
  color: #2b8a3e;
}

.voter-badge--pending {
  background: #fff3bf;
  color: #e67700;
}

.btn-voter-edit {
  font-weight: 600;
  border-radius: var(--tocca-radius-sm);
}

.btn-voter-cast {
  font-weight: 700;
  border-radius: var(--tocca-radius-sm);
  background: linear-gradient(135deg, #2f9e44 0%, #37b24d 100%);
  border: none;
  color: #fff;
}

.btn-voter-cast:hover {
  background: linear-gradient(135deg, #37b24d 0%, #51cf66 100%);
  color: #fff;
}

/* Summary stat cards hover */
.summary-stat {
  transition: transform var(--tocca-transition), box-shadow var(--tocca-transition);
}

.summary-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.1);
}

/* ─── Thank you page ─── */
body.voter-page--thanks .voter-shell {
  max-width: 720px;
}

.thankyou-hero {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(145deg, var(--tocca-navy) 0%, var(--tocca-primary) 60%, var(--tocca-primary-soft) 100%);
  color: #fff;
}

.thankyou-hero .thanks-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 2rem;
}

.thankyou-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.thankyou-hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0;
  max-width: 40ch;
  margin-inline: auto;
}

.thankyou-progress-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
}

.thankyou-progress-panel h2 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tocca-navy);
  text-align: center;
  margin-bottom: 1.25rem;
}

.thankyou-chart-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 480px) {
  .thankyou-chart-row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

.thankyou-chart-wrap {
  position: relative;
  width: min(160px, 45vw);
  height: min(160px, 45vw);
}

.thankyou-chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tocca-navy);
}

.thankyou-legend {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 180px;
}

.thankyou-legend-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: var(--tocca-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tocca-navy);
  background: #f8fbff;
  border: 1px solid var(--tocca-border);
}

.thankyou-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.thankyou-footer-note {
  text-align: center;
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--tocca-text-muted);
  border-top: 1px solid var(--tocca-border);
}

.thankyou-footer-note a {
  font-weight: 600;
  color: var(--tocca-primary);
}

.thankyou-ballot-panel {
  padding: 0 1.5rem 1.25rem;
}

.thankyou-ballot-panel h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tocca-navy);
  margin: 0 0 0.75rem;
}

.thankyou-ballot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tocca-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.thankyou-ballot-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--tocca-border);
}

.thankyou-ballot-list li:first-child {
  border-top: 0;
}

.thankyou-ballot-award {
  font-size: 0.8rem;
  color: var(--tocca-text-muted);
}

.thankyou-ballot-pick {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tocca-navy);
}

/* ─── Status / message page ─── */
.voter-status-page {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
}

.voter-status-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: #ffe3e3;
  color: #c92a2a;
  border-radius: 50%;
}

.voter-status-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--tocca-navy);
  margin: 0 0 0.5rem;
}

.voter-status-text {
  color: var(--tocca-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto;
}

/* ─── Legal pages ─── */
body.voter-page--legal {
  background: var(--tocca-bg);
}

.voter-legal-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.voter-legal-doc .legal-card {
  background: #fff;
  border: 1px solid var(--tocca-border);
  border-radius: var(--tocca-radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--tocca-shadow);
}

.voter-legal-doc h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tocca-navy);
}

.voter-legal-doc h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tocca-navy);
  margin-top: 2rem;
}

.voter-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--tocca-primary);
  text-decoration: none;
}

.voter-legal-back:hover {
  text-decoration: underline;
}

/* ─── Loading skeleton ─── */
.voter-skeleton {
  background: linear-gradient(90deg, #e8f0fc 25%, #f4f8fd 50%, #e8f0fc 75%);
  background-size: 200% 100%;
  animation: voterShimmer 1.2s ease-in-out infinite;
  border-radius: var(--tocca-radius-sm);
  min-height: 3.5rem;
}

@keyframes voterShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Toasts ─── */
.toast-container .toast {
  border: none;
  border-radius: var(--tocca-radius-sm);
  box-shadow: 0 12px 40px rgba(1, 0, 102, 0.18);
  font-weight: 600;
  min-width: min(90vw, 320px);
}

.toast-container .toast .toast-body {
  padding: 0.85rem 1rem;
}

/* ─── Category header on vote page (legacy) ─── */
body.voter-page .category-header-panel {
  background: linear-gradient(135deg, var(--tocca-navy) 0%, var(--tocca-primary) 55%, var(--tocca-primary-soft) 100%);
  color: #fff;
  padding: clamp(1.25rem, 3vw, 1.5rem);
  border-radius: var(--tocca-radius);
  box-shadow: var(--tocca-shadow);
}

body.voter-page .category-header-panel h2 {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

body.voter-page .category-header-panel p {
  color: rgba(255, 255, 255, 0.9);
}

body.voter-page .category-header-panel .form-select {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Choices.js in header */
body.voter-page .category-header-panel .choices__inner {
  border: none;
  min-height: 3rem;
  font-weight: 600;
}

/* Step connector line on desktop */
@media (min-width: 768px) {
  .voter-steps ol {
    position: relative;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* Accordion polish */
#summaryContainer .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, #e7f0ff 0%, #f0f6ff 100%);
  color: var(--tocca-navy);
  box-shadow: none;
}

#summaryContainer .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.25);
}

#summaryContainer .list-group-item:last-child {
  border-bottom: none;
}
