/* sh-soma-quiz.css — Single Viewport 100vh Interactive Quiz with Below-Page Footer */

.sh-quiz-viewport {
  min-height: calc(100vh - 90px);
  background: linear-gradient(180deg, #1f140e 0%, #0d0a08 100%);
  color: #f4efe6;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 24px 60px; /* Generous padding offset for header */
  box-sizing: border-box;
}

.sh-quiz-topbar {
  margin-bottom: 10px;
  text-align: center;
}

.sh-quiz-eyebrow {
  font-family: var(--primary-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #dba55d;
}

.sh-quiz-hero-title {
  font-family: var(--secondary-font);
  font-size: 26px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 6px 0;
}

.sh-quiz-progress-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.sh-quiz-progress-bar {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.sh-quiz-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #dba55d, #ffbe6e);
  transition: width 0.35s ease;
}

.sh-quiz-progress-label {
  font-family: var(--primary-font);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.sh-quiz-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 15px 0;
  width: 100%;
}

.sh-quiz-step {
  display: none;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(219, 165, 93, 0.25);
  border-radius: 16px;
  padding: 24px 30px;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.sh-quiz-step.is-active {
  display: block;
}

.sh-quiz-step-q {
  font-family: var(--secondary-font);
  font-size: 22px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: -0.5px;
}

.sh-quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sh-quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sh-quiz-option:hover {
  background: rgba(219, 165, 93, 0.12);
  border-color: #dba55d;
  transform: translateY(-2px);
}

.sh-quiz-option.is-selected {
  background: rgba(219, 165, 93, 0.2);
  border-color: #dba55d;
  box-shadow: 0 0 12px rgba(219, 165, 93, 0.25);
}

.sh-quiz-option-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sh-quiz-option.is-selected .sh-quiz-option-dot {
  border-color: #dba55d;
}

.sh-quiz-option-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dba55d;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.sh-quiz-option.is-selected .sh-quiz-option-dot::after {
  opacity: 1;
  transform: scale(1);
}

.sh-quiz-option-text {
  font-family: var(--primary-font);
  font-size: 14px;
  color: #f4efe6;
  font-weight: 400;
}

.sh-quiz-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  width: 100%;
}

.sh-quiz-btn-back {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--primary-font);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sh-quiz-btn-back:hover {
  color: #dba55d;
}

.sh-quiz-disclaimer-text {
  font-family: var(--primary-font);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.sh-quiz-btn-next {
  background: linear-gradient(103deg, #dba55d, #ffbe6e);
  color: #000000;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--primary-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sh-quiz-btn-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sh-quiz-btn-next:not(:disabled):hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(219, 165, 93, 0.35);
}

/* Results Card Positioning */
.sh-quiz-results {
  display: none;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(219, 165, 93, 0.25);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(15px);
}

.sh-quiz-results.is-active {
  display: block;
}

.sh-quiz-results-title {
  font-family: var(--secondary-font);
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 16px;
}

.sh-quiz-results-bowls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sh-quiz-bowl-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(219, 165, 93, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}

.sh-quiz-bowl-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #dba55d;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.sh-quiz-bowl-name {
  font-family: var(--secondary-font);
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 6px;
}

.sh-quiz-bowl-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 12px;
}

.sh-quiz-bowl-link {
  color: #dba55d;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}

.sh-quiz-restart {
  background: none;
  border: 1px solid #dba55d;
  color: #dba55d;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 12px;
  margin-top: 16px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .sh-quiz-viewport {
    min-height: calc(100vh - 70px);
    padding: 90px 16px 40px;
  }
  .sh-quiz-hero-title {
    font-size: 20px;
  }
  .sh-quiz-step {
    padding: 18px 14px;
  }
  .sh-quiz-step-q {
    font-size: 18px;
    margin-bottom: 14px;
  }
  .sh-quiz-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sh-quiz-option {
    padding: 12px 14px;
    min-height: 48px;
  }
  .sh-quiz-option-text {
    font-size: 13px;
  }
  .sh-quiz-progress-bar {
    width: 150px;
  }
  .sh-quiz-disclaimer-text {
    display: none;
  }
  .sh-quiz-results-bowls {
    grid-template-columns: 1fr;
  }
}
