.wdq-quiz {
  --wdq-bg: #0f1115;
  --wdq-border: rgba(255, 255, 255, 0.12);
  --wdq-muted: rgba(255, 255, 255, 0.72);
  /* Fallback, якщо інлайн-стилі без RGB (оновлений плагін завжди задає обидва) */
  --wdq-primary-rgb: 47, 183, 138;
  width: 100%;
  padding: 48px 0;
  background: transparent;
  color: var(--wdq-text-color);
  font-weight: 400;
}

.wdq-quiz *,
.wdq-quiz *::before,
.wdq-quiz *::after {
  box-sizing: border-box;
}

.wdq-quiz * {
  font-weight: 400 !important;
}

.wdq-quiz .wdq-container {
  width: 100%;
  margin: 0 auto;
}

.wdq-quiz .wdq__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wdq-quiz .wdq-title {
  margin: 0;
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--wdq-text-color);
  text-wrap: balance;
}

.wdq-quiz .wdq-title .wdq-accent {
  color: var(--wdq-primary-color);
  font-weight: 400;
}

.wdq-quiz .wdq-subtitle {
  margin: 0;
  font-size: clamp(.92rem, 1.05vw, 1.08rem);
  line-height: 1.35;
  font-weight: 400;
  color: var(--wdq-button-color);
  max-width: none;
  text-wrap: pretty;
}

.wdq-quiz .wdq__form {
  color: var(--wdq-text-color);
}

.wdq-quiz .wdq__wrap {
  display: flex;
  gap: 24px;
  align-items: center;
}

.wdq-quiz .wdq__holder {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  width: auto;
  padding: 0;
  position: relative;
}

.wdq-quiz .wdq__progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.wdq-quiz .wdq__progress-wrap > span {
  font-size: 14px;
  white-space: nowrap;
  font-family: inherit;
}

.wdq-quiz .wdq__progress-wrap .step {
  color: var(--wdq-primary-color);
}

.wdq-quiz .wdq__progress {
  display: flex;
  height: 32px;
  min-height: 32px;
  position: relative;
  flex: 1;
  background: var(--wdq-secondary-color);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-left: 20px;
  overflow: hidden;
}

.wdq-quiz .wdq__progress-inner {
  display: block;
  height: 90%;
  width: 0;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 40px;
  background: linear-gradient(90deg, var(--wdq-primary-color) 0%, var(--wdq-button-color) 100%);
  transition: width 0.55s cubic-bezier(.22,.61,.36,1);
  position: absolute;
  overflow: hidden;
  will-change: width;
  z-index: 1;
}

.wdq-quiz .wdq__progress-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 220%;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.22) 0 14px,
    rgba(255, 255, 255, 0) 14px 28px
  );
  animation: wdq-progress-stripes-slide 1.9s linear infinite;
}

.wdq-quiz .wdq__progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  z-index: 2;
  pointer-events: none;
}

.wdq-quiz .wdq__steps {
  margin: 0 0 30px;
}

.wdq-quiz .wdq__step {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Більше 2 варіантів: завжди 2 колонки (2 рядки при 4 опціях), трохи щільніше за крок із двома картками */
.wdq-quiz .wdq__step--many-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.wdq-quiz .wdq__step--many-options .wdq__card figure {
  margin-bottom: 0.75rem;
}

.wdq-quiz .wdq__step--many-options .wdq__card img {
  height: 216px;
}

.wdq-quiz .wdq__step--last {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--wdq-border);
  border-radius: 20px;
  padding: 28px 24px;
}

.wdq-quiz .wdq__steps > .wdq__step-holder:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.wdq-quiz .wdq__step-title {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 1.7vw, 1.75rem);
  line-height: 1.2;
  font-weight: 300;
}

.wdq-quiz .wdq__step-holder {
  position: relative;
}

.wdq-quiz .wdq__card label {
  display: block;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  transition: color .2s ease;
}

.wdq-quiz .wdq__card:has(input:checked) label {
  color: var(--wdq-primary-color);
  background: transparent;
}

.wdq-quiz .wdq__card--no-image label {
  border: 0;
  box-shadow: inset 0 0 0 1px var(--wdq-border);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 16px;
}

.wdq-quiz .wdq__card--no-image:has(input:checked) label {
  box-shadow: inset 0 0 0 1px var(--wdq-primary-color);
  background: rgba(var(--wdq-primary-rgb), 0.08);
}

.wdq-quiz .wdq__card figure {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 3px solid transparent;
}

