/* Gut Health Quiz v2 — Smriti Kochar
   Colors: Button/accent: #ed1e79  |  Background: #F0BDD729
   Font: Poppins only
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── CSS Variables ──────────────────────────────────────────────────── */
.ghq-root, .ghq-popup, .ghq-thankyou-page {
  --ghq-accent:      #ed1e79;
  --ghq-accent-dark: #c0155f;
  --ghq-bg:          #F0BDD729;
  --ghq-bg-solid:    #fdf4f9;
  --ghq-text:        #2d0a1a;
  --ghq-text-muted:  #9b6080;
  --ghq-border:      #f0c8de;
  --ghq-white:       #ffffff;
  --ghq-font:        'Poppins', sans-serif;
  --ghq-radius:      14px;
  --ghq-shadow:      0 8px 40px rgba(237,30,121,0.18);
}

/* ─── Global reset inside plugin ────────────────────────────────────── */
.ghq-root *, .ghq-popup *, .ghq-thankyou-page * {
  box-sizing: border-box;
  font-family: var(--ghq-font) !important;
}

/* ─── Landing section (outside popup) ──────────────────────────────── */
.ghq-root { position: relative; }

.ghq-landing {
  background: var(--ghq-bg);
  border-radius: var(--ghq-radius);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid var(--ghq-border);
}

.ghq-welcome-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ghq-accent);
  margin-bottom: 16px;
}

.ghq-welcome-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--ghq-text);
  line-height: 1.15;
  margin: 0 0 16px;
}

.ghq-welcome-title em {
  font-style: italic;
  color: var(--ghq-accent);
}

.ghq-welcome-sub {
  font-size: 15px;
  font-weight: 400;
  color: #000;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 28px;
}

button.ghq-btn-next {
    background: #ee287f !important;
	 padding: 12px 30px;
}

button.ghq-popup-close {
    border-radius: 112px;
    font-size: 20px;
     padding: 12px 30px;
    background: #ee287f;
    color: #fff;
}

button.ghq-btn-back {
    background: #ee287f;
    color: #fff !important;
    padding: 12px 30px;
}

/* ─── Pills ─────────────────────────────────────────────────────────── */
.ghq-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.ghq-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ghq-white);
  border: 1px solid var(--ghq-border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ghq-text);
}

.ghq-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ghq-accent);
  flex-shrink: 0;
}

/* ─── POPUP overlay — DISABLED (quiz is now inline, not in a popup) ───── */
/*
.ghq-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 10, 26, 0.65);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.ghq-popup-overlay.active { display: flex; }
body.ghq-popup-open { overflow: hidden; }
*/

/* ─── Inline Welcome Screen ─────────────────────────────────────────── */
.ghq-inline-welcome {
  background: var(--ghq-white);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: var(--ghq-shadow);
  padding: 48px 40px 40px;
  text-align: center;
  border: 1px solid var(--ghq-border);
}

@media (max-width: 600px) {
  .ghq-inline-welcome { padding: 36px 20px 28px; border-radius: 16px; }
}

/* ─── Inline Quiz Screen ─────────────────────────────────────────────── */
.ghq-inline-quiz {
  background: var(--ghq-white);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: var(--ghq-shadow);
  border: 1px solid var(--ghq-border);
  overflow: hidden;
}

@media (max-width: 600px) {
  .ghq-inline-quiz { border-radius: 16px; }
}

/* ─── Progress bar ──────────────────────────────────────────────────── */
#ghq-progress-wrap {
  height: 4px;
  background: var(--ghq-border);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

#ghq-progress-bar {
  height: 100%;
  background: var(--ghq-accent);
  width: 0%;
  transition: width .4s ease;
  border-radius: 4px;
}

/* ─── Logo strip ────────────────────────────────────────────────────── */
#ghq-logo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 0;
}

.ghq-logo-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ghq-accent);
  letter-spacing: .02em;
}

