/* ─────────────────────────────────────────
   Step Quiz — Frontend Styles v2
───────────────────────────────────────── */

/* Disable browser scroll anchoring and smooth scrolling globally for quiz pages */
/* html, body {
  overflow-anchor: none !important;
  scroll-behavior: auto !important;
} */

/* Step transition animation */
@keyframes bsqFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bsq-fade-in {
  animation: bsqFadeIn 0.35s ease-out;
}

.bsq-wrap {
  /*   max-width: 780px; */
  margin: 32px auto;
  /*   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
  color: #1a1a2e;
}
.bsq-wrap p{
	color: #000;
}
/* ── QUIZ HEADER ── */
.bsq-header {
  background: #724c9e;
  border-radius: 20px 20px 0 0;
  padding: 32px 32px 28px;
  color: #fff;
}

.bsq-header-inner {}

.bsq-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.bsq-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.bsq-progress-bar-wrap {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  height: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.bsq-progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.bsq-progress-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ── QUIZ BODY ── */
#bsqForm {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-top: none;
  border-radius: 0 0 20px 20px;
  /* min-height: 560px; */
  display: flex;
  flex-direction: column;
}

.bsq-steps-body {
  padding: 28px 32px;
  overflow-anchor: none;
  box-sizing: border-box;
}

.bsq-q {
  padding: 20px 0;
  border-top: 1px solid #f0f0f5;
}

.bsq-q:first-child {
  border-top: none;
  padding-top: 4px;
}

.bsq-q-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a2e;
  line-height: 1.4;
}

.bsq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bsq-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #e8e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  background: #fff;
}

.bsq-opt:hover {
   border-color: #724c9e;
  background: #724c9e40;
}

.bsq-opt input[type="radio"],
.bsq-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #724c9e;
  flex-shrink: 0;
  cursor: pointer;
}

.bsq-opt span {
  font-size: 14px;
  color: #2d2d44;
  line-height: 1.4;
}

/* selected state via JS class */
.bsq-opt.is-selected {
  border-color: #724c9e;
  background: #724c9e40;
}

/* max reached — disable unchecked */
.bsq-opt.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ── QUIZ FOOTER ── */
.bsq-footer {
  display: flex;
  gap: 10px;
  padding: 0 32px 28px;
  align-items: center;
  margin-top: auto;
}

.bsq-q:last-child {
  padding-bottom: 8px;
}

.bsq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 2px solid transparent;
}

.bsq-btn-primary {
  background: #eb4e95;
  color: #fff;
  border-color: #eb4e95;
}

.bsq-btn-primary:hover {
  background: #d93f85;
  border-color: #d93f85;
}

.bsq-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bsq-btn-ghost {
  background: transparent;
  color: #666;
  border-color: #e0e0e0;
}

.bsq-btn-ghost:hover {
  border-color: #999;
  color: #333;
}

.bsq-btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bsq-error {
  margin: 0 32px 24px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff3f3;
  border: 1px solid #ffc5c5;
  color: #8a0000;
  font-size: 13px;
}

/* ─────────────────────────────────────────
   RESULT PAGE
───────────────────────────────────────── */
.bsq-result {}

.bsq-result-header {
  background: #724c9e;
  border-radius: 20px;
  padding: 36px 36px 32px;
  color: #fff;
  margin-bottom: 24px;
}

.bsq-result-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.bsq-result-headline {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.3;
  color: #fff;
}

.bsq-result-key {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.bsq-result-key code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.bsq-result-section {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 16px;
}

.bsq-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}

.bsq-result-rich {
  line-height: 1.7;
  font-size: 15px;
  color: #3a3a55;
}

.bsq-result-rich p {
  margin: 0 0 12px;
}

.bsq-result-rich p:last-child {
  margin-bottom: 0;
}

.bsq-result-rich ul,
.bsq-result-rich ol {
  margin: 0 0 12px 20px;
}

.bsq-result-rich li {
  margin-bottom: 6px;
}

.bsq-result-rich a {
  color: #0f3460;
  text-decoration: underline;
}

.bsq-result-rich strong {
  color: #1a1a2e;
}

.bsq-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bsq-bullets li {
	display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #3a3a55;
    line-height: 1.5;
    padding: 10px 14px;
    background: #724c9e10;
    border-radius: 10px;
    border-left: 3px solid #724c9e;
}