.wdq-quiz .wdq__card:has(input:checked) figure {
  border-color: var(--wdq-primary-color);
}

.wdq-quiz .wdq__card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  image-rendering: auto;
}

.wdq-quiz .wdq__card-input {
  display: flex;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 300;
  text-align: center;
}

.wdq-quiz .wdq__card-input input[type="radio"] {
  display: none;
}

.wdq-quiz .wdq__variants {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.wdq-quiz .wdq__variants .title {
  grid-column: 1 / -1;
}

.wdq-quiz .wdq__variants label {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: all .3s ease;
}

.wdq-quiz .wdq__variants label svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wdq-quiz .wdq__variants label svg path {
  transition: fill .25s ease;
}

.wdq-quiz .wdq__variants input {
  display: none;
}

.wdq-quiz .wdq__call-wrapper--telegram:has(input:checked),
.wdq-quiz .wdq__call-wrapper--viber:has(input:checked),
.wdq-quiz .wdq__call-wrapper--whatsapp:has(input:checked),
.wdq-quiz .wdq__call-wrapper--call:has(input:checked) {
  border-color: var(--wdq-primary-color);
  background: rgba(var(--wdq-primary-rgb), 0.25);
}

.wdq-quiz .wdq__call-wrapper--call {
  background: rgba(var(--wdq-primary-rgb), 0.14);
  border-color: var(--wdq-primary-color);
  color: var(--wdq-primary-color);
}
.wdq-quiz .wdq__call-wrapper--call svg path { fill: var(--wdq-primary-color); }

.wdq-quiz .wdq__call-wrapper--call:hover {
  background: rgba(var(--wdq-primary-rgb), 0.26);
  border-color: var(--wdq-primary-color);
}

.wdq-quiz .wdq__call-wrapper--viber {
  background: rgba(115, 96, 242, 0.14);
  border-color: rgba(115, 96, 242, 0.45);
  color: #8b7dff;
}
.wdq-quiz .wdq__call-wrapper--viber svg path { fill: #8b7dff; }

.wdq-quiz .wdq__call-wrapper--viber:hover {
  background: rgba(115, 96, 242, 0.22);
  border-color: rgba(115, 96, 242, 0.75);
}

.wdq-quiz .wdq__call-wrapper--telegram {
  background: rgba(43, 153, 255, 0.14);
  border-color: rgba(43, 153, 255, 0.45);
  color: #35a8ff;
}
.wdq-quiz .wdq__call-wrapper--telegram svg path { fill: #35a8ff; }

.wdq-quiz .wdq__call-wrapper--telegram:hover {
  background: rgba(43, 153, 255, 0.22);
  border-color: rgba(43, 153, 255, 0.75);
}

.wdq-quiz .wdq__call-wrapper--whatsapp {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.45);
  color: #2dd46b;
}
.wdq-quiz .wdq__call-wrapper--whatsapp svg path { fill: #2dd46b; }

.wdq-quiz .wdq__call-wrapper--whatsapp:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: rgba(37, 211, 102, 0.75);
}

.wdq-quiz .wdq__call-wrapper--call:has(input:checked) {
  background: rgba(var(--wdq-primary-rgb), 0.25);
  border-color: var(--wdq-primary-color);
  color: var(--wdq-primary-color);
  box-shadow: 0 10px 24px rgba(var(--wdq-primary-rgb), 0.3);
}
.wdq-quiz .wdq__call-wrapper--call:has(input:checked) svg path { fill: var(--wdq-primary-color); }

.wdq-quiz .wdq__call-wrapper--viber:has(input:checked) {
  background: linear-gradient(180deg, rgba(139, 125, 255, 0.3) 0%, rgba(103, 77, 239, 0.42) 100%);
  border-color: #8b7dff;
  color: #fff;
  box-shadow: 0 10px 24px rgba(115, 96, 242, 0.28);
}
.wdq-quiz .wdq__call-wrapper--viber:has(input:checked) svg path { fill: #fff; }

.wdq-quiz .wdq__call-wrapper--telegram:has(input:checked) {
  background: linear-gradient(180deg, rgba(83, 181, 255, 0.3) 0%, rgba(27, 130, 225, 0.45) 100%);
  border-color: #35a8ff;
  color: #fff;
  box-shadow: 0 10px 24px rgba(43, 153, 255, 0.3);
}
.wdq-quiz .wdq__call-wrapper--telegram:has(input:checked) svg path { fill: #fff; }

.wdq-quiz .wdq__call-wrapper--whatsapp:has(input:checked) {
  background: linear-gradient(180deg, rgba(67, 227, 126, 0.3) 0%, rgba(26, 171, 80, 0.45) 100%);
  border-color: #2dd46b;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}
.wdq-quiz .wdq__call-wrapper--whatsapp:has(input:checked) svg path { fill: #fff; }

.wdq-quiz .wdq__form-group--phone input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--wdq-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--wdq-text-color);
}

.wdq-quiz .wdq__form-group--phone {
  width: 100%;
  margin-bottom: 1.1rem;
}

.wdq-quiz .wdq__form-group--submit {
  width: 100%;
  margin-top: .2rem;
}

.wdq-quiz .wdq__submit,
.wdq-quiz .wdq__next {
  background: var(--wdq-button-color);
  color: var(--wdq-button-text-color);
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.wdq-quiz .wdq__step--last .wdq__submit {
  width: 100%;
}

.wdq-quiz .wdq__footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0;
}

.wdq-quiz .wdq__nav-prev {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--wdq-border);
  background: transparent;
  color: var(--wdq-text-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  appearance: none;
}

.wdq-quiz .wdq__nav-prev svg {
  width: 18px;
  height: 18px;
}

.wdq-quiz .wdq__footer-sign {
  color: var(--wdq-primary-color);
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.wdq-quiz .wdq__footer-sign svg {
  display: inline-block;
  flex: 1 1 auto;
  width: 50%;
  height: auto;
  margin-top: 0;
  opacity: .75;
}

.wdq-quiz .wdq__footer .wdq__next {
  min-width: 230px;
  text-align: center;
  background: transparent;
  color: #fff;
  border: 2px solid var(--wdq-primary-color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}

.wdq-quiz .wdq__footer .wdq__next:hover {
  background: var(--wdq-button-color);
  color: var(--wdq-button-text-color);
  border-color: var(--wdq-button-color);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 34px rgba(var(--wdq-primary-rgb), 0.22);
}

.wdq-quiz .wdq__footer .wdq__next::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 45%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translateX(-25%);
  transition: opacity .25s ease, transform .45s ease;
  pointer-events: none;
}

.wdq-quiz .wdq__footer .wdq__next:hover::before {
  opacity: 1;
  transform: translateX(25%);
}

.wdq-quiz .wdq__step .subheader {
  font-size: 32px;
  margin-bottom: 8px;
}

.wdq-quiz .wdq__step .description-text {
  color: var(--wdq-muted);
  margin-bottom: 16px;
}

.wdq-quiz .wdq__error {
  color: #fa0000;
  display: none;
}

.wdq-quiz .wdq__image {
  flex: 0 0 clamp(300px, 34%, 390px);
  width: clamp(300px, 34%, 390px);
  max-width: 100%;
  align-self: stretch;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--wdq-border);
  position: relative;
  text-align: center;
}

.wdq-quiz .wdq__image figure {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
}

.wdq-quiz .wdq__image figure::before {
  content: "";
  background: #f4f4f4;
  position: absolute;
  top: 60px;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 20px;
}

.wdq-quiz .wdq__image img {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.wdq-quiz .wdq__image-text {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  width: 75%;
  border-radius: 28px;
  border: 1px solid rgba(var(--wdq-primary-rgb), 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 20px 30px;
  z-index: 11;
}

.wdq-quiz .wdq__image-name {
  font-size: 28px;
  line-height: 1.05;
  margin-bottom: .5rem;
}

.wdq-quiz .wdq__image-position {
  color: var(--wdq-primary-color);
  font-size: clamp(0.9rem, 0.92vw, 0.98rem);
  line-height: 1.15;
}

.wdq-quiz .wdq__loader {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 20;
  border-radius: 16px;
  text-align: center;
  padding: 16px;
}

.wdq-quiz .wdq__loader.active {
  display: flex;
}

.wdq-quiz .wdq__loader .title {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 2px;
}

.wdq-quiz .wdq__loader-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(var(--wdq-primary-rgb), 0.2);
  border-top-color: var(--wdq-primary-color);
  animation: wdq-loader-spin .9s linear infinite;
}

.wdq-quiz .wdq__loader-dots {
  display: inline-flex;
  min-width: 22px;
  justify-content: flex-start;
  margin-left: 2px;
}

.wdq-quiz .wdq__loader-dots span {
  opacity: .35;
  color: var(--wdq-primary-color);
  animation: wdq-loader-dot 1.2s ease-in-out infinite;
}

.wdq-quiz .wdq__loader-dots span:nth-child(2) { animation-delay: .2s; }
.wdq-quiz .wdq__loader-dots span:nth-child(3) { animation-delay: .4s; }

.wdq-quiz .wdq__loader-progress {
  width: 100%;
  max-width: 400px;
  height: 32px;
  border-radius: 40px;
  background: linear-gradient(180deg, #1a2e2e 0%, #0f1a1a 100%);
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), inset 0 -1px 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  margin-bottom: 1.2rem;
  position: relative;
}

.wdq-quiz .wdq__loader-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 40px;
  background: var(--wdq-primary-color);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.3);
  transition: width 2s ease-in-out;
}

.wdq-quiz .wdq__loader.wdq__loader--run .wdq__loader-progress::before {
  width: 100%;
}

.wdq-quiz .typewriter-cursor {
  display: inline-block;
  margin-left: 1px;
  animation: wdq-caret-blink .7s step-end infinite;
}

@keyframes wdq-caret-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes wdq-progress-stripes-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-64px); }
}

