:root {
  --ballot-ink: #14213d;
  --ballot-muted: #5b6678;
  --ballot-line: #dce3ec;
  --ballot-soft: #f4f7fb;
  --ballot-paper: #fffdf8;
  --ballot-blue: #2457d6;
  --ballot-blue-dark: #173f9f;
  --ballot-green: #15803d;
  --ballot-green-soft: #dcfce7;
  --ballot-navy: #101c3d;
}

.ballot-page {
  overflow: hidden;
  color: var(--ballot-ink);
  background: #fff;
}

.ballot-page .container {
  width: min(1180px, calc(100% - 40px));
}

.ballot-page h1,
.ballot-page h2,
.ballot-page h3,
.ballot-page p {
  margin-top: 0;
}

.ballot-page h2 {
  max-width: 900px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ballot-eyebrow {
  width: fit-content;
  margin-bottom: 14px;
  color: var(--ballot-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ballot-eyebrow-light {
  color: #86efac;
}

.ballot-section-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 34px;
}

.ballot-section-heading h2,
.ballot-section-heading p {
  margin-bottom: 0;
}

.ballot-section-heading > p:last-child:not(.ballot-eyebrow) {
  max-width: 720px;
  color: var(--ballot-muted);
  font-size: 18px;
  line-height: 1.55;
}

.ballot-hero {
  position: relative;
  padding: 64px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 7%, rgba(74, 222, 128, 0.18), transparent 28%),
    linear-gradient(135deg, #0b1532 0%, #172554 64%, #183766 100%);
}

.ballot-hero::after {
  position: absolute;
  right: -32px;
  bottom: -62px;
  color: rgba(255, 255, 255, 0.035);
  content: "PDF";
  font-size: clamp(130px, 18vw, 250px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.ballot-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.8fr);
  gap: 54px;
  align-items: center;
}

.ballot-hero-copy {
  display: grid;
  gap: 17px;
}

.ballot-hero-copy .ballot-eyebrow {
  margin-bottom: 0;
  color: #86efac;
}

.ballot-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.ballot-lead {
  max-width: 730px;
  margin-bottom: 0;
  color: #dce7f6;
  font-size: 19px;
  line-height: 1.62;
}

.ballot-offer {
  display: grid;
  gap: 4px;
  margin-bottom: 0;
  padding-left: 16px;
  border-left: 3px solid #4ade80;
  color: #bfdbfe;
  line-height: 1.5;
}

.ballot-offer strong {
  color: #fff;
}

.ballot-hero-actions,
.ballot-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ballot-hero-actions .button {
  min-height: 54px;
}

.ballot-link-button,
.ballot-text-link {
  padding: 0;
  border: 0;
  color: var(--ballot-blue);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.ballot-hero .ballot-link-button {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 5px;
}

.ballot-link-button:hover,
.ballot-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ballot-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  color: #cbd5e1;
  font-size: 13px;
  list-style: none;
}

.ballot-trust-list li {
  position: relative;
  padding-left: 18px;
}

.ballot-trust-list li::before {
  position: absolute;
  left: 0;
  color: #4ade80;
  content: "✓";
  font-weight: 900;
}

.ballot-starter {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 30px;
  color: var(--ballot-ink);
  background: #fff;
  border: 1px solid rgba(134, 239, 172, 0.7);
  border-radius: 18px;
  box-shadow: 0 28px 74px rgba(3, 11, 28, 0.36);
}

.ballot-starter-head {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--ballot-line);
}

.ballot-starter-head span {
  color: #172554;
  font-size: 21px;
  font-weight: 850;
}

.ballot-starter-head strong {
  color: var(--ballot-green);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ballot-type-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ballot-type-fieldset legend,
.ballot-field > span,
.ballot-address-field > label,
.ballot-checkout-preview form > label:first-child > span {
  display: block;
  margin-bottom: 9px;
  color: #24314b;
  font-size: 14px;
  font-weight: 800;
}

.ballot-address-field > label small {
  color: #718096;
  font-size: 12px;
  font-weight: 600;
}

.ballot-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ballot-type-grid label {
  position: relative;
  cursor: pointer;
}

.ballot-type-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ballot-type-grid span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: #42506a;
  background: #f7f9fc;
  border: 1px solid #d6dfeb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  transition: 0.15s ease;
}

.ballot-type-grid input:checked + span {
  color: #153b25;
  background: var(--ballot-green-soft);
  border-color: #4ade80;
  box-shadow: inset 0 0 0 1px #4ade80;
}

.ballot-type-grid input:focus-visible + span {
  outline: 3px solid rgba(37, 87, 214, 0.26);
  outline-offset: 2px;
}

.ballot-field,
.ballot-address-field {
  position: relative;
  display: block;
}

.ballot-field input,
.ballot-field textarea,
.ballot-address-field input,
.ballot-checkout-preview input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  color: #101828;
  background: #fff;
  border: 1px solid #bcc8d8;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
}

