:root{
  --ec-bg-1:#0b1120;
  --ec-bg-2:#11192e;
  --ec-surface:rgba(8,10,18,.82);
  --ec-surface-2:rgba(255,255,255,.03);
  --ec-border:rgba(255,255,255,.08);
  --ec-border-strong:rgba(255,255,255,.13);
  --ec-text:#fff;
  --ec-muted:rgba(255,255,255,.72);
  --ec-accent:#de3d9f;
  --ec-accent-2:#c9338d;
  --ec-success:#78c564;
  --ec-shadow:0 28px 80px rgba(0,0,0,.34);
  --ec-page-width:min(1020px, calc(100% - 32px));
}


.ethicore-msg{
  width:var(--ec-page-width);
  margin:24px auto;
  padding:18px 20px;
  border-radius:18px;
  background:rgba(10,12,20,.86);
  border:1px solid var(--ec-border);
  color:var(--ec-text);
  line-height:1.6;
}

/* page shell */

.ec-quiz-page{
  width:var(--ec-page-width);
  margin:0 auto;
  padding:48px 0 78px;
  color:var(--ec-text);
}


body.ethicore-quiz-mode--research_item .ec-quiz-page{
  position:relative;
  z-index:0;
}

body.ethicore-quiz-mode--research_item .ec-quiz-page::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  pointer-events:none;
  z-index:0;
  background:
    linear-gradient(
      90deg,
      #17191f 0%,
      #17191f 50%,
      #22242b 50%,
      #22242b 100%
    );
}

body.ethicore-quiz-mode--research_item .ec-quiz-page > *{
  position:relative;
  z-index:1;
}

body.ethicore-quiz-mode--research_item .ec-quiz-page__quiz{
  overflow:hidden;
}

.ec-quiz-page__header{
  margin:0 0 26px;
}

.ec-quiz-page__eyebrow{
  display:inline-flex;
  align-items:center;
  margin:0 0 14px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(222,61,159,.10);
  color:#f064ba;
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.ec-quiz-page__title{
  margin:0 0 14px;
  color:var(--ec-text);
  font-size:clamp(34px,5vw,56px);
  line-height:1.03;
  font-weight:800;
}

.ec-quiz-page__description{
  margin:0;
  max-width:780px;
  color:var(--ec-muted);
  font-size:17px;
  line-height:1.72;
}

.ec-quiz-page__meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:16px 0 0;
}

.ec-quiz-page__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font-size:13px;
  font-weight:700;
}

.ec-quiz-page__intro{
  margin:0 0 26px;
  padding:22px 24px;
  border-radius:22px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.86);
}

.ec-quiz-page__intro > *:first-child{margin-top:0}
.ec-quiz-page__intro > *:last-child{margin-bottom:0}

.ec-quiz-page__quiz{
  position:relative;
  padding:24px;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(7,9,16,.90) 0%, rgba(10,12,20,.84) 100%);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--ec-shadow);
}

/* qsm shell */

.ethicore-qsm-scope{
  max-width:820px;
  width:100%;
  margin:0 auto;
}

body.ethicore-quiz-mode--welcome .ethicore-qsm-scope{
  max-width:1080px;
  position:relative;
  z-index:0;
  padding:24px;
  border-radius:32px;
  background:linear-gradient(180deg, rgba(7,9,16,.78) 0%, rgba(10,12,20,.72) 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 24px 60px rgba(0,0,0,.24);
}

.ethicore-qsm-scope *,
.ethicore-qsm-scope *::before,
.ethicore-qsm-scope *::after{
  box-sizing:border-box;
}

.ethicore-qsm-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin:0 0 20px;
  padding:0 0 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.ethicore-qsm-header__top{
  width:100%;
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:14px;
  margin:0 0 12px;
}

.ethicore-qsm-header__label{
  color:rgba(255,255,255,.84);
  font-size:14px;
  font-weight:700;
}

.ethicore-qsm-steps{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  row-gap:8px;
  column-gap:6px;
  overflow-x:visible;
  padding:2px;
  margin:0;
}

.ethicore-qsm-step{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.02);
  color:rgba(255,255,255,.82);
  font-size:14px;
  font-weight:800;
  line-height:1;
  position:relative;
}

.ethicore-qsm-step::after{
  content:"";
  position:absolute;
  left:calc(100% + 3px);
  top:50%;
  width:6px;
  border-top:2px dotted rgba(255,255,255,.22);
  transform:translateY(-50%);
}

