/* Quiz micro-interactions, progress, and answer feedback. */

.group\/item > button {
  transition:
    transform 110ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.group\/item > button:active,
.group\/item > button.dc-pressed {
  transform: scale(0.972);
}

/* Highlight border for selected options in multiselect steps */
[data-dc-multiselect="true"] .group\/item.active > button {
  border-color: #18734D !important;
  box-shadow:
    0 0 0 2px #18734D,
    0 6px 16px -6px #18734D35 !important;
  background-color: #E8F6ED !important;
}

@keyframes dcLayerEnter {
  from { opacity: .35; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .group\/item > button {
    transition: border-color 120ms ease, background-color 120ms ease;
  }

  .group\/item > button:active,
  .group\/item > button.dc-pressed {
    transform: none;
  }

}
.group\/item.active > button {color:#30241F!important;background:#E8F6ED!important;border-color:#18734D!important}

/* Keep questions below the fixed progress track. */
.main-content[id^="step_"] {
  justify-content: flex-start !important;
  padding-top: calc(env(safe-area-inset-top, 0px) + 45px) !important;
  row-gap: 6px;
}

/* The gold fill lights up briefly at the existing chapter breaks. */
@media (prefers-reduced-motion: no-preference) {
  .dc-progress-milestone i { animation: dcGoldMilestone 980ms ease-out; }
  .dc-progress-milestone b { animation: dcGoldMilestone 850ms ease-out; }
}

@keyframes dcGoldMilestone {
  35% { filter: brightness(1.23); box-shadow: 0 0 9px #eaaa2d85; }
  100% { filter: brightness(1); box-shadow: 0 0 0 transparent; }
}

/* Existing character artwork beside the measurement controls. */
.dc-measure-avatar {
  position: relative;
  display: grid;
  place-items: end center;
  height: clamp(134px, 22svh, 186px);
  margin: 6px 0 10px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #18734d36;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 90%, #e1efdc, #fbf7eb 76%);
  pointer-events: none;
}

.dc-measure-figure {
  display: grid;
  place-items: end center;
  position: absolute;
  bottom: 0;
  width: clamp(112px, 18svh, 158px);
  aspect-ratio: 1;
  transform-origin: bottom center;
}

.dc-measure-figure img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dc-measure-figure img[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .dc-measure-figure { transition: transform 110ms ease-out; }
}

/* Same pose and framing on both sides of the profile illustration. */
.dc-profile-original { display: none !important; }

.dc-profile-art {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: end;
  overflow: hidden;
  border-radius: 16px;
  isolation: isolate;
  background: linear-gradient(100deg, #eedaca, #fffcf4 50%, #eedaca);
}

.dc-profile-art::before,
.dc-profile-art::after {
  content: "";
  position: absolute;
  top: 34%;
  left: 39%;
  width: 13%;
  aspect-ratio: 1;
  border-top: clamp(9px, 3vw, 24px) solid #fff9;
  border-right: clamp(9px, 3vw, 24px) solid #fff9;
  transform: rotate(45deg);
  z-index: -1;
}
.dc-profile-art::after { left: 46%; border-color: #fff6; }

.dc-profile-avatar {
  display: block;
  width: 96%;
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-size: 200% 200%;
}

/* The video and offer screens do not reserve space for the quiz progress track. */
#step_vslMex21.main-content,
#step_lh8BcS.main-content {
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
}

/* The VSL inherits the quiz typography and keeps its vertical framing. */
#step_vslMex21 .dc-vsl-headline {
  margin: 0 auto;
  max-width: 27ch;
  color: #30241f;
  font-size: clamp(24px, 5.8vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
}
#step_vslMex21 .dc-vsl-subheadline {
  margin: 0 auto;
  max-width: 50ch;
  color: #30241f;
  font-size: clamp(15px, 4.1vw, 17px);
  line-height: 1.43;
}
.dc-vsl-player {
  display: block;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border-radius: 16px;
  background: #211913;
}

.dc-testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(8px, 2vw, 14px);
}
.dc-testimonials video {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border: 1px solid #18734d;
  border-radius: clamp(11px, 3vw, 17px);
  outline: 1px solid #d99b2380;
  outline-offset: 2px;
  background: #213027;
  box-shadow: 0 4px 12px #18734d1c;
}
.dc-testimonials video:focus-visible {
  outline: 2px solid #18734d;
}

/* Answer feedback uses the same green and gold palette as the quiz. */
.dc-progress-meter {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 540px);
  height: 35px;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(8px, 3vw, 16px);
  box-sizing: border-box;
  border: 1px solid #dfc5a8;
  border-radius: 999px;
  background: linear-gradient(180deg,#fffaf2,#faf1e5);
  box-shadow: 0 2px 7px #74502024, inset 0 1px 0 white;
  pointer-events: none;
  z-index: 1001;
}
.dc-progress-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(#e4d2b7,#f1e3cf);
  box-shadow: inset 0 1px 3px #8c672a24;
}
.dc-progress-fill {
  display: block;
  width: 0;
  position: relative;
  height: 100%;
  border-radius: inherit;
  background: hsla(44, 62%, 80%, 1) linear-gradient(180deg,#fff8cfb5 0%,#fff5c12e 46%,#96520c31 100%);
  box-shadow: inset 0 1px 1px #fff7b8, 0 0 6px #fab90070;
}
.dc-progress-tip {
  position: absolute;
  right: -6px;
  top: -2px;
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border: 1.5px solid #ffc20a;
  border-radius: 50%;
  background: #fffdea;
  box-shadow: 0 0 8px 2px #ffc831b5;
}
.dc-progress-meter[aria-valuenow="0"] .dc-progress-tip { opacity: 0; }
.dc-progress-count {
  flex: none;
  min-width: 5ch;
  text-align: center;
  padding: 3px 8px;
  border: 1px solid #eac65a;
  border-radius: 999px;
  color: #5b390b;
  background: linear-gradient(#fff8d6, #ffedaa);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.dc-progress-complete .dc-progress-count {
  border-color: #b6d583;
  color: #174928;
  background: #eaf7d4;
}

[id^="opcoes_"] button.dc-picked-answer,
[id^="opcoes_"] .group\/item.active > button,
[id^="opcoes_"] [role="checkbox"][aria-checked="true"] {
  position: relative;
  color: #0c2e15 !important;
  border-color: #17b932 !important;
  background: linear-gradient(105deg,#ecfbe0,#d5fbb8) !important;
  box-shadow: 0 0 0 1.5px #20c533, 0 0 12px #77e84147, inset 0 1px 1px white !important;
}
[id^="opcoes_"] :is(button.dc-picked-answer,.group\/item.active > button,[role="checkbox"][aria-checked="true"])
  .option-wrap :is(.self-center > .border:is(.rounded-full,.rounded-md), div:has(> svg:is(.lucide-chevron-right,.lucide-check))) {
  display: grid;
  place-items: center;
  background: linear-gradient(#43c857,#168c36) !important;
  border-color: #168c36 !important;
  box-shadow: inset 0 1px 2px #c5ffc397;
}
[id^="opcoes_"] :is(button.dc-picked-answer,.group\/item.active > button,[role="checkbox"][aria-checked="true"])
  .option-wrap :is(.self-center > .border:is(.rounded-full,.rounded-md), div:has(> svg:is(.lucide-chevron-right,.lucide-check))) > svg {
  visibility: hidden;
}
[id^="opcoes_"] :is(button.dc-picked-answer,.group\/item.active > button,[role="checkbox"][aria-checked="true"])
  .option-wrap :is(.self-center > .border:is(.rounded-full,.rounded-md), div:has(> svg:is(.lucide-chevron-right,.lucide-check)))::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 12px;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -59%) rotate(45deg);
  pointer-events: none;
}
[id^="opcoes_"] :is(button.dc-picked-answer,.group\/item.active > button,[role="checkbox"][aria-checked="true"]):has(.option-wrap .self-center > .border:is(.rounded-full,.rounded-md), .option-wrap svg:is(.lucide-chevron-right,.lucide-check))::after {
  content: none !important;
  display: none !important;
}
[id^="opcoes_"] button.dc-picked-answer:not(:has(.option-wrap .self-center > .border:is(.rounded-full,.rounded-md), svg:is(.lucide-chevron-right,.lucide-check)))::after {
  content: "✓";
  display: grid;
  place-items: center;
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #fff;
  background: #168c36;
  font-size: 16px;
  pointer-events: none;
}

.dc-answer-reward {
  display: flex;
  justify-content: center;
  margin: 12px 0 5px;
  pointer-events: none;
}
.dc-answer-reward-body {
  padding: 8px 19px 9px;
  min-width: min(185px, 100%);
  text-align: center;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #143b16;
  background: radial-gradient(ellipse at 48% 22%,#f8ffe3,#dff9c1 78%);
  box-shadow: 0 4px 14px #76d23845;
}
.dc-answer-reward strong,
.dc-answer-reward span { display: block; line-height: 1.2; }
.dc-answer-reward strong { font-size: 18px; font-weight: 900; color: #087720; }
.dc-answer-reward span { font-size: 14px; }
.dc-answer-reward i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  font-style: normal;
  color: white;
  background: linear-gradient(#25d237,#03861b);
}
@media (prefers-reduced-motion: no-preference) {
  .dc-answer-reward-body { animation: dcRewardIn 230ms cubic-bezier(.2,.75,.3,1.12) both; }
}
@keyframes dcRewardIn {
  from { opacity: .45; transform: scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dc-quiz-completion {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  max-width: 476px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 2px 12px;
  margin: 4px auto 12px;
  padding: 12px 14px;
  border: 1px solid #baca9d;
  border-radius: 16px;
  background: radial-gradient(ellipse at 5% 0%, #fffbdb, #f3fae8 78%);
  box-shadow: 0 4px 12px #315b1920;
  color: #164b2a;
  text-align: start;
}
.dc-unlock-icon {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border: 1px solid #e7ba4d;
  border-radius: 50%;
  background: linear-gradient(#fffadc, #ffe68e);
  color: #754710;
  font-size: 21px;
}
.dc-unlock-icon svg { width: 22px; height: 22px; }
.dc-quiz-completion > strong {
  font-size: clamp(16px, 4vw, 19px);
  font-weight: 900;
  line-height: 1.2;
}
.dc-quiz-completion > span:not(.dc-unlock-icon) {
  font-size: clamp(13px, 3.3vw, 15px);
  line-height: 1.3;
}

@media (prefers-reduced-motion: no-preference) {
  .dc-quiz-completion { animation: dcLayerEnter 260ms ease-out both; }
  .dc-unlock-icon { animation: dcUnlockIn 480ms cubic-bezier(.2,.75,.3,1.16) both; }
  .dc-quiz-completion-cta { animation: dcCtaHalo 680ms ease-out .18s; }
}

@keyframes dcUnlockIn {
  from { transform: rotate(-13deg) scale(.78); }
  to { transform: rotate(0) scale(1); }
}

@keyframes dcCtaHalo {
  38% { outline: 3px solid #c8ec87; outline-offset: 3px; }
  to { outline: 2px solid #c8ec8700; outline-offset: 7px; }
}

.dc-video-shell {
  --dc-play-size: clamp(38px, 10vw, 52px);
  min-width: 0;
}
.dc-video-vsl {
  --dc-play-size: clamp(70px, 22vw, 90px);
  width: min(100%, 320px);
  margin-inline: auto;
}
.dc-video-surface { position: relative; }
.dc-video-shell video { width: 100%; }
.dc-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  width: var(--dc-play-size);
  height: var(--dc-play-size);
  border: 2px solid #f9db82;
  border-radius: 50%;
  background: #14643fe8;
  box-shadow: 0 5px 18px #1b282059;
  color: white;
  cursor: pointer;
}
.dc-video-play::before {
  content: "";
  display: block;
  width: 34%;
  height: 37%;
  margin-left: 7%;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.dc-video-playing .dc-video-play { opacity: 0; }
.dc-video-playing .dc-video-play::before {
  width: 27%;
  height: 30%;
  margin-left: 0;
  clip-path: none;
  background: linear-gradient(to right, currentColor 0 33%, transparent 33% 67%, currentColor 67%);
}
.dc-video-playing .dc-video-play:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .dc-video-playing .dc-video-play:hover { opacity: 1; }
}
.dc-video-play:focus-visible, .dc-video-seek:focus-visible {
  outline: 2px solid #18734d;
  outline-offset: 3px;
}
.dc-video-seek {
  --dc-video-progress: 0%;
  display: block;
  width: 100%;
  height: 18px;
  margin: 2px 0 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.dc-video-seek:disabled { opacity: .72; cursor: default; }
.dc-video-seek::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(to right,#18734d var(--dc-video-progress),#e7dbc6 var(--dc-video-progress));
}
.dc-video-seek::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -3px;
  border-radius: 50%;
  border: 1px solid #fff1ce;
  background: #238153;
}
.dc-video-seek::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: #e7dbc6;
}
.dc-video-seek::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: #18734d;
}
.dc-video-seek::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff1ce;
  background: #238153;
}

/* Short feedback on answers and larger reveals at key points in the quiz. */
.dc-question-motion { overflow-x: clip; }
.dc-question-transition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 55% 48%,#5fa84c20,transparent 68%);
}
.dc-question-transition .dc-question-card-copy {
  position: absolute;
  margin: 0;
  overflow: hidden;
  transform-origin: 48% 38%;
  box-shadow: 0 8px 26px #503b2440;
}
.dc-question-motion > .dc-question-card {
  transform-origin: 48% 38%;
}
.dc-question-card {
  box-sizing: border-box;
  padding: clamp(12px, 3.3vw, 19px);
  border: 1px solid #e5d4b9;
  border-radius: 23px;
  background: #fffaf2;
  box-shadow: 0 3px 0 -1px #f5e8d7, 0 6px 0 -2px #eee0ca, 0 11px 24px #6e48221a;
}
.dc-answer-reward {
  position: static;
  box-sizing: border-box;
  width: 100%;
  flex: 0 0 100%;
  margin: 15px auto 10px;
}
.dc-answer-reward-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 7px clamp(13px, 4vw, 20px);
  border-color: #cfe3af;
  background: linear-gradient(#f4fadd,#e6f2cc);
  box-shadow: 0 3px 10px #59773326, inset 0 1px 0 #fff;
}
.dc-answer-reward-body strong {
  color: #21402b;
  font-size: clamp(13px, 3.75vw, 16px);
  font-weight: 900;
  line-height: 1.18;
}
.dc-answer-reward-body i {
  flex: none;
  width: 25px;
  height: 25px;
  font-size: 16px;
  box-shadow: inset 0 1px 2px #e9ffb178;
  background: linear-gradient(145deg,#75b729,#237d35 64%,#19542d);
}
.dc-answer-streak {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 48px);
  left: 50%;
  translate: -50% 0;
  z-index: 1002;
  padding: 7px 13px;
  border: 1px solid #dfb965;
  border-radius: 999px;
  background: #fff5d8;
  color: #654013;
  box-shadow: 0 3px 14px #6e45132b;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}
.dc-answer-streak span { display: inline-block; margin-right: 3px; }
.dc-photo-picked button img { opacity: .6; }
.dc-photo-picked .dc-picked-answer img { opacity: 1; scale: 1.04; }
@media (prefers-reduced-motion: no-preference) {
  .dc-picked-answer { animation: dcAnswerSquish 270ms cubic-bezier(.2,.75,.25,1) both; }
  .dc-answer-reward-body i { position: relative; animation: dcAnswerCheck 500ms ease-out both; }
  .dc-answer-streak { animation: dcLayerEnter 270ms ease-out both; }
  .dc-answer-streak span { animation: dcAnswerCheck 520ms ease-out both; }
  .dc-photo-picked button img { transition: opacity 300ms ease, scale 300ms ease; }
}
@keyframes dcAnswerSquish { 0% { scale: .95; } 65% { scale: 1.015; } 100% { scale: 1; } }
@keyframes dcAnswerCheck { 0% { scale: .65; opacity: .35; } 56% { scale: 1.16; } 100% { scale: 1; opacity: 1; } }
