/* =============================================
   QUIZ Kegel Plus 7 DIAS — CSS LIMPO
   Design fiel ao original: Nunito, verde #15803d
   ============================================= */

/* ---- Google Font: Nunito ---- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #ffffff;
  color: #030712;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* ---- Layout ---- */
.quiz-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
}

.quiz-header {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 14px 16px;
}

.quiz-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* Progress bar */
.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.progress-bar-fill {
  height: 100%;
  background: #15803d;
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* ---- Container ---- */
.quiz-container {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* ---- Step ---- */
.quiz-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-step.active {
  display: block;
}

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

/* ---- Typography ---- */
.step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #030712;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 20px;
}

.step-text {
  font-size: 1rem;
  color: #030712;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

.step-text strong {
  font-weight: 700;
  color: #030712;
}

.step-text h1, .step-text h2, .step-text h3 {
  font-weight: 700;
  color: #030712;
  margin-bottom: 10px;
  text-align: center;
}

.step-text h1 { font-size: 1.5rem; }
.step-text h2 { font-size: 1.25rem; }
.step-text h3 { font-size: 1.1rem; }

/* ---- Options grid ---- */
.options-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.options-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.options-grid.cols-1 {
  grid-template-columns: 1fr;
}

/* ---- Option card ---- */
.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: #030712;
  width: 100%;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.option-card:hover {
  border-color: #15803d;
  transform: scale(1.01);
}

.option-card.selected {
  border-color: #15803d;
  background: #f0fdf4;
  color: #14532d;
}

/* Option with image (top image layout) */
.option-card.has-image {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
}

.option-img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 6px;
}

.option-label {
  font-weight: 600;
  font-size: 0.93rem;
}

/* Checkmark badge */
.option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
}

.option-card.selected .option-check {
  background: #15803d;
  border-color: #15803d;
}

.option-check::after {
  content: '';
  display: none;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translateY(-1px);
}

.option-card.selected .option-check::after {
  display: block;
}

/* ---- Buttons ---- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  background: #15803d;
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  margin-top: 16px;
}

.btn-primary:hover {
  background: #166534;
  transform: scale(1.01);
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-checkout {
  display: block;
  width: 100%;
  padding: 18px;
  background: #15803d;
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(21,128,61,0.4);
  animation: pulse 2.5s infinite;
}

.btn-checkout:hover {
  background: #166534;
  box-shadow: 0 6px 20px rgba(21,128,61,0.5);
  transform: scale(1.02);
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(21,128,61,0.4); }
  50%       { box-shadow: 0 4px 24px rgba(21,128,61,0.65); }
}

/* ---- Images ---- */
.step-image {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 12px auto;
}

.step-image.centered {
  max-width: 360px;
}

/* ---- Social proof bar (step 1) ---- */
.social-proof-bar {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #14532d;
  font-weight: 600;
}

/* ---- Loading screen ---- */
.loading-screen {
  text-align: center;
  padding: 40px 16px;
}

.loading-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #030712;
  margin-bottom: 24px;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid #e2e8f0;
  border-top-color: #15803d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-progress-wrap {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin: 0 auto 12px;
  max-width: 320px;
  overflow: hidden;
}

.loading-progress-fill {
  height: 100%;
  background: #15803d;
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease;
}

.loading-percent {
  font-size: 1rem;
  font-weight: 700;
  color: #15803d;
}

.loading-items {
  margin-top: 24px;
  list-style: none;
  text-align: left;
  max-width: 340px;
  margin-inline: auto;
}

.loading-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: #6b7280;
  transition: color 0.3s;
}

.loading-item.done {
  color: #15803d;
  font-weight: 600;
}

.loading-item .check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.loading-item.done .check-icon {
  background: #15803d;
  border-color: #15803d;
  color: white;
  content: '✓';
}

/* ---- Timer ---- */
.offer-timer {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 20px;
}

.offer-timer p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #dc2626;
}

.offer-timer .timer-count {
  font-size: 1.5rem;
  font-weight: 800;
  color: #dc2626;
  letter-spacing: 2px;
  display: block;
  margin-top: 4px;
}

/* ---- Metrics ---- */
.metrics-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.metric-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid #e2e8f0;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.metric-compare {
  display: flex;
  gap: 8px;
  align-items: center;
}

.metric-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease 0.3s;
}

.metric-bar.before {
  background: #f87171;
}

.metric-bar.after {
  background: #22c55e;
}

.metric-sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-item .metric-label {
  font-size: 0.78rem;
}

/* ---- Price card ---- */
.price-card {
  border: 2px solid #15803d;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
  background: #f0fdf4;
  position: relative;
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fbbf24;
  color: #030712;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #030712;
  text-align: center;
  margin-bottom: 8px;
}

.price-access {
  background: #fef08a;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-from {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.price-from s {
  color: #dc2626;
  font-weight: 700;
}

.price-main {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #16a34a;
  margin-top: 4px;
}

/* ---- Alert box ---- */
.alert-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: #78350f;
  font-weight: 500;
}

/* ---- Benefits list ---- */
.benefits-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #030712;
}

.benefit-icon {
  color: #15803d;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Quotes / Testimonial ---- */
.testimonial-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  margin: 12px 0;
}

.testimonial-text {
  font-size: 0.9rem;
  color: #374151;
  font-style: italic;
  margin-bottom: 8px;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

/* ---- FAQ ---- */
.faq-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.9rem;
  color: #030712;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f1f5f9;
}

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.3s;
  font-size: 1.1rem;
  color: #15803d;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.6;
  padding: 0 16px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 14px 16px;
}

/* ---- Doctor quote ---- */
.doctor-quote {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.doctor-quote .doctor-name {
  font-weight: 800;
  font-size: 1rem;
  color: #030712;
  margin-bottom: 6px;
}

.doctor-quote p {
  font-size: 0.88rem;
  color: #374151;
  font-style: italic;
}

/* ---- Guarantee seal ---- */
.guarantee-box {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  background: #f8fafc;
}

.guarantee-box img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
}

.guarantee-text {
  font-size: 0.88rem;
  color: #374151;
}

.guarantee-text strong {
  display: block;
  font-size: 1rem;
  color: #030712;
  margin-bottom: 4px;
}

/* ---- Terms disclaimer ---- */
.terms-text {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 16px;
  line-height: 1.5;
}

.terms-text a {
  color: #15803d;
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .quiz-container {
    padding: 16px 12px 32px;
  }

  .step-title {
    font-size: 1.15rem;
  }

  .options-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .option-card {
    padding: 10px 10px;
    font-size: 0.88rem;
  }

  .option-img {
    max-height: 75px;
  }
}

/* =============================================
   TRACKING SLOTS (sem código aqui)
   Para inserir Meta Pixel, LowTrack ou GTM,
   adicione os scripts no <head> do HTML nos
   comentários marcados com <!-- TRACKING: -->
   ============================================= */
