/* Animatable angle for spinning conic-gradient border on selected options */
@property --soq-border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes soq-border-spin {
  to { --soq-border-angle: 360deg; }
}

.soq-option--zone {
  box-shadow: none !important;
}

.so-header {
  background-color: #fff;
}

#so-quiz {
  --soq-bg: #FFF5ED;
  --soq-elements-bg: #ffffff;
  --soq-text: #100F0F;
  --soq-border: #000000;
  --soq-line: #D8D7D2;
  --soq-danger: #A21A32;
  --soq-a: #FF8040;
  --soq-b: #A21A32;
  --soq-progress-fill-1: #FF8040;
  --soq-progress-fill-2: #A21A32;
  --soq-c: #2555e8;
  --soq-r2: 16px;
  --soq-r3: 16px;
  --soq-ease: 220ms cubic-bezier(0.2, 0.65, 0.2, 1);
  background: var(--soq-bg);
  color: var(--soq-text);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
}
@media screen and (min-width: 600px) {
  #so-quiz {
    padding-bottom: 40px;
  }
}


.soq-main {
  --soq-bg: #FFF5ED;
  background: var(--soq-bg);
  position: relative;
  border-bottom: 1px solid #EAE9E5;
}

#so-quiz,
#so-quiz * {
  box-sizing: border-box;
}

/* #so-quiz button,
#so-quiz input,
#so-quiz label {
  font: inherit;
} */

.soq-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding-top: 40px;
  background: var(--soq-bg);
}

.soq-progress {
  flex: 1;
}

.soq-progress-track {
  height: 4px;
  border-radius: 999px;
  background: #e8dbcf;
  overflow: hidden;
}

.soq-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--soq-progress-fill-1) 0%, var(--soq-progress-fill-2) 100%);
  transition: width var(--soq-ease);
}

.soq-callme-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 74px;
  height: 74px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(140deg, #f39040, #c2364a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform var(--soq-ease), box-shadow var(--soq-ease);
}

/* .soq-callme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
} */

/* .soq-callme-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.32), 0 12px 24px rgba(0, 0, 0, 0.2);
} */

.soq-callme-icon {
  font-size: 24px;
  line-height: 1;
}

.soq-callme-label {
  display: none;
}

.soq-content {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 45px;
}

@media screen and (max-width: 1600px) {
  .soq-content {
    padding-bottom: 25px;
  }
}

.soq-debug-ids {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 99;
  font-size: 11px;
  color: rgba(23, 23, 23, 0.5);
}

.soq-step-inner {
  width: min(910px, 100%);
  margin: 0 auto;
  display: grid;
  align-content: start;
}

.soq-step-surface {
  background: var(--soq-elements-bg);
  border-radius: var(--soq-r3);
  padding: 63px 74px;
}

.soq-step-surface--form {
  width: min(810px, 100%);
  margin: 0 auto;
  padding: 52px 74px 56px 74px;
}

.soq-step-header {
  margin-bottom: 24px;
}

.soq-step-header--center {
  text-align: center;
}

.soq-step-header--interstitial {
  margin-bottom: 0;
}

.soq-step-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.05em;
  font-family: "Instrument Sans",sans-serif;
}

.soq-layout-zone .soq-step-title, .soq-layout-density .soq-step-title {
  font-size: 32px;
}

.soq-layout-interstitial .soq-step-title {
  font-size: 36px;
}

.soq-layout-form .soq-step-title {
  font-size: 48px;
  line-height: 1.02;
  margin-bottom: 24px;
}

.soq-step-subtitle {
  margin: 10px auto 0;
  font-size: 18px;
  line-height: 1.3;
}

.soq-layout-form .soq-step-subtitle {
  font-size: 18px;
  color: #57534e;
}

@media screen and (max-width: 1600px) {
  .soq-layout-form .soq-step-title {
    font-size: 40px;
  }
  .soq-layout-form .soq-step-subtitle {
    font-size: 16px;
  }
}

.soq-layout-centered-input .soq-step-surface {
  width: min(820px, 100%);
  margin: 0 auto;
}

.soq-centered-title {
  margin: 0;
  text-align: center;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.05em;
  font-family: "Instrument Sans",sans-serif;
}

.soq-centered-input {
  width: min(408px, 100%);
  margin: 55px auto auto auto;
}

.soq-layout-centered-input .soq-centered-input .soq-input {
  height: 48px;
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid var(--soq-a);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: text;
  caret-color: #100F0F;
}

