/* =========================================================
QUICK QUESTIONS — floating action button + panel
Self-contained. Classes prefixed with .qq- to avoid conflicts.
========================================================= */


/* =========================================================
TOKENS
========================================================= */

.qq-fab,
.qq-panel{
  --qq-navy:       #1a1f3c;
  --qq-navy-deep:  #0f1429;
  --qq-gold:       #c9a84c;
  --qq-gold-soft:  #e8d28d;
  --qq-cream:      #faf6ee;
  --qq-text:       #2a2d3a;
  --qq-muted:      #6b7280;
  --qq-border:     #e8e0d0;

  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* =========================================================
FAB (floating action button)
========================================================= */

.qq-fab{
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;

  padding: 16px 26px 16px 22px;

  background: var(--qq-navy);
  border: 2px solid var(--qq-gold);
  border-radius: 999px;
  color: var(--qq-gold);

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;

  box-shadow:
    0 14px 36px rgba(15, 18, 36, 0.40),
    0 4px 12px rgba(15, 18, 36, 0.25);

  transition:
    transform   .25s cubic-bezier(.2, .8, .2, 1),
    background  .25s ease,
    color       .25s ease,
    box-shadow  .25s ease;
}

.qq-fab:hover{
  background: var(--qq-gold);
  color: var(--qq-navy);
  transform: translateY(-3px);
  box-shadow:
    0 20px 48px rgba(15, 18, 36, 0.50),
    0 6px 16px rgba(15, 18, 36, 0.30);
}

.qq-fab:active{
  transform: translateY(-1px);
}

.qq-fab:focus-visible{
  outline: 3px solid var(--qq-gold);
  outline-offset: 4px;
}


/* text label inside the pill */
.qq-fab-text{
  white-space: nowrap;
  padding-right: 6px;
}


/* pulsing gold glow ring (works on rectangular shape) */
.qq-fab::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.65);
  animation: qqPulse 2.4s ease-out infinite;
}

@keyframes qqPulse{
  0%   { box-shadow: 0 0 0 0    rgba(201, 168, 76, 0.65); }
  100% { box-shadow: 0 0 0 18px rgba(201, 168, 76, 0);    }
}

.qq-fab:hover::before,
.qq-fab.is-open::before{
  display: none;
}

.qq-fab svg{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}


/* icon swap on open */
.qq-fab .qq-icon-close{ display: none; }
.qq-fab.is-open .qq-icon-help{ display: none; }
.qq-fab.is-open .qq-icon-close{ display: block; }
.qq-fab.is-open::before{ display: none; }


/* notification badge */
.qq-fab-badge{
  position: absolute;
  top: -6px;
  right: -6px;

  min-width: 24px;
  height: 24px;
  padding: 0 7px;

  background: var(--qq-gold);
  color: var(--qq-navy);

  border-radius: 12px;
  border: 2px solid #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.qq-fab.is-open .qq-fab-badge{ display: none; }


/* =========================================================
PANEL
========================================================= */

.qq-panel{
  position: fixed;
  bottom: 110px;
  right: 28px;
  z-index: 9989;

  width: 340px;
  max-width: calc(100vw - 48px);

  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;

  box-shadow:
    0 30px 80px rgba(15, 18, 36, 0.30),
    0 12px 24px rgba(15, 18, 36, 0.12);

  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transform-origin: bottom right;

  transition:
    opacity   .25s ease,
    transform .25s cubic-bezier(.2, .8, .2, 1);
}

.qq-panel.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}


/* =========================================================
PANEL HEADER
========================================================= */

.qq-panel-header{
  position: relative;
  padding: 22px 22px 20px;
  background: var(--qq-navy);
  color: #ffffff;
}

/* gold accent bar at top */
.qq-panel-header::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--qq-gold), var(--qq-gold-soft), var(--qq-gold));
}