.ballot-field textarea {
  min-height: 94px;
  resize: vertical;
  line-height: 1.5;
}

.ballot-field input:focus,
.ballot-field textarea:focus,
.ballot-address-field input:focus,
.ballot-checkout-preview input[type="email"]:focus {
  border-color: var(--ballot-blue);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.14);
  outline: 0;
}

.ballot-field-note,
.ballot-form-status,
.ballot-privacy-note,
.ballot-upload-status,
.ballot-checkout-status {
  margin: 7px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.ballot-field-note a {
  color: var(--ballot-blue);
  font-weight: 700;
}

.ballot-form-status[data-state="error"],
.ballot-upload-status[data-state="error"],
.ballot-checkout-status[data-state="error"] {
  color: #b42318;
}

.ballot-upload-status[data-state="success"],
.ballot-checkout-status[data-state="success"] {
  color: var(--ballot-green);
}

.ballot-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% - 20px);
  right: 0;
  left: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #b7c4d6;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.ballot-suggestions button {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  color: #1e293b;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ballot-suggestions button:last-child {
  border-bottom: 0;
}

.ballot-suggestions button:hover,
.ballot-suggestions button:focus-visible {
  background: #f0f5ff;
  outline: 0;
}

.ballot-suggestions strong {
  font-size: 13px;
  line-height: 1.35;
}

.ballot-suggestions span {
  color: #667085;
  font-size: 11px;
}

.ballot-cadastral-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  margin-top: 10px;
  padding: 12px 14px;
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.ballot-cadastral-note[hidden] {
  display: none;
}

.ballot-cadastral-note strong {
  grid-row: span 2;
  align-self: center;
  font-size: 27px;
  line-height: 1;
}

.ballot-cadastral-note span {
  font-size: 12px;
  font-weight: 800;
}

.ballot-cadastral-note small {
  grid-column: 1 / -1;
  color: #3f6c4e;
  font-size: 11px;
  line-height: 1.4;
}

.ballot-continue {
  width: 100%;
  min-height: 52px;
}

.ballot-preview-section {
  padding: 78px 0 84px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(246, 249, 253, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(23, 37, 84, 0.035) 31px 32px);
}

.ballot-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1fr);
  gap: 64px;
  align-items: center;
}

.ballot-preview-copy {
  display: grid;
  gap: 18px;
}

.ballot-preview-copy h2,
.ballot-preview-copy p {
  margin-bottom: 0;
}

.ballot-preview-copy > p:not(.ballot-eyebrow) {
  color: var(--ballot-muted);
  font-size: 18px;
  line-height: 1.62;
}

.ballot-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ballot-check-list li {
  position: relative;
  padding-left: 26px;
  color: #334155;
}

.ballot-check-list li::before {
  position: absolute;
  left: 0;
  color: var(--ballot-green);
  content: "✓";
  font-weight: 900;
}

.ballot-preview-actions {
  margin-top: 6px;
}

.ballot-sheet {
  position: relative;
  width: min(100%, 620px);
  min-height: 700px;
  justify-self: end;
  padding: 42px 44px 38px;
  color: #172033;
  background: var(--ballot-paper);
  border: 1px solid #cbd3de;
  border-radius: 3px;
  box-shadow: 18px 22px 0 #e8edf3, 0 28px 60px rgba(15, 23, 42, 0.19);
}

.ballot-sheet::before {
  position: absolute;
  inset: 14px;
  border: 1px solid #d7dce4;
  content: "";
  pointer-events: none;
}

.ballot-sheet-brand {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  color: #1f3f79;
  font-size: 12px;
  font-weight: 850;
}

.ballot-sheet-brand span {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
}

.ballot-sheet-kicker {
  position: relative;
  z-index: 1;
  margin: 18px 0 8px;
  color: #4a5568;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.ballot-sheet h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font: 800 25px/1.2 Georgia, serif;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.ballot-sheet-subtitle {
  position: relative;
  z-index: 1;
  margin: 6px 0 24px;
  color: #475569;
  font: 14px/1.4 Georgia, serif;
  text-align: center;
}

