/*********************************************
 * SASA PRESSED — EXPO RESEARCH SURVEY
 *********************************************/

.research-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(35, 15, 35, 0.55);
  box-sizing: border-box;
}

.research-modal.hidden {
  display: none;
}

/* Always respect elements hidden by the survey JavaScript */
#research-modal [hidden] {
  display: none !important;
}

.research-modal-content {
  position: relative;
  width: min(92vw, 620px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.research-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.research-progress {
  margin: 10px 28px 22px 0;
}

.research-progress-bar {
  width: 12.5%;
  height: 8px;
  border-radius: 999px;
  background: var(--primary, #ff69b4);
}

.research-progress-text {
  margin: 8px 0 0;
  font-size: 0.8rem;
}

.research-body {
  min-height: 220px;
}

.research-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.research-back,
.research-next {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

body.research-modal-open {
  overflow: hidden;
}

/* ----------------------------------
   Survey intro
---------------------------------- */

.research-intro,
.research-test-complete {
  padding: 28px 12px 18px;
  text-align: center;
}

.research-intro h2,
.research-test-complete h2 {
  margin: 12px 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.research-intro p,
.research-test-complete p {
  max-width: 500px;
  margin: 12px auto;
  line-height: 1.55;
}

.research-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .45rem .9rem;
    margin-bottom: 1rem;

    border: 1px dashed var(--primary);
    border-radius: 999px;

    background: rgba(255,105,180,.08);

    color: var(--primary);

    font-size: .8rem;
    font-weight: 700;
}

.research-time-note {
  font-weight: 700;
}


/* ----------------------------------
   Question heading
---------------------------------- */

.research-question {
  padding: 8px 4px;
}

.research-question-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.research-question-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  line-height: 1.3;
  text-align: left;
}

.research-required,
.research-optional {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
}

.research-required {
  background: rgba(255, 105, 180, 0.14);
}

.research-optional {
  background: rgba(0, 0, 0, 0.07);
}

.research-helper {
  margin: 8px 0 16px;
  color: #666;
  font-size: 0.86rem;
  text-align: left;
}


/* ----------------------------------
   Answer options
---------------------------------- */

.research-options {
  display: grid;
  gap: 9px;
}

.research-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(134, 6, 139, 0.22);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.research-option:hover {
  border-color: var(--primary, #ff69b4);
  background: rgba(255, 105, 180, 0.06);
}

.research-option:has(input:checked) {
  border-color: var(--primary, #ff69b4);
  background: rgba(255, 105, 180, 0.12);
}

.research-option input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--primary, #ff69b4);
}

.research-other-input,
.research-textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(134, 6, 139, 0.28);
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}

.research-other-input {
  margin-top: 2px;
}

.research-textarea {
  resize: vertical;
  min-height: 125px;
}

.research-textarea-small {
  min-height: 85px;
}

.research-follow-up {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  text-align: left;
}

.research-follow-up label {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ----------------------------------
   Question copy font stylings
---------------------------------- */
.research-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.research-highlight::before {
  content: "";
  position: absolute;

  left: -4%;
  right: -4%;
  bottom: 0.2em;

  height: 0.55em;

  background: rgba(255, 232, 84, 0.75);

  border-radius: 4px;

  transform: rotate(-1.2deg);

  z-index: -1;
}


/* ----------------------------------
   Validation
---------------------------------- */

.research-error {
  min-height: 1.25rem;
  margin: 10px 0 0;
  color: #b00020;
  font-size: 0.82rem;
  text-align: left;
}


/* ----------------------------------
   Navigation buttons
---------------------------------- */

.research-back,
.research-next,
.research-test-close {
  font-family: inherit;
  font-weight: 700;
}

.research-back {
  border: 1px solid var(--primary, #ff69b4);
  background: #fff;
}

.research-next,
.research-test-close {
  color: #fff;
  background: var(--primary, #ff69b4);
}

.research-test-close {
  margin-top: 16px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

/* ----------------------------------
   Optional email step
---------------------------------- */

.research-email-step,
.research-final-thanks {
  padding: 24px 10px 18px;
  text-align: center;
}

.research-email-step h2,
.research-final-thanks h2 {
  margin: 14px auto;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  line-height: 1.3;
}

.research-email-step > p,
.research-final-thanks > p {
  max-width: 500px;
  margin: 12px auto;
  line-height: 1.5;
}

.research-email-form {
  display: grid;
  gap: 10px;
  max-width: 440px;
  margin: 22px auto 0;
  text-align: left;
}

.research-email-form label {
  font-weight: 700;
}

.research-email-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(134, 6, 139, 0.3);
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}

.research-email-input:focus {
  outline: 2px solid var(--primary, #ff69b4);
  outline-offset: 2px;
}

.research-consent {
  margin: 0;
  color: #666;
  font-size: 0.75rem;
  line-height: 1.4;
}

.research-email-error {
  min-height: 1.2rem;
  margin: 0;
  color: #b00020;
  font-size: 0.8rem;
}

.research-email-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.research-email-skip,
.research-email-submit {
  padding: 10px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.research-email-skip {
  border: 1px solid var(--primary, #ff69b4);
  background: #fff;
  color: var(--primary, #ff69b4);
}

.research-email-submit {
  border: 0;
  color: #fff;
  background: var(--primary, #ff69b4);
}

.research-email-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}


/* ----------------------------------
   Final thank-you
---------------------------------- */

.research-brand-message {
  margin: 22px auto;
  line-height: 1.55;
}

.research-brand-message p {
  margin: 4px 0;
}

.research-final-tag {
  color: var(--primary, #ff69b4);
  font-weight: 800;
}

.research-returning {
  margin-top: 22px !important;
  color: #666;
  font-size: 0.82rem;
}

/* ----------------------------------
   Quick concept primer
---------------------------------- */

.research-primer,
.research-primer-thanks {
  padding: 24px 10px 18px;
  text-align: center;
}

.research-primer h2 {
  max-width: 500px;
  margin: 12px auto;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.3;
}

.research-primer h3 {
  margin: 24px auto 14px;
  font-size: 1.05rem;
}

.research-primer-description {
  max-width: 500px;
  margin: 12px auto;
  line-height: 1.55;
}

.research-primer-options {
  display: grid;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.research-primer-option {
  width: 100%;
  padding: 13px 16px;

  border: 1px solid
    var(--primary, #ff69b4);

  border-radius: 14px;
  background: #fff;

  color: #333;
  font: inherit;
  font-weight: 700;

  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.research-primer-option:hover {
  background:
    rgba(255, 105, 180, 0.12);
}

.research-primer-option:active {
  transform: scale(0.99);
}

.research-primer-option:disabled {
  opacity: 0.6;
  cursor: wait;
}

.research-primer-error {
  min-height: 1.2rem;
  margin: 12px 0 0;
  color: #b00020;
  font-size: 0.82rem;
}

.research-primer-thanks {
  display: grid;
  place-content: center;
  min-height: 240px;
}

.research-primer-thanks h2 {
  margin: 0 auto 10px;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
}

/* ----------------------------------
   Small screens
---------------------------------- */

@media (max-width: 539px) {
  .research-modal {
    padding: 12px;
  }

  .research-modal-content {
    width: 94vw;
    max-height: 88vh;
    padding: 20px 16px 16px;
  }

  .research-body {
    min-height: 180px;
  }

  .research-question-heading {
    display: block;
  }

  .research-required,
  .research-optional {
    display: inline-block;
    margin-top: 8px;
  }

  .research-option {
    padding: 10px;
    font-size: 0.9rem;
  }

  .research-footer {
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: #fff;
  }
}