/* ═══════════════════════════════════
   FEV QUIZ OVERLAY — Typeform-Style
   Add this CSS to hub.css or include as separate file
   ═══════════════════════════════════ */

/* ── Launch Card (replaces "Interactive form — opens when live") ── */
.tfq-launch-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: 16px;
  margin: 16px 0;
}
.tfq-launch-emoji { font-size: 40px; margin-bottom: 14px; }
.tfq-launch-title {
  font-size: 20px; font-weight: 700; color: #f5f5f7;
  margin-bottom: 6px; font-family: Rajdhani, sans-serif;
}
.tfq-launch-sub {
  font-size: 14px; color: #98989d; margin-bottom: 8px;
  font-family: var(--font-nav);
}
.tfq-launch-meta {
  font-size: 12px; color: #636366; margin-bottom: 20px;
  font-family: var(--font-nav);
}
.tfq-launch-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; background: #a855f7; color: #fff;
  font-size: 16px; font-weight: 600; border: none; border-radius: 12px;
  cursor: pointer; transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(168,85,247,0.25);
  font-family: var(--font-nav);
}
.tfq-launch-btn:hover {
  background: #c084fc; transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(168,85,247,0.3);
}
.tfq-launch-btn.retake {
  background: transparent; border: 1px solid rgba(168,85,247,0.3);
  color: #c084fc; box-shadow: none; padding: 10px 24px; font-size: 13px;
  margin-top: 10px;
}
.tfq-launch-btn.retake:hover {
  background: rgba(168,85,247,0.1); transform: none;
}
.tfq-launch-done {
  display: inline-flex; align-items: center; gap: 6px;
  color: #30d158; font-size: 14px; font-weight: 600;
  font-family: var(--font-nav); margin-bottom: 8px;
}

/* ── Fullscreen Overlay ── */
.tfq-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0e18;
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity 0.4s ease;
}
.tfq-overlay.visible { opacity: 1; }

.tfq-progress {
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: rgba(255,255,255,0.06); z-index: 10;
}
.tfq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #c084fc);
  border-radius: 0 4px 4px 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(168,85,247,0.3);
}

.tfq-close {
  position: absolute; top: 20px; right: 24px; z-index: 10;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #98989d; cursor: pointer; transition: all 0.2s ease;
}
.tfq-close:hover { background: rgba(255,255,255,0.1); color: #f5f5f7; }

.tfq-counter {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 600; color: #636366;
  font-family: var(--font-nav); z-index: 10;
}

.tfq-viewport {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 40px; overflow-y: auto;
}

/* ── Slides ── */
.tfq-slide {
  width: 100%; max-width: 580px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tfq-slide.visible { opacity: 1; transform: translateY(0); }

/* Intro */
.tfq-intro-slide { text-align: center; }
.tfq-intro-emoji { font-size: 56px; margin-bottom: 24px; line-height: 1; }
.tfq-intro-title {
  font-size: 36px; font-weight: 700; color: #f5f5f7;
  letter-spacing: -0.02em; margin-bottom: 12px;
  font-family: Rajdhani, sans-serif; line-height: 1.15;
}
.tfq-intro-sub {
  font-size: 17px; color: #98989d; line-height: 1.5;
  margin-bottom: 16px; font-family: var(--font-nav);
}
.tfq-intro-meta {
  font-size: 13px; color: #636366; font-family: var(--font-nav);
  margin-bottom: 40px;
}
.tfq-begin-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 40px; background: #a855f7; color: #fff;
  font-size: 17px; font-weight: 600; border: none; border-radius: 14px;
  cursor: pointer; transition: all 0.25s ease;
  box-shadow: 0 4px 24px rgba(168,85,247,0.25); font-family: var(--font-nav);
}
.tfq-begin-btn:hover {
  background: #c084fc; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168,85,247,0.3);
}

/* Question */
.tfq-q-num {
  font-size: 12px; font-weight: 700; color: #a855f7;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px; font-family: var(--font-nav);
}
.tfq-q-label {
  font-size: 26px; font-weight: 600; color: #f5f5f7;
  line-height: 1.3; margin-bottom: 36px;
  font-family: Rajdhani, sans-serif;
}

/* Text input */
.tfq-textinput {
  width: 100%; padding: 0 4px 14px;
  background: transparent; border: none;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  color: #f5f5f7; font-size: 22px; font-family: var(--font-nav);
  transition: border-color 0.25s ease; box-sizing: border-box;
  margin-bottom: 32px; outline: none;
}
.tfq-textinput::placeholder { color: #3a3a3c; font-weight: 300; }
.tfq-textinput:focus { border-bottom-color: rgba(168,85,247,0.5); }

/* Textarea */
.tfq-textarea {
  width: 100%; min-height: 140px; padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1); border-radius: 14px;
  color: #e5e5ea; font-size: 16px; font-family: var(--font-nav);
  line-height: 1.6; resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box; margin-bottom: 12px;
}
.tfq-textarea::placeholder { color: #3a3a3c; }
.tfq-textarea:focus {
  outline: none; border-color: rgba(168,85,247,0.4);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.08);
}
.tfq-shift-hint {
  font-size: 12px; color: #3a3a3c; font-family: var(--font-nav);
  margin-bottom: 20px;
}

/* Stars */
.tfq-stars { text-align: center; margin: 20px 0 36px; }
.tfq-stars .tfq-star {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.2); transition: all 0.2s ease; padding: 4px;
  display: inline-block;
}
.tfq-stars .tfq-star svg {
  width: 52px; height: 52px; transition: all 0.2s ease;
}
.tfq-stars .tfq-star:hover { color: rgba(255,200,55,0.5); transform: scale(1.1); }
.tfq-stars .tfq-star.active { color: #ffc837; }
.tfq-stars .tfq-star.active:hover { transform: scale(1.15); }
.tfq-stars-numbers {
  display: flex; justify-content: center; gap: 30px; margin-top: 8px;
  font-size: 14px; color: #636366; font-family: var(--font-nav);
}

/* Scale (1-10) */
.tfq-scale { margin-bottom: 32px; }
.tfq-scale-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #636366; margin-bottom: 14px;
  font-family: var(--font-nav); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tfq-scale-dots { display: flex; gap: 8px; }
.tfq-scale-dot {
  flex: 1; padding: 14px 0;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1); border-radius: 10px;
  color: #636366; font-size: 15px; font-weight: 700;
  font-family: var(--font-nav); cursor: pointer;
  transition: all 0.2s ease; text-align: center;
}
.tfq-scale-dot:hover {
  background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18);
  color: #98989d; transform: translateY(-1px);
}
.tfq-scale-dot.active {
  background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.5);
  color: #c084fc; box-shadow: 0 0 16px rgba(168,85,247,0.15);
  transform: translateY(-2px);
}

