body.spq-modal-open {
  overflow: hidden !important;
}

.spq,
.spq * {
  box-sizing: border-box;
}

.spq {
  --spq-purple: #7f00ff;
  --spq-purple-dark: #6a00d6;
  --spq-purple-soft: #f3e6ff;
  --spq-surface: #faf5ff;
  --spq-border: #eee6f7;
  --spq-text: #222;
  --spq-muted: #68606e;
  font-family: "Open Sans", Arial, sans-serif;
}

.spq__launcher[hidden] {
  display: none !important;
}

.spq__launcher {
  position: fixed;
  right: 0;
  bottom: calc(var(--spq-launcher-bottom, 0px) + env(safe-area-inset-bottom, 0px));
  left: 0;
  z-index: 2147482000;
  display: flex;
  min-height: 50px;
  background: #fff200;
  color: #151515;
  box-shadow: 0 -3px 16px rgba(31, 25, 0, 0.14);
}

.spq__launcher-open {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  padding: 6px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.spq__launcher-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-right: 13px;
}

.spq__launcher-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.spq__launcher-kicker {
  margin-bottom: 1px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.spq__launcher-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.spq__launcher-close {
  display: inline-flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: #b6a900;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.spq__launcher-open:hover,
.spq__launcher-open:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.spq__launcher-close:hover,
.spq__launcher-close:focus-visible {
  background: #9f9300;
  color: #fff;
}

.spq__launcher-open:focus-visible,
.spq__launcher-close:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(127, 0, 255, 0.35);
  outline-offset: -3px;
}

.spq__overlay[hidden] {
  display: none !important;
}

.spq__overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 17, 31, 0.68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: spq-fade-in 0.2s ease-out;
}

.spq__dialog {
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: var(--spq-surface);
  box-shadow: 0 28px 80px rgba(24, 10, 38, 0.28);
  color: var(--spq-text);
  animation: spq-dialog-in 0.24s ease-out;
}

.spq__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px;
}

.spq__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--spq-text);
  font-family: Inter, "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.spq__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--spq-purple-soft);
  color: var(--spq-purple);
}

.spq__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #635a69;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.spq__close:hover,
.spq__close:focus-visible {
  background: #fff;
  color: var(--spq-purple);
}

.spq__close:focus-visible,
.spq__button:focus-visible,
.spq__field-input:focus-visible,
.spq__other-input:focus-visible {
  outline: 3px solid rgba(127, 0, 255, 0.18);
  outline-offset: 2px;
}

.spq__progress {
  flex: 0 0 auto;
  padding: 0 26px 18px;
}

.spq__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #81768a;
  font-family: Inter, "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.spq__progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ddf2;
}

.spq__progress-value {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--spq-purple), #bb89ee);
  transition: width 0.3s ease;
}

.spq__main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 26px 26px;
  overscroll-behavior: contain;
}

.spq__loading {
  padding: 64px 20px;
  text-align: center;
  color: var(--spq-muted);
}