.ballot-sheet-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 0 0 26px;
  border-top: 1px solid #8d97a6;
  border-left: 1px solid #8d97a6;
}

.ballot-sheet-meta div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.ballot-sheet-meta dt,
.ballot-sheet-meta dd {
  min-height: 39px;
  margin: 0;
  padding: 9px 11px;
  border-right: 1px solid #8d97a6;
  border-bottom: 1px solid #8d97a6;
  font-size: 11px;
  line-height: 1.35;
}

.ballot-sheet-meta dt {
  color: #374151;
  background: #f1f3f5;
  font-weight: 800;
}

.ballot-sheet-question {
  position: relative;
  z-index: 1;
  min-height: 138px;
  padding: 18px;
  border: 1px solid #707b8b;
}

.ballot-sheet-question span {
  display: block;
  margin-bottom: 11px;
  color: #475569;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ballot-sheet-question p {
  margin: 0;
  font: 700 15px/1.5 Georgia, serif;
  overflow-wrap: anywhere;
}

.ballot-vote-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-right: 1px solid #707b8b;
  border-bottom: 1px solid #707b8b;
  border-left: 1px solid #707b8b;
}

.ballot-vote-options span {
  padding: 15px 8px;
  border-right: 1px solid #707b8b;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.ballot-vote-options span:last-child {
  border-right: 0;
}

.ballot-signature-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 50px;
  font-size: 11px;
}

.ballot-modes {
  padding: 42px 0 48px;
  color: #fff;
  background: var(--ballot-navy);
}

.ballot-modes .ballot-section-heading {
  margin-bottom: 24px;
}

.ballot-modes .ballot-eyebrow {
  color: #86efac;
}

.ballot-modes h2 {
  max-width: 850px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
}

.ballot-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ballot-mode-grid article {
  position: relative;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(203, 213, 225, 0.24);
  border-radius: 14px;
}

.ballot-mode-grid article.is-featured {
  background: rgba(21, 128, 61, 0.18);
  border-color: rgba(134, 239, 172, 0.44);
}

.ballot-mode-grid h3 {
  margin: 8px 0;
  color: #fff;
  font-size: 24px;
}

.ballot-mode-grid p {
  max-width: 470px;
  color: #cbd5e1;
  line-height: 1.55;
}

.ballot-mode-price {
  color: #86efac;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ballot-mode-grid .ballot-text-link {
  color: #fff;
}

.ballot-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1fr);
  gap: 62px;
  align-items: center;
}

.ballot-product-grid > div > p:not(.ballot-eyebrow) {
  color: var(--ballot-muted);
  font-size: 18px;
  line-height: 1.62;
}

.ballot-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.ballot-data-grid span {
  position: relative;
  padding: 13px 14px 13px 38px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}

.ballot-data-grid span::before {
  position: absolute;
  left: 14px;
  color: var(--ballot-green);
  content: "✓";
  font-weight: 900;
}

.ballot-photo-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ballot-line);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14);
}

.ballot-photo-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.ballot-photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.ballot-photo-card figcaption {
  padding: 13px 16px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.ballot-process {
  border-block: 1px solid #e5eaf1;
}

.ballot-step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ballot-step-grid li {
  min-height: 245px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--ballot-line);
  border-radius: 13px;
}

.ballot-step-grid li > span {
  display: grid;
  width: 39px;
  height: 39px;
  margin-bottom: 34px;
  place-items: center;
  color: #fff;
  background: var(--ballot-blue);
  border-radius: 50%;
  font-weight: 850;
}