.qq-panel-eyebrow{
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--qq-gold);
  font-weight: 500;
  margin-bottom: 6px;
}

.qq-panel-title{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
  color: #fff;
}

.qq-panel-sub{
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 6px 0 0;
}


/* =========================================================
LIST
========================================================= */

.qq-list{
  padding: 8px;
}


/* question button (standalone — opens video modal on click) */
.qq-q-btn{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 14px;

  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;

  font-family: inherit;
  font-size: 0.92rem;
  color: var(--qq-text);

  cursor: pointer;
  transition: background .2s ease;
}

.qq-q-btn + .qq-q-btn{
  margin-top: 2px;
}

.qq-q-btn:hover{
  background: var(--qq-cream);
}

.qq-q-icon{
  flex-shrink: 0;
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(201, 168, 76, 0.14);
  color: var(--qq-gold);
  border-radius: 10px;

  transition: background .2s ease, color .2s ease;
}

.qq-q-btn:hover .qq-q-icon{
  background: var(--qq-gold);
  color: #fff;
}

.qq-q-icon svg{
  width: 18px;
  height: 18px;
}

.qq-q-text{
  flex: 1;
  font-weight: 500;
  line-height: 1.3;
}

/* play indicator (chevron-style triangle) */
.qq-q-play{
  flex-shrink: 0;
  width: 28px;
  height: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--qq-gold);
  border-radius: 50%;
  background: transparent;

  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.qq-q-btn:hover .qq-q-play{
  background: var(--qq-navy);
  color: #fff;
  transform: scale(1.08);
}

.qq-q-play svg{
  width: 11px;
  height: 11px;
  margin-left: 1px; /* optical center for the play triangle */
}


/* =========================================================
FOOTER (CTA inside panel)
========================================================= */

.qq-panel-footer{
  padding: 12px 16px 16px;
  border-top: 1px solid var(--qq-border);
  background: var(--qq-cream);
}

.qq-panel-cta{
  display: block;
  width: 100%;
  padding: 11px 16px;

  background: var(--qq-navy);
  color: #fff;
  text-align: center;
  text-decoration: none;

  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;

  transition: background .2s ease;
}

.qq-panel-cta:hover{
  background: var(--qq-navy-deep);
  color: #fff;
}


/* =========================================================
VIDEO MODAL — opens when a question is clicked
========================================================= */

.qq-video-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(15, 18, 36, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  transition: opacity .25s ease;
}

.qq-video-overlay.is-open{
  display: flex;
  opacity: 1;
}

body.qq-lock{ overflow: hidden; }


.qq-video-modal{
  position: relative;
  width: 100%;
  max-width: 1000px;

  background: #000;
  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);

  transform: translateY(20px) scale(0.96);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.qq-video-overlay.is-open .qq-video-modal{
  transform: translateY(0) scale(1);
}


/* top bar with title + close */
.qq-video-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px 18px;

  background: var(--qq-navy);
  color: #fff;
}

.qq-video-title{
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.qq-video-close{
  flex-shrink: 0;

  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  color: #fff;

  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.qq-video-close:hover{
  background: rgba(255, 255, 255, 0.18);
}

.qq-video-close:active{
  transform: scale(0.94);
}

.qq-video-close svg{
  width: 18px;
  height: 18px;
}


/* video frame */
.qq-video-frame{
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.qq-video-frame video{
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}


/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 480px){

  .qq-fab{
    bottom: 16px;
    right: 16px;
    padding: 10px 16px 10px 14px;
    font-size: 13px;
    gap: 8px;
  }

  .qq-fab svg{
    width: 16px;
    height: 16px;
  }

  .qq-panel{
    bottom: 86px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }

  .qq-video-overlay{
    padding: 12px;
  }

  .qq-video-modal{
    border-radius: 10px;
  }

  .qq-video-title{
    font-size: 1rem;
  }

  .qq-video-bar{
    padding: 10px 14px;
  }

}