.soq-layout-centered-input .soq-centered-input .soq-input::placeholder {
  color: #a39e97;
}

.soq-layout-centered-input .soq-centered-input .soq-input:hover,
.soq-layout-centered-input .soq-centered-input .soq-input:focus-visible {
  border: 0;
  border-bottom: 1px solid var(--soq-a);
  background: transparent;
  box-shadow: none;
}

.soq-layout-centered-input .soq-btn-next--inside {
  display: flex;
  margin: 55px auto auto auto;
  align-self: center;
}

.soq-step-img,
.soq-q-img {
  width: 100%;
  height: auto;
  border-radius: var(--soq-r2);
  object-fit: cover;
}

/* .soq-layout-stacked,
.soq-layout-split,
.soq-layout-mixed,
.soq-layout-header-grid,
.soq-layout-zone,
.soq-layout-density {
  padding-top: 10px;
} */

.soq-layout-centered-input,
.soq-layout-header-grid,
.soq-layout-zone {
  min-height: min(500px, 64vh);
  display: grid;
  align-content: center;
}

.soq-layout-density {
  min-height: min(520px, 66vh);
  display: grid;
  align-content: center;
}

.soq-layout-mixed {
  display: grid;
  gap: 80px;
}

@media screen and (max-width: 1600px) {
  .soq-layout-mixed {
    gap: 60px;
  }
}

@media screen and (max-width: 1440px) {
  .soq-layout-mixed {
    gap: 40px;
  }
}

.soq-question,
.soq-question--stacked,
.soq-question--flat,
.soq-question--zone {
  margin: 0;
}

.soq-question + .soq-question {
  margin-top: 60px;
}

@media screen and (max-width:1600px) {
  .soq-question + .soq-question {
    margin-top: 40px;
  }
}

/* Tighter vertical rhythm when a stacked step contains 3+ questions. */
.soq-layout-stacked:has(> .soq-question--stacked + .soq-question--stacked + .soq-question--stacked)
  > .soq-question--stacked
  + .soq-question--stacked {
  margin-top: 40px;
}

.soq-q-head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 25px;
}

.soq-question--stacked .soq-q-head {
  margin-bottom: 20px;
}

.soq-q-title,
.soq-split-title,
.soq-mixed-title {
  margin: 0;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.24;
  font-family: "Instrument Sans",sans-serif;
}

.soq-q-title {
  font-size: 24px;
}
.soq-split-title {
  font-size: 24px;
}
.soq-mixed-title {
  font-size: 26px;
  margin-bottom: 10px;
}

.soq-mixed-max-choice {
  margin: 0 0 10px;
  text-align: center;
  font-size: 18px;
  line-height: 1.24;
}

.soq-why-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  line-height: 1.24;
  display: block;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color var(--soq-ease);
  margin-left: auto;
  margin-right: auto;
  font-family: "IBM Plex Mono";
  font-weight: 500;
}

.soq-why-btn::before {
  content: "?";
  width: 24px;
  height: 24px;
  border: 0.5px solid var(--soq-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d55a3b;
  margin-right: 8px;
  background-color: #fff;
}

/* .soq-why-btn:focus-visible {
  outline: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.26);
} */

/* Why button positioned below options — applies to all layouts */
.soq-question .soq-why-btn,
.soq-mixed-block .soq-why-btn,
.soq-layout-split > .soq-why-btn,
.soq-step-surface > .soq-why-btn,
.soq-layout-centered-input .soq-why-btn {
  margin-top: 24px;
}

.soq-question-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 20px;
}

.soq-question--flat {
  display: grid;
  width: 100%;
  /* gap: 10px; */
}

.soq-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 20px;
}

/* Card-flow balance for variable counts (2..6+) without step-specific hacks. */
.soq-options--wide,
.soq-options--stacked,
.soq-mixed-text-options {
  width: min(843px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Keep small card sets compact and centered rather than over-stretching. */
.soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(2)),
.soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(4)),
/* .soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(2)),
.soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(4)), */
.soq-mixed-text-options:has(> .soq-option--card:first-child:nth-last-child(2)),
.soq-mixed-text-options:has(> .soq-option--card:first-child:nth-last-child(4)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(838px, 100%);
}

.soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(2)),
.soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(2)) .soq-option--card ,
.soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(4)) .soq-option--card {
  min-height: 119px;
}