.ballot-step-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.ballot-step-grid p {
  margin-bottom: 0;
  color: var(--ballot-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ballot-upload-section {
  padding-top: 82px;
}

.ballot-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(480px, 1fr);
  gap: 56px;
  align-items: start;
}

.ballot-upload-copy > p:not(.ballot-eyebrow) {
  color: var(--ballot-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ballot-register-help {
  margin-top: 28px;
  padding: 22px;
  color: #153e2a;
  background: #effcf3;
  border: 1px solid #bbf7d0;
  border-radius: 13px;
}

.ballot-register-help strong {
  font-size: 18px;
}

.ballot-register-help p {
  margin: 8px 0 10px;
  color: #315c42;
  line-height: 1.5;
}

.ballot-register-help a {
  color: #126236;
  font-weight: 800;
}

.ballot-upload-workspace {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ballot-line);
  border-radius: 17px;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.09);
}

.ballot-dropzone {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  background: #f7faff;
  border: 2px dashed #9eb3d2;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: 0.15s ease;
}

.ballot-dropzone:hover,
.ballot-dropzone.is-dragging {
  background: #eef4ff;
  border-color: var(--ballot-blue);
}

.ballot-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ballot-file-mark {
  display: grid;
  width: 64px;
  height: 72px;
  place-items: center;
  color: #14532d;
  background: var(--ballot-green-soft);
  border: 1px solid #86efac;
  border-radius: 8px 8px 13px 8px;
  font-size: 14px;
  font-weight: 900;
}

.ballot-dropzone strong {
  color: #1e293b;
  font-size: 18px;
}

.ballot-dropzone small {
  color: #667085;
}

.ballot-upload-consent,
.ballot-checkout-consent {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 16px;
  color: #58657a;
  font-size: 12px;
  line-height: 1.45;
}

.ballot-upload-consent input,
.ballot-checkout-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ballot-green);
}

.ballot-upload-consent a,
.ballot-checkout-consent a {
  color: var(--ballot-blue);
}

.ballot-upload-result {
  scroll-margin-top: 96px;
  margin-top: 42px;
  padding: 34px;
  background: #f8fafc;
  border: 1px solid var(--ballot-line);
  border-radius: 18px;
}

.ballot-upload-result[hidden] {
  display: none;
}

.ballot-result-head {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.ballot-result-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 44px);
}

.ballot-result-head > div > p:last-child {
  margin-bottom: 0;
  color: var(--ballot-muted);
}

.ballot-result-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #166534;
  background: var(--ballot-green-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.ballot-sample-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.ballot-sample-page {
  min-height: 320px;
  padding: 24px 20px;
  color: #1f2937;
  background: var(--ballot-paper);
  border: 1px solid #cfd7e2;
  border-radius: 3px;
  box-shadow: 8px 9px 0 #e4e9f0;
}

.ballot-sample-page > span {
  display: block;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.ballot-sample-page h3 {
  margin: 7px 0 18px;
  font: 800 15px/1.25 Georgia, serif;
  text-align: center;
  text-transform: uppercase;
}

.ballot-sample-page dl {
  margin: 0 0 16px;
  border-top: 1px solid #a7b0bd;
  border-left: 1px solid #a7b0bd;
}

.ballot-sample-page dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
}

.ballot-sample-page dt,
.ballot-sample-page dd {
  min-height: 32px;
  margin: 0;
  padding: 7px;
  border-right: 1px solid #a7b0bd;
  border-bottom: 1px solid #a7b0bd;
  font-size: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ballot-sample-page dt {
  background: #f0f2f5;
  font-weight: 800;
}

.ballot-sample-page p {
  min-height: 65px;
  margin: 0;
  padding: 10px;
  border: 1px solid #8e98a5;
  font: 700 10px/1.45 Georgia, serif;
}

.ballot-sample-page footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  color: #5f6b7c;
  font-size: 8px;
}

.ballot-checkout-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 36px;
  align-items: start;
  margin-top: 44px;
  padding: 30px;
  color: #fff;
  background: var(--ballot-navy);
  border-radius: 14px;
}

.ballot-checkout-preview .ballot-eyebrow {
  color: #86efac;
}

.ballot-checkout-preview h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 30px;
}

.ballot-checkout-preview > div > p:last-child {
  max-width: 560px;
  color: #cbd5e1;
  line-height: 1.55;
}

.ballot-checkout-preview form {
  display: grid;
  gap: 11px;
}

.ballot-checkout-preview form > label:first-child > span {
  color: #e2e8f0;
}

.ballot-checkout-preview .ballot-checkout-consent {
  margin-top: 0;
  color: #cbd5e1;
}

.ballot-checkout-preview .ballot-checkout-consent a {
  color: #fff;
}

.ballot-checkout-price {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  color: #172554;
  background: #f8fafc;
  border-radius: 9px;
}

.ballot-checkout-price strong {
  font-size: 26px;
}

.ballot-checkout-price span {
  color: #5b6678;
  font-size: 11px;
}

.ballot-checkout-preview .button {
  width: 100%;
}

.ballot-checkout-status {
  margin: 0;
  color: #aebbd0;
}

.ballot-benefit-grid,
.ballot-delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ballot-benefit-grid article,
.ballot-delivery-grid article {
  min-height: 250px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--ballot-line);
  border-radius: 13px;
}