.ethicore-qsm-step:last-child::after{display:none}

.ethicore-qsm-step.is-done{
  background:var(--ec-success);
  border-color:var(--ec-success);
  color:#fff;
}

.ethicore-qsm-step.is-active{
  background:rgba(222,61,159,.14);
  border-color:var(--ec-accent);
  color:#ff61c0;
  box-shadow:0 0 0 4px rgba(222,61,159,.10);
}

/* hide raw qsm progress */

.ethicore-qsm-scope .qsm-progress-bar,
.ethicore-qsm-scope .qsm-progressbar,
.ethicore-qsm-scope .qmn_quiz_progressbar,
.ethicore-qsm-scope .progressbar-text,
.ethicore-qsm-scope .qsm-page-count,
.ethicore-qsm-scope .qmn_page_counter,
.ethicore-qsm-scope .qsm_timer,
.ethicore-qsm-scope .qsm-progress-bar-container,
.ethicore-qsm-scope .mlw_qmn_timer,
.ethicore-qsm-scope .qsm-before-message,
.ethicore-qsm-scope .qsm-after-message,
.ethicore-qsm-scope .mlw_qmn_message_before,
.ethicore-qsm-scope .mlw_qmn_message_after,
.ethicore-qsm-scope hr,
.ethicore-qsm-scope .qsm-hr,
.ethicore-qsm-scope .mlw_qmn_quizProgress,
.ethicore-qsm-scope .qmn_quizProgress,
.ethicore-qsm-scope #qmn_timer,
.ethicore-qsm-scope #progressbar{
  display:none !important;
}

/* preserve qsm flow */

.ethicore-qsm-scope [style*="display:none"]{
  display:none !important;
}

/* questions */