/* For 5-card sets, force a balanced 2 + 3 composition (not 3 + 2 + awkward tail). */
.soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(5)),
.soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(5)),
.soq-mixed-text-options:has(> .soq-option--card:first-child:nth-last-child(5)) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card,
.soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card,
.soq-mixed-text-options:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card {
  grid-column: span 2;
}

.soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card:nth-child(-n+2),
.soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card:nth-child(-n+2),
.soq-mixed-text-options:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card:nth-child(-n+2) {
  grid-column: span 3;
}

.soq-option {
  position: relative;
  width: 100%;
  min-height: 96px;
  padding: 20px;
  border: 0.7px solid var(--soq-border);
  border-radius: var(--soq-r2);
  background: var(--soq-elements-bg);
  color: var(--soq-text);
  text-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 15px;
  cursor: pointer;
  user-select: none;
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform var(--soq-ease), box-shadow var(--soq-ease), border-color var(--soq-ease), background-color var(--soq-ease);
}

/* .soq-option:hover {
  transform: translateY(-1px);
  border-color: #716d68;
  box-shadow: 0 6px 14px rgba(16, 16, 16, 0.08);
} */

/* Spinning conic-gradient ring — sits behind the card via z-index:-1.
   Excluded from zone only (has its own icon-ring treatment).
   CSS paint order: z-index:-1 children render ABOVE the parent's own background,
   so we need ::after as a card-colored cover to mask the ring's center area. */
.soq-option:not(.soq-option--zone)::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--soq-r2) + 2px); /* 16px — outer edge of ring */
  background: conic-gradient(
    from var(--soq-border-angle),
    #FF8040 0%, #A21A32 40%, #0545D4 70%, #FF8040 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 380ms cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: opacity;
}

/* Card-colored cover: same z-index:-1 but paints after ::before (DOM order),
   masking the gradient's center so only the 2px ring remains visible. */
.soq-option:not(.soq-option--zone)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--soq-r2);
  background: var(--soq-elements-bg);
  z-index: -1;
}

.soq-option.is-selected {
  border: 0.7px solid transparent; /* layout-stable; no visual role — ring comes from ::before */
  background: var(--soq-elements-bg);   /* covers center of ::before, showing only the ring edges */
  box-shadow: 0 4px 20px rgba(255, 128, 64, 0.2) !important; /* warm orange glow echoing gradient colors */
  text-shadow: 0.1px 0.2px 0px #100F0F;
}

/* Reveal + spin the ring when selected (not zone variant) */
.soq-option:not(.soq-option--zone).is-selected::before {
  opacity: 1;
  animation: soq-border-spin 5s linear infinite;
}

/* .soq-option:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.28), 0 8px 16px rgba(0, 0, 0, 0.1);
} */

.soq-option:disabled,
.soq-option:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.soq-option-label {
  font-size: 16px;
  line-height: 1.24;
}

.soq-option-label .soq-option-label-note {
  font-size: 14px;
  color: #32312D;
  display: block;
  padding-top: 4px;
}

.soq-option-img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--soq-r2) - 1px);
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.soq-option--card {
  min-height: 96px;
}

.soq-option--image {
  height: 120px;
  aspect-ratio: 1.5;
  padding: 0;
  border: 0;
  /* overflow:hidden removed — ::before ring must escape; image + overlay self-clip via border-radius */
}

.soq-option--image::before {
  inset: -4.5px !important;
}

.soq-option--image .soq-option-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: var(--soq-r2); /* self-clips since parent no longer has overflow:hidden */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.36));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.05em;
}

