/* Head & Heart questionnaire. Works on top of style.css and Bootstrap. */
:root {
  --head:  #8fd3ff;   /* cool blue for thinking */
  --heart: #ff9ec7;   /* warm pink for feeling  */
}

.gap-question {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}
.gap-legend {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  float: none;
  width: auto;
}
.gap-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  font-size: 0.9rem; font-family: "Inter", sans-serif;
  background: rgba(255, 255, 255, 0.12); margin-right: 0.35rem;
}

.gap-mode { padding-left: 0.85rem; margin-bottom: 1rem; }
.gap-mode--think { border-left: 3px solid var(--head); }
.gap-mode--feel  { border-left: 3px solid var(--heart); }
.gap-badge { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }

/* The 1-7 buttons */
.gap-scale { display: flex; gap: 0.35rem; }
.gap-dot {
  flex: 1;
  padding: 0.35rem 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
  border-radius: 999px;
}
.gap-dot:hover { border-color: rgba(255, 255, 255, 0.6); color: inherit; }
.gap-mode--think .btn-check:checked + .gap-dot { background: var(--head);  border-color: var(--head);  color: #10132b; }
.gap-mode--feel  .btn-check:checked + .gap-dot { background: var(--heart); border-color: var(--heart); color: #2b1020; }
.btn-check:focus-visible + .gap-dot { outline: 2px solid #fff; outline-offset: 2px; }

/* Results: one track per subject, with a head pin and a heart pin */
.gap-score { font-size: 1.3rem; }
.gap-legend-row { display: flex; gap: 1.25rem; align-items: center; }
.gap-legend-row .gap-pin { position: static; display: inline-block; transform: none; vertical-align: middle; margin-right: 0.3rem; }

.gap-track-wrap { padding: 0.6rem 0.75rem; border-radius: 12px; }
.gap-track-wrap--widest { background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }

.gap-track {
  position: relative;
  height: 8px;
  margin: 0.75rem 9px 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.gap-span {
  position: absolute; top: 0; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(143, 211, 255, 0.5), rgba(255, 158, 199, 0.5));
}
.gap-pin {
  position: absolute; top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(0, 0, 0, 0.35);
}
.gap-pin--think { background: var(--head); }
.gap-pin--feel  { background: var(--heart); border-radius: 50% 50% 50% 0; }

.gap-reading {
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  padding-left: 1rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.gap-admin-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem;
}
