/* ---------- GLOBAL RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---------- QUIZ CONTAINER ---------- */
#quizContainer {
  background-color: #fff;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
  margin: auto;
}

@media (min-width: 768px) {
  #quizContainer {
    padding: 2rem 3rem;
  }
}

/* ---------- QUESTIONS SECTION ---------- */
.question-section {
  display: none;
}

/* ---------- MESSAGE BOX ---------- */
.message-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 2rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: center;
  display: none;
  max-width: 90%;
  width: 100%;
  border: 1px solid #e2e8f0;
}

@media (min-width: 480px) {
  .message-box {
    width: 400px;
    padding: 2rem;
  }
}

.message-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #334155;
}

.message-box p {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  text-align: left;
}

/* ---------- BUTTON STYLES ---------- */
.message-box button,
.btn-custom-color {
  background-color: #1b4680;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
  border: none;
  display: inline-block;
  margin-top: 1rem;
  width: 100%;
  max-width: 200px;
}

.message-box button:hover,
.btn-custom-color:hover {
  background-color: #153a6b;
}

.btn-custom-color:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
}

/* ---------- BUTTON GROUP ---------- */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button-group .btn-custom-color,
.button-group .btn-secondary {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

/* ---------- CHECKBOX STYLES ---------- */
.form-checkbox {
  appearance: none;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  background-color: #fff;
  cursor: pointer;
  transition: 0.15s ease-in-out;
  display: inline-block;
  vertical-align: middle;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox:checked {
  background-color: #4f46e5;
  border-color: #4f46e5;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 00-1.414 0L6.5 8.086 4.707 6.293a1 1 0 00-1.414 1.414l2.5 2.5a1 1 0 001.414 0l4.5-4.5a1 1 0 000-1.414z'/%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- TYPOGRAPHY ---------- */
h3,
.question-section h3 {
  font-size: 1.125rem;
  color: #334155;
  margin-bottom: 1rem;
  text-align: left;
}

/* ---------- DESKTOP ENHANCEMENTS ---------- */
@media (min-width: 768px) {
  h3,
  .question-section h3 {
    font-size: 1.5rem;
  }

  label {
    font-size: 1.125rem;
  }

  .btn-custom-color,
  .btn-secondary {
    font-size: 1rem;
    max-width: 220px;
    padding: 0.625rem 1.25rem;
  }
}