.soq-option--zone {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.soq-option--zone::before,
.soq-option--zone::after {
  content: none !important;
}

/* .soq-option--zone:hover,
.soq-option--zone.is-selected {
  transform: translateY(-1px);
  box-shadow: none;
  border: 0;
  background: transparent;
} */

.soq-option--zone.is-selected {
  /* Prevent base .soq-option.is-selected square chrome from leaking on zone buttons. */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.soq-zone-icon-wrap {
  width: 90px;
  aspect-ratio: 1;
  border: 1px solid var(--soq-border);
  border-radius: 50%;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  position: relative;
  transition: border-color var(--soq-ease), box-shadow var(--soq-ease);
}

.soq-option--zone .soq-option-img {
  border-radius: 50%;
}

.soq-option--zone.is-selected .soq-zone-icon-wrap {
  border: 3.5px solid transparent;
  background:
    linear-gradient(#f5f5f5, #f5f5f5) padding-box,
    conic-gradient(from var(--soq-border-angle), #FF8040 0%, #A21A32 40%, #0545D4 70%, #FF8040 100%) border-box;
  animation: soq-border-spin 5s linear infinite;
  box-shadow: 0 5px 12px rgba(22, 22, 22, 0.12);
}

/* .soq-option--zone:focus-visible {
  box-shadow: none;
  outline: 0;
} */

/* .soq-option--zone:focus-visible .soq-zone-icon-wrap {
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.28);
} */

.soq-split-title {
  margin-bottom: 40px;
}

.soq-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  column-gap: 27px;
  row-gap: 10px;
  align-items: start;
  max-width: 920px;
  margin-inline: auto;
}

.soq-split-col,
.soq-split-col-left,
.soq-split-col-right {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
}

.soq-split-group-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.05em;
  font-family: "Instrument Sans",sans-serif;
}

.soq-split-options {
  grid-template-columns: 1fr;
  gap: 20px;
  align-content: start;
  grid-auto-rows: minmax(96px, auto);
}

.soq-split-options .soq-option {
  min-height: 96px;
  height: auto;
  align-self: start;
  min-width: 370px;
}

.soq-split-center {
  --soq-split-title-zone: calc(20px * 1.24 + 20px);
  position: relative;
  width: 34px;
  align-self: start;
  display: grid;
  place-items: center;
  margin: var(--soq-split-title-zone) auto 0;
  height: calc(100% - var(--soq-split-title-zone));
}

.soq-split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  min-height: 0;
  background: var(--soq-line);
}

.soq-split-ou {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  background: var(--soq-bg);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.24;
}

/* .soq-mixed-block {
  display: grid;
  gap: 8px;
} */

.soq-mixed-image-options {
  gap: 12px;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, 202px);
  justify-content: center;
}

.soq-mixed-image-options > .soq-option--image {
  width: 202px;
  min-width: 202px;
  max-width: 202px;
  height: 120px;
  aspect-ratio: auto;
  justify-self: center;
}

.soq-mixed-text-options {
  gap: 12px;
  margin-top: 20px;
}

.soq-options--zone {
  grid-template-columns: repeat(auto-fit, minmax(90px, max-content));
  justify-content: center;
  gap: 40px 60px;
  padding-top: 16px;
  padding-bottom: 15px;
}

.soq-layout-interstitial {
  min-height: min(500px, 64vh);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  padding-bottom: 8px;
}

.soq-layout-interstitial .soq-step-subtitle {
  margin: 20px auto 0;
}

.soq-interstitial-spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0;
}

.soq-interstitial-spinner span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--soq-a), var(--soq-b));
  transform-origin: center -19px;
  animation: soq-pulse 1.1s linear infinite;
}

.soq-interstitial-spinner span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); animation-delay: -0.96s; }
.soq-interstitial-spinner span:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); animation-delay: -0.82s; }
.soq-interstitial-spinner span:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); animation-delay: -0.68s; }
.soq-interstitial-spinner span:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); animation-delay: -0.54s; }
.soq-interstitial-spinner span:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg); animation-delay: -0.4s; }
.soq-interstitial-spinner span:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg); animation-delay: -0.26s; }
.soq-interstitial-spinner span:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg); animation-delay: -0.12s; }
.soq-interstitial-spinner span:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg); animation-delay: 0s; }

@keyframes soq-pulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 1; }
}

.soq-layout-density .soq-step-header {
  margin-bottom: 40px;
}

