:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #1f5eff;
  --primary-dark: #1749c9;
  --success-bg: #eefbf3;
  --success-text: #247a45;
  --shadow: 0 14px 40px rgba(20, 32, 60, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.page {
  width: min(100% - 28px, 680px);
  margin: 0 auto;
  padding: 28px 0 36px;
}

.brand {
  text-align: center;
  margin-bottom: 22px;
}

.logo {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
}

.tagline {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.survey-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.survey-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}

h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.7px;
}

.intro {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.trust-row {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 13px;
  font-weight: 650;
}

form {
  margin-top: 8px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.mobile-input {
  display: flex;
  align-items: center;
  border: 1px solid #cfd5df;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mobile-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.08);
}

.mobile-input span {
  padding: 15px 14px;
  white-space: nowrap;
  border-right: 1px solid var(--line);
  background: #fafbfc;
  font-weight: 700;
}

.mobile-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 14px;
  color: var(--text);
  background: transparent;
}

.mobile-input input::placeholder {
  color: #98a2b3;
}

.primary-btn {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.08s ease;
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.primary-btn:active {
  transform: translateY(1px);
}

.privacy-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.transparency {
  margin-top: 18px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.transparency strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.transparency p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.text-btn {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 750;
  cursor: pointer;
}

footer {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 20px, 680px);
    padding-top: 18px;
  }

  .survey-card {
    padding: 20px;
    border-radius: 18px;
  }

  .transparency {
    padding: 18px;
  }

  .logo {
    font-size: 30px;
  }

  h1 {
    font-size: 29px;
  }
}
#otpSection,
#surveyDetails {
  margin-top: 20px;
}

#otpInput,
#surveyDetails select {
  width: 100%;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #cfd5df;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

#otpInput:focus,
#surveyDetails select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.08);
}

.verified-banner {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--success-bg);
  color: var(--success-text);
  font-weight: 750;
}

.vote-heading {
  margin: 6px 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.candidate-options {
  display: grid;
  gap: 10px;
}

.candidate-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
}

.candidate-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.07);
}

.candidate-card input {
  width: 18px;
  height: 18px;
}
.results-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.results-header h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.total-votes {
  min-width: 92px;
  text-align: right;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.total-votes span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}

.your-vote {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 14px;
}

.result-row {
  margin-bottom: 18px;
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 15px;
}

.result-top span {
  font-weight: 800;
}

.result-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #edf0f5;
  overflow: hidden;
}

.result-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.5s ease;
}

.result-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.development-note {
  margin-top: 20px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff8e8;
  color: #8a5b00;
  font-size: 12px;
  line-height: 1.5;
}

.share-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.share-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  background: #fff;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 520px) {
  .results-header {
    display: block;
  }

  .total-votes {
    margin-top: 12px;
    text-align: left;
  }

  .share-row {
    grid-template-columns: 1fr;
  }
}
.blockchain-proof {
  margin-top: 8px;
  font-size: 12px;
}

.blockchain-proof span {
  color: var(--muted);
}

.blockchain-proof a {
  margin-left: 4px;
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.blockchain-proof a:hover {
  text-decoration: underline;
}
.demographic-section {
  margin-top: 28px;
}

.demographic-title {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 800;
}

.age-chart {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-height: 230px;
  padding: 16px 8px 0;
  border-bottom: 1px solid var(--line);
}

.age-group {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.age-bars {
  height: 180px;
  display: flex;
  align-items: flex-end;

  /* important: no gap between the 3 bars */
  gap: 0;
}

.age-bar {
  flex: 1;
  min-height: 2px;
  transition: height 0.35s ease;
}

.modi-bar {
  background: #f59e0b;
}

.rahul-bar {
  background: #2563eb;
}

.other-bar {
  background: #dc2626;
}

.age-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 750;
}

.age-sample {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

@media (max-width: 520px) {
  .age-chart {
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .age-label {
    font-size: 10px;
  }
}
.state-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.state-group {
  width: 100%;
}

.state-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 13px;
}

.state-heading span {
  font-size: 10px;
  color: var(--muted);
}

.state-bars {
  display: flex;
  flex-direction: column;

  /* no gap between candidate rows */
  gap: 0;
}

.state-bar-row {
  display: grid;
  grid-template-columns: 52px 1fr 45px;
  align-items: center;
  min-height: 18px;
}

.state-candidate {
  padding-right: 7px;
  font-size: 10px;
  color: var(--muted);
}

.state-bar-track {
  height: 16px;
  overflow: hidden;
}

.state-bar {
  height: 100%;
  min-width: 2px;
  transition: width 0.35s ease;
}

.state-percent {
  padding-left: 7px;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}
.result-trust-note {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfc;
}

.result-trust-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.result-trust-note p {
  margin: 6px 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.hive-info-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.hive-info-link:hover {
  border-color: #e31337;
  background: #fffafa;
}

.hive-info-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.hive-info-link span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.hive-info-link strong {
  display: block;
  font-size: 14px;
}

.hive-info-link small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.hive-arrow {
  color: #e31337;
  font-size: 18px;
  font-weight: 800;
}
.trust-links {
  margin-top: 12px;
}

.hive-mini-link {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.hive-mini-link:hover {
  border-color: #e31337;
}

.hive-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #e31337;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.hive-mini-link > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.hive-mini-link strong {
  display: block;
  font-size: 13px;
}

.hive-mini-link small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.hive-arrow {
  color: #e31337;
  font-weight: 800;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(100%, 620px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
}

.modal-card h2 {
  margin: 0 40px 12px 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.works-list {
  display: grid;
  gap: 14px;
  padding-left: 22px;
  line-height: 1.5;
}

.modal-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.logo-hindi {
  font-size: 19px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.2px;
  color: var(--text);
}

.tricolor-line {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 120px;
  height: 4px;
  margin: 10px auto 0;
  overflow: hidden;
  border-radius: 999px;
}

.tricolor-line .saffron {
  background: #ff9933;
}

.tricolor-line .white {
  background: #ffffff;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.tricolor-line .green {
  background: #138808;
}
.survey-card {
  position: relative;
  overflow: hidden;
}

.survey-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background:
    linear-gradient(
      90deg,
      #ff9933 0%,
      #ff9933 33.33%,
      #ffffff 33.33%,
      #ffffff 66.66%,
      #138808 66.66%,
      #138808 100%
    );
}
.survey-card {
  padding-top: 31px;
}