.bsq-bullets li::before {
  content: '✓';
  color: #724c9e;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Tags */
.bsq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bsq-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0f4ff;
  border: 1px solid #d0d8f5;
  color: #0f3460;
}

.bsq-tag-link {
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.bsq-tag-link:hover {
  background: #0f3460;
  border-color: #0f3460;
  color: #fff;
}

/* CTA Buttons */
.bsq-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.bsq-cta-wrap .bsq-btn {
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 12px;
}

.bsq-cta-wrap .bsq-btn:hover {
  background: transparent;
}

/* Misc */
.bsq-notice {
  padding: 24px 28px;
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-radius: 14px;
  font-size: 14px;
  color: #7a4000;
}

@media (max-width: 600px) {

  .bsq-header,
  #bsqForm .bsq-steps-body,
  .bsq-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bsq-result-header {
    padding: 24px 20px;
  }

  .bsq-result-section {
    padding: 20px;
  }

  .bsq-result-headline {
    font-size: 20px;
  }

  .bsq-footer {
    flex-wrap: wrap;
  }

  .bsq-btn-primary {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

/* ── Name Field — Quiz se bahar, upar ── */
.bsq-name-field {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.bsq-name-label {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a2e;
  white-space: nowrap;
  margin-bottom: 0;
}

.bsq-name-input {
  flex: 1;
  max-width: 420px;
  padding: 10px 14px;
  border: 1.5px solid #d2d6dc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

.bsq-name-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, .15);
}

@media (max-width: 600px) {
  .bsq-name-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .bsq-name-input {
    max-width: 100%;
  }
}

/* ── Headline Highlight ── */
.bsq-result-headline mark.bsq-highlight {
  background: linear-gradient(120deg, #fef08a 0%, #fde047 100%);
  color: inherit;
  padding: 0 3px;
  border-radius: 3px;
  font-style: normal;
}

/* ─────────────────────────────────────────
   START SCREEN
───────────────────────────────────────── */
.bsq-start-screen {
  background: #f7f7f7;
  border-radius: 20px;
  padding: 48px 40px 44px;
  color: #000;
  position: relative;
  overflow: hidden;
	border: 1px solid #724c9e;
}

.bsq-start-screen::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.bsq-start-screen::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.bsq-start-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.bsq-start-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.bsq-start-title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 16px;
  line-height: 1.2;
  color: #000;
  letter-spacing: 0;
	text-transform: capitalize;
}

.bsq-start-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0 0 24px;
}

.bsq-start-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
input#bsqUserName{
	    background: #f7f7f7 !important;
    border: 1px solid #724c9e;
}
.bsq-start-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.bsq-feat-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.bsq-start-name-wrap {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.bsq-start-name-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bsq-start-name-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
}

.bsq-start-name-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.bsq-start-name-input:focus {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}

.bsq-btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #724c9e;
  color: #fff;
  box-shadow: 0 4px 20px rgba(157, 28, 82, 0.2);
  transition: all 0.2s ease;
  width: 100%;
  letter-spacing: 0.3px;
}

.bsq-btn-start:hover:not(:disabled) {
  background: #724c9e;
  box-shadow: 0 6px 28px rgba(157, 28, 82, 0.24);
  transform: translateY(-1px);
	color: #fff
}

.bsq-btn-start:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
	  background: #724c9e;
	color: #fff
}

.bsq-start-hint {
  display: none;
}

@media (max-width: 600px) {
  .bsq-start-screen {
    padding: 32px 20px 32px;
  }

  .bsq-start-title {
    font-size: 24px;
  }
}


.bsq-email-card {
  background: #fff7fb;
  border-color: #f4c3da;
}

.bsq-email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.bsq-email-input {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid #e7b4cc;
  border-radius: 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.bsq-email-input:focus {
  outline: none;
  border-color: #eb4e95;
  box-shadow: 0 0 0 3px rgba(235, 78, 149, 0.14);
}

.bsq-email-help {
  margin: 12px 0 0;
  font-size: 13px;
  color: #6f5b69;
}

.bsq-inline-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.bsq-inline-notice.is-success {
  background: #eefaf2;
  border: 1px solid #b7e2c3;
  color: #17663a;
}

.bsq-inline-notice.is-error {
  background: #fff2f4;
  border: 1px solid #f3c0cb;
  color: #9b1d45;
}