.soq-density-list {
  width: min(540px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.soq-density-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 24px;
}

.soq-density-zone {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.soq-density-icon-wrap {
  width: 60px;
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#f4f4f4, #f4f4f4) padding-box,
    conic-gradient(from var(--soq-border-angle), #FF8040 0%, #A21A32 40%, #0545D4 70%, #FF8040 100%) border-box;
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: soq-border-spin 5s linear infinite;
}

.soq-density-icon {
  /* width: 100%;
  height: 100%; */
}

.soq-density-zone-title {
  font-size: 16px;
  line-height: 1.24;
  font-weight: 600;
  overflow-wrap: anywhere;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

/* Give sliders a stable lane width so rows align as one component. */
.soq-density-control {
  --soq-row-active-color: var(--soq-a);
  --soq-row-fill-pct: 0%;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 8px;
  width: 100%;
}

.soq-density-control:has(.soq-density-label.is-active[data-density-label="1"]) {
  --soq-row-active-color: var(--soq-b);
  --soq-row-fill-pct: 50%;
}

.soq-density-control:has(.soq-density-label.is-active[data-density-label="2"]) {
  --soq-row-active-color: var(--soq-c);
  --soq-row-fill-pct: 100%;
}

.soq-density-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-inline: 4px;
  color: #7d7872;
  line-height: 1.2;
  align-items: end;
}

.soq-density-label {
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.24;
  color: #797872;
  transition: color var(--soq-ease);
}

.soq-density-label.is-active {
  color: var(--soq-row-active-color);
  font-weight: 700;
}

.soq-range {
  width: 100%;
  height: 8px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

/* .soq-range:focus-visible {
  outline: 0;
} */

.soq-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--soq-a), var(--soq-b), var(--soq-c)) 0 0 / var(--soq-row-fill-pct) 100% no-repeat,
    #ece9e4;
}

.soq-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border-radius: 50%;
  border: 1px solid #6f6a64;
  background: #f2f1ee;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.soq-range::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #ece9e4;
}

/* Firefox supports split track rendering for better visual rhythm. */
.soq-range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--soq-a), var(--soq-b), var(--soq-c)) 0 0 / var(--soq-row-fill-pct) 100% no-repeat,
    #ece9e4;
}

.soq-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 1px solid #6f6a64;
  border-radius: 50%;
  background: #f2f1ee;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.soq-layout-form .soq-step-header {
  margin-bottom: 32px;
}

.soq-form {
  width: min(600px, 100%);
  margin: 0 auto;
}

div.soq-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.soq-form-row + .soq-form-row {
  margin-top: 20px;
}

.soq-label {
  display: block;
}

.soq-label span {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.24;
  padding-left: 16px;
}

/* CHANGE: blue asterisk on required field labels */
.soq-layout-form .soq-label span .soq-required {
  color: #A21A32;
  margin-left: 4px;
  line-height: 1.4;
  font-weight: normal;
}

.soq-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #EAE9E5;
  border-radius: 40px; 
  background: #ffffff; 
  font-size: 16px;
  line-height: 1.24;
  transition: border-color var(--soq-ease), box-shadow var(--soq-ease), background-color var(--soq-ease);
  cursor: text;
}

.soq-input::placeholder {
  color: #b0ada9; /* CHANGE: slightly lighter placeholder to match Figma */
}

/* .soq-input:hover {
  border-color: #a9a49f;
} */

/* .soq-input:focus-visible {
  outline: 0;
  border-color: #5a78e8;
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.2);
  background: #f6f6f6;
} */

.soq-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.24;
  cursor: pointer;
  padding-left: 12px;
}

.soq-checkbox input {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid #FF8040 !important;
  border-radius: 4px;
  background: #fff;
  accent-color: #D14500;
  cursor: pointer;
}

.soq-checkbox span {
  font-size: inherit;
  line-height: inherit;
  color: #57534e;
  font-size: 14px;
}

.soq-confidentiality {
  font-size: 12px;
  line-height: 1.24;
  color: #57534e;
  padding-left: 42px;
  margin-top: 20px;
}

/* .soq-checkbox input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.26);
} */

.soq-error,
.soq-form-error {
  min-height: 16px;
  margin-top: 7px;
  color: var(--soq-danger);
  font-size: 12px;
  line-height: 1.3;
  display: none;
}

.soq-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-bottom: 40px;
}

.soq-btn-restart {
  position: fixed;
  left: 10px;
  bottom: 40px;
  z-index: 99;
  font-size: 11px;
  color: rgba(23, 23, 23, 0.5);
}
.soq-btn-restart:hover {
  color: var(--soq-a);
  text-decoration: underline;
}

.soq-btn-wide {
  width: 100%;
  max-width: none;
}

/* .soq-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.11);
} */

/* .soq-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.24), 0 8px 18px rgba(0, 0, 0, 0.12);
} */

#so-quiz .soq-btn-back.so-btn.so-btn-0 .so-btn-circle {
  background-color: #FFF5ED;
  transform: translateX(4px);
}
#so-quiz .soq-btn-back.so-btn.so-btn-0:hover .so-btn-circle {
  background-color: #100F0F;
  transform: translateX(0px);
}
#so-quiz .soq-btn-back.so-btn.so-btn-0 .so-btn-circle svg {
  transform: scaleX(-1) translateX(-100%);
}

#so-quiz .so-btn:disabled,
#so-quiz .so-btn:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.2);
}

