.fh6-survey {
  --fh6-text: #d7d7d7;
  --fh6-muted: #9d9d9d;
  --fh6-accent: #ff0050;
  --fh6-track: #252525;
  max-width: 520px;
  color: var(--fh6-text);
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fh6-survey__form {
  display: grid;
  gap: 22px;
}

.fh6-survey__fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fh6-survey__fieldset legend {
  margin: 0 0 4px;
  color: var(--fh6-muted);
  font-weight: 700;
}

.fh6-survey__fieldset legend span {
  color: var(--fh6-accent);
}

.fh6-survey__choice {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fh6-muted);
  cursor: pointer;
}

.fh6-survey__choice input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #1683ff;
}

.fh6-survey__submit {
  justify-self: start;
  min-width: 126px;
  min-height: 41px;
  padding: 0 22px;
  border: 1px solid var(--fh6-accent);
  border-radius: 4px;
  color: #fff;
  background: transparent;
  font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: pointer;
}

.fh6-survey__submit:hover,
.fh6-survey__submit:focus-visible {
  background: rgba(255, 0, 80, 0.14);
}

.fh6-survey__submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.fh6-survey__message {
  min-height: 1.4em;
  margin: -10px 0 0;
  color: var(--fh6-muted);
}

.fh6-survey__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fh6-survey__results {
  margin-top: 28px;
}

.fh6-survey-results {
  display: grid;
  gap: 14px;
}

.fh6-survey-results__total {
  margin: 0;
  color: var(--fh6-text);
  font-weight: 700;
}

.fh6-survey-results__bars {
  display: grid;
  gap: 12px;
}

.fh6-survey-results__row {
  display: grid;
  gap: 6px;
}

.fh6-survey-results__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--fh6-muted);
  font-size: 14px;
}

.fh6-survey-results__meta span:last-child {
  white-space: nowrap;
}

.fh6-survey-results__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--fh6-track);
}

.fh6-survey-results__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fh6-accent);
}

.fh6-survey-modal[hidden] {
  display: none;
}

.fh6-survey-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.fh6-survey-modal__panel {
  position: relative;
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f4f4f4;
  background: #0b0b0b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.fh6-survey-modal .fh6-survey-modal__panel h2,
.fh6-survey-modal .fh6-survey-modal__panel h2#fh6-survey-modal-title {
  margin: 0 40px 8px 0;
  color: #fff;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.3 !important;
  letter-spacing: 0;
  text-transform: none;
}

.fh6-survey-modal__panel p {
  margin: 0 0 20px;
  color: #b8b8b8;
}

.fh6-survey-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.fh6-survey-modal__close:hover,
.fh6-survey-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.fh6-survey-modal__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fh6-survey__share {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fh6-survey__share-heading {
  margin: 0 0 12px;
  color: var(--fh6-muted);
  font-size: 14px;
}

.fh6-survey__share .fh6-survey-modal__actions {
  gap: 8px;
}

.fh6-survey-share[hidden] {
  display: none;
}

.fh6-survey-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.fh6-survey-share,
.fh6-survey-share:visited,
.fh6-survey-share:hover,
.fh6-survey-share:focus-visible,
.fh6-survey-share span,
.fh6-survey-share:hover span,
.fh6-survey-share:focus-visible span,
.fh6-survey-share svg,
.fh6-survey-share:hover svg,
.fh6-survey-share:focus-visible svg {
  color: #fff;
  fill: currentColor;
}

.fh6-survey-share:hover,
.fh6-survey-share:focus-visible {
  filter: none;
  text-decoration: none;
}

.fh6-survey-share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.fh6-survey-share--facebook {
  background: #1877f2;
}

.fh6-survey-share--facebook:hover,
.fh6-survey-share--facebook:focus-visible {
  background: #0f66d8;
}

.fh6-survey-share--x {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.fh6-survey-share--x:hover,
.fh6-survey-share--x:focus-visible {
  background: #1a1a1a;
}

.fh6-survey-share--threads {
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.fh6-survey-share--threads:hover,
.fh6-survey-share--threads:focus-visible {
  background: #3a3a3a;
}

.fh6-survey .fh6-survey-share--native,
.fh6-survey button.fh6-survey-share--native {
  background: var(--fh6-accent) !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #fff !important;
  font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 10px 14px !important;
  width: auto;
}

.fh6-survey .fh6-survey-share--native:hover,
.fh6-survey .fh6-survey-share--native:focus-visible,
.fh6-survey button.fh6-survey-share--native:hover,
.fh6-survey button.fh6-survey-share--native:focus-visible {
  background: #d6004a !important;
  color: #fff !important;
}

@media (max-width: 420px) {
  .fh6-survey-results__meta {
    display: grid;
    gap: 2px;
  }

  .fh6-survey-modal__panel {
    padding: 24px;
  }

  .fh6-survey-modal__actions {
    grid-template-columns: 1fr;
  }
}
