/* ============================================================
   NIL — What's Next Quiz  |  Full-page styles v5
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:ital,wght@0,400;0,500;1,400&display=swap");

.nil-quiz {
  margin: 0 auto;
  padding: 80px 40px;
  font-family: "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (min-width: 1024px) {
    .nil-quiz-share {
        padding: 60px 0 0;
    }
}
/* ---------- progress bar ---------- */
.nil-quiz-progress {
  display: none;
  gap: 8px;
  width: 100%;
  max-width: 780px;
  margin-bottom: 40px;
}
.nil-quiz-seg {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #d5d8dc;
  transition: background 0.4s ease;
}
.nil-quiz-seg.active {
  background: #3aafa9;
}

/* ---------- title ---------- */
.nil-quiz-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px !important;
  font-weight: 400;
  color: #021d44;
  letter-spacing: 1px;
  line-height: 50px !important;
  margin: 0 0 20px;
  text-transform: uppercase;
}

/* ---------- steps ---------- */
.nil-quiz-step {
  display: none;
  animation: nilFadeIn 0.35s ease forwards;
}
.nil-quiz-step.active {
  display: block;
}
@keyframes nilFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- intro step ---------- */
.nil-quiz-intro {
  max-width: 620px;
}
.nil-quiz-intro-eyebrow {
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  background: #3aafa9;
  padding: 5px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.nil-quiz-intro-stat {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px !important;
  font-weight: 400;
  color: #021d44;
  line-height: 1.15 !important;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.nil-quiz-intro-asterisk {
  font-size: 24px;
  vertical-align: super;
  color: #3aafa9;
}
.nil-quiz-intro-body {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 32px;
}
.nil-quiz-intro-source {
  font-size: 12px;
  color: #a0a4ab;
  margin-top: 20px;
  font-style: italic;
}

/* ---------- question heading ---------- */
.nil-quiz-question {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px !important;
  font-weight: 400;
  color: #021d44;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0 0 28px;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.nil-quiz-q-num-label {
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  background: #021d44;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* ---------- multiple-choice options ---------- */
.nil-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.nil-quiz-option {
  cursor: pointer;
  display: block;
}
.nil-quiz-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nil-quiz-option-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #EBEEF1 !important;
  border: 1.5px solid #021D44 !important;
  border-radius: 6px;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.nil-quiz-option-row:hover {
  border-color: #a0a4ab;
}
.nil-quiz-option input:checked + .nil-quiz-option-row {
  border-color: #3aafa9 !important;
  background: #e8f6f5 !important;
  box-shadow: 0 0 0 2px rgba(58, 175, 169, 0.2);
}
.nil-quiz-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 1.5px solid #021d44;
  border-radius: 5px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 15px;
  line-height: 1;
  color: #021d44;
  background: white !important;
  transition:
    background 0.2s,
    color 0.2s;
}
.nil-quiz-option input:checked + .nil-quiz-option-row .nil-quiz-badge {
  background: #021d44;
  color: #021D44 !important;
}
.nil-quiz-option-text {
  font-size: 15px;
  color: #1a1a2e;
  line-height: 1.45;
}

/* ---------- scale options ---------- */
.nil-quiz-scale {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}
.nil-quiz-scale-option {
  flex: 1;
  cursor: pointer;
  display: block;
}
.nil-quiz-scale-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nil-quiz-scale-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: #EBEEF1 !important;
  border: 1px solid #021D44 !important;
  border-radius: 10px;
  text-align: center;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
.nil-quiz-scale-box:hover {
  border-color: #a0a4ab;
  transform: translateY(-2px);
}
.nil-quiz-scale-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #a0a4ab;
  background: #ffffff;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.nil-quiz-scale-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  letter-spacing: 0.8px;
  color: #021d44;
  text-transform: uppercase;
}
.nil-quiz-scale-option input:checked + .nil-quiz-scale-box {
  border-color: #3aafa9;
  background: #e8f6f5;
  box-shadow: 0 0 0 3px rgba(58, 175, 169, 0.2);
}
.nil-quiz-scale-option
  input:checked
  + .nil-quiz-scale-box
  .nil-quiz-scale-indicator {
  border-color: #3aafa9;
  background: #3aafa9;
  box-shadow: inset 0 0 0 3px #ffffff;
}

/* ---------- nav ---------- */
.nil-quiz-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- buttons ---------- */
.nil-quiz-btn {
  display: flex;
  width: 204px;
  height: 55px;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: var(--Primary-1, #021d44);
  color: var(--Secondary-3, #e2e2e2);
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 19.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.25s,
    opacity 0.25s,
    transform 0.15s;
  white-space: nowrap;
}
.nil-quiz-btn:hover {
  background: #0a2d5c;
}
.nil-quiz-btn:active {
  transform: scale(0.97);
}
.nil-quiz-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.nil-quiz-arrow {
  font-size: 17px;
  line-height: 1;
}
.nil-quiz-btn-back {
  background: transparent;
  color: #021d44;
  border: 1.5px solid #d5d8dc;
}
.nil-quiz-btn-back:hover {
  background: rgba(2, 29, 68, 0.04);
  border-color: #021d44;
  color: #021D44!important;
}

/* ---------- form ---------- */
.nil-quiz-form {
  margin-bottom: 8px;
}
.nil-quiz-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nil-quiz-field {
  margin-bottom: 20px;
}
.nil-quiz-field label {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: #021d44;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.nil-quiz-field input {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  color: #021d44;
  background: #edeef0;
  border: 1.5px solid #d5d8dc;
  border-radius: 6px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}
.nil-quiz-field input::placeholder {
  color: #a0a4ab;
}
.nil-quiz-field input:focus {
  border-color: #3aafa9;
  box-shadow: 0 0 0 3px rgba(58, 175, 169, 0.15);
}
.nil-quiz-field input.has-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}
.nil-quiz-privacy {
  font-size: 12px;
  color: #a0a4ab;
  margin-top: 16px;
}
.nil-quiz-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: -12px 0 28px;
}

/* ============================================================
   Result screen — matches the "QUIZ RESULTS" Figma designs
   Lime #c8ff78 · Navy #021d44 · Bebas Neue headings · Roboto body
   ============================================================ */

body.nil-quiz-result-active {
  overflow-x: hidden !important;
}

.nil-quiz--result {
  background: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  position: relative;
}
.nil-quiz--result::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #ffffff;
  z-index: 0;
}
.nil-quiz--result .nil-quiz-progress,
.nil-quiz--result .nil-quiz-title {
  display: none;
}
.nil-quiz-step[data-step="14"] {
  position: relative;
  z-index: 1;
}

