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

:root {
  --background: hsl(0, 0%, 0%);
  --foreground: hsl(0, 0%, 100%);
  --card: hsl(0, 0%, 8%);
  --card-foreground: hsl(0, 0%, 100%);
  --muted: hsl(0, 0%, 20%);
  --muted-foreground: hsl(0, 0%, 65%);
  --secondary: hsl(0, 0%, 15%);
  --border: hsl(0, 0%, 25%);
  --success: hsl(142, 76%, 36%);
  --success-foreground: hsl(0, 0%, 100%);
  --radius: 0.75rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.5;
}

/* App Layout */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 1rem 8rem;
}

/* Steps */
.step {
  display: none;
  flex-direction: column;
  animation: fadeIn 0.3s ease-out;
}

.step.active {
  display: flex;
}

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

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.main-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .main-title {
    font-size: 2.25rem;
  }
}

/* Progress Bar */
.progress-container {
  margin-bottom: 2rem;
}

.progress-bar {
  height: 8px;
  background-color: var(--muted);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background-color: var(--foreground);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Quiz Content */
.quiz-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .phone-selection {
    margin-top: 4rem;
  }
}

.question-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.question-subtitle {
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .question-title {
    font-size: 1.5rem;
  }
}

/* Option Cards */
.options-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.income-options {
  gap: 0.75rem;
}

.option-card {
  width: 100%;
  padding: 1.5rem;
  background-color: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.income-card {
  padding: 1.25rem;
}

.option-card:hover {
  border-color: var(--foreground);
}

.option-card:hover .icon-box {
  background-color: var(--foreground);
  color: var(--background);
}

.option-card:hover .radio-circle {
  border-color: var(--foreground);
}

.option-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-box {
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.income-card .icon-box {
  width: 2.5rem;
  height: 2.5rem;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.income-card .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.option-text {
  text-align: left;
}

.option-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.option-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.income-label {
  font-size: 1.125rem;
  font-weight: 500;
}

.radio-circle {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.income-card .radio-circle {
  width: 1.25rem;
  height: 1.25rem;
}

/* Congratulations */
.congratulations {
  text-align: center;
}

.success-icon {
  width: 5rem;
  height: 5rem;
  background-color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--success-foreground);
}

.congrats-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.congrats-subtitle {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .congrats-title {
    font-size: 1.875rem;
  }
}

/* Profile Card */
.profile-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.profile-header {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-row.no-border {
  border-bottom: none;
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.profile-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.profile-value {
  font-weight: 600;
  text-transform: capitalize;
}

/* Watch Video Button */
.watch-video-btn {
  width: 100%;
  height: 3.5rem;
  background-color: var(--foreground);
  color: var(--background);
  border: none;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.watch-video-btn:hover {
  opacity: 0.9;
}

.limited-spots {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* Money Counter */
.money-counter {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem;
}

.counter-grid {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.counter-item {
  text-align: center;
}

.counter-value {
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.counter-label {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

@media (min-width: 640px) {
  .counter-value {
    font-size: 1.25rem;
  }
  .counter-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
}

@media (min-width: 768px) {
  .counter-value {
    font-size: 1.875rem;
  }
  .counter-label {
    font-size: 0.875rem;
  }
}
