/* ELC Bank Street Curriculum Fit Assessment */

html.bsq-quiz-popup-open {
  height: 100%;
  overflow: hidden;
}

body.bsq-quiz-popup-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

.bsq-quiz-shortcode-wrap,
.bsq-quiz-footer-bar,
.bsq-quiz-popup {
  --bsq-primary: #3d358b;
  --bsq-primary-dark: #2d2769;
  --bsq-secondary: #81b29a;
  --bsq-secondary-dark: #6d9b85;
  --bsq-text: #263238;
  --bsq-muted: #64706a;
  --bsq-white: #fff;
  --bsq-border: rgba(61, 53, 139, 0.24);
  --bsq-shadow: rgba(61, 53, 139, 0.2);
  font-family: 'Sen', sans-serif;
  box-sizing: border-box;
}

.bsq-quiz-shortcode-wrap *,
.bsq-quiz-popup * {
  box-sizing: border-box;
}

.bsq-quiz-footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  padding: 0.75rem 1rem;
  background: var(--bsq-primary);
  color: var(--bsq-white);
  border-top: 1px solid rgba(130, 178, 154, 0.35);
  box-shadow: 0 -10px 30px rgba(61, 53, 139, 0.18);
  transform: translateY(0);
  transition: transform 220ms ease;
}

.bsq-quiz-footer-bar.is-hidden {
  transform: translateY(110%);
}

body.bsq-quiz-popup-open .bsq-quiz-footer-bar,
body.bsq-quiz-submitted .bsq-quiz-footer-bar {
  display: none !important;
}

.bsq-quiz-footer-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bsq-quiz-footer-bar__title {
  color: var(--bsq-white);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  line-height: 1.2;
}

.bsq-quiz-footer-bar__desc {
  color: var(--bsq-white);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.9;
}

.bsq-quiz-trigger-wrap {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.bsq-quiz-trigger-btn,
body .bsq-quiz-footer-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--bsq-secondary);
  border-radius: 9999px;
  background: var(--bsq-secondary);
  color: var(--bsq-white);
  font-family: 'Sen', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bsq-quiz-trigger-btn:hover,
body .bsq-quiz-footer-bar__btn:hover {
  background: var(--bsq-secondary-dark);
  border-color: var(--bsq-secondary-dark);
  color: var(--bsq-white);
  transform: translateY(-1px);
}

.bsq-quiz-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: var(--bsq-primary);
  color: var(--bsq-white);
  pointer-events: none;
  font-size: 18px;
  line-height: 1.5;
}

.bsq-quiz-popup.is-open {
  display: block;
  pointer-events: auto;
}

