.spp-poll {
  max-width: 500px;
  margin: 20px auto;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.spp-bar {
  background-color: #eee;
  border-radius: 20px;
  height: 20px;
  margin-top: 6px;
  overflow: hidden;
  position: relative;
}

.spp-fill {
  background: linear-gradient(to right, #4caf50, #4caf50);
  height: 100%;
  width: 0;
  border-radius: 20px;
  transition: width 0.6s ease-in-out;
}

.spp-fill::after {
  content: attr(data-percent) "%";
  color: #fff;
  font-size: 12px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.spp-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.spp-question {
  margin-bottom: 12px;
  font-weight: 500;
}

.spp-submit {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.spp-submit:hover {
  background-color: #005f8d;
}

.spp-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 480px) {
  .spp-poll {
    padding: 10px;
  }
  .spp-title {
    font-size: 16px;
  }
}