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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.quiz-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quiz-content {
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.5s ease;
}

.question-wrapper {
  flex: 1;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  height: 600px;
}

.question-number {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
  font-weight: 500;
}

.question-content {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: slideIn 0.5s ease;
}

.question-content.active {
  display: flex;
}

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

.question-title {
  font-size: 32px;
  color: #2d3748;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.title-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 30px;
  display: block;
  border-radius: 12px;
}

.question-content[data-question="1"] .question-title {
  font-size: 42px;
}

.question-description {
  font-size: 18px;
  color: #718096;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: left;
}

.result-title + .question-description {
  margin-top: 0;
}

.result-title {
  margin-bottom: 12px;
}

.start-button,
.continue-button,
.restart-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 20px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.start-button:hover,
.continue-button:hover,
.restart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.start-button:active,
.continue-button:active,
.restart-button:active {
  transform: translateY(0);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.option-button {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  color: #2d3748;
  width: 100%;
}

.option-button:hover {
  background: #edf2f7;
  border-color: #667eea;
  transform: translateX(5px);
}

.option-button:active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.text-input {
  width: 100%;
  padding: 18px 20px;
  font-size: 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 20px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.text-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.text-input.error {
  border-color: #e53e3e;
  animation: shake 0.3s ease;
}

.text-input.error:focus {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

[data-question="thinking-screen"] .question-description {
  text-align: center;
}

.loading-progress-bar {
  width: 50%;
  max-width: 200px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 30px auto 0;
}

.loading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

.loading-progress-fill.animating {
  width: 100%;
}

.lightbulb-icon {
  font-size: 80px;
  text-align: center;
  margin-top: 40px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.lightbulb-icon.show {
  opacity: 1;
  transform: scale(1);
  animation: lightbulbPop 0.3s ease;
}

@keyframes lightbulbPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .quiz-container {
    padding: 0;
  }

  .quiz-content {
    border-radius: 0;
    min-height: 100vh;
  }

  .question-wrapper {
    padding: 30px 25px;
    height: 700px;
  }

  .question-title {
    font-size: 28px;
  }

  .question-content[data-question="1"] .question-title {
    font-size: 36px;
  }

  .title-image {
    max-width: 300px;
    margin-bottom: 25px;
  }

  .question-description {
    font-size: 16px;
  }

  .start-button,
  .continue-button,
  .restart-button {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
  }

  .option-button {
    padding: 18px 20px;
    font-size: 16px;
  }

  .text-input {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .question-wrapper {
    padding: 25px 20px;
    height: 650px;
  }

  .question-title {
    font-size: 24px;
  }

  .question-content[data-question="1"] .question-title {
    font-size: 32px;
  }

  .title-image {
    max-width: 250px;
    margin-bottom: 20px;
  }

  .question-number {
    font-size: 12px;
  }
}

.result-header-section {
  background: linear-gradient(135deg, #f3e5f5 0%, #fff 100%);
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
  margin: -40px -30px 25px -30px;
}

.result-header-title {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 10px;
  font-weight: 600;
}

.result-highlight-bad {
  color: #d32f2f;
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  margin: 5px 0;
}

.result-arrow-down {
  color: #bbb;
  font-size: 1.2rem;
  margin: 5px 0;
}

.result-goal-box {
  background: #6A0DAD;
  color: white;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(106, 13, 173, 0.3);
}

.result-goal-box.clickable-box {
  cursor: pointer;
  transition: all 0.2s;
}

.result-goal-box.clickable-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(106, 13, 173, 0.4);
}

.result-goal-box.clickable-box:active {
  transform: translateY(0);
}

.result-analysis-summary {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #666;
  background: rgba(255,255,255,0.8);
  padding: 10px;
  border-radius: 8px;
  text-align: left;
}

.result-roadmap-section {
  padding: 25px 20px;
  margin: 0 -20px;
}

.result-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 15px;
  border-left: 4px solid #6A0DAD;
  padding-left: 10px;
}

.result-timeline {
  list-style: none;
  position: relative;
  padding-left: 10px;
}

.result-timeline li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.timeline-item {
  opacity: 0;
  transform: translateX(-20px);
}

.timeline-item.show {
  animation: slideInLeft 0.5s ease-out forwards;
}

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

.result-timeline li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #6A0DAD;
  font-weight: bold;
}

.result-timeline strong {
  color: #6A0DAD;
}

.result-time-badge {
  display: inline-block;
  background: #f3e5f5;
  color: #6A0DAD;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
  font-weight: 700;
}

.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  margin: 20px 0;
  gap: 0;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  position: relative;
  opacity: 0;
  animation: fadeInStep 0.5s ease-out forwards;
}

.progress-step:nth-child(1) {
  animation-delay: 0s;
}

.progress-step:nth-child(2) {
  animation-delay: 0.3s;
}

.progress-step:nth-child(3) {
  animation-delay: 0.6s;
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transform: translateY(-50%);
  z-index: -1;
  animation: fadeInLine 0.5s ease-out forwards;
}

.progress-step:nth-child(1)::after {
  animation-delay: 0.15s;
}

.progress-step:nth-child(2)::after {
  animation-delay: 0.45s;
}

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

@keyframes fadeInLine {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.progress-text-above {
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.progress-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0;
  position: relative;
  z-index: 1;
}

.progress-text-below {
  font-size: 0.8rem;
  color: #6A0DAD;
  margin-top: 10px;
  font-weight: 700;
  background: #f3e5f5;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.progress-message {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 30px 20px 20px;
}

.result-offer-description {
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin: 30px 20px;
  padding: 25px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
  border-radius: 12px;
  border: 2px solid #667eea;
  font-weight: 500;
}

.flip-cards-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 20px;
}

.flip-card {
  width: 234px;
  height: 416px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
  background: #000;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

.flip-card-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.flip-card-back {
  background: white;
  color: #6A0DAD;
  border: 2px solid #667eea;
  transform: rotateY(180deg);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
}

.flip-card-front p,
.flip-card-back p {
  margin: 0;
}

@media (max-width: 600px) {
  .flip-cards-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .flip-card {
    width: 208px;
    height: 364px;
  }
  
  .flip-card-icon {
    width: 65px;
    height: 65px;
  }
  
  .progress-message {
    font-size: 0.85rem;
    margin: 20px 15px 15px;
  }
}

.progress-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  margin: 0 0;
  position: relative;
  top: 0;
  opacity: 0;
  animation: fadeInLine 0.5s ease-out forwards;
  transform-origin: left center;
}

.progress-line:nth-of-type(2) {
  animation-delay: 0.15s;
}

.progress-line:nth-of-type(4) {
  animation-delay: 0.45s;
}

@media (max-width: 600px) {
  .progress-indicator {
    padding: 20px 10px;
    flex-direction: column;
    gap: 30px;
  }
  
  .progress-step {
    width: 100%;
  }
  
  .progress-step:not(:last-child)::after {
    left: 50%;
    top: calc(100% + 10px);
    width: 3px;
    height: 20px;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
  }
  
  @keyframes fadeInLine {
    from {
      opacity: 0;
      transform: translateX(-50%) scaleY(0);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) scaleY(1);
    }
  }
  
  .progress-text-above {
    font-size: 0.75rem;
    min-height: 35px;
  }
  
  .progress-circle {
    width: 16px;
    height: 16px;
  }
  
  .progress-text-below {
    font-size: 0.7rem;
  }
}