.bsq-quiz-close {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  z-index: 2147483647 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 2px solid var(--bsq-white);
  border-radius: 50%;
  background: var(--bsq-primary);
  color: var(--bsq-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.bsq-quiz-close:hover {
  background: var(--bsq-primary-dark);
}

.bsq-quiz-popup-inner {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.bsq-landing-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 3rem;
  overflow-y: auto;
  background: radial-gradient(circle at top, #5750a8 0, var(--bsq-primary) 48%, var(--bsq-primary-dark) 100%);
  text-align: center;
}

.bsq-landing-screen.hidden {
  display: none !important;
}

.bsq-landing-icon {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

body .bsq-landing-screen h1 {
  max-width: 820px !important;
  margin: 0 0 1rem !important;
  color: var(--bsq-white) !important;
  font-family: 'Sen', sans-serif !important;
  font-size: clamp(1.75rem, 4vw, 2.65rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
}

.bsq-landing-desc {
  max-width: 820px !important;
  margin: 0 0 2rem !important;
  color: var(--bsq-white) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.bsq-landing-meta-inline {
  color: var(--bsq-secondary);
  font-weight: 800;
}

.bsq-btn-start-quiz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border: 2px solid var(--bsq-secondary);
  border-radius: 10px;
  background: var(--bsq-secondary);
  color: var(--bsq-white);
  font-family: 'Sen', sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bsq-btn-start-quiz:hover {
  border-color: var(--bsq-secondary-dark);
  background: var(--bsq-secondary-dark);
  color: var(--bsq-white);
}

.bsq-quiz-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto 2rem;
  padding: 80px 15px 0;
}

.bsq-quiz-header {
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  background: var(--bsq-primary);
}

.bsq-quiz-logo {
  color: var(--bsq-white);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
}

.bsq-progress-wrap {
  width: 100%;
  background: var(--bsq-primary);
}

.bsq-progress-inner {
  padding: 0.75rem 0;
}

.bsq-progress-label {
  margin-bottom: 0.35rem;
  color: var(--bsq-white);
  font-size: 0.85rem;
  opacity: 0.95;
}

.bsq-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.bsq-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  background: var(--bsq-secondary);
  transition: width 0.35s ease;
}

.bsq-conversation {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  margin-top: 1rem;
  padding: 1.5rem 1.25rem 3rem;
  overflow-y: auto;
  border-radius: 16px;
  background: var(--bsq-white);
  color: var(--bsq-text);
}

.bsq-conversation.bsq-results-visible {
  justify-content: center;
}

.bsq-step-content {
  animation: bsq-fade-in 0.25s ease;
}

@keyframes bsq-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bsq-message-label {
  margin-bottom: 1.5rem;
  color: var(--bsq-primary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bsq-message-text {
  margin: 0 0 0.75rem;
  color: var(--bsq-text);
  font-size: 1.05rem;
}

.bsq-choices {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.bsq-choice {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bsq-primary);
  border-radius: 12px;
  background: #fff;
  color: var(--bsq-text);
  font-family: 'Sen', sans-serif;
  font-size: 0.96rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bsq-choice:hover {
  box-shadow: 0 3px 10px rgba(61, 53, 139, 0.14);
}

.bsq-choice.selected,
.bsq-choice:focus {
  border-color: var(--bsq-primary);
  background: var(--bsq-primary);
  color: var(--bsq-white);
}

.bsq-choice-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 0.75rem;
  flex-shrink: 0;
  border: 2px solid rgba(38, 50, 56, 0.35);
  border-radius: 50%;
  background: #fff;
  color: var(--bsq-primary);
  font-weight: 800;
}

.bsq-choice.selected .bsq-choice-letter {
  border-color: var(--bsq-secondary);
  background: var(--bsq-secondary);
  color: var(--bsq-primary);
}

.bsq-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bsq-border);
}

.bsq-nav-left,
.bsq-nav-right {
  display: flex;
  gap: 0.5rem;
}

.bsq-quiz-btn {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  font-family: 'Sen', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bsq-quiz-btn-primary {
  border: 2px solid var(--bsq-secondary);
  background: var(--bsq-secondary);
  color: var(--bsq-white);
}

.bsq-quiz-btn-primary:hover {
  border-color: var(--bsq-secondary-dark);
  background: var(--bsq-secondary-dark);
  color: var(--bsq-white);
}

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

.bsq-quiz-btn-back {
  border: 2px solid var(--bsq-primary);
  background: #fff;
  color: var(--bsq-primary);
}

.bsq-quiz-btn-back:hover {
  background: rgba(61, 53, 139, 0.08);
  color: var(--bsq-primary);
}

.bsq-results-screen {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(0.25rem, 2vw, 1rem);
  color: var(--bsq-text);
}

.bsq-results-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--bsq-primary);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bsq-results-screen h2 {
  margin: 0 0 1rem;
  color: var(--bsq-primary);
  font-family: 'Sen', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.bsq-results-screen h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--bsq-primary);
  font-size: 1.1rem;
}

.bsq-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.bsq-result-grid > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--bsq-border);
  border-left: 4px solid var(--bsq-secondary);
  border-radius: 12px;
  background: rgba(130, 178, 154, 0.14);
}

.bsq-result-grid span,
.bsq-result-grid small {
  display: block;
  color: var(--bsq-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.bsq-result-grid strong {
  display: block;
  margin: 0.3rem 0;
  color: var(--bsq-text);
  line-height: 1.25;
}

.bsq-summary {
  margin: 1rem 0;
  color: var(--bsq-text);
}

.bsq-results-screen ul {
  list-style: disc !important;
  margin: 0.5rem 0 1.5rem 1.25rem;
  padding: 0;
}

.bsq-results-screen li {
  margin-bottom: 0.45rem;
}

.bsq-email-panel {
  max-width: 100%;
  margin: 1.25rem 0 0;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid rgba(61, 53, 139, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(130, 178, 154, 0.18), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 26px rgba(61, 53, 139, 0.1);
}

.bsq-email-panel > p {
  max-width: 760px;
  margin: 0;
  color: var(--bsq-text);
  font-size: 0.98rem;
  line-height: 1.55;
}

.bsq-inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.bsq-form-field {
  min-width: 0;
}

.bsq-inline-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--bsq-text);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.bsq-inline-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(61, 53, 139, 0.28);
  border-radius: 12px;
  background: #fff;
  color: var(--bsq-text);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(38, 50, 56, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bsq-inline-form input:focus {
  outline: none;
  border-color: var(--bsq-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61, 53, 139, 0.16);
}

.bsq-form-actions,
.bsq-privacy-note,
.bsq-save-status {
  grid-column: 1 / -1;
}

.bsq-form-actions {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.bsq-form-actions .bsq-quiz-btn {
  min-width: 100%;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 8px 18px rgba(61, 53, 139, 0.24);
}

.bsq-inline-form .required {
  color: #b42318;
}

.bsq-privacy-note {
  margin: -0.2rem 0 0;
  color: var(--bsq-muted);
  font-size: 0.86rem;
}

.bsq-save-status {
  margin: -0.2rem 0 0;
  color: var(--bsq-primary);
  font-weight: 700;
}

@media (max-width: 760px) {
  .bsq-quiz-footer-bar__inner,
  .bsq-step-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .bsq-quiz-footer-bar__copy {
    text-align: center;
  }

  .bsq-quiz-footer-bar__btn,
  .bsq-quiz-trigger-btn {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
  }

  .bsq-result-grid,
  .bsq-inline-form {
    grid-template-columns: 1fr;
  }

  .bsq-form-actions .bsq-quiz-btn {
    width: 100%;
    min-width: 0;
  }

  .bsq-quiz-wrap {
    padding-top: 78px;
  }
}

@media (max-width: 480px) {
  .bsq-quiz-popup {
    font-size: 16px;
  }

  .bsq-quiz-close {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    font-size: 1.55rem;
  }

  .bsq-conversation {
    padding: 1.1rem 0.9rem 2rem;
  }

  .bsq-quiz-btn {
    padding: 0.7rem 1rem;
  }
}