h2.ghq-q-text {
    font-size: 24px;
    line-height: 30px;
	letter-spacing: 0px;
    
}

#ghq-step-counter {
  font-size: 12px;
  font-weight: 500;
  color: var(--ghq-text-muted);
  transition: opacity .3s;
}

/* ─── Quiz wrapper ──────────────────────────────────────────────────── */
#ghq-quiz-wrapper { padding: 0 28px 32px; overflow: hidden; position: relative; min-height: 300px; }

/* ─── Slides ────────────────────────────────────────────────────────── */
.ghq-slide {
  display: none;
  animation: ghq-slide-in .25s ease both;
}

.ghq-slide.active { display: block; }
.ghq-slide.exit-up { display: none; }

@keyframes ghq-slide-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Question typography ───────────────────────────────────────────── */
.ghq-q-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ghq-accent);
  margin: 20px 0 10px;
}

.ghq-q-text {
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 700;
  color: var(--ghq-text);
  line-height: 1.35;
  margin: 0 0 8px;
}

.ghq-q-sub {
  font-size: 13px;
  font-weight: 300;
  color: #000;
  line-height: 1.65;
  margin: 0 0 20px;
}

/* ─── Options ───────────────────────────────────────────────────────── */
.ghq-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.ghq-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--ghq-border);
  background: var(--ghq-white);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.ghq-option:hover {
  border-color: var(--ghq-accent);
  background: var(--ghq-bg);
}

.ghq-option.selected {
  border-color: var(--ghq-accent);
  background: var(--ghq-bg);
  box-shadow: 0 0 0 3px rgba(237,30,121,0.12);
}

.ghq-opt-key {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--ghq-bg);
  border: 1.5px solid var(--ghq-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ghq-accent);
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.ghq-option.selected .ghq-opt-key {
  background: var(--ghq-accent);
  color: var(--ghq-white);
  border-color: var(--ghq-accent);
}

.ghq-opt-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--ghq-text);
  line-height: 1.4;
}

/* ─── Contact form ──────────────────────────────────────────────────── */
.ghq-input-group { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

.ghq-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .ghq-input-row { grid-template-columns: 1fr; } }

.ghq-field-wrap { display: flex; flex-direction: column; gap: 6px; }

.ghq-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ghq-text);
  letter-spacing: .03em;
}

.ghq-field-input {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--ghq-border);
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--ghq-text) !important;
  background: var(--ghq-white) !important;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.ghq-field-input:focus {
  border-color: var(--ghq-accent);
  box-shadow: 0 0 0 3px rgba(237,30,121,0.10);
}

.ghq-field-input::placeholder { color: #c9a0b4 !important; font-weight: 300 !important; }

/* ─── Error message ─────────────────────────────────────────────────── */
.ghq-err-msg {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ghq-accent);
  padding: 8px 12px;
  background: rgba(237,30,121,0.07);
  border-radius: 8px;
  margin-bottom: 12px;
}
.ghq-err-msg.show { display: flex; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.ghq-btn-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ghq-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ghq-accent);
  color: var(--ghq-white) !important;
  border: none;
  border-radius: 50px;
  padding: 13px 26px;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: var(--ghq-font) !important;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
}

.ghq-btn-next:hover {
  background: var(--ghq-accent-dark);
  box-shadow: 0 4px 20px rgba(237,30,121,0.4);
  transform: translateY(-1px);
}

.ghq-btn-back {
  background: none;
  border: 1.5px solid var(--ghq-border);
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 13px !important;
  font-weight: 500 !important;
  font-family: var(--ghq-font) !important;
  color: var(--ghq-text-muted) !important;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.ghq-btn-back:hover { border-color: var(--ghq-accent); color: var(--ghq-accent) !important; }

.ghq-press-hint {
  font-size: 11px;
  color: var(--ghq-text-muted);
  font-weight: 300;
}
.ghq-press-hint kbd {
  background: var(--ghq-bg);
  border: 1px solid var(--ghq-border);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
  font-family: var(--ghq-font) !important;
}

/* ─── THANK YOU PAGE ────────────────────────────────────────────────── */
.ghq-thankyou-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  font-family: var(--ghq-font) !important;
}