/* Fixed to the Figma canvas: 1160px content (two flush 580px columns, 740px
   tall). Exact px are used at >=1200px so it matches the design pixel-for-pixel;
   below that it scales down / stacks. */
.nil-quiz-result-page {
  width: 1160px;
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 0 0;
}

/* -- two-column grid: lime card + bordered box, flush -- */
.nil-quiz-result-grid {
  position: relative;
  display: grid;
  grid-template-columns: 580px 580px;
  justify-content: center;
  height: 680px;
  margin-bottom: 20px;
}

/* Vertical "QUIZ RESULTS" label to the left of the card */
.nil-quiz-result-vlabel {
  position: absolute;
  top: 0;
  left: -30px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: #021d44;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Left column (lime card) ---------- */
.nil-quiz-result-left {
  position: relative;
  overflow: hidden;
  background: #c8ff78;
}

/* Speech-bubble greeting (navy bubble is the exact Figma vector) */
.nil-quiz-result-greetwrap {
  position: relative;
  height: 231px;
  padding: 33px 44px 0 72px;
  box-sizing: border-box;
}
.nil-quiz-result-bubble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.nil-quiz-result-greeting {
  position: relative;
  z-index: 1;
}
.nil-quiz-result-hey {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: 0.5px;
  color: #c8ff78;
  text-transform: uppercase;
}
.nil-quiz-result-bigtitle {
  display: block;
  margin-top: 4px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 100px;
  line-height: 0.9;
  letter-spacing: 1px;
  color: #c8ff78;
  text-transform: uppercase;
}

.nil-quiz-result-left-body {
  position: relative;
  z-index: 1;
  padding: 62px 60px 44px;
}
.nil-quiz-result-archetype {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: #021d44;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 16px;
}
.nil-quiz-result-desc {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: #222222;
  margin: 0 0 48px;
  max-width: 460px;
}
.nil-quiz-result-list-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: #021d44;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 16px;
}
.nil-quiz-result-traits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nil-quiz-result-trait {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.nil-quiz-result-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  line-height: 0;
  margin-top: 1px;
}
.nil-quiz-result-check svg {
  width: 20px;
  height: 20px;
  display: block;
}
.nil-quiz-result-trait-text {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 22px;
  color: #222222;
}