/* Nav buttons */
.tfq-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.tfq-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px; background: transparent;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  color: #98989d; font-size: 14px; font-weight: 500;
  font-family: var(--font-nav); cursor: pointer; transition: all 0.2s ease;
}
.tfq-back-btn:hover { background: rgba(255,255,255,0.04); color: #c7c7cc; }
.tfq-next-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: #a855f7; color: #fff;
  font-size: 15px; font-weight: 600; border: none; border-radius: 10px;
  cursor: pointer; transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(168,85,247,0.2); font-family: var(--font-nav);
}
.tfq-next-btn:hover {
  background: #c084fc; transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(168,85,247,0.25);
}
.tfq-enter-hint {
  font-size: 12px; color: #3a3a3c; font-family: var(--font-nav);
  margin-left: auto;
}
.tfq-enter-hint strong { color: #636366; }

/* Complete */
.tfq-complete-slide { text-align: center; }
.tfq-complete-emoji { font-size: 56px; margin-bottom: 24px; line-height: 1; }
.tfq-complete-title {
  font-size: 32px; font-weight: 700; color: #f5f5f7;
  margin-bottom: 10px; font-family: Rajdhani, sans-serif;
}
.tfq-complete-sub {
  font-size: 16px; color: #98989d; margin-bottom: 40px;
  font-family: var(--font-nav);
}
.tfq-done-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 36px; background: #30d158; color: #fff;
  font-size: 17px; font-weight: 600; border: none; border-radius: 14px;
  cursor: pointer; transition: all 0.25s ease;
  box-shadow: 0 4px 24px rgba(48,209,88,0.25); font-family: var(--font-nav);
}
.tfq-done-btn:hover {
  background: #3ae068; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(48,209,88,0.3);
}

/* Shake */
@keyframes tfqShake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-6px); }
  30%, 60%, 90% { transform: translateX(6px); }
}
.tfq-shake { animation: tfqShake 0.5s ease; color: #ff6961 !important; }

/* Responsive */
@media (max-width: 600px) {
  .tfq-intro-title { font-size: 28px; }
  .tfq-q-label { font-size: 21px; }
  .tfq-scale-dots { gap: 4px; }
  .tfq-scale-dot { padding: 10px 0; font-size: 13px; }
  .tfq-stars .tfq-star svg { width: 40px; height: 40px; }
  .tfq-begin-btn, .tfq-done-btn { padding: 16px 32px; font-size: 16px; }
  .tfq-close { top: 14px; right: 16px; width: 38px; height: 38px; }
  .tfq-enter-hint { display: none; }
}
