:root {
  --amar-purple: #621587;
  --amar-orange: #f36606;
  --amar-ink: #23092f;
  --amar-text: #4e4f4f;
  --amar-muted: #74787a;
  --amar-line: #e7e1eb;
  --amar-soft: #fbfcfc;
  --amar-wash: #f6f0f8;
  --amar-white: #ffffff;
  --amar-shadow: 0 24px 70px rgba(35, 9, 47, 0.14);
}

* {
  box-sizing: border-box;
}

body.amar-quiz-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--amar-text);
  background:
    linear-gradient(112deg, rgba(243, 102, 6, 0.1) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(98, 21, 135, 0.055) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #ffffff 0%, #fbfcfc 48%, #f8f4fa 100%);
  font-family: "Nunito", Arial, sans-serif;
}

body.amar-quiz-page.is-insight-active {
  height: 100svh;
  overflow: hidden;
}

.quiz-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  padding: 0;
}

.quiz-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  display: grid;
  align-items: center;
}

.quiz-hero {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  gap: 0;
  align-items: center;
}

.quiz-copy {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 56px 0 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42px auto auto -42px;
  width: 132px;
  height: 132px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(243, 102, 6, 0.14), rgba(98, 21, 135, 0.08));
  transform: rotate(-10deg);
}

.quiz-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 42px;
  bottom: -22px;
  width: 156px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amar-purple), var(--amar-orange));
  opacity: 0.22;
}

.quiz-copy h1 {
  margin: 0 0 18px;
  color: var(--amar-ink);
  font-family: "Dosis", "Nunito", Arial, sans-serif;
  font-size: clamp(56px, 6.4vw, 88px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.quiz-copy h1 span {
  color: var(--amar-orange);
}

.quiz-copy p {
  width: min(100%, 560px);
  margin: 0 0 28px;
  color: var(--amar-text);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.quiz-start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 8px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  color: var(--amar-white);
  background: linear-gradient(135deg, #ff760d 0%, var(--amar-orange) 58%, #d64e00 100%);
  box-shadow:
    0 18px 34px rgba(243, 102, 6, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.quiz-start-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(243, 102, 6, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.quiz-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(98, 21, 135, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--amar-shadow);
}

.quiz-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--amar-purple), var(--amar-orange));
}

.quiz-progress {
  margin-bottom: 26px;
}

.quiz-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: var(--amar-purple);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--amar-line);
}

.quiz-progress-fill {
  width: 11.11%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amar-purple), var(--amar-orange));
  transition: width 220ms ease;
}

.quiz-question {
  margin: 0 0 22px;
  color: var(--amar-ink);
  font-family: "Dosis", "Nunito", Arial, sans-serif;
  font-size: clamp(27px, 3.4vw, 39px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid var(--amar-line);
  border-radius: 8px;
  color: var(--amar-ink);
  background: var(--amar-white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.quiz-option:hover,
.quiz-option[aria-pressed="true"] {
  border-color: rgba(243, 102, 6, 0.68);
  background: #fff9f4;
  box-shadow: 0 12px 28px rgba(98, 21, 135, 0.12);
  transform: translateY(-1px);
}

.quiz-option span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--amar-white);
  background: var(--amar-purple);
  font-size: 13px;
  font-weight: 900;
}

.quiz-option strong {
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.quiz-question-actions {
  justify-content: flex-start;
}

.quiz-button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--amar-white);
  background: var(--amar-orange);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

.quiz-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(243, 102, 6, 0.24);
}

.quiz-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.quiz-button.secondary {
  color: var(--amar-purple);
  background: transparent;
}

.insight-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.insight-stage {
  position: relative;
  overflow: hidden;
  min-height: min(680px, calc(100dvh - 36px));
  padding: 30px;
  border-radius: 8px;
  color: var(--amar-white);
  background:
    radial-gradient(circle at 22% 16%, rgba(243, 102, 6, 0.46), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(145deg, #23092f 0%, #43115c 54%, #621587 100%);
  box-shadow: 0 30px 86px rgba(35, 9, 47, 0.28);
}

.insight-fit {
  position: relative;
  z-index: 1;
}

.insight-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--amar-purple), var(--amar-orange));
}

