/* quiz.css - Styles specifically for the interactive quiz/chat funnel */

:root {
  --paper: #fffcf8;
  --paper-dark: #f0ebd8;
  --ink: #101014;
  --muted: #68606b;
  --line: #e9dfd5;
  --lilac: #b99cff;
  --lilac-soft: #efe8ff;
  --gold: #c6a15b;
  --gold-soft: #fbecd0;
  --cyan: #29e8ff;
  --pink: #ff4fb8;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(40, 25, 56, 0.14);
}

.quiz-body {
  background-color: var(--paper);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

#app-container {
  width: 100%;
  max-width: 480px; /* Mobile-first container */
  background: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.step-container {
  display: none;
  padding: 24px;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

/* Step 2 is special — it must fill exactly the viewport height so header/progress stay sticky */
#step-2 {
  padding: 0;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height — accounts for mobile browser bars */
  overflow: hidden;
}

.step-container.active {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================= */
/* STEP 1: ONBOARDING MULTI-STEP */
/* ========================================================================= */
.onboarding-header {
  text-align: center;
  margin-bottom: 24px;
  margin-top: 20px;
}

.maya-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid var(--paper-dark, #f0ebd8);
}

.onboarding-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin: 0 0 8px 0;
}

.onboarding-header p {
  color: #555;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.onboarding-progress-container {
  margin-bottom: 24px;
}

.onboarding-progress-bg {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  background: #000;
  width: 20%;
  transition: width 0.4s ease;
}

.onboarding-form {
  position: relative;
  flex: 1;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: slideInRight 0.3s ease forwards;
}

.form-step.active {
  display: flex;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.form-group input,
.form-group select {
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-btn {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #333;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.option-btn:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.option-btn:active, .option-btn.selected {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: scale(0.98);
}

/* ========================================================================= */
/* STEP 2: CHAT SIMULATION */
/* ========================================================================= */
.imessage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  flex-shrink: 0; /* don't let it shrink in flex layout */
  z-index: 10;
}

.imessage-back, .imessage-info {
  color: #007aff;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
}

.imessage-info { font-size: 20px; text-align: right; }

.imessage-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imessage-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ddd, #bbb);
  margin-bottom: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.imessage-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.imessage-contact span {
  font-weight: 600;
  font-size: 12px;
}

.imessage-contact small {
  font-size: 10px;
  color: #888;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 12px;
  text-align: center;
  padding: 0 16px;
  flex-shrink: 0; /* don't let it shrink in flex layout */
}

.progress-bar-bg {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #34c759, #30d158);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
}

.progress-bar-fill.critical {
  background: #ff3b30;
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  transition: color 0.3s;
}
.progress-text.critical { color: #ff3b30; }

/* Chat Window */
.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 24px 200px 24px; /* bottom space for choices panel */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Ensure messages start from top, not stretched */
  align-content: flex-start;
}

.msg-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.msg-wrapper.received { align-self: flex-start; }
.msg-wrapper.sent { align-self: flex-end; align-items: flex-end; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.3;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transform-origin: bottom center;
}

.received .msg-bubble {
  background: #e9e9eb;
  color: #000;
  border-bottom-left-radius: 4px;
}

.sent .msg-bubble {
  background: #007aff;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.sent .msg-bubble.failed {
  background: #34c759; /* Turn SMS green when failed to simulate fallback */
}

.msg-status {
  font-size: 11px;
  color: #8e8e93;
  margin-top: 4px;
  padding: 0 4px;
  animation: fadeIn 0.3s ease forwards;
}

.msg-status.error { color: #ff3b30; font-weight: 600; }

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: #e9e9eb;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  align-self: flex-start;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #8e8e93;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Choices — fixed to the bottom of the visible viewport, centered on desktop */
.choices-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom)) 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  box-sizing: border-box;
}

.choices-container.active {
  transform: translateX(-50%) translateY(0);
}

.choice-prompt {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  text-align: center;
}

.choices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  background: #f4f4f5;
  border: 1px solid #e4e4e5;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  color: #000;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: 'Inter', sans-serif;
}

.choice-btn:active {
  background: #e4e4e5;
  transform: scale(0.98);
}

/* ========================================================================= */
/* STEP 3: PANIC BUTTON */
/* ========================================================================= */
.panic-wrapper {
  margin: auto;
  text-align: center;
}

.panic-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.panic-wrapper h2 {
  color: #ff3b30;
  margin: 0 0 12px 0;
}

.panic-wrapper p {
  color: #555;
  margin-bottom: 24px;
}

.btn-outline {
  background: transparent;
  color: #ff3b30;
  border: 2px solid #ff3b30;
}

/* ========================================================================= */
/* STEP 4: MAYA'S ROAST */
/* ========================================================================= */
.roast-header {
  text-align: center;
  margin-bottom: 32px;
}

.maya-avatar-medium {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.roast-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin: 0;
}

.insight-card {
  background: var(--paper-dark, #f0ebd8);
  padding: 20px;
  border-radius: 16px;
  border-left: 4px solid #000;
  margin-bottom: 16px;
}

.highlight-card {
  background: #fdf5e6; /* Soft gold/warm bg */
  border-left-color: #d4af37; /* Gold accent */
}

.insight-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px 0;
}

.insight-card p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.solution-card {
  margin: 32px 0;
  text-align: center;
  font-weight: 500;
}

