:root {
  color-scheme: light;
  --ink: rgba(59, 33, 0, 1);
  --muted: #555c63;
  --card-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }


body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

body.success-open {
  overflow: hidden;
}

body.single-question-page {
  overflow-y: hidden;
  overscroll-behavior-y: none;
}

.page {
  position: relative;
  min-height: 100vh;
}
.hero{
  background:url(../img/bg.png) center no-repeat;
  background-size: 100vw 100%;
  min-height: 57.5vw;
  padding-left: 6.4vw;
}
.back-button img{
  width: 6.4vw;
  height: 6.4vw;
  margin-top: 15vw;
}
.back-button {
  width: fit-content;
  cursor: pointer;
}
.hero-copy{
  margin-top: 23.7333vw;
  text-align: center;
}
.page-title{
  color: rgba(59, 33, 0, 1);
  font-size: 4.2667vw;
  font-weight: 700;
}
.subtitle{
  margin-top: 1.6vw;
  font-size: 3.2vw;
  color: rgba(102, 102, 102, 1);
}
.content{
  border-radius: 0 16vw 0 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.37), rgba(243, 243, 243, 1));
  border: 1px solid white;
  min-height: 135vw;
}

body.has-survey-actions .content {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
.intro{
  margin-top: 5.3333vw;
  margin-bottom: 2.6667vw;
  padding: 0 6.4vw;
  color: rgba(82, 82, 82, 1);
  line-height: 4.8vw;
  font-size: 3.4667vw;
}

.question-list {
  padding-bottom: 1.0667vw;
}

.question-card{
  border: 0;
  border-radius: 3.2vw;
  background: #fff;
  box-shadow: var(--card-shadow);
  min-height: 13.3333vw;
  margin-left: 3.2vw;
  width: 93.6vw;
  padding: 6.4vw 4.2667vw 6.4vw 6.4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.1333vw;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.question-card:active {
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(1px);
}
.question-no,
.question-has {
  --status-core: #cfcfcf;
  --status-ring: #eeeeee;
  position: relative;
  flex: 0 0 3.7333vw;
  width: 3.7333vw;
  height: 3.7333vw;
  border: 0;
  border-radius: 50%;
  background: var(--status-ring);
}

.question-has {
  --status-core: rgba(255, 138, 5, 1);
  --status-ring: rgba(255, 138, 5, 0.27);
}

.question-no::before,
.question-has::before {
  content: "";
  position: absolute;
  inset: .8vw;
  border-radius: 50%;
  background: var(--status-core);
  animation: question-dot-breathe 2.4s ease-in-out infinite;
}

.question-no::after,
.question-has::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--status-core);
  border-radius: 50%;
  pointer-events: none;
  animation: question-dot-ripple 2.4s ease-out infinite;
}

@keyframes question-dot-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.88); }
}

@keyframes question-dot-ripple {
  0% { transform: scale(1); opacity: 0; }
  15% { opacity: 0.3; }
  75%, 100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .question-no::before,
  .question-has::before,
  .question-no::after,
  .question-has::after {
    animation: none;
  }

  .question-no::after,
  .question-has::after {
    opacity: 0;
  }
}
.question-text{
  color: var(--ink);
  font-size: 3.7333vw;
  margin-left: 1.3333vw;
  width: 70vw;
  line-height: 1.35;
}

.question-number {
  margin-right: 1.0667vw;
  font-weight: 750;
  color: rgba(255, 138, 5, 1);
  background-color: rgba(255, 240, 224, 1);
  padding: 2px 3px;
  border-radius: 6px;
}
.question-arrow{
  height: 6.4vw;
  width: 6.4vw;
}

.survey-actions {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 12px 3.2vw calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(243, 243, 243, 0), rgba(243, 243, 243, 0.98) 30%);
}

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

.submit-button {
  display: block;
  width: 100%;
  min-height: 13.8667vw;
  padding: 3.4667vw 6.4vw;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 210, 16, .5) 0%, rgba(255, 168, 5, .5) 100%);
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-size: 3.7333vw;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: opacity 180ms ease, box-shadow 180ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

#survey-next,
#survey-submit {
  max-width: 562px;
  margin: 0 auto;
}

.submit-button[hidden] {
  display: none;
}

.submit-button:not(:disabled) {
  background: linear-gradient(90deg, rgba(255, 210, 16, 1) 0%, rgba(255, 168, 5, 1) 100%);
  box-shadow: 0 8px 18px rgba(8, 101, 248, 0.28);
}

.submit-button:not(:disabled):active {
  box-shadow: 0 4px 10px rgba(74, 145, 229, 0.18);
  transform: scale(0.985);
}

