:root {
  --bg-deep: #0f3d29;
  --bg-red: #bf1f2f;
  --bg-light: #f6f4ef;
  --card: #fffdf9;
  --ink: #102015;
  --muted: #3b4e41;
  --accent-green: #0e7b42;
  --accent-red: #c81f35;
  --accent-gold: #d6ac3e;
  --bnp: #c51f32;
  --ncp: #1a6fca;
  --jamaat: #18854f;
  --mixed: #6b5841;
  --border: #d9d9cf;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Tiro Bangla", serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.18) 0, transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.15) 0, transparent 30%),
    linear-gradient(120deg, var(--bg-green, #0f6338) 0%, #177346 28%, #e7efe8 48%, #f5f1ea 52%, #d53043 74%, var(--bg-red) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  left: -4vw;
  bottom: -2vh;
  width: 72vw;
  height: 42vh;
  background: url("assets/crowd-ai.svg") left bottom / contain no-repeat;
  opacity: 0.24;
}

body::after {
  right: -2vw;
  top: 12vh;
  width: 34vw;
  height: 36vh;
  background: url("assets/ballot-ai.svg") right top / contain no-repeat;
  opacity: 0.27;
}

.container {
  width: min(1040px, 92vw);
  margin: 2rem auto 3.2rem;
}

.profile-container {
  width: min(820px, 92vw);
}

.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "VoterPulse 2026";
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-red));
  color: #fff;
  padding: 0.35rem 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-left-radius: 12px;
}

.hero h1 {
  margin: 0.25rem 0 0.45rem;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.16;
  color: #10281a;
}

