* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url('assets/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #bee1cc;
  min-height: 100vh;
}

/* Close button */
.quiz-close {
  position: fixed;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  background: #fff;
  color: #2d5c4f;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Wrapper */
.quiz-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
}

/* Steps */
.quiz-step {
  display: none;
  text-align: center;
  width: 100%;
  max-width: 600px;
  background: rgba(255,255,255,0.9);
  padding: 32px 24px;
  border-radius: 14px;
}

.quiz-step.active {
  display: block;
}

/* Headings */
h2 {
  color: #1f3d34;
  margin-bottom: 20px;
  font-size: 22px;
  line-height: 1.3;
}

.sub {
  color: #444;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Options */
.options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.options button {
  width: 100%;
  max-width: 260px;
  margin: 8px 0;
  padding: 14px;
  border: 2px solid #2d5c4f;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
}

.options button:hover {
  background: #9ed36a;
}

/* Email */
input[type=email] {
  padding: 14px;
  width: 100%;
  max-width: 320px;
  margin: 16px auto;
  display: block;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Checkbox */
.checkbox {
  font-size: 13px;
  display: block;
  margin-bottom: 16px;
}

/* Buttons */
button#submitEmail,
.quiz-back {
  background: #2d5c4f;
  color: #fff;
  padding: 14px 26px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
}

/* Back button */
.quiz-back {
  margin-top: 20px;
}

/* Skip */
.skip {
  margin-top: 12px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d5c4f;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 1001;
}

.toast.show {
  opacity: 1;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 480px) {

  h2 {
    font-size: 20px;
  }

  .quiz-step {
    padding: 24px 16px;
  }

  .options button {
    font-size: 14px;
    padding: 13px;
  }

  button#submitEmail,
  .quiz-back {
    width: 100%;
    max-width: 280px;
  }
}