.result-insight-box {
  background-color: #fafafa;
  margin: 0 0 20px 0;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.result-insight-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.result-reviews-section {
  padding: 25px 20px 40px 20px;
  margin: 25px -30px -40px -30px;
  background: white;
  border-radius: 0 0 20px 20px;
}

.result-reviews-title {
  font-size: 1rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 15px;
  border-left: 4px solid #6A0DAD;
  padding-left: 10px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-reviews-title:hover {
  color: #6A0DAD;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.result-reviews-title.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.result-review-items {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

.result-review-items.collapsed {
  max-height: 0;
  opacity: 0;
}

.result-review-item {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 12px;
}

.result-review-item:last-child {
  margin-bottom: 0;
}

.result-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.result-review-author {
  font-weight: 700;
  color: #333;
  font-size: 0.9rem;
}

.result-review-badge {
  display: inline-block;
  background: #6A0DAD;
  color: white;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 3px;
  font-weight: 600;
}

.result-review-date {
  font-size: 0.8rem;
  color: #999;
}

.result-review-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.result-offer-section {
  background: #222;
  color: white;
  padding: 25px 20px;
  text-align: center;
  margin: 0 -30px 0 -30px;
}
  border-radius: 0 0 20px 20px;
}

.result-price-area {
  margin-bottom: 10px;
}

.result-original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9rem;
  margin-right: 8px;
}

.result-free-price {
  color: #ccff00;
  font-weight: 700;
  font-size: 1.1rem;
}

.result-offer-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.result-cta-button {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #7B1FA2, #6A0DAD);
  color: white;
  text-decoration: none;
  padding: 15px 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  transition: transform 0.2s;
  box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
}

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

.result-cta-sub {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .result-header-section {
    margin: -30px -25px 20px -25px;
  }
  
  .result-offer-section {
    margin: 0 -25px -30px -25px;
  }
}

@media (max-width: 480px) {
  .result-header-section {
    margin: -25px -20px 15px -20px;
    padding: 25px 15px;
  }
  
  .result-header-title {
    font-size: 1rem;
  }
  
  .result-highlight-bad {
    font-size: 1.5rem;
  }
  
  .result-goal-box {
    font-size: 1rem;
    padding: 6px 16px;
  }
  
  .result-offer-section {
    margin: 0 -20px -25px -20px;
    padding: 20px 15px;
  }
}

.hidden-step {
  display: none;
  animation: fadeInUp 0.6s ease-out forwards;
}

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

.trigger-btn {
  width: 100%;
  padding: 16px;
  margin: 10px 0 20px 0;
  background-color: #f3e5f5;
  color: #6A0DAD;
  border: 2px solid #f3e5f5;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.trigger-btn:hover {
  background-color: #e1bee7;
  transform: translateY(-2px);
}

.trigger-btn.primary {
  background-color: #6A0DAD;
  color: white;
  border-color: #6A0DAD;
  box-shadow: 0 4px 10px rgba(106, 13, 173, 0.3);
}

.sticky-cta-bar {
  position: fixed;
  bottom: -120px;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  padding: 15px 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sticky-cta-bar.show {
  bottom: 0;
}

.sticky-text {
  color: #fff;
  font-size: 0.9rem;
}

.sticky-text strong {
  color: #d1c4e9;
}

.sticky-btn {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #6A0DAD;
  color: white;
  text-decoration: none;
  padding: 14px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}

.sticky-btn:hover {
  background: #7B1FA2;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  20% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}

@keyframes shake-attention {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.shake-attention {
  animation: shake-attention 0.8s ease-in-out;
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

.result-goal-box.shimmer-effect::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.trigger-btn.shimmer-effect::after {
  background: linear-gradient(
    to right,
    rgba(106, 13, 173, 0) 0%,
    rgba(106, 13, 173, 0.4) 50%,
    rgba(106, 13, 173, 0) 100%
  );
}

.result-cta-button.shimmer-effect::after,
.sticky-btn.shimmer-effect::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}
