/* Reset & Base */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: transparent;  /* Let Vanta show through */
}

/* Progress Bar */
#progress-container {
  width: 100%;
  height: 32px;
  background: #ddd;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
}
#progress-bar {
  width: 0%;
  height: 100%;
  background: #3b78c5;           /* High-contrast color */
  transition: width 0.3s ease;
}

/* Main Quiz Card */
.container {
  position: relative;             /* In normal flow so footer sits below */
  margin: 1vh auto 2rem;         /* Push down, center, bottom gap */
  width: 85%;
  top: 6vh;
  max-width: 600px;
  background: rgba(255,255,255,0.9);
  padding: 3rem;                  /* Inner spacing */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  z-index: 1;
}

/* Title */
h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #222;
}

/* Question Panels */
.question-container {
  display: none;
}
.question-container.active {
  display: block;
}
.question-container h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #444;
}
.question-text {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Options: Two-Column, Educational Look */
.options form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.options label {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  cursor: pointer;
  background: none;
  border: none;
}
.options label:hover {
  background: rgba(255,255,255,0.2);
}
.options input[type="radio"] {
  margin-right: 0.5rem;
}

/* Hint Text */
.hint {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Buttons */
.next-btn,
#submit-email,
#accept-cookies {
  background: #4a90e2;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.next-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.next-btn:hover:not(:disabled),
#submit-email:hover,
#accept-cookies:hover {
  background: #3b78c5;
}

/* Email Field */
#results input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#results input[type="email"]:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

/* Thank-You Text */
#thank-you {
  margin-top: 1rem;
  color: #2a7f2a;
}

/* Cookie Banner */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #222;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}
#cookie-consent button {
  margin-left: 1rem;
}

/* Footer Links */
footer {
  text-align: center;
  margin: 15rem 0;
  font-size: 1rem;
  color: #fff;                   /* Ensure visible on dark bg */
}
.footer-link {
  color: #fff;
}
.footer-link:hover {
  text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .container {
    margin: 3rem 1rem 2rem;
    padding: 2rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  .options form {
    grid-template-columns: 1fr;
  }
  .next-btn,
  #submit-email,
  #accept-cookies {
    width: 100%;
  }
}
