/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s ease;
}

/* Header & Footer */
header, footer {
  background: linear-gradient(135deg, #0a74da, #0062cc);
  color: #fff;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
footer a {
  color: #fff;
  text-decoration: underline;
}
footer {
  font-size: 0.9rem;
}

/* Main Content */
main {
  padding: 20px;
  max-width: 760px;
  margin: 24px auto 40px;
  animation: fadeIn 0.5s ease;
}

/* Question page shell */
body > header {
  border-radius: 0 0 24px 24px;
  margin-bottom: 18px;
}

body > .progress-bar {
  max-width: 760px;
  margin: 0 auto 22px;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

/* Hero / Section Titles */
.hero, .section > h2 {
  color: #075dad;
  margin-bottom: 1rem;
  text-align: center;
}
.hero p, .section > p {
  margin-bottom: 1.5rem;
}

/* Quiz Question */
.question {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 1.2rem;
  color: #14213d;
  line-height: 1.4;
}

form {
  background: #ffffff;
  border: 1px solid #e3ebf5;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

/* Option Cards */
.options label {
  display: block;
  position: relative;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1.5px solid #cfe0ff;
  border-radius: 14px;
  padding: 16px 48px 16px 18px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #223449;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.options label:hover {
  background: linear-gradient(135deg, #f1f8ff, #e6f2ff);
  border-color: #6aa8ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
}
.options input[type="radio"] {
  display: none;
}
.options label input[type="radio"]:checked + span::after {
  content: "✔";
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 22px;
  color: #16a34a;
  animation: tickFade 0.3s ease-in-out;
}
.options label span {
  display: inline-block;
  width: 100%;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  background-color: #dee2e6;
  height: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
}
.progress {
  height: 12px;
  background-color: #28a745;
  width: 0;
  transition: width 0.5s ease;
}

/* Buttons */
button, .buy-btn, .social-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0a74da, #2563eb);
  color: #fff;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
  margin-top: 1.2rem;
}
button:hover, .buy-btn:hover, .social-btn:hover {
  background: linear-gradient(135deg, #005bb5, #1d4ed8);
  transform: translateY(-2px);
}
button:active, .buy-btn:active, .social-btn:active {
  transform: scale(0.97);
}

/* Restart Box */
.restart-box {
  margin-top: 30px;
  background-color: #fff3cd;
  border-left: 5px solid #ffc107;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}
.restart-btn {
  background: #ff5722;
  color: #fff;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.restart-btn:hover {
  background: #e64a19;
  transform: scale(1.02);
}
.restart-btn:active {
  transform: scale(0.96);
}

/* Ad Container */
.ad-container {
  border: 2px dashed #fbbf24;
  background: linear-gradient(135deg, #fff8e1, #fff3c4);
  padding: 14px;
  border-radius: 12px;
  margin: 20px 0 24px;
  text-align: center;
  font-size: 0.95rem;
  color: #3f2e00;
}

/* Tables & Lists */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
table th, table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
li {
  margin-bottom: 0.75rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tickFade {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 15px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 12px;
  }
  .question {
    font-size: 1.2rem;
  }
  form {
    padding: 16px;
  }
  .options label {
    font-size: 0.95rem;
    padding: 13px 38px 13px 13px;
  }
  button, .buy-btn {
    font-size: 0.9rem;
    padding: 12px 20px;
    width: 100%;
  }
  table th, table td {
    font-size: 0.85rem;
    padding: 8px;
  }
}
