/* ============================================================
   BALANCE FORMULA — Quiz + Testimonial Slider
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700;800&display=swap");

/* === Reset & Custom Properties ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-red-50: #1a0f13;
  --color-red-500: #ef4444;
  --color-red-700: #f87171;
  --color-red-900: #fee2e2;
  --color-orange-50: #1a140f;
  --color-orange-500: #00d6c8;
  --color-orange-600: #ea580c;
  --color-orange-900: #ffedd5;
  --color-amber-50: #1a170f;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  --color-amber-900: #fef3c7;
  --color-emerald-50: #0f1a16;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-900: #d1fae5;
  --color-teal-600: #0d9488;
  --color-blue-100: #002b36;
  --color-blue-300: #003e4d;
  --color-blue-500: #18a89e;
  --color-blue-900: #e6f6f5;
  --color-slate-50: #001a23;
  --color-slate-100: #002530;
  --color-slate-200: #003647;
  --color-slate-300: #004c63;
  --color-slate-400: #8ca5ac;
  --color-slate-500: #a3babc;
  --color-slate-600: #c5d7dd;
  --color-slate-700: #eef6f7;
  --color-slate-800: #f7fafb;
  --color-slate-900: #ffffff;

  /* ── Semantic tokens ── */
  --navy: #ffffff;
  --teal: #18a89e;
  --teal2: #12827a;
  --white: #002530;
  --bg: #001a23;
  --border: #003647;
  --gray: #8ca5ac;
  --text: #c5d7dd;
  --star: #f59e0b;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

html,
body {
  height: 100%;
  background: var(--bg);
  font-family:
    "Lato",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   QUIZ SHELL
   ============================================================ */

.q-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* --- Progress bar (fixed at top) --- */
.q-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  z-index: 12000;
}
.q-progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 0 2px 2px 0;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Logo row --- */
.q-logo-row {
  padding: 20px 24px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px; /* clear fixed progress bar */
}
.q-logo {
  height: 40px;
  display: block;
}

.q-error {
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  background: var(--color-red-50);
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-red-700);
  display: none;
}

.q-error:not(:empty) {
  display: block;
}

/* --- Step counter (fixed top-right) --- */
.q-counter {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-slate-700);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  padding: 6px 10px;
  line-height: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .q-counter {
    top: 16px;
    right: 16px;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

.q-counter-current {
  color: rgb(24, 168, 158);
}
.q-counter-sep {
  color: var(--color-slate-400);

  margin: 0 3px;
  font-weight: 400;
}
.q-counter-total {
  color: var(--color-slate-400);
}

/* --- Main content area --- */
.q-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 16px; /* 16px horizontal gutter keeps content off screen edges */
}

.q-step-slot {
  width: 100%;
  max-width: 848px;
}

/* --- Fade-in animation --- */
.q-fade-in {
  animation: qFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes qFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ============================================================
   STEP CARD
   ============================================================ */
.q-card {
  width: 100%;
  text-align: center;
}

.q-card-head {
  margin-bottom: 28px;
}

.q-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
  font-family: "Playfair Display", Georgia, serif;
}

@media (min-width: 768px) {
  .q-title {
    font-size: 3rem;
    line-height: 1;
  }
}

.q-subtitle {
  font-size: 1.125rem;
  color: var(--color-slate-600);
  line-height: 1.5;
}

.q-card-body {
  margin-bottom: 4px;
}

/* ============================================================
   OPTION GRIDS
   ============================================================ */