.insight-stage::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -92px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.insight-progress {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-scene {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 430px;
  padding: 34px 0 24px;
}

.insight-number {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-family: "Dosis", "Nunito", Arial, sans-serif;
  font-size: 36px;
  font-weight: 800;
}

.insight-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff1e8;
  background: rgba(243, 102, 6, 0.22);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-answer {
  margin: 22px 0 18px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.insight-answer span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-answer strong {
  display: block;
  color: var(--amar-white);
  font-size: 16px;
  line-height: 1.35;
}

.insight-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.68;
}

.insight-message p {
  margin: 0 0 14px;
}

.insight-message p:last-child {
  margin-bottom: 0;
}

.insight-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.is-insight-active .quiz-shell {
  width: 100%;
  min-height: 100dvh;
  padding: 0;
}

.is-insight-active .quiz-hero {
  display: block;
  min-height: 100dvh;
}

.is-insight-active .insight-panel {
  width: 100%;
  min-height: 100dvh;
}

.is-insight-active .insight-stage {
  min-height: 100dvh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 46px) clamp(28px, 7vw, 96px);
}

.is-insight-active .insight-fit {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: min(920px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.is-insight-active .insight-scene,
.is-insight-active .insight-actions {
  width: 100%;
}

.is-insight-active .insight-scene {
  flex: 1;
  align-content: center;
}

.insight-next {
  min-width: 220px;
  background: linear-gradient(135deg, #ff760d 0%, var(--amar-orange) 62%, #d64e00 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.insight-lead-form {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.insight-lead-form .field label {
  color: rgba(255, 255, 255, 0.78);
}

.insight-lead-form .field input {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--amar-white);
  background: rgba(255, 255, 255, 0.1);
}

.insight-lead-form .field input:focus {
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.insight-lead-form .field-error {
  color: #ffd1c2;
}

.insight-lead-form .form-status {
  color: rgba(255, 255, 255, 0.78);
}

.insight-lead-form .form-status[data-type="success"] {
  color: #d8ffd8;
}

.insight-lead-form .form-status[data-type="error"] {
  color: #ffd1c2;
}

.insight-panel[data-final="true"] .insight-actions {
  display: none;
}

.insight-panel[data-final="true"] .insight-answer {
  display: none;
}

.lead-panel {
  width: min(760px, 100%);
  margin: 0 auto;
}

.lead-panel h2 {
  margin: 0 0 10px;
  color: var(--amar-ink);
  font-family: "Dosis", "Nunito", Arial, sans-serif;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1;
}

.lead-panel p {
  margin: 0 0 26px;
  color: var(--amar-text);
  font-size: 17px;
  line-height: 1.55;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--amar-ink);
  font-size: 14px;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--amar-line);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--amar-ink);
  background: var(--amar-white);
  font: inherit;
  outline: none;
  font-size: 16px;
}

.field input:focus {
  border-color: var(--amar-purple);
  box-shadow: 0 0 0 4px rgba(98, 21, 135, 0.1);
}

.field input[aria-invalid="true"] {
  border-color: #c93232;
}

.field-error {
  min-height: 18px;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.lead-submit {
  width: 100%;
  margin-top: 10px;
}

.form-status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--amar-muted);
  font-weight: 800;
}

.form-status[data-type="success"] {
  color: #16723a;
}

.form-status[data-type="error"] {
  color: #b42318;
}

[hidden] {
  display: none !important;
}

.is-quiz-active .quiz-shell {
  align-items: start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px 0 28px;
}