.ballot-benefit-grid article > span,
.ballot-delivery-grid article > span {
  display: grid;
  width: fit-content;
  min-width: 46px;
  height: 42px;
  margin-bottom: 38px;
  padding: 0 10px;
  place-items: center;
  color: #14532d;
  background: var(--ballot-green-soft);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
}

.ballot-benefit-grid h3,
.ballot-delivery-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.ballot-benefit-grid p,
.ballot-delivery-grid p {
  margin-bottom: 0;
  color: var(--ballot-muted);
  font-size: 14px;
  line-height: 1.52;
}

.ballot-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.ballot-pricing-grid article {
  display: grid;
  align-content: start;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--ballot-line);
  border-radius: 14px;
}

.ballot-pricing-grid article.is-featured {
  border: 2px solid var(--ballot-green);
  box-shadow: 0 22px 48px rgba(21, 128, 61, 0.11);
}

.ballot-pricing-grid article > p:first-child {
  margin-bottom: 8px;
  color: var(--ballot-blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ballot-pricing-grid h3 {
  margin: 0 0 4px;
  font-size: 35px;
}

.ballot-pricing-grid article > span,
.ballot-pricing-grid article > small {
  color: var(--ballot-muted);
  font-size: 12px;
  line-height: 1.45;
}

.ballot-pricing-grid ul {
  display: grid;
  gap: 10px;
  margin: 25px 0 28px;
  padding: 0;
  list-style: none;
}

.ballot-pricing-grid li {
  position: relative;
  padding-left: 24px;
  color: #334155;
  font-size: 14px;
}

.ballot-pricing-grid li::before {
  position: absolute;
  left: 0;
  color: var(--ballot-green);
  content: "✓";
  font-weight: 900;
}

.ballot-pricing-grid .button {
  width: 100%;
  align-self: end;
  margin-top: auto;
}

.ballot-pricing-grid article > small {
  margin-top: 12px;
  text-align: center;
}

.ballot-meeting-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ballot-line);
  border-left: 1px solid var(--ballot-line);
}

.ballot-meeting-grid article {
  min-height: 190px;
  padding: 25px 21px;
  border-right: 1px solid var(--ballot-line);
  border-bottom: 1px solid var(--ballot-line);
}

.ballot-meeting-grid h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.ballot-meeting-grid p {
  margin: 0;
  color: var(--ballot-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ballot-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.8fr);
  gap: 70px;
  align-items: center;
}

.ballot-why-grid h2 {
  margin-bottom: 0;
}

.ballot-why-grid > p {
  margin-bottom: 0;
  color: var(--ballot-muted);
  font-size: 19px;
  line-height: 1.65;
}

.ballot-faq-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.5fr) minmax(0, 1fr);
  gap: 70px;
}

.ballot-faq-list {
  border-top: 1px solid var(--ballot-line);
}

.ballot-faq-list details {
  border-bottom: 1px solid var(--ballot-line);
}

.ballot-faq-list summary {
  position: relative;
  padding: 22px 46px 22px 0;
  color: #1e293b;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  list-style: none;
}

.ballot-faq-list summary::-webkit-details-marker {
  display: none;
}

.ballot-faq-list summary::after {
  position: absolute;
  top: 18px;
  right: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ballot-blue);
  content: "+";
  background: #eef4ff;
  border-radius: 50%;
  font-size: 20px;
}

.ballot-faq-list details[open] summary::after {
  content: "−";
}

.ballot-faq-list details p {
  max-width: 760px;
  margin: -5px 0 23px;
  color: var(--ballot-muted);
  line-height: 1.6;
}

.ballot-final {
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(135deg, #101c3d, #173968);
}

.ballot-final-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.ballot-final h2 {
  margin-bottom: 12px;
  color: #fff;
}

.ballot-final p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.ballot-final .button {
  min-width: 230px;
  flex: 0 0 auto;
}

.ballot-example-dialog {
  width: min(1060px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 100px rgba(2, 8, 23, 0.5);
}

.ballot-example-dialog::backdrop {
  background: rgba(2, 8, 23, 0.78);
  backdrop-filter: blur(3px);
}

.ballot-example-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
}

.ballot-example-head h2 {
  margin: 0;
  color: #172554;
  font-size: 27px;
}

.ballot-example-head button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  place-items: center;
  color: #172554;
  background: #eef2f7;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.ballot-example-dialog > img {
  display: block;
  width: 100%;
  height: auto;
}

