* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-image: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)), url('https://img.funnelish.com/48248/366775/1754309113-PIATTI%20SPAGNA%20NIKY.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Stepper */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 4px;
  background: #e0e0e0;
  z-index: 1;
}

.step-item {
  text-align: center;
  flex: 1;
}

.step-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

.step-indicator.active {
  background: #0066cc;
  color: white;
}

.step-label {
  font-size: 12px;
  margin-top: 8px;
  color: #777;
}

/* Step wrapper for centering only content (not stepper) */
.step-wrapper {
  display: block;
}

body.centered-question .step-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Quiz steps */
.quiz-step {
  display: none;
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

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

.quiz-step.square {
  width: min(84vmin, 520px);
  aspect-ratio: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}

/* Typography & UI */
.product-image {
  max-width: 300px;
  margin: 0 auto 20px;
  display: block;
}

h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #2c3e50;
}

p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #555;
}

.highlight {
  color: #0066cc;
  font-weight: 700;
}

.disclaimer {
  font-size: 12px;
  color: #888;
  margin-top: 30px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #0066cc;
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  margin: 10px 8px;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  min-width: 200px;
}

.btn:hover {
  background: #0052a3;
}

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

.btn-outline:hover {
  background: #f0f7ff;
}

/* Question buttons */
#step2 .btn,
#step3 .btn,
#step4 .btn {
  display: block;
  width: 320px;
  max-width: 80%;
  margin: 10px auto;
  padding: 12px 22px;
  border-radius: 18px;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  #step2 .btn,
  #step3 .btn,
  #step4 .btn {
    width: 380px;
  }
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0066cc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

/* Gift Boxes */
.boxes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.gift-box {
  aspect-ratio: 1;
  background: #f0f7ff;
  border: 2px solid #d0e4ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.gift-box:hover {
  background: #e0eeff;
  transform: scale(1.05);
}

.gift-box.selected {
  background: #0066cc;
  color: white;
  border-color: #0052a3;
}

/* Responsive */
@media (max-width: 600px) {
  .boxes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .btn {
    width: 100%;
    margin: 10px 0;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 20px;
  }
}