/* ========================================================================= */
/* UTILITIES */
/* ========================================================================= */
.hidden {
  display: none !important;
}

.cta-button {
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  font-family: 'Inter', sans-serif;
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================================================= */
/* STEP 5: PAYWALL (WARM CREAM - MATCHING MAIN SITE) */
/* ========================================================================= */
#step-5 {
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.72), rgba(255, 252, 248, 0) 500px),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 40px;
}

/* Hero block */
.paywall-hero {
  margin: -24px -24px 32px -24px;
  position: relative;
}

.paywall-hero-visual {
  position: relative;
}

.paywall-hero-img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}

.paywall-floating-note {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(40, 25, 56, 0.14);
  max-width: 200px;
}

.paywall-floating-note .note-kicker {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 4px;
}

.paywall-floating-note strong {
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
}

.paywall-hero-copy {
  padding: 24px 24px 0 24px;
}

.paywall-hero-copy .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin: 0 0 10px 0;
}

.paywall-hero-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 12px 0;
  color: var(--ink);
}

.paywall-hero-copy h2 span {
  background: linear-gradient(180deg, transparent 56%, rgba(185, 156, 255, 0.4) 56%);
  border-radius: 3px;
}

.paywall-hero-copy p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.paywall-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.paywall-trust-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background:
    linear-gradient(135deg, rgba(239, 232, 255, 0.46), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.trust-mark-hot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--pink);
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

.trust-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--lilac-soft);
  color: var(--ink);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

/* Maya Story block */
.maya-story-block {
  margin-bottom: 40px;
}

.maya-story-img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.maya-story-content .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin: 0 0 10px 0;
}

.maya-story-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin: 0 0 16px 0;
  color: var(--ink);
  line-height: 1.2;
}

.maya-story-content p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--muted);
  font-size: 15px;
}

.maya-story-content p strong {
  color: var(--ink);
}

/* Social Proof block */
.social-proof-block {
  background:
    linear-gradient(135deg, rgba(239, 232, 255, 0.46), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 20px;
  margin: 0 -24px 40px -24px;
  text-align: center;
}

.social-proof-block h2 {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.dm-proof-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(72, 53, 83, 0.12);
}

.proof-caption {
  font-style: italic;
  color: var(--gold);
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
}

/* Paywall header */
.paywall-header {
  text-align: center;
  margin-bottom: 24px;
}

.paywall-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  margin: 8px 0 0 0;
  color: var(--ink);
}

.paywall-header .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin: 0;
}

/* Guide preview */
.guide-preview-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  background: #000;
  border: 1px solid var(--line);
}

.blur-preview {
  width: 100%;
  display: block;
  filter: blur(8px) brightness(0.55);
  transform: scale(1.05);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.lock-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.lock-overlay p {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Benefits list */
.paywall-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paywall-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.paywall-benefits span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background:
    linear-gradient(135deg, rgba(239, 232, 255, 0.46), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

/* Checkout sticky */
.checkout-sticky {
  position: sticky;
  bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 24px;
  z-index: 20;
  background: rgba(255, 252, 248, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(72, 53, 83, 0.12);
}

/* CTA button matches main site exactly */
#step-5 .cta-button {
  background:
    linear-gradient(135deg, rgba(41, 232, 255, 0.28), transparent 38%),
    linear-gradient(315deg, rgba(255, 79, 184, 0.3), transparent 42%),
    var(--ink);
  box-shadow: 0 18px 40px rgba(16, 16, 20, 0.22);
  font-size: 17px;
  letter-spacing: 0.3px;
}

#step-5 .cta-button:hover {
  box-shadow: 0 22px 52px rgba(16, 16, 20, 0.3);
  transform: translateY(-1px);
}

.checkout-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0 0;
}

.honest-sales-mini {
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(239, 232, 255, 0.3), rgba(255, 255, 255, 0.6));
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

.honest-sales-mini p.eyebrow {
  margin-bottom: 12px;
  display: block;
}

.honest-sales-mini p:not(.eyebrow) {
  margin-bottom: 12px;
  color: #333;
}

.honest-sales-mini p:last-child {
  margin-bottom: 0;
}

/* =========================================================================
   HOTMART OVERRIDE — prevent hotmart-fb.min.css from hijacking button styles
   ========================================================================= */
a.cta-button,
a.cta-button.hotmart-fb,
a.cta-button.hotmart__button-checkout {
  display: block !important;
  width: 100% !important;
  padding: 16px !important;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  text-decoration: none !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: transform 0.2s, background 0.2s !important;
  /* wipe any Hotmart gradients */
  background-image: none !important;
  box-shadow: none !important;
  border-image: none !important;
  outline: none !important;
}

#step-5 a.cta-button,
#step-5 a.cta-button.hotmart-fb,
#step-5 a.cta-button.hotmart__button-checkout {
  background: var(--ink) !important;
  background-image:
    linear-gradient(135deg, rgba(41, 232, 255, 0.28), transparent 38%),
    linear-gradient(315deg, rgba(255, 79, 184, 0.3), transparent 42%) !important;
  box-shadow: 0 18px 40px rgba(16, 16, 20, 0.22) !important;
  font-size: 17px !important;
  letter-spacing: 0.3px !important;
}

#step-5 a.cta-button:hover {
  box-shadow: 0 22px 52px rgba(16, 16, 20, 0.3) !important;
  transform: translateY(-1px) !important;
}