@keyframes wdq-loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes wdq-loader-dot {
  0%, 80%, 100% {
    opacity: .2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

/* ========== LIGHT THEME ========== */

.wdq-quiz--light {
  --wdq-bg: #ffffff;
  --wdq-border: rgba(0, 0, 0, 0.1);
  --wdq-muted: rgba(0, 0, 0, 0.6);
  color: var(--wdq-text-color);
}

.wdq-quiz--light .wdq__progress {
  background: #e8e8e8;
  border-color: rgba(0, 0, 0, 0.08);
}

.wdq-quiz--light .wdq__progress-text {
  color: #333;
  text-shadow: none;
}

.wdq-quiz--light .wdq__card label {
  color: var(--wdq-text-color);
}

.wdq-quiz--light .wdq__card figure {
  border-color: rgba(0, 0, 0, 0.08);
}

.wdq-quiz--light .wdq__card:has(input:checked) figure {
  border-color: var(--wdq-primary-color);
}

.wdq-quiz--light .wdq__footer .wdq__next {
  border-color: var(--wdq-primary-color);
  color: var(--wdq-text-color);
}

.wdq-quiz--light .wdq__footer .wdq__next:hover {
  background: var(--wdq-button-color);
  color: var(--wdq-button-text-color);
  border-color: var(--wdq-button-color);
}

.wdq-quiz--light .wdq__nav-prev {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--wdq-text-color);
}

.wdq-quiz--light .wdq__nav-prev:hover {
  border-color: var(--wdq-primary-color);
  color: var(--wdq-primary-color);
}

.wdq-quiz--light .wdq__footer-sign {
  color: var(--wdq-primary-color);
}

.wdq-quiz--light .wdq__footer-sign svg path {
  fill: rgba(0, 0, 0, 0.15);
}

.wdq-quiz--light .wdq__variants label {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--wdq-text-color);
}