.submit-button:disabled {
  opacity: 0.52;
  box-shadow: none;
  cursor: not-allowed;
}

.submit-result {
  width: 93.6vw;
  margin: 0 auto;
  padding: 4.8vw;
  border: 1px solid rgba(8, 101, 248, 0.14);
  border-radius: 4.2667vw;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(32, 75, 122, 0.08);
}

.submit-result[hidden] {
  display: none;
}

.submit-result-title {
  margin-bottom: 2.6667vw;
  color: #0865f8;
  font-size: 4vw;
  font-weight: 700;
}

.submit-result-json {
  margin: 0;
  overflow-x: auto;
  color: #202936;
  font: 12px/1.55 Consolas, Monaco, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.answer-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 320ms;
}

.answer-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.answer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 29, 40, 0.53);
  opacity: 0;
  transition: opacity 280ms ease;
}

.answer-modal.is-open .answer-backdrop {
  opacity: 1;
}

.answer-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.answer-close {
  position: absolute;
  z-index: 2;
  right: 4.2667vw;
  top: -10.1333vw;
  display: grid;
  width: 6.4vw;
  height: 6.4vw;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  transform: scale(0.72) rotate(-25deg);
  transition: opacity 220ms ease 80ms, transform 280ms ease 80ms;
  -webkit-tap-highlight-color: transparent;
}

.answer-close img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.answer-modal.is-open .answer-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.answer-sheet {
  position: relative;
  min-height: min(55vh, 610px);
  max-height: calc(100vh - 100px);
  padding: 28px 20px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(20, 29, 40, 0.12);
  transform: translateY(102%);
  transition: transform 320ms cubic-bezier(0.22, 0.78, 0.25, 1);
}

.answer-modal.is-open .answer-sheet {
  transform: translateY(0);
}

.answer-title {
  margin: 0 0 5.8667vw;
  color: #050505;
  font-size: 4vw;
  font-weight: 750;
  line-height: 1.35;
}

.answer-list {
  display: grid;
  gap: 4.2667vw;
}

.answer-option {
  position: relative;
  width: 100%;
  padding: 4vw 13.8667vw;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 247, 237, 1);
  color: #080808;
  font: inherit;
  font-size: 3.7333vw;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease,
  border-color 180ms ease, transform 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.answer-option-check {
  position: absolute;
  top: 50%;
  right: 5.3333vw;
  width: 5.3333vw;
  height: 5.3333vw;
  object-fit: contain;
  opacity: 0;
  transform: translateY(-50%) scale(0.55);
  transition: opacity 160ms ease, transform 180ms ease;
}

.answer-option:active {
  transform: scale(0.98);
}

.answer-option.is-selected {
  border-color: rgba(255, 138, 5, 1);
  background-color: white;
  color: rgba(255, 138, 5, 1);
  font-weight: 700;
}

.answer-option.is-selected .answer-option-check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.answer-action {
  margin-top: 7.4667vw;
}

.answer-action[hidden] {
  display: none;
}

.success-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 5.3333vw;
  place-items: center;
  visibility: hidden;
  background: rgba(20, 20, 20, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.success-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.success-card {
  width: min(85.6vw, 114.1333vw);
  aspect-ratio: 1 / 1;
  padding: 51% 7.2% 9%;
  border-radius: 14%;
  background: url("../img/ok.png") center / 100% 100% no-repeat;
  text-align: center;
  transform: translateY(12px) scale(0.96);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.success-modal.is-open .success-card {
  transform: translateY(0) scale(1);
}

.success-title {
  margin: 0;
  color: #080808;
  font-size: 4.2667vw;
  font-weight: 800;
  line-height: 1.3;
}

.success-description {
  margin: 5.5% 0 7.5%;
  color: #656565;
  font-size: 3.4667vw;
  line-height: 1.35;
}

.success-back-button {
  width: 100%;
  min-height: 12vw;
  max-height: 16vw;
  padding: 3.2vw 4.8vw;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 210, 16, 1) 0%, rgba(255, 168, 5, 1) 100%);
  box-shadow: 0 8px 18px rgba(8, 101, 248, 0.24);
  color: #fff;
  font: inherit;
  font-size: 3.7333vw;
  font-weight: 750;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.success-back-button:active {
  transform: scale(0.98);
}

@media (min-width: 600px) {
  .answer-panel {
    right: auto;
    left: 50%;
    width: min(100%, 600px);
    transform: translateX(-50%);
  }

  .answer-close {
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .answer-backdrop,
  .answer-close,
  .answer-sheet,
  .answer-option,
  .success-modal,
  .success-card {
    transition-duration: 0.01ms;
  }
}
