/* =========================================
   Likert Slider Component — Bússola Executiva
   Optimized for totem touch (44px+ targets)
   ========================================= */

.likert-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.likert-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.likert-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FF6B00;
  margin-bottom: 12px;
}

.likert-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.likert-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Grid layout — 2 colunas em telas largas, 1 coluna em totem vertical/tablet */
.likert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .likert-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Single question wrapper ---------- */
.likert-question {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.likert-pole-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 8px;
  gap: 16px;
  /* Altura mínima de 2 linhas pra que sliders fiquem alinhados
     mesmo quando uma das labels quebra em 2 linhas (e a outra não). */
  min-height: calc(2 * 15px * 1.3);
}

.likert-pole-left,
.likert-pole-right {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  line-height: 1.3;
  flex: 1;
}

.likert-pole-right {
  text-align: right;
}

/* ---------- Track (the pill background) ---------- */
.likert-track {
  position: relative;
  height: 64px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.likert-track:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 107, 0, 0.2);
}

.likert-track[data-value]:not([data-value=""]) {
  border-color: rgba(255, 107, 0, 0.3);
}

/* The thin line connecting the dots */
.likert-rail {
  position: absolute;
  top: 50%;
  left: 32px;
  right: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%);
  border-radius: 1px;
  pointer-events: none;
}

/* The orange fill from start to selected */
.likert-fill {
  position: absolute;
  top: 50%;
  left: 32px;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF6B00 0%, #FF8C00 100%);
  transform: translateY(-50%);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.4);
}

/* ---------- The 5 points ---------- */
.likert-points {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 2;
}

.likert-point {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.15s ease;
}

.likert-point::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Idle pulse: quando o track ainda não tem valor, o ponto central
   ganha um pulso laranja sutil pra sinalizar "isso é interativo".
   Tira automaticamente quando o usuário toca em qualquer ponto. */
.likert-track:not([data-value]):not(:hover) .likert-point:nth-child(3)::before {
  animation: likert-idle-pulse 2.4s ease-in-out infinite;
}
@keyframes likert-idle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.0); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 107, 0, 0.15); }
}

.likert-point:hover::before,
.likert-point:focus-visible::before {
  background: rgba(255, 107, 0, 0.25);
  border-color: rgba(255, 107, 0, 0.6);
  width: 22px;
  height: 22px;
}

.likert-point:focus {
  outline: none;
}

.likert-point:focus-visible {
  outline: 2px solid #FF6B00;
  outline-offset: 6px;
  border-radius: 50%;
}

/* Active state */
.likert-point.is-selected::before {
  background: #FF6B00;
  border-color: #FFAA50;
  width: 28px;
  height: 28px;
  box-shadow:
    0 0 0 6px rgba(255, 107, 0, 0.18),
    0 0 24px rgba(255, 107, 0, 0.6);
}

.likert-point.is-before::before {
  background: rgba(255, 107, 0, 0.7);
  border-color: rgba(255, 140, 0, 0.6);
}

/* Press feedback */
.likert-point:active {
  transform: scale(0.92);
}

/* ---------- Continue button (state-aware) ---------- */
.likert-continue {
  display: block;
  margin: 32px auto 0;
  padding: 20px 48px;
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 280px;
  min-height: 64px;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.likert-continue:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.4);
}

.likert-continue:not(:disabled):active {
  transform: translateY(0);
}

.likert-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

/* Progress hint (X de Y respondidas) */
.likert-progress-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.likert-progress-hint strong {
  color: #FF6B00;
  font-weight: 700;
}

/* ---------- Touch device tweaks ---------- */
@media (pointer: coarse) {
  .likert-track {
    height: 72px;
  }
  .likert-point {
    width: 56px;
    height: 56px;
  }
  .likert-point::before {
    width: 22px;
    height: 22px;
  }
  .likert-point.is-selected::before {
    width: 32px;
    height: 32px;
  }
}