#so-quiz .so-btn:disabled:hover::before {
  transform: translate3d(0, 68%, 0) scale3d(0, 0, 0);
  transition: none;
}

#so-quiz .so-btn:disabled:hover::after {
  transform: translate3d(0, -101%, 0) !important;
  transition: none;
}

#so-quiz .so-btn:disabled:hover .so-btn-circle {
  transform: none;
}

#so-quiz .so-btn.so-btn-0:disabled:hover .so-btn-circle {
  background-color: #F4F3EF;
}

#so-quiz .so-btn.so-btn-0:disabled:hover .so-btn-circle path:not(.so-whatsapp-svg-path),
#so-quiz .so-btn.so-btn-0:disabled:hover .so-btn-circle rect,
#so-quiz .so-btn.so-btn-0:disabled:hover .so-btn-circle circle {
  stroke: #100F0F;
}

#so-quiz .so-btn.so-btn-0:disabled:hover span {
  color: var(--t, #F4F3EF);
}

.soq-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
}

.soq-modal--caller,
.soq-modal--why {
  isolation: isolate;
}

.soq-modal.is-hidden {
  display: none;
}

.soq-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.soq-modal-box {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  padding: 70px 32px 70px 32px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.soq-modal--why .soq-modal-box {
  text-align: center;
}

.soq-modal-title {
  margin-bottom: 24px;
  font-size: 24px;
  line-height: 1.24;
  font-weight: 600;
  font-family: "Instrument Sans",sans-serif;
  letter-spacing: -0.05em;
}

.soq-modal-text {
  font-size: 14px;
}

.soq-modal-close {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFF5ED;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  padding-top: 2px;
  font-weight: 300;
  font-family: "Instrument Sans",sans-serif;
}

/* .soq-modal-close:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.24);
} */

.soq-callme-success {
  margin-top: 10px;
  color: #2c2c2c;
  font-size: 13px;
}

.soq-callme-success.is-hidden {
  display: none;
}

.soq-debug {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(20, 20, 20, 0.76);
  font-size: 12px;
}

.soq-debug pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

@media (max-width: 1024px) {
  .soq-options--wide, .soq-options--stacked, .soq-mixed-text-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(5)),
  .soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(5)),
  .soq-mixed-text-options:has(> .soq-option--card:first-child:nth-last-child(5)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card,
  .soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card,
  .soq-mixed-text-options:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card,
  .soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card:nth-child(-n+2),
  .soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card:nth-child(-n+2),
  .soq-mixed-text-options:has(> .soq-option--card:first-child:nth-last-child(5)) > .soq-option--card:nth-child(-n+2) {
    grid-column: auto;
  }

  .soq-split-options .soq-option {
    min-width: unset;
  }

  /* .soq-density-row {
    grid-template-columns: 1fr;
    gap: 10px;
  } */
}

@media (max-width: 768px) {

  /* .soq-callme-btn {
    width: 62px;
    height: 62px;
    border-width: 4px;
  } */

  .soq-step-inner {
    width: 100%;
  }

  .soq-density-list {
    gap: 32px;
  }

}

/* ==========================================================================
   Premium hover / active / focus states (replaces commented-out blocks above)
   ========================================================================== */

/* --- Call-me FAB ---------------------------------------------------------- */

.soq-callme-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.soq-callme-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  transition-duration: 80ms;
}

.soq-callme-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(244, 121, 52, 0.38), 0 12px 22px rgba(0, 0, 0, 0.18);
}

/* --- Why button ----------------------------------------------------------- */

.soq-why-btn:focus-visible {
  outline: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(244, 121, 52, 0.5);
}

/* --- Answer option cards -------------------------------------------------- */

.soq-option:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: #6a6660;
  box-shadow: 0 6px 16px rgba(16, 16, 16, 0.08);
}

.soq-option:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 2px 5px rgba(16, 16, 16, 0.06);
  transition-duration: 80ms;
}

.soq-option:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 2px var(--soq-bg),
    0 0 0 4px rgba(37, 85, 232, 0.5),
    0 8px 18px rgba(0, 0, 0, 0.1);
}

/* Preserve lift + scale on hover; border-color override from :hover is harmless
   because the ring lives in ::before, not in CSS border */
.soq-option.is-selected:hover {
  transform:  scale(1.01);
  border-color: transparent; /* belt-and-suspenders: keep border invisible */
}

/* --- Zone option buttons (icon + label layout) ---------------------------- */