/* ---------- Right column (bordered box) ---------- */
.nil-quiz-result-right {
  background: #ffffff;
  border: 1px solid #021d44;
  display: flex;
  flex-direction: column;
  height: 740px;
  box-sizing: border-box;
}
.nil-quiz-result-careers {
  height: 435px;
  box-sizing: border-box;
  padding: 40px 60px 0;
  border-bottom: 1px solid #021d44;
  overflow: hidden;
}
.nil-quiz-result-section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px !important;
  font-weight: 400 !important;
  color: #021d44;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 16px;
}
.nil-quiz-result-career-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nil-quiz-result-career {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.nil-quiz-result-career-ic {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.nil-quiz-result-career-ic svg {
  width: 20px;
  height: 20px;
  display: block;
}
.nil-quiz-result-career-txt {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #222222;
}
.nil-quiz-result-career-name {
  color: #222222;
}
.nil-quiz-result-nextstep {
  flex: 1 1 auto;
  padding: 46px 60px 0;
}
.nil-quiz-result-next-desc {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 20px;
  color: #222222;
  margin: 16px 0 16px;
}

/* Three resource cards, flush at the bottom; middle one highlighted */
.nil-quiz-result-resources {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #021d44;
}
.nil-quiz-result-resource {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none !important;
  border-right: 1px solid #021d44;
  border-bottom: 1px solid #021d44;
  transition: background 0.2s;
}
.nil-quiz-result-resource:last-child {
  border-right: none;
}
.nil-quiz-result-resource:hover {
  background: #c8ff78;
  text-decoration: underline !important;
  text-decoration-color: #222222 !important;
}
.nil-quiz-result-resource--highlight {
  background: #c8ff78;
}
.nil-quiz-result-resource--highlight:hover {
  background: #bcf964;
}
.nil-quiz-result-res-ic {
  width: 32px;
  height: 32px;
  line-height: 0;
}
.nil-quiz-result-res-ic svg {
  width: 32px;
  height: 32px;
  display: block;
}
.nil-quiz-result-res-label {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 20px;
  color: #222222;
}
.nil-quiz-result-resource--highlight .nil-quiz-result-res-label {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Share row ---------- */
.nil-quiz-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 24px 0 0;
}
.nil-quiz-share-text {
  font-family: "Roboto", sans-serif;
  font-style: italic;
  font-size: 16px;
  line-height: 20px;
  color: #222222;
  margin: 0;
}
.nil-quiz-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c8ff78;
  border-radius: 40px;
  padding: 4px 12px;
}
.nil-quiz-share-label {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #2d4c00;
}
.nil-quiz-share-sep {
  width: 8px;
  height: 0;
  border-top: 1px solid #2d4c00;
}
.nil-quiz-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: transparent;
  border: none;
  color: #021d44;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
  text-decoration: none;
}
.nil-quiz-share-icon:hover {
  opacity: 0.6;
}
.nil-quiz-share-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}
/* ---------- Marquee ticker ---------- */
.nil-quiz-marquee {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  overflow: hidden;
  background: #c8ff78;
  border-top: 2px solid #021d44;
  border-bottom: 2px solid #021d44;
  padding: 8px 0;
  margin-top: 40px;
}
.nil-quiz-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: nilMarquee 30s linear infinite;
}
.nil-quiz-marquee-item {
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: #021d44;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 24px;
}
@keyframes nilMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nil-quiz-marquee-track {
    animation: none;
  }
}

