.inputmag-poll {
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 24px;
  max-width: 720px;
}

.inputmag-poll__question {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
}

.inputmag-poll__form {
  display: grid;
  gap: 12px;
}

.inputmag-poll__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #fff;
}

.inputmag-poll__submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.inputmag-poll__submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.inputmag-poll__message {
  font-size: 14px;
}

.inputmag-poll__results {
  display: grid;
  gap: 14px;
}

.inputmag-poll__chart {
  display: grid;
  gap: 12px;
}

.inputmag-poll__result-row {
  display: grid;
  gap: 8px;
}

.inputmag-poll__result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.inputmag-poll__bar-track {
  height: 14px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

.inputmag-poll__bar-fill {
  width: var(--result-width);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b8cff 0%, #20c997 100%);
  transition: width 500ms ease;
}

.inputmag-poll__result-note {
  margin: 0;
  color: #666;
  font-size: 14px;
}


.inputmag-poll__eyebrow {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.inputmag-poll__question {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
}

.inputmag-poll__option-text,
.inputmag-poll__result-label,
.inputmag-poll__result-value {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.inputmag-poll__option input[type="radio"] {
  margin: 0;
  flex: 0 0 auto;
}

.inputmag-poll__option-text {
  flex: 1 1 auto;
}

@media (max-width: 640px) {
  .inputmag-poll__eyebrow {
    font-size: 20px;
  }

  .inputmag-poll__question {
    font-size: 24px;
  }

  .inputmag-poll__option-text,
  .inputmag-poll__result-label,
  .inputmag-poll__result-value {
    font-size: 18px;
  }

  .inputmag-poll__result-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}


/* Hard isolation to avoid theme/plugin collisions */
.inputmag-poll,
.inputmag-poll * { box-sizing: border-box; }
.inputmag-poll { isolation: isolate; contain: layout style paint; position: relative; overflow: hidden; }
.inputmag-poll__inner > :not(.inputmag-poll__eyebrow):not(.inputmag-poll__question):not(.inputmag-poll__form):not(.inputmag-poll__results) { display: none !important; }
.inputmag-poll__form > *:not(input[type="hidden"]):not(.inputmag-poll__option):not(.inputmag-poll__submit):not(.inputmag-poll__message) { display: none !important; }
.inputmag-poll__option > *:not(input):not(.inputmag-poll__option-text) { display: none !important; }
.inputmag-poll__results > *:not(.inputmag-poll__chart) { display: none !important; }
.inputmag-poll__result-head > *:not(.inputmag-poll__result-label):not(.inputmag-poll__result-value) { display: none !important; }
.inputmag-poll__option-text, .inputmag-poll__result-label, .inputmag-poll__result-value { display: block; }


.inputmag-poll__inner {
  transition: opacity 180ms ease, transform 180ms ease;
}

.inputmag-poll.is-transitioning .inputmag-poll__inner {
  opacity: 0.25;
  transform: translateY(4px);
}

.inputmag-poll__results {
  opacity: 1;
  transform: translateY(0);
}

.inputmag-poll__results.is-entering {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.inputmag-poll__results.is-entering.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.inputmag-poll__bar-fill {
  will-change: width;
}

@media (prefers-reduced-motion: reduce) {
  .inputmag-poll__inner,
  .inputmag-poll__results.is-entering,
  .inputmag-poll__bar-fill {
    transition: none !important;
  }
}

.inputmag-poll__eyebrow {
  margin: 0 0 14px;
}

.inputmag-poll__eyebrow-logo {
  display: block;
  width: min(100%, 520px);
  height: auto;
}

@media (max-width: 640px) {
  .inputmag-poll__eyebrow-logo {
    width: min(100%, 360px);
  }
}
