.bgq-quiz * { box-sizing: border-box; }
.bgq-quiz {
  font-family: 'Inter', sans-serif;
  color: #e2e4f0;
  max-width: 680px;
  margin: 0 auto;
}
.bgq-quiz .bgq-card {
  background: #1a1b2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 34px;
  animation: bgqFadeUp 0.3s ease;
}
@keyframes bgqFadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

.bgq-quiz .bgq-progress-wrap { margin: 0 0 18px; padding: 0 4px; }
.bgq-quiz .bgq-progress-track { background: rgba(255,255,255,0.07); border-radius: 100px; height: 3px; overflow: hidden; }
.bgq-quiz .bgq-progress-fill { background: linear-gradient(135deg,#7c3aed 0%,#c026d3 50%,#ec4899 100%); height:100%; border-radius:100px; transition: width .4s ease; }
.bgq-quiz .bgq-progress-label { font-size:.7rem; color:#8b8fa8; text-align:right; margin-top:6px; }

.bgq-quiz h1, .bgq-quiz h2, .bgq-quiz h3, .bgq-quiz h4 { font-family:'Montserrat',sans-serif; margin:0; }
.bgq-quiz .bgq-eyebrow { font-size:.68rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; background:linear-gradient(135deg,#7c3aed 0%,#c026d3 50%,#ec4899 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; margin-bottom:10px; }
.bgq-quiz .bgq-q-text { font-weight:700; font-size:1.12rem; color:#fff; line-height:1.4; margin-bottom:22px; }

.bgq-quiz .bgq-options { display:flex; flex-direction:column; gap:9px; }
.bgq-quiz .bgq-option {
  display:flex; align-items:flex-start; gap:13px; padding:13px 16px; border-radius:12px; cursor:pointer;
  font-size:.87rem; line-height:1.5; text-align:left; width:100%;
  border:1.5px solid rgba(255,255,255,0.08); background:transparent; color:#8b8fa8;
  transition: all .15s ease;
}
.bgq-quiz .bgq-option:hover { border-color: rgba(168,85,247,0.4); }
.bgq-quiz .bgq-option.selected { border-color:#a855f7; background:rgba(168,85,247,0.12); color:#fff; }
.bgq-quiz .bgq-dot { width:18px; height:18px; border-radius:50%; flex-shrink:0; margin-top:1px; border:2px solid rgba(255,255,255,0.15); }
.bgq-quiz .bgq-option.selected .bgq-dot { border:none; background:linear-gradient(135deg,#7c3aed 0%,#c026d3 50%,#ec4899 100%); }

.bgq-quiz .bgq-nav { display:flex; justify-content:space-between; align-items:center; margin-top:18px; }
.bgq-quiz .bgq-btn { padding:13px 28px; border-radius:10px; font-size:.88rem; font-weight:700; font-family:'Montserrat',sans-serif; border:none; cursor:pointer; }
.bgq-quiz .bgq-btn-back { background:transparent; border:1.5px solid rgba(255,255,255,0.08); color:#8b8fa8; }
.bgq-quiz .bgq-btn-primary { background:linear-gradient(135deg,#7c3aed 0%,#c026d3 50%,#ec4899 100%); color:#fff; }
.bgq-quiz .bgq-btn-primary:disabled { background:rgba(255,255,255,0.07); color:#8b8fa8; cursor:not-allowed; }

.bgq-quiz .bgq-input { padding:13px 15px; background:#1f2035; border:1.5px solid rgba(255,255,255,0.08); border-radius:10px; font-size:.9rem; color:#fff; outline:none; width:100%; margin-bottom:11px; }
.bgq-quiz .bgq-input:focus { border-color:#a855f7; }

.bgq-quiz .bgq-dim-card { background:#1a1b2e; border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:16px 20px; display:flex; align-items:center; gap:15px; margin-bottom:10px; }
.bgq-quiz .bgq-dim-icon { width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.bgq-quiz .bgq-dim-name { font-weight:600; font-size:.84rem; color:#fff; margin-bottom:3px; }
.bgq-quiz .bgq-dim-label { font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:7px; }
.bgq-quiz .bgq-dim-track { background:rgba(255,255,255,0.07); border-radius:100px; height:4px; }
.bgq-quiz .bgq-dim-fill { height:100%; border-radius:100px; transition:width .8s ease; }
.bgq-quiz .bgq-dim-score { font-family:'Montserrat',sans-serif; font-weight:900; font-size:1.15rem; color:#fff; min-width:40px; text-align:right; }

.bgq-quiz .bgq-insight { border-radius:14px; padding:20px 22px; margin-bottom:10px; background:#1a1b2e; }
.bgq-quiz .bgq-insight.low { border:1px solid rgba(239,68,68,0.25); }
.bgq-quiz .bgq-insight.high { border:1px solid rgba(34,197,94,0.25); }
.bgq-quiz .bgq-insight h4 { font-size:.82rem; font-weight:700; color:#fff; margin-bottom:8px; }
.bgq-quiz .bgq-insight p { font-size:.84rem; color:#8b8fa8; line-height:1.65; margin:0; }

.bgq-quiz .bgq-guide { background:#1a1b2e; border:1px solid rgba(168,85,247,0.35); border-radius:16px; padding:22px 24px; margin-bottom:10px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.bgq-quiz .bgq-guide a { display:inline-flex; align-items:center; gap:6px; background:linear-gradient(135deg,#7c3aed 0%,#c026d3 50%,#ec4899 100%); color:#fff; padding:10px 18px; border-radius:8px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:.78rem; text-decoration:none; white-space:nowrap; }

.bgq-quiz .bgq-cta { text-align:center; margin-top:4px; }
.bgq-quiz .bgq-cta p { color:#8b8fa8; font-size:.87rem; line-height:1.6; margin:8px 0 20px; }
.bgq-quiz .bgq-cta-row { display:flex; gap:11px; justify-content:center; flex-wrap:wrap; }
.bgq-quiz .bgq-btn-outline { display:inline-flex; align-items:center; gap:7px; background:rgba(255,255,255,0.06); border:1.5px solid rgba(255,255,255,0.08); color:#e2e4f0; padding:12px 22px; border-radius:10px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:.83rem; }
.bgq-quiz .bgq-btn-cta { display:inline-flex; align-items:center; gap:7px; background:linear-gradient(135deg,#7c3aed 0%,#c026d3 50%,#ec4899 100%); color:#fff; padding:12px 26px; border-radius:10px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:.83rem; text-decoration:none; }


/* Dynamic plugin compatibility */
.bgq-quiz[hidden], .bgq-quiz [hidden] { display:none !important; }
.bgq-quiz .bgq-screen:not(.is-active) { display:none; }
.bgq-quiz .bgq-screen.is-active { display:block; }
.bgq-quiz .bgq-question:not(.is-active) { display:none; }
.bgq-quiz .bgq-question.is-active { display:block; }
.bgq-quiz .bgq-question .bgq-card h3 { font-weight:700; font-size:1.12rem; color:#fff; line-height:1.4; margin:0 0 22px; }
.bgq-quiz .bgq-option input { position:absolute; opacity:0; pointer-events:none; }
.bgq-quiz .bgq-option.is-selected { border-color:#a855f7; background:rgba(168,85,247,0.12); color:#fff; }
.bgq-quiz .bgq-option.is-selected .bgq-radio { border:none; background:linear-gradient(135deg,#7c3aed 0%,#c026d3 50%,#ec4899 100%); }
.bgq-quiz .bgq-radio { width:18px; height:18px; border-radius:50%; flex-shrink:0; margin-top:1px; border:2px solid rgba(255,255,255,0.15); }
.bgq-quiz .bgq-button,.bgq-quiz .bgq-back { padding:13px 28px; border-radius:10px; font-size:.88rem; font-weight:700; font-family:'Montserrat',sans-serif; cursor:pointer; }
.bgq-quiz .bgq-button { border:none; background:linear-gradient(135deg,#7c3aed 0%,#c026d3 50%,#ec4899 100%); color:#fff; }
.bgq-quiz .bgq-back { background:transparent; border:1.5px solid rgba(255,255,255,0.08); color:#8b8fa8; }
.bgq-quiz .bgq-button:disabled { background:rgba(255,255,255,0.07); color:#8b8fa8; cursor:not-allowed; }
.bgq-quiz .bgq-progress { background:rgba(255,255,255,0.07); border-radius:100px; height:3px; overflow:hidden; }
.bgq-quiz .bgq-progress span { display:block; background:linear-gradient(135deg,#7c3aed 0%,#c026d3 50%,#ec4899 100%); height:100%; border-radius:100px; transition:width .4s ease; }
.bgq-quiz .bgq-progress-wrap small { display:block; font-size:.7rem; color:#8b8fa8; text-align:right; margin-top:6px; }
.bgq-quiz .bgq-dimensions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:22px 0; }
.bgq-quiz .bgq-dimension { display:flex; align-items:center; gap:12px; border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:13px 16px; }
.bgq-quiz .bgq-dimension-icon { width:32px; height:32px; display:flex; align-items:center; justify-content:center; }
.bgq-quiz .bgq-dimension-icon img { max-width:22px; max-height:22px; }
.bgq-quiz .bgq-lead-form { max-width:360px; margin:0 auto; }
.bgq-quiz .bgq-lead-form input[type=text], .bgq-quiz .bgq-lead-form input[type=email] { padding:13px 15px; background:#1f2035; border:1.5px solid rgba(255,255,255,0.08); border-radius:10px; font-size:.9rem; color:#fff; outline:none; width:100%; margin-bottom:11px; }
.bgq-quiz .bgq-form-card { text-align:center; }
.bgq-quiz .bgq-consent { display:flex; gap:8px; text-align:left; font-size:.75rem; color:#8b8fa8; margin:4px 0 12px; }
.bgq-quiz .bgq-report-dimension { background:#1a1b2e; border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:16px 20px; margin-bottom:10px; }
.bgq-quiz .bgq-report-dimension-head { display:flex; align-items:center; gap:15px; }
.bgq-quiz .bgq-report-dimension-copy { flex:1; }
.bgq-quiz .bgq-report-dimension-title { font-weight:600; font-size:.84rem; color:#fff; }
.bgq-quiz .bgq-report-status { font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.bgq-quiz .bgq-report-percentage { font-family:'Montserrat',sans-serif; font-weight:900; font-size:1.15rem; color:#fff; }
.bgq-quiz .bgq-report-score-track { background:rgba(255,255,255,0.07); border-radius:100px; height:4px; margin-top:8px; }
.bgq-quiz .bgq-report-score-fill { display:block; height:100%; border-radius:100px; }
.bgq-quiz .bgq-status-priority { border-left:4px solid #ef4444; } .bgq-quiz .bgq-status-priority .bgq-report-status{color:#ef4444}.bgq-quiz .bgq-status-priority .bgq-report-score-fill{background:#ef4444}
.bgq-quiz .bgq-status-growth-opportunity { border-left:4px solid #f97316; } .bgq-quiz .bgq-status-growth-opportunity .bgq-report-status{color:#f97316}.bgq-quiz .bgq-status-growth-opportunity .bgq-report-score-fill{background:#f97316}
.bgq-quiz .bgq-status-on-track { border-left:4px solid #22c55e; } .bgq-quiz .bgq-status-on-track .bgq-report-status{color:#22c55e}.bgq-quiz .bgq-status-on-track .bgq-report-score-fill{background:#22c55e}
.bgq-quiz .bgq-report-insight { border-radius:14px; padding:20px 22px; margin-bottom:10px; background:#1a1b2e; }
.bgq-quiz .bgq-insight-opportunity { border:1px solid rgba(239,68,68,.25); }
.bgq-quiz .bgq-insight-strength { border:1px solid rgba(34,197,94,.25); }
.bgq-quiz .bgq-report-insight h3 { font-size:.82rem; color:#fff; margin-bottom:8px; }
.bgq-quiz .bgq-report-insight p { font-size:.84rem; color:#8b8fa8; line-height:1.65; margin:0; }
.bgq-quiz .bgq-report-guide { background:#1a1b2e; border:1px solid rgba(168,85,247,.35); border-radius:16px; padding:22px 24px; margin-bottom:10px; display:flex; align-items:center; gap:18px; }
.bgq-quiz .bgq-report-guide-content { flex:1; }
.bgq-quiz .bgq-report-guide-label { font-size:.65rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#a855f7; }
.bgq-quiz .bgq-report-guide-title { color:#fff; font-size:.9rem; }
.bgq-quiz .bgq-report-guide-description { color:#8b8fa8; font-size:.8rem; }
.bgq-quiz .bgq-report-actions { display:flex; gap:11px; justify-content:center; flex-wrap:wrap; }
@media(max-width:767px){.bgq-quiz .bgq-card{padding:24px 18px}.bgq-quiz .bgq-dimensions{grid-template-columns:1fr}.bgq-quiz .bgq-report-guide{align-items:flex-start}.bgq-quiz .bgq-report-guide .bgq-button{width:100%;text-align:center}}

/* Branding and final client-requested content */
.bgq-quiz .bgq-brand { display:flex; justify-content:center; align-items:center; margin:0 0 18px; position:relative; z-index:5; }
.bgq-quiz .bgq-brand-logo { display:block; max-width:100%; height:auto; object-fit:contain; }
.bgq-quiz .bgq-pre-start-text { color:#8b8fa8; font-size:.86rem; line-height:1.6; margin:14px 0 18px; }
.bgq-quiz .bgq-after-submit-text { color:#8b8fa8; font-size:.72rem; line-height:1.55; text-align:center; margin:10px 0 0; }
.bgq-quiz .bgq-report-insight h3 { display:flex; align-items:center; gap:7px; }

/* v2.2.2: Unified report width + spacing fix. */
@media (min-width: 768px) {
  .bgq-quiz .bgq-report-screen.is-active {
    width: min(900px, calc(100vw - 48px));
    max-width: none !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Every report section follows the same canvas width. */
  .bgq-quiz .bgq-report-screen > .bgq-report-header,
  .bgq-quiz .bgq-report-screen > .bgq-report-dimensions,
  .bgq-quiz .bgq-report-screen > .bgq-report-insights,
  .bgq-quiz .bgq-report-screen > .bgq-report-guides,
  .bgq-quiz .bgq-report-screen > .bgq-report-cta {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Keep clear vertical separation between report sections. */
.bgq-quiz .bgq-report-header {
  margin-bottom: 12px !important;
}
.bgq-quiz .bgq-report-dimensions {
  margin-bottom: 12px;
}
.bgq-quiz .bgq-report-insights {
  margin-bottom: 12px;
}
.bgq-quiz .bgq-report-guides {
  margin-bottom: 12px;
}
.bgq-quiz .bgq-report-cta {
  margin-top: 0 !important;
}

@media (max-width: 767px) {
  .bgq-quiz .bgq-report-screen.is-active,
  .bgq-quiz .bgq-report-screen > .bgq-report-header,
  .bgq-quiz .bgq-report-screen > .bgq-report-dimensions,
  .bgq-quiz .bgq-report-screen > .bgq-report-insights,
  .bgq-quiz .bgq-report-screen > .bgq-report-guides,
  .bgq-quiz .bgq-report-screen > .bgq-report-cta {
    width: 100% !important;
    max-width: 100% !important;
    left: auto;
    transform: none;
  }
}

/* v2.2.3: Appearance variables, report progress alignment and CTA layout */
.bgq-quiz {
  font-family: var(--bgq-body-font, Inter, sans-serif);
  color: var(--bgq-text, #fff);
}
.bgq-quiz h1,
.bgq-quiz h2,
.bgq-quiz h3,
.bgq-quiz h4,
.bgq-quiz .bgq-button,
.bgq-quiz .bgq-back,
.bgq-quiz .bgq-report-percentage {
  font-family: var(--bgq-heading-font, Montserrat, sans-serif);
}
.bgq-quiz .bgq-card,
.bgq-quiz .bgq-report-dimension,
.bgq-quiz .bgq-report-insight,
.bgq-quiz .bgq-report-guide {
  background: var(--bgq-card-bg, #1a1b2e);
  border-color: var(--bgq-border, #34364a);
  border-radius: var(--bgq-card-radius, 20px);
}
.bgq-quiz .bgq-lead,
.bgq-quiz .bgq-progress-wrap small,
.bgq-quiz .bgq-report-meta,
.bgq-quiz .bgq-report-insight p,
.bgq-quiz .bgq-report-guide-description,
.bgq-quiz .bgq-cta p,
.bgq-quiz .bgq-pre-start-text,
.bgq-quiz .bgq-after-submit-text,
.bgq-quiz .bgq-consent {
  color: var(--bgq-muted, #8b8fa8);
}
.bgq-quiz .bgq-button,
.bgq-quiz .bgq-progress span,
.bgq-quiz .bgq-option.is-selected .bgq-radio,
.bgq-quiz .bgq-guide a {
  background: linear-gradient(135deg,
    var(--bgq-accent-start, #7c3aed) 0%,
    var(--bgq-accent-mid, #c026d3) 50%,
    var(--bgq-accent-end, #ec4899) 100%);
}
.bgq-quiz .bgq-button,
.bgq-quiz .bgq-back,
.bgq-quiz .bgq-guide a {
  border-radius: var(--bgq-button-radius, 10px);
}
.bgq-quiz .bgq-lead-form input[type=text],
.bgq-quiz .bgq-lead-form input[type=email] {
  background: var(--bgq-input-bg, #1f2035);
  color: var(--bgq-text, #fff);
}
.bgq-quiz .bgq-status-priority { border-left-color: var(--bgq-priority, #ef4444); }
.bgq-quiz .bgq-status-priority .bgq-report-status { color: var(--bgq-priority, #ef4444); }
.bgq-quiz .bgq-status-priority .bgq-report-score-fill { background: var(--bgq-priority, #ef4444); }
.bgq-quiz .bgq-status-growth-opportunity { border-left-color: var(--bgq-growth, #f97316); }
.bgq-quiz .bgq-status-growth-opportunity .bgq-report-status { color: var(--bgq-growth, #f97316); }
.bgq-quiz .bgq-status-growth-opportunity .bgq-report-score-fill { background: var(--bgq-growth, #f97316); }
.bgq-quiz .bgq-status-on-track { border-left-color: var(--bgq-success, #22c55e); }
.bgq-quiz .bgq-status-on-track .bgq-report-status { color: var(--bgq-success, #22c55e); }
.bgq-quiz .bgq-status-on-track .bgq-report-score-fill { background: var(--bgq-success, #22c55e); }

/* Report progress bar follows the same width as the report. */
.bgq-quiz .bgq-report-screen.is-active > .bgq-progress-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 18px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.bgq-quiz .bgq-report-screen.is-active > .bgq-progress-wrap .bgq-progress {
  width: 100% !important;
  max-width: none !important;
}

/* Final CTA mirrors the supplied two-button reference design. */
.bgq-quiz .bgq-report-screen > .bgq-report-cta {
  width: min(680px, 100%) !important;
  max-width: 680px !important;
  margin: 12px auto 0 !important;
  padding: 34px !important;
  text-align: center;
}
.bgq-quiz .bgq-report-cta h3 {
  max-width: 260px;
  margin: 0 auto 10px;
  color: var(--bgq-text, #fff);
  font-size: 1.3rem;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}
.bgq-quiz .bgq-report-cta p {
  max-width: 580px;
  margin: 0 auto 20px;
  text-align: center;
  line-height: 1.55;
}
.bgq-quiz .bgq-report-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bgq-quiz .bgq-report-actions .bgq-button {
  min-height: 44px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  line-height: 1;
}
.bgq-quiz .bgq-report-actions .bgq-download-report {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--bgq-border, #34364a) !important;
  color: var(--bgq-text, #fff) !important;
}
.bgq-quiz .bgq-report-actions .bgq-book-call {
  background: linear-gradient(135deg,
    var(--bgq-accent-start, #7c3aed) 0%,
    var(--bgq-accent-mid, #c026d3) 50%,
    var(--bgq-accent-end, #ec4899) 100%) !important;
  color: #fff !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  .bgq-quiz .bgq-report-screen > .bgq-report-cta {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 18px !important;
  }
  .bgq-quiz .bgq-report-actions {
    flex-direction: column;
  }
  .bgq-quiz .bgq-report-actions .bgq-button {
    width: 100%;
  }
}