.ballot-example-dialog > p {
  margin: 0;
  padding: 18px 24px 24px;
  color: var(--ballot-muted);
  line-height: 1.55;
}

@media (max-width: 1020px) {
  .ballot-hero-grid,
  .ballot-preview-grid,
  .ballot-product-grid,
  .ballot-upload-grid {
    grid-template-columns: 1fr;
  }

  .ballot-hero-grid,
  .ballot-preview-grid,
  .ballot-product-grid,
  .ballot-upload-grid {
    gap: 38px;
  }

  .ballot-starter {
    width: min(100%, 680px);
  }

  .ballot-sheet {
    justify-self: center;
  }

  .ballot-step-grid,
  .ballot-meeting-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ballot-benefit-grid,
  .ballot-delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .ballot-step-grid,
  .ballot-meeting-grid,
  .ballot-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ballot-pricing-grid article:last-child,
  .ballot-step-grid li:last-child,
  .ballot-meeting-grid article:last-child {
    grid-column: 1 / -1;
  }

  .ballot-checkout-preview,
  .ballot-why-grid,
  .ballot-faq-grid {
    grid-template-columns: 1fr;
  }

  .ballot-checkout-preview,
  .ballot-why-grid,
  .ballot-faq-grid {
    gap: 30px;
  }

  .ballot-final-inner {
    display: grid;
  }
}

@media (max-width: 680px) {
  .ballot-page .container {
    width: min(100% - 28px, 1180px);
  }

  .ballot-hero {
    padding: 42px 0 52px;
  }

  .ballot-hero-copy h1 {
    font-size: 38px;
  }

  .ballot-lead,
  .ballot-preview-copy > p:not(.ballot-eyebrow),
  .ballot-upload-copy > p:not(.ballot-eyebrow),
  .ballot-product-grid > div > p:not(.ballot-eyebrow) {
    font-size: 16px;
  }

  .ballot-hero-actions,
  .ballot-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ballot-hero-actions .button,
  .ballot-preview-actions .button {
    width: 100%;
  }

  .ballot-starter,
  .ballot-upload-workspace,
  .ballot-upload-result {
    padding: 22px 18px;
    border-radius: 13px;
  }

  .ballot-type-grid,
  .ballot-mode-grid,
  .ballot-data-grid,
  .ballot-step-grid,
  .ballot-meeting-grid,
  .ballot-benefit-grid,
  .ballot-delivery-grid,
  .ballot-pricing-grid,
  .ballot-sample-pages {
    grid-template-columns: 1fr;
  }

  .ballot-pricing-grid article:last-child,
  .ballot-step-grid li:last-child,
  .ballot-meeting-grid article:last-child {
    grid-column: auto;
  }

  .ballot-preview-section {
    padding: 54px 0 60px;
  }

  .ballot-sheet {
    min-height: 580px;
    padding: 32px 24px 30px;
    box-shadow: 8px 10px 0 #e8edf3, 0 20px 46px rgba(15, 23, 42, 0.18);
  }

  .ballot-sheet::before {
    inset: 9px;
  }

  .ballot-sheet h3 {
    font-size: 20px;
  }

  .ballot-sheet-meta div {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .ballot-sheet-meta dt,
  .ballot-sheet-meta dd {
    padding: 8px;
    font-size: 9px;
  }

  .ballot-vote-options span {
    padding: 12px 3px;
    font-size: 9px;
  }

  .ballot-signature-row {
    gap: 14px;
    flex-direction: column;
    margin-top: 34px;
  }

  .ballot-result-head {
    display: grid;
  }

  .ballot-result-badge {
    justify-self: start;
  }

  .ballot-dropzone {
    min-height: 210px;
    padding: 24px 16px;
  }

  .ballot-benefit-grid article,
  .ballot-delivery-grid article,
  .ballot-step-grid li,
  .ballot-meeting-grid article {
    min-height: 0;
  }

  .ballot-step-grid li > span,
  .ballot-benefit-grid article > span,
  .ballot-delivery-grid article > span {
    margin-bottom: 22px;
  }

  .ballot-final .button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 410px) {
  .ballot-hero-copy h1 {
    font-size: 34px;
  }

  .ballot-starter-head {
    display: grid;
  }

  .ballot-sheet {
    padding-inline: 18px;
  }

  .ballot-checkout-preview {
    padding: 23px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ballot-type-grid span,
  .ballot-dropzone {
    transition: none;
  }
}