.soq-zone-icon-wrap {
  transition: transform var(--soq-ease), box-shadow var(--soq-ease), border-color var(--soq-ease);
}

.soq-option--zone:hover,
.soq-option--zone.is-selected {
  transform: none;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.soq-option--zone:hover .soq-zone-icon-wrap {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 5px 12px rgba(16, 16, 16, 0.1);
}

.soq-option--zone:active:not(:disabled) .soq-zone-icon-wrap {
  transform: scale(0.96);
  box-shadow: none;
  transition-duration: 80ms;
}

.soq-option--zone:focus-visible {
  outline: 0;
  box-shadow: none;
}

.soq-option--zone:focus-visible .soq-zone-icon-wrap {
  box-shadow:
    0 0 0 2px var(--soq-bg),
    0 0 0 4px rgba(37, 85, 232, 0.48);
}

/* --- Range slider --------------------------------------------------------- */

.soq-range:focus-visible {
  outline: 0;
}

.soq-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.soq-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(37, 85, 232, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- Text inputs ---------------------------------------------------------- */

.soq-input:hover {
  border-color: #a9a49f;
  background: #ffffff;
}

.soq-input:focus-visible {
  outline: 0;
  border-color: #FF8040;
  box-shadow: 0 0 0 3px rgba(245, 138, 38, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

/* --- Checkbox ------------------------------------------------------------- */

.soq-checkbox input:focus-visible {
  outline: 0;
}

/* --- Action buttons (Next / Back) ---------------------------------------- */

/* .soq-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);
} */

/* --- Modal close button --------------------------------------------------- */

.soq-modal-close:hover {
  background: #f5f5f5;
}

.soq-modal-close:active {
  transform: scale(0.94);
  transition-duration: 80ms;
}

.soq-modal-close:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px var(--soq-bg), 0 0 0 4px rgba(37, 85, 232, 0.4);
}

/* ==========================================================================
   Quiz page loader — full-screen overlay shown while so-quiz.js initialises
   ========================================================================== */

/* CHANGE: #so-quiz fades in sync with loader fade-out — no overlap */
#so-quiz {
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#so-quiz.soq-quiz--loading {
  opacity: 0;
}

/* CHANGE: loader covers .soq-main only; removed instantly by JS — no transition needed */
#soq-loader {
  position: absolute;
  padding-bottom: 200px;
  width: 100%;
  height: 100vh;
  z-index: 10;
  background: #FFF5ED;
  display: flex;
  align-items: center;
  justify-content: center;
}

.soq-premium-logo path {
  opacity: 0; /* CHANGE: pre-hide paths in CSS — GSAP animates them in, no flash */
}




@media screen and (max-width: 600px) {

  #so-quiz {
    min-height: calc(100dvh - 56px);
  }

  #soq-loader {
    height: 100dvh;
  }
  
  .soq-top {
    padding-top: 20px;
    margin-bottom: 40px;
    position: sticky;
    z-index: 1;
    top: 56px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 13px;
    padding-right: 13px;
  }

  .soq-split-title {
    margin-bottom: 20px;
  }

  .soq-step-header {
    margin-bottom: 20px;
  }

  .soq-layout-density .soq-step-header {
    margin-bottom: 30px;
  }

  .soq-layout-form .soq-step-title {
    margin-bottom: 20px;
  }

  #so-quiz[data-p="P01"] .soq-content, #so-quiz[data-p="P11"] .soq-content {
    padding-bottom: 110px;
  }

  #so-quiz:not([data-p="P01"]):not([data-p="P11"]) .soq-content {
    align-items: flex-start;
    padding-bottom: 32px;
  }

  .soq-layout-centered-input, .soq-layout-header-grid, .soq-layout-zone, .soq-layout-density {
    min-height: unset;
  }
  
  .soq-centered-title {
    font-size: 24px;
  }
  .soq-centered-title br {
    display: none;
  }

  .soq-layout-centered-input .soq-centered-input .soq-input {
    padding: 14px 16px;
  }

  .soq-label span {
    font-size: 14px;
  }

  .soq-step-title, .soq-q-title, .soq-split-title, .soq-mixed-title, .soq-layout-zone .soq-step-title, .soq-layout-density .soq-step-title {
    font-size: 20px;
  }

  .soq-step-subtitle {
    font-size: 16px;
  }
  .soq-step-subtitle br {
    display: none;
  }

  .soq-layout-form .soq-step-subtitle {
    font-size: 14px;
  }

  .soq-split-group-title {
    font-size: 18px;
  }

  .soq-split-options {
    grid-auto-rows: auto;
    gap: 12px;
  }

  .soq-layout-interstitial .soq-step-title {
    font-size: 22px;
  }

  .soq-layout-form .soq-step-title {
    font-size: 24px;
  }

  .soq-modal-title {
    font-size: 20px;
  }

  .soq-options--stacked .soq-option-label {
    font-size: 14px;
  }

  .soq-options--stacked {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .soq-options--stacked > .soq-option--card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }

  .soq-mixed-text-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .soq-mixed-text-options > .soq-option--card:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: calc(50% - 6px) !important;
  }

  .soq-options--wide {
    grid-template-columns: 1fr !important;
  }

  .soq-density-icon-wrap {
    width: 46px;
  }

  .soq-density-zone-title {
    font-size: 15px;
  }

  .soq-density-zone {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .soq-options--zone {
    padding-top: 0;
    padding-bottom: 0;
  }

  .soq-density-row {
    grid-template-columns: 90px 1fr;
    gap: 10px;
  }

  .soq-density-icon-wrap {
    border-width: 2px;
  }

  .soq-density-labels {
    gap: 6px;
    padding-inline: 0;
  }

  .soq-density-label.is-active {
    font-weight: 600;
  }

  .soq-split-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-inline: unset;
  }

  .soq-split-ou {
    padding: 0 20px;
  }
  
  .soq-split-divider {
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: 1px;
  }

  .soq-split-center {
    position: static;
    width: 100%;
    min-height: 28px;
    margin: 0;
    height: auto;
  }

  .soq-mixed-image-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
  }

  .soq-mixed-image-options > .soq-option--image {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 58px;
    min-height: auto;
    aspect-ratio: unset;
  }

  .soq-density-zone-title {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .soq-options--zone {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 12px;
  }

  .soq-zone-icon-wrap {
    width: 70px;
  }

  .soq-option,
  .soq-option--card,
  .soq-split-options .soq-option {
    min-height: 56px !important;
    padding: 12px !important;
  }

  div.soq-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .soq-form-row + .soq-form-row {
    margin-top: 16px;
  }

  .soq-checkbox {
    margin-top: 32px;
  }

  .soq-actions {
    gap: 0px;
    justify-content: space-around;
  }
  #so-quiz[data-p="P19"] .soq-actions {
    flex-direction: column-reverse;
    gap: 20px;
  }
  #so-quiz[data-p="P19"] .soq-btn-back {
    opacity: 0.6;
  }

  .soq-btn-restart {
    bottom: 0px;
    left: 0;
    padding: 5px;
  }
  .soq-debug-ids {
    left: unset;
    bottom: 0px;
    right: 0px;
    padding: 5px;
  }

  /* .soq-btn-restart {
    bottom: unset;
    top: 59px;
    left: 16px;
  }
  .soq-debug-ids {
    bottom: unset;
    top: 59px;
    left: unset;
    right: 16px;
  } */

  .soq-step-surface {
    padding: 0 20px;
    background: transparent;
  }

  .soq-layout-mixed {
    gap: 40px;
  }

  .soq-question-groups {
    gap: 16px;
  }

  .soq-split-center {
    --soq-split-title-zone: calc(17px * 1.24 + 20px);
  }

  .soq-modal-box {
    width: var(--wrapper);
  }

  .soq-why-btn {
    font-size: 13px;
  }





  



  /* .soq-options--wide, .soq-options--stacked, .soq-mixed-text-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  } */

  /* .soq-options--wide > .soq-option--card:last-child:nth-child(odd),
  .soq-options--stacked > .soq-option--card:last-child:nth-child(odd),
  .soq-mixed-text-options > .soq-option--card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 6px);
  } */

  /* .soq-options--wide:has(> .soq-option--card:first-child:nth-last-child(5)),
  .soq-options--stacked:has(> .soq-option--card:first-child:nth-last-child(5)),
  .soq-mixed-text-options:has(> .soq-option--card:first-child:nth-last-child(5)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  } */

  

  /* .soq-callme-btn {
    right: 14px;
    bottom: 14px;
  } */

}



/* misc */

.so-footer .so-content .so-row .so-col:last-of-type nav {
  border-top: none;
}
.so-footer {
  padding-top: 80px;
}
@media screen and (max-width:600px) {
 .so-footer {
    padding-top: 20px;
  }
}