.q-grid {
  display: grid;
  gap: 12px;
}
.q-grid-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .q-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.q-grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .q-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 640px) {
  .q-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Pill buttons (step 2: age, etc.) --- */
.q-pill {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--color-slate-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-slate-900);
  text-align: center;
  transition: all 0.3s;
  animation-delay: 0ms;
  -webkit-tap-highlight-color: transparent;
}
.q-pill:hover {
  transform: scale(1.02);
  border-color: rgb(24, 168, 158);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.q-pill:active {
  transform: scale(0.98);
}
.q-pill.is-selected {
  border-color: var(--teal);
  background: rgba(24, 168, 158, 0.07);
  color: var(--teal2);
}
.q-pill-label {
  pointer-events: none;
}

/* --- Tile buttons (step 1: gender) --- */
.q-tile {
  background: var(--white);
  border: 2px solid var(--color-slate-200);
  border-radius: 18px;
  padding: 32px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.q-tile:hover {
  border-color: #18a89e;
}
.q-tile.is-selected {
  border-color: #18a89e;
  background: rgba(24, 168, 158, 0.07);
}
.q-tile-icon {
  display: flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(24, 168, 158, 0.082);
  transition: all 0.3s;
  color: var(--teal);
}
.q-icon-lg {
  width: 40px;
  height: 40px;
}

.h-10 {
  height: 2.5rem;
}

.w-10 {
  width: 2.5rem;
}

.transition-colors {
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
  transition-duration: 300ms;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}

.text-slate-400 {
  color: var(--color-slate-400);
}

.q-input-icon {
  position: absolute;
  left: 16px;
  pointer-events: none;
}

.q-tile-label {
  font-size: 16px;
}

/* ============================================================
   INPUT FIELDS (steps 3 & 4)
   ============================================================ */
.q-field {
  text-align: left;
  margin-bottom: 16px;
  max-width: 448px;
  margin-left: auto;
  margin-right: auto;
}
.q-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-700);
  margin-bottom: 0.5rem;
}
.q-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.q-input {
  width: 100%;
  padding: 20px 24px 20px 56px;
  border: 2px solid var(--color-slate-200);
  border-radius: 16px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.q-input:focus {
  border-color: var(--teal);
}
.q-input::-webkit-inner-spin-button,
.q-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.q-input[type="number"] {
  -moz-appearance: textfield;
}
.q-input-unit {
  position: absolute;
  right: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  pointer-events: none;
}

/* ============================================================
   BODY TYPE TILES (step 5)
   ============================================================ */
.q-body-grid {
  justify-items: stretch;
}
.q-body-tile {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--color-slate-200);
  border-radius: 1rem;
  padding: 2rem;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.q-body-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(
    135deg,
    rgba(24, 168, 158, 0.063),
    rgba(24, 168, 158, 0.063)
  );
}

.q-body-tile > * {
  position: relative;
  z-index: 1;
}

.q-body-tile:hover {
  transform: scale(1.02);
  border-color: rgb(24, 168, 158);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.q-body-tile:hover::before {
  opacity: 1;
}

.q-body-tile:active {
  transform: scale(0.98);
}
.q-body-tile.is-selected {
  border-color: var(--teal);
  background: rgba(24, 168, 158, 0.07);
}
.q-body-img {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100px;
}
.q-body-img img {
  height: 100px;
  width: auto;
  display: block;
}
.q-body-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ============================================================
   CTA ROW & BUTTONS
   ============================================================ */
.q-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
  max-width: 448px;
  margin-left: auto;
  margin-right: auto;
}
.q-btn {
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  line-height: 1;
  transition:
    opacity 0.15s,
    transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.q-btn:active {
  transform: scale(0.98);
}
.q-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.q-btn-primary {
  flex: 1;
  width: 100%;
  background: linear-gradient(90deg, #18a89e, rgb(24, 168, 158));
  color: #fff;
  border-radius: 1rem;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.q-btn-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.q-btn-primary:hover .q-btn-arrow {
  transform: translateX(3px);
}
.q-btn-primary:hover {
  transform: scale(1.02);
  background: linear-gradient(90deg, #18a89e, #12827a);
  box-shadow:
    0 20px 25px -5px rgba(67, 56, 202, 0.25),
    0 8px 10px -6px rgba(67, 56, 202, 0.15);
}
.q-btn-primary:active {
  transform: scale(0.98);
}
.q-btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.q-btn-primary:disabled:hover {
  transform: scale(1);
}
.q-btn-secondary {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--gray);
  padding: 14px 20px;
}

/* ============================================================
   STEP 6 — INTERSTITIAL
   ============================================================ */
.q-step6-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding-top: 100px;
  padding-bottom: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-image: url("../assets/bg-testimonialWuvK.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.q-step6-counter {
  z-index: 2;
}

.q-step6-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5, 10, 20, 0.1) 0%,
      rgba(5, 10, 20, 0.1) 50%,
      rgba(5, 10, 20, 0.1) 100%
    ),
    rgba(6, 10, 18, 0.68);
}

