/* ----- Basic Page & Container Styles ----- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #FFD194, #D1913C);
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #333;
}

/* ----- Intro Text ----- */
.intro-text {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  line-height: 1.5;
  border-left: 6px solid #D1913C;
}

/* ----- Progress Bar ----- */
#progress-container {
  background-color: #eee;
  border-radius: 13px;
  height: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px auto;
  overflow: hidden;
}

#progress-bar {
  background: linear-gradient(90deg, #F5515F, #9F041B);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 13px;
}

/* ----- Form & Fieldset ----- */
form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

fieldset {
  margin-bottom: 20px;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 10px 20px;
  background: #fdfdfd;
  position: relative;
}

legend {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
  color: #444;
}

/* ----- Radio + Label Styles ----- */
.option-label {
  display: block;
  margin: 8px 0;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  transition: transform 0.1s;
}

.option-label:hover {
  transform: translateX(2px);
}

.option-label input[type="radio"] {
  margin-right: 8px;
  vertical-align: middle;
  transform: scale(1.1);
  cursor: pointer;
}

/* ----- Submit Button ----- */
.submit-btn {
  background: linear-gradient(to right, #ff9966, #ff5e62);
  color: white;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s;
}

.submit-btn:hover {
  transform: scale(1.05);
}

/* ----- Results Section ----- */
#result {
  margin-top: 20px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  color: #333;
}

#interpretation {
  max-width: 800px;
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

#interpretation h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #444;
}

#interpretation p {
  margin-bottom: 10px;
  color: #555;
  line-height: 1.5;
}

/* ----- Credit Styles ----- */
.credit {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9em;
  color: #666;
}

.credit a {
  color: #666;
  text-decoration: none;
  font-weight: bold;
}

.credit a:hover {
  color: #333;
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 600px) {
  fieldset, .submit-btn, #progress-container {
    width: 100%;
    margin: 10px 0;
  }
  
  legend {
    font-size: 1.1em;
  }
  
  h1 {
    font-size: 1.6rem;
  }
}

/* Hidden xAPI form elements */
.xapi-form {
  display: none;
}