/* ============================================================
   Result responsive — below the 1160px design width, scale down
   ============================================================ */
@media (max-width: 1199px) {
  .nil-quiz-result-page {
    width: 100%;
    padding: 48px 24px 0;
  }
  .nil-quiz-result-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .nil-quiz-result-vlabel {
    display: none;
  }
  .nil-quiz-result-right {
    height: auto;
  }
  .nil-quiz-result-greetwrap {
    height: auto;
    min-height: 200px;
    padding: 32px 32px 60px;
  }
  .nil-quiz-result-bigtitle {
    font-size: clamp(48px, 8vw, 100px);
  }
  .nil-quiz-result-hey {
    font-size: clamp(20px, 2.6vw, 32px);
  }
  .nil-quiz-result-left-body {
    padding: 40px 32px 40px;
  }
  .nil-quiz-result-careers {
    height: auto;
    padding: 32px 32px 28px;
  }
  .nil-quiz-result-nextstep {
    padding: 32px 32px 0;
  }
  .nil-quiz-result-archetype,
  .nil-quiz-result-list-title,
  .nil-quiz-result-section-title {
    font-size: clamp(26px, 3.2vw, 36px);
  }
}
@media (max-width: 768px) {
  .nil-quiz-result-page {
    padding: 32px 16px 0;
  }
  .nil-quiz-result-grid {
    grid-template-columns: 1fr;
  }
  .nil-quiz-result-desc,
  .nil-quiz-result-trait-text {
    font-size: 16px;
  }
  .nil-quiz-result-marquee-item,
  .nil-quiz-marquee-item {
    font-size: 28px;
  }
}
@media (max-width: 480px) {
  .nil-quiz-result-greetwrap {
    padding: 26px 22px 48px;
  }
  .nil-quiz-result-left-body {
    padding: 32px 22px 32px;
  }
  .nil-quiz-result-careers {
    padding: 26px 22px 22px;
  }
  .nil-quiz-result-nextstep {
    padding: 26px 22px 0;
  }
  .nil-quiz-result-desc,
  .nil-quiz-result-trait-text {
    font-size: 15px;
  }
  .nil-quiz-result-resources {
    height: auto;
    grid-template-columns: 1fr;
  }
  .nil-quiz-result-resource {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-right: none;
    border-bottom: 1px solid #021d44;
  }
  .nil-quiz-result-resource:last-child {
    border-bottom: none;
  }
  .nil-quiz-marquee-item {
    font-size: 22px;
    padding: 0 14px;
  }
}

/* ---------- spinner ---------- */
.nil-quiz-btn.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}
.nil-quiz-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: nilSpin 0.6s linear infinite;
}
@keyframes nilSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   Responsive — Tablet (769px – 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nil-quiz {
    padding: 60px 32px;
  }
  .nil-quiz-title {
    font-size: 44px;
    margin-bottom: 36px;
  }
  .nil-quiz-intro {
    max-width: 100%;
  }
  .nil-quiz-intro-stat {
    font-size: 32px;
  }
  .nil-quiz-question {
    font-size: 28px;
    margin-bottom: 24px;
     line-height: 60px !important;
  }
  .nil-quiz-option-row {
    padding: 16px 18px;
    gap: 14px;
  }
  .nil-quiz-scale {
    gap: 12px;
  }
  .nil-quiz-scale-box {
    padding: 22px 14px;
  }
  .nil-quiz-scale-label {
    font-size: 16px;
  }
  .nil-quiz-btn {
    width: 180px;
    height: 50px;
    font-size: 18px;
  }

}

