@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #97D649; /* Lime Green */
  --primary-hover: #86c43b;
  --secondary-color: #2b2b2b;
  --danger-color: #e53e3e; /* Urgent Red */
  --text-dark: #1a202c;
  --text-light: #4a5568;
  --bg-pure: #ffffff;
  --bg-soft: #f7fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-primary: 0 10px 20px -5px rgba(151, 214, 73, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-pure);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Base Layout */
.app-container {
  max-width: 580px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  position: relative;
}

header {
  text-align: center;
  padding: 12px 0 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo-dot {
  color: var(--primary-color);
}

/* Progress Bar */
.progress-container {
  margin: 15px 0;
  background: var(--bg-soft);
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  transition: width 0.4s ease-out;
}

/* Steps Transition */
.quiz-step {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
  flex-grow: 1;
  flex-direction: column;
  justify-content: center;
}

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

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

/* Animations */
.pulse-animation {
  animation: pulse-btn 2s infinite ease-in-out;
}

@keyframes pulse-btn {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(151, 214, 73, 0.6);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 12px rgba(151, 214, 73, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(151, 214, 73, 0);
  }
}

.bounce-hover:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Headers */
h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 15px;
  color: var(--text-dark);
  text-align: center;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-dark);
  text-align: center;
}

.danger-text {
  color: var(--danger-color);
  font-weight: 700;
}

/* Hero Section */
.hero-image-wrapper {
  margin: 20px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-soft);
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

.urgency-badge {
  background-color: #fee2e2;
  color: var(--danger-color);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  text-align: center;
  margin: 10px auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fecaca;
}

.value-prop {
  font-size: 1.05rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 25px;
}

/* Action Buttons */
.btn-primary {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  padding: 18px 24px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: var(--shadow-primary);
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

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

.scarcity-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 15px;
  font-style: italic;
}

/* Multi-select and Single-select Options */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background-color: var(--bg-pure);
}

.option-item:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-soft);
}

.option-item.selected {
  border-color: var(--primary-color);
  background-color: #f7fee7;
}

.option-checkbox, .option-radio {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.option-text {
  font-size: 1rem;
  font-weight: 500;
  flex-grow: 1;
}

/* Input Fields (Weight/Height) */
.inputs-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

.input-field {
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1.1rem;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus {
  border-color: var(--primary-color);
}

/* Custom simulated Whatsapp Audio Player */
.audio-player-card {
  background-color: #f0f2f5;
  border-radius: 16px;
  padding: 16px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e1e9eb;
}

.whatsapp-avatar-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
}

.whatsapp-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.whatsapp-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #25d366;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.audio-controls {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-pause-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #54656f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-track {
  flex-grow: 1;
  height: 4px;
  background-color: #b9c1c4;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: #00a884;
  border-radius: 2px;
}

.audio-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #667781;
}

/* Loader page */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 20px;
}

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

.loading-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.loading-percent {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

/* Results page */
.diagnosis-card {
  background-color: var(--bg-soft);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.percentage-badge-wrapper {
  text-align: center;
  margin: 15px 0;
}

.percentage-badge {
  display: inline-block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--danger-color);
  background-color: #fee2e2;
  padding: 10px 24px;
  border-radius: 16px;
  border: 2px solid #fecaca;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

/* Bio Section Expert */
.bio-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin: 20px 0;
}

.bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  flex-shrink: 0;
}

.bio-info {
  flex-grow: 1;
}

.bio-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.bio-title {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* VSL Offer Screen */
.vsl-container {
  display: flex;
  flex-direction: column;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin: 20px 0;
  background-color: #000;
  border: 2px solid var(--border-color);
}

.video-wrapper iframe, .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2c3e50, #000000);
}

.play-vsl-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 0 20px rgba(151,214,73,0.5);
  margin-bottom: 12px;
}

.play-vsl-btn:hover {
  transform: scale(1.1);
}

.purchasing-stats {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #b45309;
  font-weight: 600;
  margin: 15px 0;
}

.benefits-box {
  background: #f7fee7;
  border: 1.5px solid #d9f99d;
  border-radius: 16px;
  padding: 24px;
  margin: 25px 0;
}

.benefits-title {
  color: #3f6212;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefits-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: #3f6212;
  font-weight: 500;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1;
}

/* Footer / Disclaimer */
footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 30px 0 10px 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .app-container {
    padding: 12px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .btn-primary {
    font-size: 1.05rem;
    padding: 16px 20px;
  }
}

/* Roller Wheel Styles */
.rollers-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
}

.roller-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 160px;
}

.roller-label {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.roller-viewport {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--bg-soft);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.03);
}

.roller-overlay-top, .roller-overlay-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 2;
}

.roller-overlay-top {
  top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.roller-overlay-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.roller-selection-bar {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  width: 90%;
  height: 40px;
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  pointer-events: none;
  z-index: 1;
}

.roller-scroll {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  position: relative;
  scroll-behavior: auto;
  user-select: none;
  -webkit-user-select: none;
}

.roller-scroll::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.roller-spacer {
  height: 80px; /* Pads scroll so first/last items can center (half viewport height minus half item height) */
}

.roller-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: #a0aec0;
  scroll-snap-align: center;
  transition: all 0.15s ease-out;
  cursor: pointer;
  user-select: none;
}

.roller-item.selected {
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.45rem;
  transform: scale(1.1);
}

.roller-container-layout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.roller-arrow-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roller-arrow-btn {
  background-color: var(--bg-soft);
  border: 2px solid var(--border-color);
  color: var(--text-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.roller-arrow-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: scale(1.15);
}

.roller-arrow-btn:active {
  transform: scale(0.95);
}

@keyframes shake-error {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.shake-animation {
  animation: shake-error 0.4s ease-in-out;
}

@media (max-width: 600px) {
  .quiz-step h2 { font-size: 1.15rem !important; margin-bottom: 12px !important; line-height: 1.3 !important; }
  .options-list { gap: 8px !important; }
  .option-item { padding: 8px 12px !important; min-height: 42px !important; }
  .option-text { font-size: 0.9rem !important; line-height: 1.2 !important; }
  .option-checkbox, .option-radio { margin-right: 10px !important; width: 18px !important; height: 18px !important; }
  .btn-primary { margin-top: 10px !important; padding: 14px 20px !important; }
  .quiz-step { padding: 10px 0 !important; }
}