.is-quiz-active .quiz-hero {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

@media (max-width: 920px) {
  .quiz-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .quiz-copy {
    width: min(100%, 620px);
  }
}

@media (max-width: 640px) {
  .quiz-header,
  .quiz-shell {
    width: calc(100% - 24px);
  }

  .quiz-header {
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
  }

  .quiz-shell {
    min-height: 100dvh;
    padding: 0;
    align-items: stretch;
  }

  .quiz-hero {
    gap: 18px;
    align-items: start;
  }

  .quiz-copy {
    height: 100svh;
    min-height: 100svh;
    padding: clamp(56px, 10svh, 86px) 0 clamp(38px, 8svh, 72px);
    justify-content: flex-start;
  }

  .quiz-copy::before {
    inset: -18px auto auto -18px;
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  .quiz-copy::after {
    right: 0;
    bottom: -12px;
    width: 104px;
    height: 6px;
  }

  .quiz-copy h1 {
    max-width: 12.4ch;
    margin-bottom: 16px;
    font-size: clamp(52px, 15.4vw, 66px);
    line-height: 0.91;
  }

  .quiz-copy p {
    max-width: 37ch;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.48;
  }

  .quiz-start-button {
    width: 100%;
    min-height: 60px;
    margin-top: auto;
    font-size: 16px;
  }

  .is-quiz-active .quiz-shell {
    width: 100%;
    min-height: 100dvh;
    padding: 0;
    align-items: stretch;
  }

  .is-insight-active .quiz-shell {
    width: 100%;
    padding: 0;
  }

  .is-quiz-active .quiz-hero {
    min-height: 100dvh;
    gap: 0;
  }

  .quiz-card {
    width: 100%;
    padding: 24px 14px 18px;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(35, 9, 47, 0.13);
  }

  .quiz-card[data-quiz-panel] {
    min-height: 100dvh;
    border-radius: 0;
    border-right: 0;
    border-left: 0;
    display: flex;
    flex-direction: column;
    padding: 32px 20px 28px;
  }

  .quiz-progress {
    margin-bottom: 22px;
  }

  .quiz-progress-row {
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .quiz-question {
    margin-bottom: 34px;
    font-size: clamp(27px, 7.4vw, 33px);
    line-height: calc(1.1em + 2px);
    hyphens: auto;
    text-wrap: pretty;
    word-break: normal;
  }

  .quiz-card[data-question-size="short"] .quiz-question {
    margin-bottom: 38px;
    font-size: clamp(31px, 8.6vw, 38px);
    line-height: calc(1.08em + 2px);
  }

  .quiz-card[data-question-size="medium"] .quiz-question {
    margin-bottom: 32px;
    font-size: clamp(28px, 7.5vw, 33px);
    line-height: calc(1.1em + 2px);
  }

  .quiz-card[data-question-size="long"] .quiz-question {
    margin-bottom: 28px;
    font-size: clamp(25px, 6.8vw, 30px);
    line-height: calc(1.1em + 2px);
  }

  .quiz-card[data-question-size="extra-long"] .quiz-question {
    margin-bottom: 26px;
    font-size: clamp(23px, 6.25vw, 27px);
    line-height: calc(1.08em + 2px);
  }

  .quiz-options {
    gap: 13px;
    margin-top: 0;
    padding-bottom: 0;
  }

  .quiz-option {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    min-height: 76px;
    padding: 16px;
  }

  .quiz-option span {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }

  .quiz-option strong {
    font-size: 17px;
    line-height: calc(1.32em + 2px);
  }

  .quiz-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 18px;
  }

  .quiz-button {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    font-size: 15px;
  }

  .quiz-question-actions {
    flex-direction: column;
  }

  .insight-stage {
    min-height: auto;
    padding: 20px 14px 16px;
    border-radius: 8px;
  }

  .is-insight-active .insight-stage {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    border-radius: 0;
    padding: 16px 20px max(20px, env(safe-area-inset-bottom));
  }

  .insight-scene {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-content: start;
    min-height: 0;
    padding: 16px 0 12px;
  }

  .is-insight-active .insight-scene {
    flex: 1 1 auto;
    align-content: start;
    min-height: 0;
    padding: 16px 0 12px;
  }

  .insight-number {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .insight-label {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }

  .insight-content {
    display: contents;
  }

  .insight-answer {
    grid-column: 1 / -1;
    margin: 16px 0 14px;
    padding: 15px;
  }

  .insight-answer strong {
    font-size: 17px;
    line-height: 1.34;
  }

  .insight-message {
    grid-column: 1 / -1;
    font-size: clamp(16px, 4.45vw, 19px);
    line-height: 1.4;
    letter-spacing: 0;
  }

  .insight-message p {
    margin-bottom: 9px;
  }

  .insight-panel[data-message-size="long"] .insight-message {
    font-size: clamp(15px, 4.15vw, 18px);
    line-height: 1.36;
  }

  .insight-panel[data-message-size="long"] .insight-message p {
    margin-bottom: 8px;
  }

  .insight-panel[data-message-size="extra-long"] .insight-message {
    font-size: clamp(14px, 3.9vw, 17px);
    line-height: 1.32;
  }

  .insight-panel[data-message-size="extra-long"] .insight-message p {
    margin-bottom: 6px;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-stage {
    padding: 12px 20px max(14px, env(safe-area-inset-bottom));
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-scene {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0 8px;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-number {
    width: 56px;
    height: 56px;
    font-size: 27px;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-label {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-answer {
    margin: 12px 0 14px;
    padding: 14px;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-answer span {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-answer strong {
    font-size: 16px;
    line-height: 1.28;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-message {
    font-size: clamp(14.5px, 3.95vw, 16.5px);
    line-height: 1.31;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-message p {
    margin-bottom: 7px;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-actions {
    margin-top: 10px;
  }

  .is-insight-active .insight-panel:is([data-step="5"], [data-step="6"], [data-step="7"], [data-step="8"]) .insight-next {
    min-height: 56px;
  }

  .is-insight-active .insight-panel[data-step="9"] .insight-stage {
    padding: 16px 28px max(18px, env(safe-area-inset-bottom));
  }

  .is-insight-active .insight-panel[data-step="9"] .insight-scene {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0 0;
  }

  .is-insight-active .insight-panel[data-step="9"] .insight-number {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .is-insight-active .insight-panel[data-step="9"] .insight-label {
    min-height: 40px;
    width: 100%;
    padding: 0 16px;
    font-size: 13px;
  }

  .is-insight-active .insight-panel[data-step="9"] .insight-message {
    margin-top: 8px;
    font-size: clamp(16.5px, 4.65vw, 20px);
    line-height: 1.36;
  }

  .is-insight-active .insight-panel[data-step="9"] .insight-message p {
    margin-bottom: 12px;
  }

  .is-insight-active .insight-panel[data-step="9"] .insight-lead-form {
    margin-top: 20px;
  }

  .is-insight-active .insight-panel[data-step="9"] .lead-grid {
    gap: 15px;
  }

  .is-insight-active .insight-panel[data-step="9"] .field {
    gap: 7px;
  }

  .is-insight-active .insight-panel[data-step="9"] .field label {
    font-size: 15px;
  }

  .is-insight-active .insight-panel[data-step="9"] .field input {
    min-height: 58px;
  }

  .is-insight-active .insight-panel[data-step="9"] .lead-submit {
    min-height: 66px;
    margin-top: 24px;
    font-size: 16px;
  }

  .is-insight-active .insight-panel[data-fit] {
    --insight-zoom: 1;
    --insight-shift-y: 0px;
    --stage-top: 16px;
    --stage-x: 20px;
    --stage-bottom: max(18px, env(safe-area-inset-bottom));
    --scene-columns: 64px minmax(0, 1fr);
    --scene-gap: 14px;
    --scene-padding-top: 16px;
    --scene-padding-bottom: 12px;
    --number-size: 58px;
    --number-font: 28px;
    --label-height: 40px;
    --label-x: 16px;
    --label-font: 13px;
    --answer-margin: 16px 0 14px;
    --answer-padding: 15px;
    --answer-label-font: 11px;
    --answer-label-gap: 4px;
    --answer-font: 17px;
    --answer-line: 1.34;
    --message-font: clamp(16px, 4.45vw, 19px);
    --message-line: 1.4;
    --paragraph-gap: 9px;
    --action-margin: 8px;
    --button-height: 58px;
    --lead-form-margin: 18px;
    --lead-grid-gap: 12px;
    --field-gap: 6px;
    --field-label-font: 15px;
    --field-input-height: 52px;
    --field-input-font: 16px;
    --submit-height: 58px;
    --submit-margin: 10px;
    --submit-font: 15px;
  }

  .is-insight-active .insight-panel[data-message-size="long"] {
    --message-font: clamp(15.5px, 4.2vw, 18px);
    --message-line: 1.36;
    --paragraph-gap: 8px;
  }

  .is-insight-active .insight-panel[data-message-size="extra-long"] {
    --message-font: clamp(14.5px, 3.95vw, 16.5px);
    --message-line: 1.31;
    --paragraph-gap: 7px;
  }

  .is-insight-active .insight-panel[data-final="true"] {
    --stage-top: 16px;
    --stage-x: 28px;
    --stage-bottom: max(18px, env(safe-area-inset-bottom));
    --scene-columns: 64px minmax(0, 1fr);
    --scene-gap: 14px;
    --scene-padding-top: 16px;
    --scene-padding-bottom: 0;
    --number-size: 58px;
    --number-font: 28px;
    --message-font: clamp(16.5px, 4.65vw, 20px);
    --message-line: 1.36;
    --paragraph-gap: 12px;
    --lead-form-margin: 20px;
    --lead-grid-gap: 15px;
    --field-gap: 7px;
    --field-label-font: 15px;
    --field-input-height: 58px;
    --submit-height: 66px;
    --submit-margin: 24px;
    --submit-font: 16px;
  }

  .is-insight-active .insight-panel[data-fit="compact"] {
    --stage-top: 12px;
    --stage-x: 20px;
    --stage-bottom: max(14px, env(safe-area-inset-bottom));
    --scene-columns: 58px minmax(0, 1fr);
    --scene-gap: 12px;
    --scene-padding-top: 10px;
    --scene-padding-bottom: 8px;
    --number-size: 56px;
    --number-font: 27px;
    --label-height: 38px;
    --label-x: 15px;
    --answer-margin: 12px 0 14px;
    --answer-padding: 14px;
    --answer-font: 16px;
    --answer-line: 1.28;
    --message-font: clamp(14.5px, 3.95vw, 16.5px);
    --message-line: 1.31;
    --paragraph-gap: 7px;
    --button-height: 56px;
    --lead-form-margin: 16px;
    --lead-grid-gap: 12px;
    --field-input-height: 52px;
    --submit-height: 58px;
    --submit-margin: 16px;
  }

  .is-insight-active .insight-panel[data-fit="tight"] {
    --stage-top: 8px;
    --stage-x: 18px;
    --stage-bottom: max(10px, env(safe-area-inset-bottom));
    --scene-columns: 52px minmax(0, 1fr);
    --scene-gap: 10px;
    --scene-padding-top: 8px;
    --scene-padding-bottom: 5px;
    --number-size: 50px;
    --number-font: 24px;
    --label-height: 34px;
    --label-x: 12px;
    --label-font: 12px;
    --answer-margin: 8px 0 10px;
    --answer-padding: 10px 12px;
    --answer-label-font: 10px;
    --answer-label-gap: 2px;
    --answer-font: 15px;
    --answer-line: 1.22;
    --message-font: clamp(13.25px, 3.65vw, 15px);
    --message-line: 1.23;
    --paragraph-gap: 4px;
    --action-margin: 6px;
    --button-height: 52px;
    --lead-form-margin: 12px;
    --lead-grid-gap: 9px;
    --field-gap: 4px;
    --field-label-font: 13px;
    --field-input-height: 46px;
    --field-input-font: 15px;
    --submit-height: 52px;
    --submit-margin: 12px;
    --submit-font: 14px;
  }

  .is-insight-active .insight-panel[data-fit="micro"] {
    --stage-top: 6px;
    --stage-x: 16px;
    --stage-bottom: max(8px, env(safe-area-inset-bottom));
    --scene-columns: 46px minmax(0, 1fr);
    --scene-gap: 8px;
    --scene-padding-top: 6px;
    --scene-padding-bottom: 4px;
    --number-size: 44px;
    --number-font: 22px;
    --label-height: 30px;
    --label-x: 10px;
    --label-font: 11px;
    --answer-margin: 6px 0 8px;
    --answer-padding: 8px 10px;
    --answer-label-font: 9px;
    --answer-font: 14px;
    --answer-line: 1.18;
    --message-font: clamp(12px, 3.35vw, 14px);
    --message-line: 1.17;
    --paragraph-gap: 2px;
    --action-margin: 4px;
    --button-height: 48px;
    --lead-form-margin: 9px;
    --lead-grid-gap: 7px;
    --field-label-font: 12px;
    --field-input-height: 42px;
    --field-input-font: 14px;
    --submit-height: 48px;
    --submit-margin: 9px;
    --submit-font: 13px;
  }

  .is-insight-active .insight-panel[data-fit] .insight-stage {
    padding: var(--stage-top) var(--stage-x) var(--stage-bottom);
  }

  .is-insight-active .insight-panel[data-fit] .insight-fit {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    height: auto;
    max-height: none;
    transform: translateY(var(--insight-shift-y)) scale(var(--insight-zoom));
    transform-origin: top center;
    width: min(920px, calc(100% / var(--insight-zoom)));
  }

  .is-insight-active .insight-panel[data-fit] .insight-scene {
    grid-template-columns: var(--scene-columns);
    gap: var(--scene-gap);
    padding: var(--scene-padding-top) 0 var(--scene-padding-bottom);
  }

  .is-insight-active .insight-panel[data-fit] .insight-number {
    width: var(--number-size);
    height: var(--number-size);
    font-size: var(--number-font);
  }

  .is-insight-active .insight-panel[data-fit] .insight-label {
    min-height: var(--label-height);
    padding: 0 var(--label-x);
    font-size: var(--label-font);
  }

  .is-insight-active .insight-panel[data-fit] .insight-answer {
    margin: var(--answer-margin);
    padding: var(--answer-padding);
  }

  .is-insight-active .insight-panel[data-fit] .insight-answer span {
    margin-bottom: var(--answer-label-gap);
    font-size: var(--answer-label-font);
  }

  .is-insight-active .insight-panel[data-fit] .insight-answer strong {
    font-size: var(--answer-font);
    line-height: var(--answer-line);
  }

  .is-insight-active .insight-panel[data-fit] .insight-message {
    font-size: var(--message-font);
    line-height: var(--message-line);
  }

  .is-insight-active .insight-panel[data-fit] .insight-message p {
    margin-bottom: var(--paragraph-gap);
  }

  .is-insight-active .insight-panel[data-fit] .insight-actions {
    margin-top: var(--action-margin);
  }

  .is-insight-active .insight-panel[data-fit] .insight-next {
    min-height: var(--button-height);
  }

  .is-insight-active .insight-panel[data-fit] .insight-lead-form {
    margin-top: var(--lead-form-margin);
  }

  .is-insight-active .insight-panel[data-fit] .lead-grid {
    gap: var(--lead-grid-gap);
  }

  .is-insight-active .insight-panel[data-fit] .field {
    gap: var(--field-gap);
  }

  .is-insight-active .insight-panel[data-fit] .field label {
    font-size: var(--field-label-font);
  }

  .is-insight-active .insight-panel[data-fit] .field input {
    min-height: var(--field-input-height);
    font-size: var(--field-input-font);
  }

  .is-insight-active .insight-panel[data-fit] .lead-submit {
    min-height: var(--submit-height);
    margin-top: var(--submit-margin);
    font-size: var(--submit-font);
  }

  .insight-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
  }

  .insight-next {
    min-width: 0;
    min-height: 58px;
  }

  .lead-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .lead-panel h2 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .lead-panel p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.45;
  }

  .field {
    gap: 6px;
  }

  .field label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
  }

  .field input {
    min-height: 52px;
    font-size: 16px;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--amar-white);
    background: rgba(255, 255, 255, 0.1);
  }

  .field input::placeholder {
    color: rgba(255, 255, 255, 0.52);
  }

  .field-error {
    min-height: 13px;
    color: #ffd1c2;
  }

  .form-status {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.35;
  }

  .form-status[data-type="success"] {
    color: #d8ffd8;
  }

  .form-status[data-type="error"] {
    color: #ffd1c2;
  }

}

@media (max-width: 390px) {
  .quiz-header,
  .quiz-shell {
    width: calc(100% - 20px);
  }

  .quiz-copy h1 {
    font-size: 48px;
  }

  .quiz-copy p {
    font-size: 16px;
  }

  .quiz-start-button {
    min-height: 56px;
  }

  .quiz-card {
    padding-inline: 12px;
  }

  .quiz-progress-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-question {
    font-size: 26px;
  }

  .quiz-card[data-question-size="short"] .quiz-question {
    font-size: 32px;
  }

  .quiz-card[data-question-size="medium"] .quiz-question {
    font-size: 27px;
  }

  .quiz-card[data-question-size="long"] .quiz-question {
    font-size: 25px;
  }

  .quiz-card[data-question-size="extra-long"] .quiz-question {
    font-size: 23px;
    line-height: calc(1.08em + 2px);
  }
}