/* ============================================================
   Responsive — Small tablet / large phone (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .nil-quiz {
    padding: 48px 20px;
  }
  .nil-quiz-title {
    font-size: 36px;
    margin-bottom: 28px;
  }
  .nil-quiz-progress {
    gap: 4px;
    margin-bottom: 28px;
  }
  .nil-quiz-intro-stat {
    font-size: 28px;
  }
  .nil-quiz-intro-body {
    font-size: 15px;
  }
  .nil-quiz-question {
    font-size: 28px;
    margin-bottom: 20px;
     line-height: 60px !important;
  }
  .nil-quiz-option-row {
    padding: 14px 16px;
    gap: 12px;
  }
  .nil-quiz-option-text {
    font-size: 14px;
  }
  .nil-quiz-badge {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 13px;
  }
  .nil-quiz-scale {
    flex-direction: column;
    gap: 10px;
  }
  .nil-quiz-scale-box {
    flex-direction: row;
    padding: 16px 18px;
    gap: 12px;
  }
  .nil-quiz-scale-label {
    font-size: 16px;
  }
  .nil-quiz-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nil-quiz-field input {
    padding: 14px 16px;
    font-size: 14px;
  }
  .nil-quiz-nav {
    flex-wrap: wrap;
  }
  .nil-quiz-btn {
    width: 100%;
    height: 50px;
    font-size: 18px;
  }
  .nil-quiz-nav {
    flex-direction: column-reverse;
  }

}

/* ============================================================
   Responsive — Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .nil-quiz {
    padding: 40px 16px;
  }
  .nil-quiz-title {
    font-size: 30px;
    margin-bottom: 24px;
  }
  .nil-quiz-progress {
    gap: 3px;
    margin-bottom: 20px;
  }
  .nil-quiz-seg {
    height: 4px;
  }
  .nil-quiz-intro-eyebrow {
    font-size: 12px;
    padding: 4px 12px;
  }
  .nil-quiz-intro-stat {
    font-size: 24px;
  }
  .nil-quiz-intro-body {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .nil-quiz-intro-source {
    font-size: 11px;
  }
  .nil-quiz-question {
    font-size: 28px;
    margin-bottom: 18px;
    line-height: 60px !important;
  }
  .nil-quiz-q-num-label {
    font-size: 11px;
    padding: 3px 10px;
  }
  .nil-quiz-option-row {
    padding: 12px 14px;
    gap: 10px;
  }
  .nil-quiz-option-text {
    font-size: 13px;
  }
  .nil-quiz-badge {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 12px;
    border-radius: 4px;
  }
  .nil-quiz-scale-box {
    padding: 14px 16px;
    gap: 10px;
  }
  .nil-quiz-scale-indicator {
    width: 20px;
    height: 20px;
  }
  .nil-quiz-scale-label {
    font-size: 14px;
  }
  .nil-quiz-field label {
    font-size: 12px;
  }
  .nil-quiz-field input {
    padding: 12px 14px;
    font-size: 14px;
  }
  .nil-quiz-btn {
    height: 48px;
    font-size: 16px;
    padding: 0 16px;
  }
  .nil-quiz-nav {
    gap: 8px;
  }

}

/* ---------- HubSpot form modal (Explorer result) ---------- */
.nil-quiz-hs-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.nil-quiz-hs-modal.active {
  display: flex;
}
.nil-quiz-hs-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 29, 68, 0.6);
  backdrop-filter: blur(4px);
}
.nil-quiz-hs-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 48px 40px 40px;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.nil-quiz-hs-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #021d44;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.nil-quiz-hs-modal-close:hover {
  color: #3aafa9;
}
.nil-quiz-hs-open {
  cursor: pointer;
  border: none;
}
@media (max-width: 480px) {
  .nil-quiz-hs-modal-content {
    padding: 40px 20px 24px;
    width: 95%;
  }
}