.q-step6-popup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 768px;
  border-radius: 14px;
  background: #f3f4f6;
  padding: clamp(24px, 16vw, 48px);
  text-align: center;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.38);
  gap: 8px;
}

.q-step6-quote {
  position: absolute;
  top: -84px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.q-step6-quote-icon {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

@media (min-width: 768px) {
  .q-step6-quote-icon {
    width: 80px;
    height: 80px;
  }
}

.q-step6-photo img {
  width: 400px;
  height: 400px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}

.q-step6-name {
  font-size: 35px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.1;
}

.q-step6-city {
  font-size: 18px;
  color: var(--color-slate-600);
  margin-top: 2px;
  margin-bottom: 12px;
}

.q-step6-text {
  font-size: 24px;
  line-height: 1.45;
  color: #4b5563;
  margin-bottom: 14px;
}

.q-step6-verified {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  font-weight: 700;
  color: #ff5a3c;
  margin-bottom: 16px;
}

.q-step6-verified-icon {
  color: #ff5a3c;
}

.q-step6-cta {
  width: 100%;
  margin-top: 0;
  border-radius: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}

.q-root.q-step6-active .q-logo-row,
.q-root.q-step6-active .q-counter {
  display: none;
}

body.q-step6-active .t-section {
  display: none;
}

body.q-step6-active .q-main {
  padding: 0;
}

.q-step6-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

/* Featured testimonial */
.q-featured {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.q-featured-photo img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.q-featured-body {
  flex: 1;
}
.q-featured-quote {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 8px 0 6px;
}
.q-featured-author {
  font-size: 13px;
  color: var(--gray);
}

/* Stars */
.q-stars {
  display: flex;
  gap: 2px;
  color: var(--star);
}
.q-stars svg {
  width: 16px;
  height: 16px;
}
.q-stars-lg svg {
  width: 20px;
  height: 20px;
}

/* Verified badge */
.q-verified {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: red;
  margin-top: 8px;
}
.q-verified-icon {
  width: 18px;
  height: 18px;
  color: red;
}

/* Testimonial grid */
.q-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.q-testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-testimonial-photo img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.q-testimonial-body {
  flex: 1;
}
.q-testimonial-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin: 6px 0 8px;
}
.q-testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.q-testimonial-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.q-testimonial-city {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
}

/* Ready section */
.q-ready {
  text-align: center;
  padding: 8px 0;
}
.q-ready-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.q-ready-msg {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================================
   STEP 7 — RESULTS PAGE
   ============================================================ */
.q-results-page {
  width: 100%;
}
.q-results {
  width: 100%;
  max-width: 890px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Hide shell header on results step */
.q-root.q-step7-active .q-logo-row {
  display: none;
}
.q-root.q-step7-active .q-main {
  /* Results page manages its own horizontal spacing */
  padding: 3px 0 0;
}
.q-root.q-step7-active .q-step-slot {
  max-width: none;
}

/* Hero */
.q-hero {
  background: linear-gradient(145deg, #001a23 0%, #002530 60%, #001a23 100%);
  border-radius: 0;
  padding: 36px 24px 90px;
  color: var(--white);
  text-align: left;
  margin-bottom: 0;
  position: relative;
}
.q-hero-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.q-hero-logo {
  height: 48px;
  margin: 0 0 18px 0;
  display: block;
}
.q-hero-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.q-hero-headline {
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-family: "Playfair Display", Georgia, serif;
  color: #fff;
}
.q-hero-teal {
  color: #18a89e;
}
.q-hero-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}
.q-hero-cta {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #18a89e, #00d6c8) !important;
  box-shadow: 0 8px 28px rgba(24, 168, 158, 0.5) !important;
  border-radius: 50px !important;
  padding: 16px 36px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  width: fit-content !important;
  align-self: center !important;
  margin-top: 4px !important;
  color: #fff !important;
  letter-spacing: 0.01em;
}
.q-hero-cta:hover {
  background: linear-gradient(90deg, #12827a, #18a89e) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(24, 168, 158, 0.55) !important;
}

/* Weight journey bar */
.q-weight-journey {
  background: var(--white);
  border-radius: 20px;
  padding: 22px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -55px;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 624px;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}
.q-wj-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
}
.q-wj-side-right {
  text-align: center;
  justify-content: center;
  align-items: center;
}
.q-wj-side-right .q-wj-label {
  color: rgb(24, 168, 158);
}
.q-wj-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-400);
}
.q-wj-weight {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-slate-900);
  line-height: 1;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .q-wj-weight {
    font-size: 2.25rem;
  }
}
.q-wj-weight-target {
  color: #18a89e;
}
.q-wj-mid {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.q-wj-badge {
  background: #18a89e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 9999px 0 0 9999px;
  position: relative;
  line-height: 1;
  height: 39px;
}
.q-wj-badge::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 0 18px 14px;
  border-color: transparent transparent transparent #18a89e;
}

/* Results body */
.q-results-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 32px;
}

