.testPage {
  --test-navy: #041429;
  --test-navy-2: #0b213c;
  --test-cream: #f7f0e5;
  --test-gold: #d7a652;
  --test-gold-light: #f0cf8b;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--test-navy) url('/assets/zodiologic-background-dark.jpg') center / cover fixed;
  color: var(--test-cream);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

.header {
  width: 100%;
  min-height: 88px;
  padding-inline: max(32px, calc((100% - 1380px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 16, 33, .46);
  border-bottom: 1px solid rgba(235, 192, 114, .2);
}

.logo,
.logo img {
  display: block;
}

.logo img {
  width: auto;
  height: 37px;
}

.homeLink {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  transition: color .2s ease;
}

.homeLink:hover,
.homeLink:focus-visible {
  color: var(--test-gold-light);
}

.homeLink span {
  margin-left: 8px;
  color: var(--test-gold-light);
}

.progressWrap {
  width: 100%;
  border-bottom: 1px solid rgba(235, 192, 114, .12);
  background: linear-gradient(180deg, rgba(3, 16, 33, .66), rgba(3, 16, 33, .48));
}

.progress {
  width: min(760px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  position: relative;
}

.progress::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 16.666%;
  right: 16.666%;
  height: 1px;
  background: rgba(235, 192, 114, .24);
}

.progressStep {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  color: rgba(255, 255, 255, .42);
}

.progressStep > span {
  width: 28px;
  height: 28px;
  margin-top: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 192, 114, .35);
  border-radius: 50%;
  background: var(--test-navy);
  font: 12px/1 Georgia, serif;
}

.progressStep small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.progressStep.active,
.progressStep.done {
  color: var(--test-gold-light);
}

.progressStep.active > span {
  border-color: var(--test-gold-light);
  box-shadow: 0 0 0 6px rgba(240, 207, 139, .06);
}

.progressStep.done > span {
  border-color: #c78f3b;
  background: linear-gradient(135deg, #efc779, #c98e38);
  color: #07182d;
  font-family: "Avenir Next", Avenir, sans-serif;
  font-weight: 700;
}

.content {
  width: 100%;
  flex: 1;
}

.stage {
  width: min(1240px, calc(100% - 64px));
  min-height: calc(100svh - 290px);
  margin-inline: auto;
  padding: 70px 0 80px;
  animation: stageIn .42s cubic-bezier(.22, 1, .36, 1) both;
}

.narrowStage {
  width: min(940px, calc(100% - 64px));
}

.stageIntro {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--test-gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.stage h1 {
  margin: 0;
  color: var(--test-cream);
  font: 400 clamp(42px, 5vw, 68px)/1.06 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  outline: none;
}

.stage h1 em {
  color: var(--test-gold-light);
  font-style: normal;
}

.stageIntro > p:last-child,
.thankYouCopy > p:last-child,
.successStage > p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
  line-height: 1.7;
}

.goldRule {
  width: 230px;
  height: 24px;
  margin: 24px auto 18px;
}

.signGrid {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.signCard {
  min-width: 0;
  min-height: 210px;
  padding: 15px 12px 17px;
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  border: 1px solid rgba(235, 192, 114, .2);
  border-radius: 12px;
  background: rgba(4, 20, 41, .7);
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.signCard:hover {
  border-color: rgba(240, 207, 139, .62);
  transform: translateY(-3px);
}

.signCard:focus-within {
  outline: 2px solid var(--test-gold-light);
  outline-offset: 3px;
}

.signCard input,
.axisOptions input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.signCard img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.signCard strong {
  margin-top: 4px;
  font: 400 18px/1.2 Georgia, "Times New Roman", serif;
}

.selectionMark {
  width: 27px;
  height: 27px;
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 192, 114, .35);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}

.selectedSign {
  border-color: var(--test-gold-light);
  background: rgba(20, 48, 77, .9);
  box-shadow: 0 0 0 1px rgba(240, 207, 139, .28), 0 18px 45px rgba(0, 0, 0, .24);
  transform: translateY(-3px);
}

.selectedSign strong {
  color: var(--test-gold-light);
}

.selectedSign .selectionMark {
  border-color: var(--test-gold-light);
  background: linear-gradient(135deg, #efc779, #c98e38);
  color: #07182d;
}

.stageActions,
.questionFooter,
.formActions,
.successActions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.primaryButton,
.backButton {
  min-height: 58px;
  border: 0;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  cursor: pointer;
}

.primaryButton {
  min-width: 255px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 9px;
  background: linear-gradient(135deg, #efc779, #c98e38);
  color: #07182d;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.primaryButton:hover:not(:disabled),
.primaryButton:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
}

.primaryButton:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.primaryButton span {
  font-size: 19px;
}

.backButton {
  padding: 12px 0;
  background: transparent;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}

.backButton:hover,
.backButton:focus-visible {
  color: var(--test-gold-light);
}

.axisQuestions {
  display: grid;
  gap: 20px;
}

.axisCard {
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(235, 192, 114, .34);
  border-radius: 12px;
  background: rgba(247, 240, 229, .14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
}

.axisCard legend {
  margin-left: -4px;
  padding: 5px 14px;
  border-radius: 6px;
  background: #07182d;
  color: var(--test-cream);
  font: 400 25px/1.25 Georgia, "Times New Roman", serif;
}

.axisCard legend span {
  margin-right: 13px;
  color: var(--test-gold-light);
  font: 700 10px/1 "Avenir Next", Avenir, sans-serif;
  letter-spacing: .16em;
}

.axisOptions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.axisOptions label {
  min-height: 82px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 33, 57, .18);
  border-radius: 8px;
  background: rgba(255, 250, 243, .76);
  color: #102139;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(16, 33, 57, .06);
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.axisOptions label:hover {
  border-color: #c58c38;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 10px 24px rgba(16, 33, 57, .1);
  transform: translateY(-2px);
}

.axisOptions label:focus-within {
  outline: 2px solid var(--test-gold-light);
  outline-offset: 3px;
}

.axisOptions label strong {
  font-size: 16px;
  line-height: 1.45;
}

.axisOptions .selectedOption {
  border-color: #b77d2c;
  background: rgba(240, 207, 139, .92);
  color: #07182d;
  box-shadow: inset 0 0 0 1px rgba(183, 125, 44, .18), 0 10px 24px rgba(16, 33, 57, .1);
}

.questionStage {
  width: min(900px, calc(100% - 64px));
  padding-top: 55px;
}

.questionMeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.questionMeta .eyebrow {
  margin: 0;
}

.questionMeta > span {
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  letter-spacing: .16em;
}

.questionProgress {
  width: 100%;
  height: 2px;
  margin: 19px 0 52px;
  overflow: hidden;
  background: rgba(235, 192, 114, .15);
}

.questionProgress i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #b77d2c, var(--test-gold-light));
  transition: width .35s ease;
}

.questionCard {
  animation: questionIn .38s cubic-bezier(.22, 1, .36, 1) both;
}

.questionCard h1 {
  max-width: 850px;
  margin-bottom: 40px;
  font-size: clamp(36px, 4.25vw, 55px);
  line-height: 1.12;
}

.answerList {
  display: grid;
  gap: 12px;
}

.answerList button {
  width: 100%;
  min-height: 88px;
  padding: 17px 23px 17px 17px;
  display: grid;
  grid-template-columns: 50px 1fr 28px;
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(16, 33, 57, .16);
  border-radius: 9px;
  background: rgba(247, 240, 229, .76);
  color: #102139;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .13);
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.answerList button:hover:not(:disabled),
.answerList button:focus-visible:not(:disabled) {
  border-color: #c58c38;
  background: rgba(255, 250, 243, .94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
  transform: translateX(5px);
}

.answerList button > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 33, 57, .28);
  border-radius: 50%;
  background: rgba(16, 33, 57, .035);
  color: #a66d1f;
  font: 15px/1 Georgia, serif;
}

.answerList button strong {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: -.005em;
}

.answerList button i {
  color: #a66d1f;
  font-size: 19px;
  font-style: normal;
}

.answerList .selectedAnswer {
  border-color: #b77d2c;
  background: rgba(240, 207, 139, .92);
}

.answerList .selectedAnswer > span {
  background: linear-gradient(135deg, #efc779, #c98e38);
  color: #07182d;
}

.questionFooter {
  margin-top: 30px;
}

.questionFooter p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  letter-spacing: .05em;
}

.detailsStage {
  width: min(1050px, calc(100% - 64px));
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(55px, 7vw, 90px);
  align-items: center;
}

.thankYouCopy {
  position: relative;
}

.thankYouCopy h1 {
  font-size: clamp(45px, 5vw, 65px);
}

.thankYouCopy > p:last-child {
  margin: 26px 0 0;
}

.bigStar {
  position: absolute;
  top: -80px;
  right: 4%;
  color: rgba(240, 207, 139, .08);
  font: 190px/1 Georgia, serif;
  pointer-events: none;
}

.detailsForm {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  border: 1px solid rgba(235, 192, 114, .28);
  border-radius: 12px;
  background: rgba(4, 20, 41, .72);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .2);
}

.detailsForm > label:not(.consent) {
  display: grid;
  gap: 8px;
}

.detailsForm > label > span:first-child {
  color: var(--test-gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.detailsForm input[type="text"],
.detailsForm input[type="email"],
.detailsForm select {
  width: 100%;
  min-height: 56px;
  padding: 13px 15px;
  border: 1px solid rgba(235, 192, 114, .25);
  border-radius: 7px;
  background: rgba(255, 255, 255, .055);
  color: var(--test-cream);
  font: 15px/1.2 "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  outline: none;
}

.detailsForm input::placeholder {
  color: rgba(255, 255, 255, .32);
}

.detailsForm input:focus,
.detailsForm select:focus {
  border-color: var(--test-gold-light);
  box-shadow: 0 0 0 3px rgba(240, 207, 139, .08);
}

.detailsForm select option {
  background: var(--test-navy-2);
  color: var(--test-cream);
}

.fullField {
  grid-column: 1 / -1;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #d7a652;
}

.consent > span:last-child {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.dataNote,
.formError {
  margin: -7px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.dataNote {
  color: rgba(255, 255, 255, .38);
}

.dataNote a { color: var(--test-gold-light); text-decoration: underline; text-underline-offset: 3px; }

.formError {
  padding: 11px 13px;
  border: 1px solid rgba(255, 140, 120, .4);
  border-radius: 6px;
  background: rgba(120, 24, 20, .18);
  color: #ffd1c8;
}

.formActions {
  margin-top: 8px;
}

.successStage {
  max-width: 820px;
  text-align: center;
}

.resultMedallion {
  width: min(280px, 52vw);
  margin: -25px auto 15px;
  position: relative;
}

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

.resultMedallion span {
  width: 42px;
  height: 42px;
  position: absolute;
  right: 2%;
  bottom: 9%;
  display: grid;
  place-items: center;
  border: 1px solid var(--test-gold-light);
  border-radius: 50%;
  background: var(--test-navy);
  color: var(--test-gold-light);
}

.successStage h1 {
  font-size: clamp(52px, 7vw, 82px);
}

.successStage > p:last-of-type {
  font-size: 17px;
}

.successActions {
  justify-content: center;
}

.successActions .backButton {
  min-width: 160px;
}

.footer {
  width: 100%;
  min-height: 96px;
  padding-inline: max(32px, calc((100% - 1380px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #04101f;
  border-top: 1px solid rgba(235, 192, 114, .16);
  color: rgba(255, 255, 255, .38);
  font-size: 12px;
  letter-spacing: .08em;
}

.footer p {
  margin: 0;
  color: rgba(240, 207, 139, .65);
  font: italic 14px Georgia, serif;
  letter-spacing: 0;
}

.footer nav { display: flex; gap: 18px; }
.footer a:hover { color: var(--test-gold-light); }

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes stageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes questionIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1050px) {
  .signGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detailsStage { grid-template-columns: 1fr; max-width: 760px; }
  .thankYouCopy { text-align: center; }
  .thankYouCopy > p:last-child { margin-inline: auto; }
}

@media (max-width: 760px) {
  .header { min-height: 76px; padding-inline: 20px; }
  .logo img { height: 31px; }
  .homeLink { font-size: 0; }
  .homeLink span { font-size: 20px; }
  .progress { width: calc(100% - 32px); }
  .progressStep small { font-size: 12px; letter-spacing: .06em; }
  .stage, .narrowStage, .questionStage, .detailsStage { width: calc(100% - 32px); padding: 52px 0 64px; }
  .stage h1 { font-size: 42px; }
  .stageIntro { margin-bottom: 38px; }
  .signGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .signCard { min-height: 166px; padding: 10px 7px 13px; }
  .signCard img { width: 118px; }
  .signCard strong { font-size: 15px; }
  .axisCard { padding: 24px 18px; }
  .axisCard legend { font-size: 21px; }
  .axisOptions { grid-template-columns: 1fr; }
  .questionCard h1 { font-size: 38px; }
  .answerList button { grid-template-columns: 40px 1fr 20px; gap: 14px; padding: 15px 14px; }
  .answerList button > span { width: 38px; height: 38px; }
  .answerList button strong { font-size: 16px; }
  .detailsForm { padding: 25px 20px; grid-template-columns: 1fr; }
  .detailsForm > label, .fullField { grid-column: auto; }
  .formActions { flex-direction: column-reverse; align-items: stretch; }
  .formActions .primaryButton { width: 100%; }
}

@media (max-width: 480px) {
  .progressStep small { max-width: 78px; text-align: center; line-height: 1.25; }
  .stage h1 { font-size: 37px; }
  .stageIntro > p:last-child { font-size: 14px; }
  .signGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signCard { min-height: 176px; }
  .signCard img { width: 128px; }
  .stageActions { flex-direction: column-reverse; align-items: stretch; }
  .stageActions > span { display: none; }
  .stageActions .primaryButton { width: 100%; }
  .questionMeta { align-items: flex-start; }
  .questionMeta .eyebrow { max-width: 210px; line-height: 1.4; }
  .questionProgress { margin-bottom: 40px; }
  .questionCard h1 { margin-bottom: 30px; font-size: 34px; }
  .answerList button { min-height: 94px; }
  .answerList button strong { font-size: 15px; line-height: 1.5; }
  .questionFooter p { display: none; }
  .successActions { flex-direction: column; align-items: stretch; }
  .successActions .primaryButton { width: 100%; }
  .footer { padding-inline: 16px; flex-direction: column; justify-content: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .questionCard {
    animation: none;
  }

  .signCard,
  .primaryButton,
  .answerList button,
  .questionProgress i {
    transition: none;
  }
}

@media (max-width: 820px) { .detailsForm input[type="text"], .detailsForm input[type="email"], .detailsForm select { font-size:16px; } }