.ethicore-qsm-scope .qsm-page{
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

.ethicore-qsm-scope .quiz_section.qsm-question-wrapper,
.ethicore-qsm-scope .mlw_qmn_question{
  margin:0 0 16px !important;
  padding:0 !important;
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
  color:#fff;
}

.ethicore-qsm-scope .qsm-question-title,
.ethicore-qsm-scope .mlw_qmn_new_question,
.ethicore-qsm-scope .qsm-question-title-label{
  display:block !important;
  margin:0 0 18px !important;
  padding:0 !important;
  color:#fff !important;
  font-size:20px !important;
  line-height:1.34 !important;
  font-weight:800 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

.ethicore-qsm-scope .qmn_question_text,
.ethicore-qsm-scope .quiz_question,
.ethicore-qsm-scope .question{
  margin:0 0 14px !important;
  color:var(--ec-muted) !important;
  font-size:14px !important;
  line-height:1.6 !important;
}

/* answer groups: real QSM DOM */

.ethicore-qsm-scope .qmn_radio_answers,
.ethicore-qsm-scope .qmn_check_answers,
.ethicore-qsm-scope .qsm-radio-answers,
.ethicore-qsm-scope .qsm-checkbox-answers{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}

.ethicore-qsm-scope .qmn_mc_answer_wrap,
.ethicore-qsm-scope .qmn_check_answer_wrap,
.ethicore-qsm-scope .qsm_input_wrapper{
  display:grid !important;
  grid-template-columns:24px minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:14px !important;
  width:100% !important;
  min-height:64px !important;
  margin:0 !important;
  padding:0 18px !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.025) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ethicore-qsm-scope .qmn_mc_answer_wrap:hover,
.ethicore-qsm-scope .qmn_check_answer_wrap:hover,
.ethicore-qsm-scope .qsm_input_wrapper:hover{
  border-color:rgba(255,255,255,.16) !important;
  background:rgba(255,255,255,.035) !important;
}

.ethicore-qsm-scope .qmn_mc_answer_wrap input[type="radio"],
.ethicore-qsm-scope .qmn_check_answer_wrap input[type="checkbox"],
.ethicore-qsm-scope .qsm_input_wrapper input[type="radio"],
.ethicore-qsm-scope .qsm_input_wrapper input[type="checkbox"]{
  margin:0 !important;
  transform:none !important;
  accent-color:var(--ec-accent);
  justify-self:start;
  align-self:center;
}

.ethicore-qsm-scope .qsm-input-label,
.ethicore-qsm-scope .qmn_mc_answer_wrap label,
.ethicore-qsm-scope .qmn_check_answer_wrap label{
  display:flex !important;
  align-items:center !important;
  min-height:64px !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  font-size:15px !important;
  font-weight:500 !important;
  line-height:1.5 !important;
  text-align:left !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

.ethicore-qsm-scope .qmn_mc_answer_wrap.is-selected,
.ethicore-qsm-scope .qmn_check_answer_wrap.is-selected,
.ethicore-qsm-scope .qsm_input_wrapper.is-selected{
  border-color:rgba(222,61,159,.60) !important;
  background:rgba(222,61,159,.12) !important;
  box-shadow:0 0 0 1px rgba(222,61,159,.18) inset !important;
}

/* text / textarea / select */

.ethicore-qsm-scope .mlw_answer_open_text,
.ethicore-qsm-scope .mlw_answer_number,
.ethicore-qsm-scope .qsm-text-answer{
  width:100% !important;
}

.ethicore-qsm-scope input[type="text"],
.ethicore-qsm-scope input[type="email"],
.ethicore-qsm-scope input[type="number"],
.ethicore-qsm-scope input[type="tel"],
.ethicore-qsm-scope input[type="url"],
.ethicore-qsm-scope input[type="password"],
.ethicore-qsm-scope textarea,
.ethicore-qsm-scope select{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:15px 16px !important;
  border-radius:16px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:rgba(255,255,255,.035) !important;
  color:#fff !important;
  box-shadow:none !important;
  outline:none !important;
  font-size:15px !important;
  line-height:1.45 !important;
}

.ethicore-qsm-scope textarea{
  min-height:130px !important;
  resize:vertical !important;
}

.ethicore-qsm-scope input::placeholder,
.ethicore-qsm-scope textarea::placeholder{
  color:rgba(255,255,255,.42) !important;
}

.ethicore-qsm-scope input:focus,
.ethicore-qsm-scope textarea:focus,
.ethicore-qsm-scope select:focus{
  border-color:rgba(222,61,159,.50) !important;
  box-shadow:0 0 0 3px rgba(222,61,159,.12) !important;
}

/* nav */

.ethicore-qsm-scope .qsm-pagination,
.ethicore-qsm-scope .qmn_pagination{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:12px !important;
  flex-wrap:wrap !important;
  margin-top:22px !important;
  padding-top:18px !important;
  border-top:1px solid rgba(255,255,255,.10) !important;
}

.ethicore-qsm-scope .qsm-btn,
.ethicore-qsm-scope .qmn_btn,
.ethicore-qsm-scope .qsm-next,
.ethicore-qsm-scope .qsm-submit-btn,
.ethicore-qsm-scope .mlw_qmn_quiz_link,
.ethicore-qsm-scope .mlw_custom_start,
.ethicore-qsm-scope .mlw_custom_next,
.ethicore-qsm-scope .mlw_custom_previous,
.ethicore-qsm-scope .qsm-previous{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:48px !important;
  padding:13px 18px !important;
  border-radius:16px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:linear-gradient(90deg,#ca29cf 0%, #da46a6 100%) !important;
  color:#fff !important;
  font-size:14px !important;
  font-weight:800 !important;
  line-height:1 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  cursor:pointer !important;
  margin:0 !important;
  text-align:center !important;
}

.ethicore-qsm-scope .qsm-previous,
.ethicore-qsm-scope .mlw_custom_previous{
  background:rgba(255,255,255,.05) !important;
}

.ethicore-qsm-scope .qsm-results-page,
.ethicore-qsm-scope .qmn_results_page,
.ethicore-qsm-scope .mlw_qmn_message_end_quiz,
.ethicore-qsm-scope .qsm-review-page{
  padding:22px;
  border-radius:22px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
}

@media (max-width:767px){
  :root{
    --ec-page-width:min(100% - 20px, 1120px);
  }

  .ec-quiz-page{
    padding:34px 0 56px;
  }


  .ec-quiz-page__description{
    font-size:15px;
  }

  .ec-quiz-page__intro{
    padding:18px;
    border-radius:18px;
  }

  .ec-quiz-page__quiz{
    padding:18px;
    border-radius:22px;
  }

  .ethicore-qsm-scope{
    max-width:100%;
  }

  body.ethicore-quiz-mode--welcome .ethicore-qsm-scope{
    padding:16px;
    border-radius:24px;
  }

  .ethicore-qsm-steps{
    justify-content:center;
    flex-wrap:wrap;
    overflow-x:visible;
    row-gap:8px;
    column-gap:6px;
    padding:2px 0;
  }

  .ethicore-qsm-scope .qmn_mc_answer_wrap,
  .ethicore-qsm-scope .qmn_check_answer_wrap,
  .ethicore-qsm-scope .qsm_input_wrapper{
    min-height:58px !important;
    padding:0 16px !important;
    border-radius:16px !important;
  }

  .ethicore-qsm-step{
    width:40px;
    height:40px;
  }
}


/* --- button state truth --- */


/* pagination layout stays fixed */
.ethicore-qsm-scope .qsm-pagination,
.ethicore-qsm-scope .qmn_pagination{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:12px !important;
  flex-wrap:nowrap !important;
}

/* default: hide all controlled actions first */
.ethicore-qsm-scope .qsm-pagination .qsm-previous,
.ethicore-qsm-scope .qsm-pagination .mlw_custom_start,
.ethicore-qsm-scope .qsm-pagination .mlw_custom_next,
.ethicore-qsm-scope .qsm-pagination .qsm-next,
.ethicore-qsm-scope .qsm-pagination .qsm-submit-btn,
.ethicore-qsm-scope .qmn_pagination .qsm-previous,
.ethicore-qsm-scope .qmn_pagination .mlw_custom_start,
.ethicore-qsm-scope .qmn_pagination .mlw_custom_next,
.ethicore-qsm-scope .qmn_pagination .qsm-next,
.ethicore-qsm-scope .qmn_pagination .qsm-submit-btn{
  display:none !important;
}

/* previous */
.ethicore-qsm-scope .qsm-pagination.ec-state-has-prev .qsm-previous,
.ethicore-qsm-scope .qmn_pagination.ec-state-has-prev .qsm-previous{
  display:inline-flex !important;
  margin-right:auto !important;
}

/* next */
.ethicore-qsm-scope .qsm-pagination.ec-state-show-next .mlw_custom_next,
.ethicore-qsm-scope .qsm-pagination.ec-state-show-next .qsm-next:not(.mlw_custom_start),
.ethicore-qsm-scope .qmn_pagination.ec-state-show-next .mlw_custom_next,
.ethicore-qsm-scope .qmn_pagination.ec-state-show-next .qsm-next:not(.mlw_custom_start){
  display:inline-flex !important;
  margin-left:auto !important;
}

/* submit */
.ethicore-qsm-scope .qsm-pagination.ec-state-show-submit .qsm-submit-btn,
.ethicore-qsm-scope .qmn_pagination.ec-state-show-submit .qsm-submit-btn{
  display:inline-flex !important;
  margin-left:auto !important;
}

/* start must never show in the supported scope */
.ethicore-qsm-scope .qsm-pagination .mlw_custom_start,
.ethicore-qsm-scope .qmn_pagination .mlw_custom_start{
  display:none !important;
}





/* hide QSM setup / fallback error message */
.ethicore-qsm-scope .qsm-alert-error,
.ethicore-qsm-scope .qmn_error_message,
.ethicore-qsm-scope .qsm-error-message,
.ethicore-qsm-scope .mlw_qmn_message_end_quiz:has(.qsm-alert-error),
.ec-quiz-page__quiz > .ethicore-msg{
  display:none !important;
}

/* mobile optimizations */
@media (max-width: 767px) {
  body.ethicore-quiz-mode--welcome .ethicore-qsm-scope {
    padding: 14px;
    border-radius: 22px;
  }

  body.ethicore-quiz-mode--welcome .ethicore-qsm-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  body.ethicore-quiz-mode--welcome .ethicore-qsm-steps {
    row-gap: 6px;
    column-gap: 5px;
  }

  body.ethicore-quiz-mode--welcome .ethicore-qsm-step {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  body.ethicore-quiz-mode--welcome .qmn_mc_answer_wrap,
  body.ethicore-quiz-mode--welcome .qmn_check_answer_wrap,
  body.ethicore-quiz-mode--welcome .qsm_input_wrapper {
    margin-bottom: 12px;
  }

  body.ethicore-quiz-mode--welcome .qsm-pagination,
  body.ethicore-quiz-mode--welcome .qmn_pagination {
    margin-top: 18px;
    padding-top: 14px;
  }
}