/* Stats grid */
.q-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
.q-stat {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: left;
  border: 1.5px solid var(--color-slate-100);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.q-stat.is-highlight {
  border-color: #18a89e;
  background: var(--white);
}
.q-stat-icon {
  color: #18a89e;
  display: flex;
}
.q-stat.is-highlight .q-stat-icon {
  color: #18a89e;
}
.q-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-slate-500);
  letter-spacing: 0.01em;
}
.q-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.q-stat.is-highlight .q-stat-value {
  color: var(--navy);
}

/* Generic card */
.q-card-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.q-card-card.faq {
  border-radius: none;
  background: none;

  box-shadow: none;
}

.q-card-card.faq h2 {
  margin-bottom: none;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-slate-900);
}

/* Section headers */
.q-section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-slate-500);
  align-self: center;
}
.q-section-desc {
  font-size: 13px;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* BMI card */
.q-bmi-value {
  font-size: 52px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 14px;
  text-align: center;
  align-items: center;
}
.q-bmi-scale-wrap {
  position: relative;
  margin-bottom: 45px;
}
.q-bmi-marker {
  position: absolute;
  top: 0;
  height: 48px;
  width: 4px;
  transform: translateX(-50%);
  background: #ffffff;
  z-index: 2;
}
.q-bmi-marker::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  height: 16px;
  width: 16px;
  transform: translateX(-50%) rotate(45deg);
  background: #ffffff;
}
.q-bmi-scale {
  display: flex;
  margin-bottom: 0;
}
.q-bmi-cat {
  flex: 1;
  height: 48px;
  /* border-radius: 4px; */
  position: relative;
  min-width: 0;
}
.q-bmi-cat:nth-child(1) {
  background: #93c5fd;
  border-radius: 24px 0 0 24px;
}
.q-bmi-cat:nth-child(2) {
  background: #10b981;
}
.q-bmi-cat:nth-child(3) {
  background: #f59e0b;
}
.q-bmi-cat:nth-child(4) {
  background: #ef4444;
  border-radius: 0 24px 24px 0;
}
.q-bmi-cat.is-active::after {
  display: none;
}
.q-bmi-cat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-slate-600);
  text-align: center;
  margin-top: 52px;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.25;
}
.q-risk {
  font-size: 12px;
  color: var(--color-red-700);
  background: var(--color-red-50);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.5;
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.q-risk-icon {
  flex-shrink: 0;
  color: var(--color-red-500);
  margin-top: 1px;
}

/* Metabolic card */
.q-section-title--teal {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-slate-500);
  align-self: center;
}
.q-metabolic-inline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}
.q-metabolic-value {
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.q-metabolic-unit {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}
.q-metabolic-compare-text {
  padding-top: 36px;
  padding-left: 24px;
  padding-right: 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  text-align: center;
}
.q-metabolic-percent {
  color: #18a89e;
}
.q-metabolic-subdesc {
  font-size: 12px;
  color: var(--color-slate-500);
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: center;
}
.q-trend {
  flex-shrink: 0;
}
.q-trend-up {
  color: var(--color-red-500);
}
.q-trend-down {
  color: var(--color-emerald-500);
}
.q-metabolic-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.q-metabolic-msg.is-warn {
  background: var(--color-amber-50);
  color: var(--color-amber-900);
}
.q-metabolic-msg.is-ok {
  background: var(--color-emerald-50);
  color: var(--color-emerald-900);
}
.q-metabolic-icon {
  flex-shrink: 0;
}
.q-score {
  display: flex;
  align-items: center;
  gap: 10px;
}
.q-score-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-slate-600);
  white-space: nowrap;
}
.q-score-bar {
  flex: 1;
  height: 8px;
  background: var(--color-slate-200);
  border-radius: 4px;
  overflow: hidden;
}
.q-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #18a89e, #12827a);
  border-radius: 4px;
  transition: width 0.8s ease;
}
.q-score-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* Two-column cards layout on wider screens */
.q-analysis-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .q-analysis-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .q-analysis-row {
    grid-template-columns: 1fr;
  }
}