.spq__question-card,
.spq__contact-card,
.spq__success-card {
  padding: 34px;
  border: 1px solid var(--spq-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(54, 25, 77, 0.06);
}

.spq__eyebrow {
  margin-bottom: 10px;
  color: var(--spq-purple);
  font-family: Inter, "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spq__title {
  margin: 0 0 12px !important;
  color: var(--spq-text) !important;
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  text-align: left !important;
}

.spq__hint {
  margin: 0 0 24px;
  color: var(--spq-muted);
  font-size: 14px;
  line-height: 1.6;
}

.spq__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spq__option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.spq__option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.spq__option-content {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px 18px;
  border: 2px solid var(--spq-border);
  border-radius: 12px;
  background: #fff;
  color: #403746;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.spq__option-content::before {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: 13px;
  border: 2px solid #d7cddf;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.spq__option-input[type="checkbox"] + .spq__option-content::before {
  border-radius: 6px;
}

.spq__option:hover .spq__option-content {
  border-color: #d8b8f5;
  box-shadow: 0 5px 16px rgba(127, 0, 255, 0.08);
  transform: translateY(-1px);
}

.spq__option-input:focus-visible + .spq__option-content {
  outline: 3px solid rgba(127, 0, 255, 0.18);
  outline-offset: 2px;
}

.spq__option-input:checked + .spq__option-content {
  border-color: var(--spq-purple);
  background: #fbf7ff;
  box-shadow: 0 5px 18px rgba(127, 0, 255, 0.1);
  color: #2f2634;
}

.spq__option-input:checked + .spq__option-content::before {
  border-color: var(--spq-purple);
  background: var(--spq-purple);
  box-shadow: inset 0 0 0 5px #fff;
}

.spq__option-input[type="checkbox"]:checked + .spq__option-content::before {
  box-shadow: inset 0 0 0 4px #fff;
}

.spq__other {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.spq__other-label {
  display: block;
  margin-bottom: 8px;
  color: #514858;
  font-size: 13px;
  font-weight: 600;
}

.spq__other-input,
.spq__field-input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #ded4e6;
  border-radius: 10px;
  background: #fff;
  color: var(--spq-text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.spq__other-input:focus,
.spq__field-input:focus {
  border-color: var(--spq-purple);
  box-shadow: 0 0 0 3px rgba(127, 0, 255, 0.08);
}

.spq__field-textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.5;
}

.spq__contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.spq__field {
  min-width: 0;
}

.spq__field--wide {
  grid-column: 1 / -1;
}

.spq__field-label {
  display: block;
  margin-bottom: 8px;
  color: #403746;
  font-size: 13px;
  font-weight: 700;
}

.spq__field-note {
  color: #8d8294;
  font-size: 12px;
  font-weight: 400;
}

.spq__consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  color: #5d5363;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.spq__consent input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--spq-purple);
}

.spq__consent a {
  color: inherit;
  text-decoration-color: rgba(127, 0, 255, 0.4);
  text-underline-offset: 2px;
}

.spq__consent a:hover,
.spq__consent a:focus-visible {
  color: var(--spq-purple);
}

.spq__consent strong {
  color: #c62463;
}

.spq__error {
  min-height: 20px;
  margin-top: 14px;
  color: #c62463;
  font-size: 13px;
  line-height: 1.45;
}

.spq__error:empty {
  display: none;
}

.spq__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 26px 22px;
  border-top: 1px solid rgba(222, 210, 232, 0.8);
  background: #faf5ff;
}

.spq__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 8px;
  font-family: Inter, "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.spq__button--primary {
  min-width: 150px;
  border: 1px solid var(--spq-purple);
  background: var(--spq-purple);
  color: #fff;
}

.spq__button--primary:hover:not(:disabled) {
  border-color: var(--spq-purple-dark);
  background: var(--spq-purple-dark);
  transform: translateY(-1px);
}

.spq__button--secondary {
  border: 1px solid #d9cee2;
  background: #fff;
  color: #4f4655;
}

.spq__button--secondary:hover:not(:disabled) {
  border-color: #c7acd9;
  color: var(--spq-purple);
}

.spq__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.spq__success-card {
  padding-top: 52px;
  padding-bottom: 52px;
  text-align: center;
}

.spq__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--spq-purple-soft);
  color: var(--spq-purple);
}

.spq__success-card .spq__title {
  text-align: center !important;
}

.spq__success-card p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--spq-muted);
  font-size: 15px;
  line-height: 1.65;
}

.spq__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.spq ul li::before,
.spq ul li::marker {
  display: none !important;
  content: none !important;
}

@keyframes spq-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spq-dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  .spq__launcher,
  .spq__launcher-open,
  .spq__launcher-close {
    min-height: 56px;
  }

  .spq__launcher-open {
    padding: 6px 14px;
  }

  .spq__launcher-icon {
    margin-right: 11px;
  }

  .spq__launcher-title {
    font-size: 11px;
  }

  .spq__launcher-close {
    flex-basis: 54px;
    width: 54px;
  }

  .spq__overlay {
    align-items: flex-end;
    padding: 0;
  }

  .spq__dialog {
    width: 100%;
    max-height: 96vh;
    border-radius: 18px 18px 0 0;
  }

  .spq__header {
    padding: 14px 16px 10px;
  }

  .spq__progress {
    padding: 0 18px 14px;
  }

  .spq__main {
    padding: 4px 16px 20px;
  }

  .spq__question-card,
  .spq__contact-card,
  .spq__success-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .spq__title {
    font-size: 25px !important;
  }

  .spq__options,
  .spq__contact-grid {
    grid-template-columns: 1fr;
  }

  .spq__option-content {
    min-height: 66px;
    padding: 14px;
    font-size: 14px;
  }

  .spq__footer {
    padding: 14px 16px 18px;
  }

  .spq__button {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 15px;
  }
}

@media (max-width: 420px) {
  .spq__brand span:last-child {
    display: none;
  }

  .spq__footer {
    gap: 9px;
  }

  .spq__button {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spq__overlay,
  .spq__dialog {
    animation: none;
  }

  .spq__progress-value,
  .spq__option-content,
  .spq__button,
  .spq__close,
  .spq__launcher-close {
    transition: none;
  }
}
