/* =========================================
   Pulse Check Assessment CSS
   Scoped under .pulse-check-scope
   Complements shared/assessment.css
   ========================================= */

/* ── Layout ── */
.pulse-check-scope .container {
  max-width: 820px;
  padding: 0 24px 80px;
}
.pulse-check-scope {
  background: linear-gradient(135deg, rgba(24,99,220,0.06) 0%, rgba(201,148,0,0.04) 100%);
}

/* ── Hero ── */
.pulse-check-scope .hero {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 48px 0 64px;
}
.pulse-check-scope .hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.1;
}
.pulse-check-scope .hero-sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 620px;
  margin: 0;
}

/* ── Cards ── */
.pulse-check-scope .card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.pulse-check-scope .card {
  margin-top: 24px;
  padding: 36px 40px;
}

/* ── Links ── */
.pulse-check-scope a {
  color: var(--c-orange);
}

/* ── Section titles ── */
.pulse-check-scope .section-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.pulse-check-scope .section-desc {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 20px;
}

/* ── Form ── */
.pulse-check-scope .form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pulse-check-scope .org-form-row {
  grid-template-columns: repeat(2, 1fr);
}
.pulse-check-scope .form-group input.has-error { border-color: #d32f2f; }
.pulse-check-scope .form-group input[readonly] {
  background: var(--c-surface, #f5f5f5);
  color: var(--c-muted, #888);
  cursor: default;
  border-color: transparent;
}

/* ── Native select ── */
.pulse-check-scope .form-group select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background-color: var(--c-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23404040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 40px 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-text);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.pulse-check-scope .form-group select:focus {
  outline: 3px solid var(--c-orange);
  outline-offset: 2px;
  border-color: var(--c-orange);
}

/* ── Hero logo ── */
.pulse-check-scope .hero-logo {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}
.pulse-check-scope .hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
  margin-left: 0;
}
.pulse-check-scope .hero-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-muted);
}

/* ── Instructions ── */
.pulse-check-scope .instructions p {
  font-size: 0.95rem;
  color: var(--c-muted);
}

/* ── Example block ── */
.example-block {
  margin: 20px 0 16px;
  background: var(--c-surface2);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.example-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 12px;
}
.example-anchors {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 16px;
  gap: 8px;
}
.example-anchor-right { text-align: right; }
.example-positions { position: relative; margin-bottom: 16px; }
.example-track-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--c-orange) 0%, #b0b0b0 50%, var(--c-blue) 100%);
  z-index: 0;
}
.example-pips-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}
.example-pip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.pos-1 { background: var(--c-orange); }
.pos-2 { background: #b58a30; }
.pos-3 { background: #888; }
.pos-4 { background: #3a71c2; }
.pos-5 { background: var(--c-blue); }
.example-descs-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  text-align: center;
}
.example-descs-row p {
  font-size: 0.72rem;
  color: var(--c-muted);
  line-height: 1.4;
  margin: 0;
}
.example-note {
  font-size: 0.8rem;
  color: var(--c-muted);
  font-style: italic;
  margin: 0;
  border-top: 1px solid var(--c-border);
  padding-top: 12px;
}

/* ── Question ID: override shared pill style ── */
.pulse-check-scope .question-id {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  flex-shrink: unset;
  margin-bottom: 14px;
  display: block;
}

/* ── Theme groups ── */
.theme-group { margin-top: 32px; }
.theme-group:first-child { margin-top: 24px; }
.theme-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 4px;
}
.theme-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ── Slider layout ── */
.slider-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.slider-label {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.45;
}
.slider-label.right { text-align: right; }
.slider-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  position: relative;
  padding-bottom: 56px;
}
.slider-value {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-orange);
  background: rgba(24, 99, 220, 0.08);
  border: 1px solid rgba(24,99,220,0.15);
  border-radius: 50px;
  padding: 2px 10px;
  min-width: 32px;
  text-align: center;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.slider-reset {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  padding: 0;
  font-size: 0.7rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.question-card.answered .slider-reset { opacity: 1; }
.slider-reset:hover { color: #555; }

/* ── Range input ── */
.pulse-check-scope input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--c-orange) 0%, #b0b0b0 50%, var(--c-blue) 100%);
  outline: none;
  cursor: pointer;
}
.pulse-check-scope input[type="range"]:focus {
  outline: 3px solid var(--c-orange);
  outline-offset: 3px;
}
.pulse-check-scope input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--thumb-color, #888);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background 0.15s ease;
}
.pulse-check-scope input[type="range"]::-webkit-slider-thumb:hover,
.pulse-check-scope input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.pulse-check-scope input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--thumb-color, #888);
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background 0.15s ease;
}
.pulse-check-scope input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--c-orange) 0%, #b0b0b0 50%, var(--c-blue) 100%);
}

/* ── Buttons ── */
.pulse-check-scope .btn-primary {
  box-shadow: 0 4px 14px rgba(201,148,0,0.35);
}
.pulse-check-scope .btn-primary:hover {
  background: var(--c-orange-dk);
  box-shadow: 0 8px 20px rgba(201,148,0,0.4);
}
.pulse-check-scope .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .pulse-check-scope .card { padding: 24px 20px; }
  .pulse-check-scope .form-row,
  .pulse-check-scope .org-form-row { grid-template-columns: 1fr; }
  .pulse-check-scope .hero { padding: 24px 0 40px; }
  .example-descs-row { grid-template-columns: repeat(3, 1fr); }
  .example-descs-row p:nth-child(4),
  .example-descs-row p:nth-child(5) { display: none; }
}

@media (max-width: 640px) {
  .slider-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .slider-label.right { text-align: left; }
  .slider-track { min-width: unset; }
}