.wdq-quiz--light .wdq__variants label:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Selected messenger buttons (light theme) */
.wdq-quiz--light .wdq__call-wrapper--call:has(input:checked) {
  background: var(--wdq-primary-color);
  border-color: var(--wdq-primary-color);
  color: var(--wdq-button-text-color);
  box-shadow: 0 10px 30px rgba(var(--wdq-primary-rgb), 0.18);
}

.wdq-quiz--light .wdq__call-wrapper--call:has(input:checked) svg path {
  fill: var(--wdq-button-text-color);
}

.wdq-quiz--light .wdq__call-wrapper--viber:has(input:checked) {
  background: #8b7dff;
  border-color: #8b7dff;
  color: #fff;
}

.wdq-quiz--light .wdq__call-wrapper--viber:has(input:checked) svg path {
  fill: #fff;
}

.wdq-quiz--light .wdq__call-wrapper--telegram:has(input:checked) {
  background: #35a8ff;
  border-color: #35a8ff;
  color: #fff;
}

.wdq-quiz--light .wdq__call-wrapper--telegram:has(input:checked) svg path {
  fill: #fff;
}

.wdq-quiz--light .wdq__call-wrapper--whatsapp:has(input:checked) {
  background: #2dd46b;
  border-color: #2dd46b;
  color: #fff;
}

.wdq-quiz--light .wdq__call-wrapper--whatsapp:has(input:checked) svg path {
  fill: #fff;
}

.wdq-quiz--light .wdq__form-group--phone input {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.03);
  color: var(--wdq-text-color);
}