.ghq-ty-hero {
  text-align: center;
  background: var(--ghq-bg);
  border-radius: var(--ghq-radius);
  padding: 48px 32px 40px;
  border: 1px solid var(--ghq-border);
  margin-bottom: 28px;
}

.ghq-ty-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ghq-accent);
  color: var(--ghq-white);
  font-size: 28px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(237,30,121,0.35);
}

.ghq-ty-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: var(--ghq-text);
  margin: 0 0 12px;
  line-height: 1.2;
}

.ghq-ty-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--ghq-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Score card */
.ghq-ty-score-section { margin-bottom: 28px; }

.ghq-ty-score-card {
  background: var(--ghq-white);
  border: 2px solid var(--ghq-accent);
  border-radius: var(--ghq-radius);
  padding: 28px 32px;
  text-align: center;
}

.ghq-ty-score-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ghq-accent);
  margin-bottom: 8px;
}

.ghq-ty-score-num {
  font-size: 64px;
  font-weight: 700;
  color: var(--ghq-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.ghq-ty-score-num span {
  font-size: 28px;
  font-weight: 400;
  color: var(--ghq-text-muted);
}

.ghq-ty-level-badge {
  display: inline-block;
  background: var(--ghq-accent);
  color: var(--ghq-white);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ghq-ty-score-bar-wrap {
  background: var(--ghq-bg);
  border-radius: 50px;
  height: 10px;
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
}

.ghq-ty-score-bar {
  height: 100%;
  background: var(--ghq-accent);
  border-radius: 50px;
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
}

/* Video section */
.ghq-ty-video-section {
  margin-bottom: 28px;
  text-align: center;
}

.ghq-ty-video-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ghq-text);
  margin: 0 0 8px;
}

.ghq-ty-video-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--ghq-text-muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.ghq-ty-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--ghq-radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--ghq-border);
}

.ghq-ty-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* CTA section */
.ghq-ty-cta-section {
  background: var(--ghq-bg);
  border-radius: var(--ghq-radius);
  border: 1px solid var(--ghq-border);
  padding: 36px 32px;
  text-align: center;
}

.ghq-ty-cta-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ghq-text);
  margin: 0 0 10px;
}

.ghq-ty-cta-section p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ghq-text-muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.ghq-ty-cta-btn {
  font-size: 15px !important;
  padding: 14px 32px !important;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ghq-landing { padding: 40px 20px; }
  #ghq-quiz-wrapper { padding: 0 18px 24px; }
  .ghq-popup { border-radius: 16px; }
  .ghq-ty-hero { padding: 36px 20px; }
  .ghq-ty-score-card { padding: 20px; }
  .ghq-ty-cta-section { padding: 28px 20px; }
  .ghq-ty-score-num { font-size: 48px; }
}

/* ─── Thank-you page: level message & description ───────────────────────── */
.ghq-ty-level-message {
  font-size: 15px;
  font-weight: 600;
  color: var(--ghq-text);
  margin: 16px 0 6px;
}
.ghq-ty-level-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ghq-text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Submit loading spinner ──────────────────────────────────────────────── */
@keyframes ghq-spin {
  to { transform: rotate(360deg); }
}
.ghq-spinner {
  animation: ghq-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.ghq-btn-next:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── Welcome screen inside popup — kept for reference, overridden by .ghq-inline-welcome ── */
.ghq-welcome-screen {
  padding: 48px 40px 40px;
  text-align: center;
}

.ghq-quiz-screen {
  /* takes over full popup interior */
}

@media (max-width: 600px) {
  .ghq-welcome-screen { padding: 36px 20px 28px; }
}