.eyebrow,
.subtitle,
.progress-text,
.profile-form label,
.option,
.btn-primary,
.btn-secondary,
.lang-select,
.pill,
.profile-chip {
  font-family: "Space Grotesk", sans-serif;
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #244833;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.lang-select {
  border: 1px solid #c2d0c4;
  border-radius: 9px;
  padding: 0.35rem 0.55rem;
  background: #fff;
  color: #1b3f2a;
  font-size: 0.86rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.pill {
  font-size: 0.78rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.jamaat {
  background: var(--jamaat);
}

.bnp {
  background: var(--bnp);
}

.ncp {
  background: var(--ncp);
}

.mixed {
  background: var(--mixed);
}

.controls,
.profile-card,
.notice-card,
.result,
.question {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}


.notice-card {
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.notice-title {
  margin: 0 0 0.4rem;
  font-weight: 700;
  color: #113823;
  font-family: "Space Grotesk", sans-serif;
}

.notice-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #1e3f2c;
  line-height: 1.45;
}

.notice-list li {
  margin: 0.25rem 0;
}

.controls {
  margin: 1.2rem 0;
  border-radius: 14px;
  padding: 0.9rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.control-buttons {
  display: flex;
  gap: 0.55rem;
}

.progress-wrap {
  width: min(460px, 58vw);
  height: 10px;
  border-radius: 20px;
  background: #e4e8e2;
  overflow: hidden;
  border: 1px solid #cfdbcf;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d7253d 0%, var(--accent-gold) 45%, #1f8a4f 100%);
  transition: width 0.25s ease;
}

.btn-primary,
.btn-secondary {
  border-radius: 10px;
  padding: 0.72rem 1.06rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 42px;
}

.btn-primary {
  border: 0;
  background: linear-gradient(90deg, #0f7b44 0%, #148a51 40%, #cc2438 100%);
  color: #fff;
}

.btn-secondary {
  border: 1px solid #b8cdc0;
  background: #fff;
  color: #12412a;
  text-decoration: none;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.result {
  margin: 1rem 0 1.25rem;
  border-radius: 16px;
  padding: 1rem;
}

.result h2 {
  margin: 0 0 0.4rem;
  color: #103a25;
}

.profile-card {
  margin-top: 1.2rem;
  border-radius: 14px;
  padding: 1rem;
}

.profile-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #21422f;
}

.profile-form input,
.profile-form select {
  border: 1px solid #c0d1c2;
  border-radius: 8px;
  padding: 0.56rem 0.64rem;
  font-family: "Tiro Bangla", serif;
  background: #fff;
}

.profile-form button {
  grid-column: 1 / -1;
  margin-top: 0.2rem;
}

.profile-chip {
  margin-top: 0.82rem;
  border: 1px solid #cce0d1;
  border-radius: 10px;
  background: linear-gradient(90deg, #f3fff7, #fff4f6);
  padding: 0.5rem 0.7rem;
  font-size: 0.84rem;
  color: #18472f;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.score-item {
  border: 1px solid #d3ddd1;
  background: #fdfefc;
  border-radius: 10px;
  padding: 0.55rem;
}

.question-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.question {
  border-radius: 12px;
  padding: 0.8rem;
  animation: rise 0.24s ease both;
}

.question-title {
  margin: 0 0 0.55rem;
  font-size: 1.03rem;
  line-height: 1.45;
}

.answer-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.option {
  border: 1px solid #bfd1c0;
  border-radius: 9px;
  background: #fff;
  padding: 0.5rem 0.8rem;
  font-size: 0.83rem;
  color: #1d3d2a;
  min-height: 40px;
}

.option.active {
  background: linear-gradient(90deg, #0f7a43 0%, #c72439 100%);
  border-color: transparent;
  color: #fff;
}

.hidden {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .container,
  .profile-container {
    width: 94vw;
    margin-top: 1.2rem;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .hero::before {
    font-size: 0.62rem;
    padding: 0.28rem 0.58rem;
  }

  .controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .progress-wrap {
    width: 100%;
  }

  #progressText {
    margin: 0 0 0.35rem;
  }

  .score-grid,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .control-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .control-buttons .btn-primary,
  .control-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
  }

  .subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .legend {
    gap: 0.4rem;
  }

  .pill {
    font-size: 0.74rem;
    padding: 0.3rem 0.62rem;
  }

  .profile-card,
  .notice-card,
  .result,
  .question,
  .controls {
    border-radius: 12px;
  }

  .question {
    padding: 0.72rem;
  }

  .question-title {
    font-size: 0.98rem;
  }

  .answer-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .option {
    width: 100%;
    font-size: 0.78rem;
    padding: 0.48rem 0.3rem;
  }

  .profile-chip {
    font-size: 0.78rem;
    line-height: 1.4;
    word-break: break-word;
  }
}

@media (max-width: 430px) {
  .top-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .lang-select {
    width: 100%;
  }

  body::before {
    width: 90vw;
    height: 26vh;
    opacity: 0.18;
  }

  body::after {
    width: 42vw;
    height: 22vh;
    top: 10vh;
    opacity: 0.2;
  }
  .hero {
    padding: 0.9rem 0.75rem 0.95rem;
  }

  .container,
  .profile-container {
    width: 95vw;
    margin-top: 0.9rem;
    margin-bottom: 1.3rem;
  }

  .question-list {
    gap: 0.55rem;
  }

  .notice-card {
    margin-top: 0.8rem;
    padding: 0.72rem 0.75rem;
  }

  .notice-list {
    padding-left: 1rem;
  }

  .answer-row {
    grid-template-columns: 1fr;
  }

  .option {
    font-size: 0.85rem;
  }

  .profile-form input,
  .profile-form select {
    min-height: 42px;
  }
}


.suggestion-wrap {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px dashed #c8d8c9;
}

.suggestion-title {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #13412a;
}

.suggestion-text {
  width: 100%;
  border: 1px solid #b9cbbd;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  resize: vertical;
  font-family: "Tiro Bangla", serif;
  background: #fff;
}

.suggestion-actions {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.suggestion-status {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  color: #1f5a3d;
}