.wdq-quiz--light .wdq__form-group--phone input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.wdq-quiz--light .wdq__step--last {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.wdq-quiz--light .wdq__step .subheader {
  color: var(--wdq-text-color);
}

.wdq-quiz--light .wdq__step .description-text {
  color: var(--wdq-muted);
}

.wdq-quiz--light .wdq__loader {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.wdq-quiz--light .wdq__loader .title {
  color: rgba(0, 0, 0, 0.85);
}

.wdq-quiz--light .wdq__loader-spinner {
  border-color: rgba(var(--wdq-primary-rgb), 0.2);
  border-top-color: var(--wdq-primary-color);
}

.wdq-quiz--light .wdq__loader-progress {
  background: linear-gradient(180deg, #e0e0e0 0%, #d0d0d0 100%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wdq-quiz--light .wdq__image {
  border-color: rgba(0, 0, 0, 0.1);
}

.wdq-quiz--light .wdq__image-text {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.65);
}

.wdq-quiz--light .wdq__image-name {
  color: #1a1a1a;
}

.wdq-quiz--light .wdq__error {
  color: #d40000;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1200px) {
  .wdq-quiz .wdq__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
  }

  .wdq-quiz .wdq__image {
    display: none;
  }

  .wdq-quiz .wdq__holder {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 992px) {
  .wdq-quiz .wdq__progress-wrap {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    width: 100%;
  }

  .wdq-quiz .wdq__progress {
    width: 100%;
    min-height: 32px;
    margin-left: 0;
    margin-top: .75rem;
  }

  .wdq-quiz .wdq__step-title {
    font-size: 30px;
    margin-bottom: 2rem;
  }

  .wdq-quiz .wdq__card-input {
    font-size: 18px;
  }

  .wdq-quiz .wdq__variants {
    grid-template-columns: repeat(2, 1fr);
  }

  .wdq-quiz .wdq__footer-sign { margin-top: 0; }
}

@media (max-width: 768px) {
  .wdq-quiz {
    padding: 28px 12px;
  }

  .wdq-quiz .wdq__wrap {
    flex-direction: column;
  }

  .wdq-quiz .wdq__header {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    text-align: center;
  }

  .wdq-quiz .wdq-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.15;
  }

  .wdq-quiz .wdq-subtitle {
    max-width: 100%;
    font-size: 1.06rem;
  }

  .wdq-quiz .wdq__progress-wrap {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .wdq-quiz .wdq__progress {
    width: 100%;
    min-height: 32px;
  }

  .wdq-quiz .wdq__footer {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .wdq-quiz .wdq__footer-sign {
    flex: 0 0 100%;
    margin-top: .5rem;
    margin-right: 0;
    gap: .5rem;
    font-size: .95rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
  }

  .wdq-quiz .wdq__footer-sign svg {
    display: block;
    width: 56px;
    transform: rotate(90deg);
    transform-origin: center;
    opacity: .7;
  }

  .wdq-quiz .wdq__step {
    gap: .75rem;
  }

  .wdq-quiz .wdq__step-title {
    font-size: 22px;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .wdq-quiz .wdq__card figure {
    margin-bottom: .5rem;
  }

  .wdq-quiz .wdq__card img {
    height: 200px;
  }

  .wdq-quiz .wdq__step--many-options .wdq__card img {
    height: 156px;
  }

  .wdq-quiz .wdq__card-input {
    font-size: 16px;
  }

  .wdq-quiz .wdq__variants {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-bottom: 1rem;
  }

  .wdq-quiz .wdq__form-group--phone {
    margin-bottom: 1rem;
  }
}

@media (max-width: 414px) {
  .wdq-quiz .wdq__card img {
    height: 90px;
  }

  .wdq-quiz .wdq__step--many-options .wdq__card img {
    height: 78px;
  }
}

@media (max-width: 576px) {
  .wdq-quiz .wdq__variants {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 350px) {
  .wdq-quiz .wdq__next,
  .wdq-quiz .wdq__footer .wdq__next {
    min-width: 200px;
    padding: 0.6rem 0.85rem;
    font-size: 13px;
    border-radius: 9px;
  }
}

.wdq-quiz .wdq__success-msg {
  background: var(--wdq-button-color);
  color: var(--wdq-button-text-color);
  padding: 14px 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 16px;
  animation: wdqFadeIn .35s ease;
}

@keyframes wdqFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wdq-quiz button.wdq__next {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