/* Mid CTA button */
.q-mid-cta {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.q-mid-btn {
  width: 100%;
  max-width: 448px;
  align-self: center;
  padding: 18px 36px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px !important;
  background: linear-gradient(90deg, #18a89e, #00d6c8) !important;
  box-shadow: 0 8px 24px rgba(24, 168, 158, 0.4) !important;
}

/* Projection chart */
.q-projection-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.q-projection-desc {
  font-size: 13px;
  color: var(--color-slate-500);
  line-height: 1.6;
  margin-bottom: 16px;
}
.q-chart-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}
.q-chart {
  display: block;
  width: 100%;
  height: auto;
}
.q-first-month {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #18a89e;
  background: rgba(24, 168, 158, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
}

/* Offer card */
.q-offer-section-title {
  background: var(--bg);
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  padding: 24px 20px 0;
  line-height: 1.2;
  padding-bottom: 24px;
}
@media (min-width: 768px) {
  .q-offer-section-title {
    font-size: 2.25rem;
  }
}
.q-offer {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.q-offer-timer-banner {
  background: rgb(253, 202, 64);
  padding: 14px 20px;
  text-align: center;
}
.q-offer-timer-label {
  font-size: 13px;
  font-weight: 600;
  color: black;
  margin-bottom: 4px;
}
.q-offer-timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1e293b;
}
.q-offer-timer-display svg {
  flex-shrink: 0;
}
.q-offer-countdown {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.q-offer-inner {
  display: flex;
  gap: 24px;
  padding: 32px;
  align-items: flex-start;
}
.q-offer-image {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
}
.q-offer-image img {
  width: 374px;
  height: 286px;
  object-fit: contain;
  display: block;
}
.q-offer-badge {
  position: absolute;
  top: 4px;
  left: -10px;
  background: rgb(26, 58, 102);
  color: #fff;
  border-radius: 9999px;
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  gap: 3px;
}
.q-offer-badge-top,
.q-offer-badge-bot {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.q-offer-badge-mid {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.q-offer-body {
  flex: 1;
  min-width: 0;
}
.q-offer-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.1;
}
.q-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.q-price-current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.q-price-per {
  font-size: 12px;
  color: var(--color-slate-500);
}
.q-price-secondary-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.q-price-old {
  font-size: 24px;
  font-weight: 600;
  color: #ef4444;
  text-decoration: line-through;
}
.q-price-total-text {
  font-size: 14px;
  color: var(--color-slate-500);
}
.q-offer-pkg-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-slate-600);
  border: 1.5px solid var(--color-slate-300);
  border-radius: 6px;
  padding: 3px 10px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.q-offer-desc {
  font-size: 13px;
  color: var(--color-slate-600);
  line-height: 1.5;
  margin-bottom: 14px;
}
.q-offer-cta {
  width: 100%;
  background: linear-gradient(90deg, #18a89e, #00d6c8) !important;
  box-shadow: 0 8px 24px rgba(24, 168, 158, 0.4) !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px 24px;
}
.q-offer-cta:hover {
  background: linear-gradient(90deg, #12827a, #18a89e) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(24, 168, 158, 0.5) !important;
}
.q-offer-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  background: #fefce8;
  padding: 12px 20px;
  border-top: 1px solid #fde68a;
}

/* Reviews */
.q-reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.q-review {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--color-slate-50);
  border-radius: 10px;
}
.q-review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18a89e, #12827a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.q-review-body {
  flex: 1;
  min-width: 0;
}
.q-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.q-review-text {
  font-size: 12px;
  color: var(--color-slate-600);
  line-height: 1.5;
}

/* FAQ */
.q-faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.q-faq-item {
  border: 1.5px solid var(--color-slate-200);
  border-radius: 10px;
  overflow: hidden;
}
.q-faq-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.q-faq-head.is-open .q-faq-chevron {
  transform: rotate(180deg);
}
.q-faq-chevron {
  flex-shrink: 0;
  color: var(--color-slate-400);
  transition: transform 0.2s ease;
}
.q-faq-answer {
  padding: 0 14px 13px;
  font-size: 12px;
  color: var(--color-slate-600);
  line-height: 1.6;
}
.q-faq-answer.is-closed {
  display: none;
}

/* Final CTA */

.q-final-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.q-final-btn {
  width: 100%;
  max-width: 671px;
  padding: 18px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px !important;
  background: linear-gradient(90deg, #18a89e, #00d6c8) !important;
  box-shadow: 0 8px 24px rgba(24, 168, 158, 0.4) !important;
}

/* ============================================================
   TESTIMONIAL SLIDER (bottom of page)
   ============================================================ */
.t-section {
  max-width: 944px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

.t-card {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.t-img {
  width: 144px;
  height: 144px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.t-body {
  flex: 1;
  width: 100%;
  max-width: 556px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.t-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.t-name {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.t-stars {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--color-amber-400);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.t-star-item {
  display: flex;
}

.t-stars .lucide-star {
  width: 24px;
  height: 24px;
}

.t-stars .lucide-star path {
  fill: currentColor;
}

.t-city {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--color-slate-500);
  margin-bottom: 9px;
}

.t-text {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-slate-700);
}

.t-verified {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-orange-600);
}

.t-verified .lucide-circle-check-big {
  width: 16px;
  height: 16px;
}

@media (min-width: 640px) {
  .t-card {
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .t-name {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .t-city {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .t-text {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .t-verified {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .t-verified .lucide-circle-check-big {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 768px) {
  .t-card {
    flex-direction: row;
    align-items: flex-start;
    border-radius: 1rem;
  }

  .t-name {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .t-city {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .t-text {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .t-verified {
    justify-content: flex-start;
  }
}

.t-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.35s ease,
    width 0.35s ease,
    border-radius 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.t-dot:hover {
  background: #9ca3af;
}
.t-dot.is-active {
  background-color: black;
  border-radius: 4px;
  width: 32px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) { .q-title {
    font-size: 22px;
    line-height: 1.2;
  }
}

@media (max-width: 360px) { .q-pill {
    padding: 14px 8px;
    font-size: 14px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE IMPROVEMENTS
   ============================================================ */

/* ── Quiz step cards ──────────────────────────────────────── */
@media (max-width: 480px) {
  .q-main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .q-title {
    font-size: 22px;
    line-height: 1.25;
  }
  .q-subtitle {
    font-size: 1rem;
  }
  .q-tile {
    padding: 20px 14px;
  }
  .q-body-tile {
    padding: 1.25rem 1rem;
  }
  .q-cta-row {
    max-width: 100%;
  }
}

/* ── Step 6 interstitial ──────────────────────────────────── */
@media (max-width: 600px) {
  .q-step6-popup {
    width: calc(100% - 20px);
    margin: 0 auto;
  }
  .q-step6-photo img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }
  .q-step6-name {
    font-size: 24px;
  }
  .q-step6-text {
    font-size: 16px;
  }
  .q-step6-city {
    font-size: 15px;
  }
}

/* ── Step 7 — results page ────────────────────────────────── */
@media (max-width: 600px) {
  .q-results {
    padding: 0 14px;
  }
  .q-hero {
    padding: 24px 16px 80px;
  }
  .q-hero-cta {
    width: 100% !important;
    align-self: stretch !important;
    justify-content: center;
  }
  .q-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .q-card-card {
    padding: 20px 16px;
    gap: 16px;
  }
  .q-weight-journey {
    padding: 16px;
    margin-top: -40px;
  }
  .q-wj-weight {
    font-size: 1.5rem;
  }
  .q-wj-badge {
    font-size: 13px;
    padding: 6px 12px;
    height: 32px;
  }
  .q-wj-badge::after {
    right: -11px;
    border-width: 15px 0 15px 11px;
  }
  .q-offer-section-title {
    font-size: 1.5rem;
    padding: 16px 12px 0;
  }
  .q-metabolic-compare-text {
    font-size: 15px;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 20px;
  }
  .q-bmi-value {
    font-size: 40px;
  }
  .q-bmi-scale-wrap {
    margin-bottom: 60px;
  }
  .q-bmi-cat-label {
    font-size: 10px;
  }
  .q-metabolic-value {
    font-size: 3rem;
  }
  .q-projection-title {
    font-size: 17px;
  }
}

/* ── Offer card — stack vertically on narrow screens ─────── */
@media (max-width: 580px) {
  .q-offer-inner {
    flex-direction: column;
    padding: 20px 16px;
    align-items: center;
    text-align: center;
  }
  .q-offer-image {
    align-self: center;
  }
  .q-offer-image img {
    width: 100%;
    max-width: 260px;
    height: auto;
  }
  .q-offer-body {
    width: 100%;
  }
  .q-offer-title {
    font-size: 26px;
  }
  .q-price-row {
    justify-content: center;
  }
  .q-price-secondary-row {
    justify-content: center;
  }
  .q-offer-pkg-tag {
    display: block;
    text-align: center;
  }
}

/* ── Extra small screens (< 380px) ───────────────────────── */
@media (max-width: 380px) {
  .q-main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .q-stat {
    padding: 10px;
  }
  .q-stat-label {
    font-size: 10px;
  }
  .q-stat-value {
    font-size: 14px;
  }
  .q-hero-headline {
    font-size: 26px;
  }
  .q-mid-btn,
  .q-final-btn {
    font-size: 13px;
    padding: 16px 20px;
  }
  .q-offer-countdown {
    font-size: 1.75rem;
  }
}

/* ============================================================
   btn_goto_prdct — checkout link styles (replaces q-btn + q-btn-primary + per-CTA classes)
   ============================================================ */
.btn_goto_prdct {
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border: none;
  line-height: 1;
  transition:
    opacity 0.15s,
    transform 0.1s,
    box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #18a89e, #00d6c8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(24, 168, 158, 0.4);
}
.btn_goto_prdct:hover {
  background: linear-gradient(90deg, #12827a, #18a89e);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(24, 168, 158, 0.55);
}
.btn_goto_prdct:active {
  transform: scale(0.98);
}

/* Hero CTA */
.q-hero-inner .btn_goto_prdct {
  padding: 16px 36px;
  font-size: 17px;
  letter-spacing: 0.01em;
  width: fit-content;
  align-self: center;
  margin-top: 4px;
}

/* Mid CTA */
.q-mid-cta .btn_goto_prdct {
  width: 100%;
  max-width: 448px;
  align-self: center;
  padding: 18px 36px;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Offer CTA */
.q-offer-body .btn_goto_prdct {
  width: 100%;
  padding: 18px 24px;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Final CTA */
.q-final-cta .btn_goto_prdct {
  width: 100%;
  max-width: 671px;
  padding: 18px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .q-hero-inner .btn_goto_prdct {
    width: 100%;
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .q-mid-cta .btn_goto_prdct,
  .q-final-cta .btn_goto_prdct {
    font-size: 13px;
    padding: 16px 20px;
  }
}

/* ============================================================
   INTERACTIVE ASSISTANT CHAT WIDGET
   ============================================================ */
#core-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  font-family: "Lato", system-ui, sans-serif;
}

#chat-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #18a89e;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(24, 168, 158, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  outline: none;
}
#chat-trigger-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(24, 168, 158, 0.5);
}
#chat-trigger-btn:active {
  transform: scale(0.95);
}

.chat-trigger-icon svg {
  width: 28px;
  height: 28px;
}

/* Pulsing nudge animation for notification */
@keyframes chatNudge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
.chat-trigger-nudge {
  animation: chatNudge 1.5s infinite ease-in-out;
}

#chat-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #001a23;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.notif-badge-hidden {
  display: none !important;
}

/* Chat Window Container */
#chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 350px;
  max-width: calc(100vw - 48px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: #002530;
  border: 1px solid #003e4d;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}
.chat-window-closed {
  opacity: 0;
  transform: scale(0.85) translateY(30px);
  pointer-events: none;
}
.chat-window-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

/* Chat Header */
#chat-header {
  background: linear-gradient(135deg, #001a23, #002b36);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #003e4d;
}
.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #18a89e
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 22px;
  position: relative;
  border: 2px solid rgba(24, 168, 158, 0.3);
}
.avatar-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #001a23;
}
.chat-header-info {
  flex: 1;
}
.chat-header-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.chat-header-status {
  font-size: 11px;
  color: #8ca5ac;
}
#chat-close-btn {
  background: none;
  border: none;
  color: #8ca5ac;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
#chat-close-btn:hover {
  color: #ffffff;
}

/* Chat Messages Area */
#chat-messages-box {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #001e28;
}
.chat-date-separator {
  text-align: center;
  font-size: 11px;
  color: #55727d;
  margin-bottom: 8px;
}
.chat-msg {
  display: flex;
  width: 100%;
}
.chat-msg-assistant {
  justify-content: flex-start;
}
.chat-msg-user {
  justify-content: flex-end;
}
.chat-msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.chat-msg-assistant .chat-msg-bubble {
  background: #002b36;
  color: #ffffff;
  border-top-left-radius: 2px;
  border: 1px solid #003a49;
}
.chat-msg-user .chat-msg-bubble {
  background: #18a89e;
  color: #ffffff;
  border-top-right-radius: 2px;
  box-shadow: 0 2px 8px rgba(24, 168, 158, 0.25);
}

/* Interactive Question Buttons */
#chat-options-box {
  padding: 12px;
  background: #002530;
  border-top: 1px solid #003e4d;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}
.chat-option-btn {
  background: #001a23;
  color: #18a89e;
  border: 1px solid #003e4d;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 600;
}
.chat-option-btn:hover {
  background: #18a89e;
  color: #ffffff;
  border-color: #18a89e;
  transform: translateY(-1px);
}
.chat-option-btn:active {
  transform: translateY(0);
}

/* Typing Indicator styling */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: #8ca5ac;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
