*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #1a1118;
  --bg2:       #211520;
  --card:      #FFFFFF;
  --card-hover:#ffffff;
  --text-q:    #332D2F;
  --text-opt:  #2a1f2e;
  --accent1:   #c084fc;
  --accent2:   #f59e0b;
  --btn-bg:    #743BBC;
  --btn-hover: #DBD1E8;
  --progress:  linear-gradient(90deg,#f59e0b,#c084fc,#7c3aed);
  --radius:    30px;
  --radius-question:    14px;
}

/* ── progress bar ── */
.progress-bar-wrap {
  height: 5px; z-index: 100;
  background: #E4CFEE;
  border-radius: 30px;
  margin-bottom: 30px;
  overflow: hidden;
  margin-left: 20px;
  margin-right: 20px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--progress);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

/* ── wrapper ── */
.wrap {
  position: relative; z-index: 1;
  margin: 0 auto;
  padding: 50px 160px;
  display: flex; flex-direction: column; justify-content: center;
  background: #FFC34D;
  background: linear-gradient(90deg,rgba(255, 195, 77, 0.2) 0%, rgba(116, 59, 188, 0.2) 100%);
  border-radius: 40px;
}

/* ── screen (quiz step) ── */
.screen { display: none; animation: fadeUp .45s ease both; }
.screen.active { display: block; }

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

/* ── back btn ── */
.back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid #332D2F;
  border-radius: 50%;
  background: transparent; cursor: pointer;
  color: #332D2F;
  font-size: 16px;
  margin-bottom: 28px;
  transition: border-color .2s, color .2s;
  position: absolute;
  left: -80px;
}
.back-btn svg {
  fill: #332D2F;
}

.back-btn:hover { border-color: var(--accent1); color: var(--accent1); }
.back-btn:hover svg { fill: var(--accent1); }


#back-1 {
  display: none;
}

/* ── question ── */
.question {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 600;
  color: var(--text-q);
  line-height: 1.5;
  margin-bottom: 28px;
}

.divider {
  height: 1px;
  background: rgba(0,0,0,.2);
  margin-bottom: 30px;
}

/* ── option cards ── */
.options { display: flex; flex-direction: column; gap: 14px; }

.option {
  background: var(--card);
  border-radius: var(--radius-question);
  padding: 20px 22px;
  cursor: pointer;
  color: var(--text-opt);
  font-size: .97rem;
  font-weight: 400;
  line-height: 1.5;
  border: 2px solid transparent;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.option::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,#c084fc22,#7c3aed11);
  opacity: 0;
  transition: opacity .2s;
}
.option:hover {
  background: var(--card-hover);
  border-color: var(--accent1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,.15);
}
.option:hover::before { opacity: 1; }
.option.selected {
  background: #F7F2FE;
  border-color: var(--btn-bg);
}

/* ── step counter ── */
.step-count {
  font-size: .88rem;
  margin-bottom: 18px;
}

/* ── next btn ── */
.next-btn {
  display: block; width: 100%;
  margin-top: 28px;
  padding: 16px 24px;
  border: none; border-radius: var(--radius);
  background: var(--btn-bg);
  color: #fff;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .3s;
  cursor: pointer;
}

.next-btn:disabled {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none;
}

.next-btn:not(:disabled):hover {
  box-shadow: 0 0 0 6px var(--btn-hover);
  transform: scale(1.02);
}

/* ── final screen ── */
#s-final .headline h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #332D2F;
  font-family: tt-commons-pro;
}

#s-final .subtitle {
  color: #332D2F;
  font-size: 1rem; line-height: 1.65;
  margin-bottom: 36px;
}
#s-final .subtitle strong { color: #332D2F; }

/* ── HubSpot form overrides ── */

#hs-form-wrap .hs-form-field {
  margin-bottom: 10px;
}

#hs-form-wrap .hs-form-field label,
.form-super .hs-richtext,
.form-super .hs-richtext a {
  color: #332D2F !important;
  font-size: 1rem !important;
  margin-bottom: 6px !important;
}
#hs-form-wrap input[type=text],
#hs-form-wrap input[type=email],
#hs-form-wrap select {
  background: rgba(255,255,255,1) !important;
  border: 1.5px solid #e7ddf0 !important;
  border-radius: 6px !important;
  color: #332D2F !important;
  padding: 14px 16px !important;
  font-size: .95rem !important;
  width: 100% !important;
  transition: border-color .2s !important;
}
#hs-form-wrap input:focus,
#hs-form-wrap select:focus {
  outline: none !important;
  border-color: var(--accent1) !important;
}
#hs-form-wrap .hs-button {
  display: block !important; width: 100% !important;
  padding: 16px 24px !important;
  border: none !important; border-radius: var(--radius) !important;
  background: var(--btn-bg) !important;
  color: #fff !important;
  font-size: 1rem !important; font-weight: 700 !important;
  cursor: pointer !important;
  transition: all .3s!important;
  margin-top: 8px !important;
}
#hs-form-wrap .hs-button:hover {
  box-shadow: 0 0 0 6px var(--btn-hover);
  transform: scale(1.02);
}
#hs-form-wrap .legal-consent-container,
#hs-form-wrap .legal-consent-container .hs-richtext { color: var(--text-opt); !important; font-size: .78rem !important; }
#hs-form-wrap .legal-consent-container .hs-richtext a { color: var(--text-opt); !important; font-size: .78rem !important; }

#hs-form-wrap .hs-error-msgs,
#hs-form-wrap .hs-error-msgs label,
#hs-form-wrap .hs-error-msgs label span { color: #ff7373 !important; font-size: .8rem !important; }


#hs-form-wrap fieldset { max-width: 100% !important; }
#hs-form-wrap .form-columns-1 .hs-form-field { width: 100% !important; }
#hs-form-wrap .hs_submit { margin-top: 16px !important; }


#hs-form-wrap input:not([type=submit]):focus,
#hs-form-wrap select:focus,
#hs-form-wrap textarea:focus {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .25);
}

/* score badge */
.score-badge {
  display: none;
  font-size: .88rem; font-weight: 300;
  padding: 0; border-radius: 999px;
  background: rgba(192,132,252,0);
  border: 0;
  color: #332d2f;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .wrap { padding: 20px; }
  .option { padding: 16px 18px; font-size: .9rem; }
}