/* 🦡 Hufflepuff Theme Base */
body {
  background-color: #1e1e1e; /* Deep charcoal black */
  color: #fcf6e3;            /* Soft cream parchment text */
  font-family: 'Georgia', 'Times New Roman', serif;
  padding: 40px 20px;
}

/* Centers the form and gives it a cozy background */
#survey-form {
  background-color: #2b2b2b; /* Slightly lighter charcoal container */
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border-left: 5px solid #ecb939; /* Distinct Hufflepuff Yellow accent border */
}

/* Headers */
h1 {
  color: #ecb939; /* Canary Yellow */
  text-align: center;
  margin-bottom: 5px;
}

#description {
  text-align: center;
  color: #bebebe;
  font-style: italic;
  margin-bottom: 30px;
}

/* Earthy borders for your magical information boxes */
fieldset {
  margin-bottom: 25px;
  border: 1px solid #726240; /* Muted earth/bronze border */
  border-radius: 5px;
  padding: 15px 20px;
}

legend {
  color: #ecb939;
  font-weight: bold;
  padding: 0 10px;
}

/* Blocks layout for inputs and labels */
label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
}

/* Radio and Checkbox text shouldn't be on a new line */
fieldset label {
  display: inline-block;
  margin-left: 5px;
  margin-right: 15px;
}

/* Dark-mode styled form fields */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  background-color: #1a1a1a;
  border: 1px solid #726240;
  color: #fff;
  border-radius: 4px;
  box-sizing: border-box; /* Ensures padding doesn't break full width */
}

/* Changes input borders when you click into them */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #ecb939;
  box-shadow: 0 0 5px rgba(236, 185, 57, 0.5);
}

/* 💛 The Hufflepuff Submit Button */
button {
  display: block;
  width: 100%;
  background-color: #ecb939; /* Yellow base */
  color: #111111;            /* Crisp black text */
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 20px;
}
button:hover {
  background-color: #fcd05a; 
}
/* Container for each radio + text pair */
.radio-option {
  display: flex;
  align-items: center; /* Vertically centers the dot with the text */
  margin-bottom: 12px;
}

.radio-option input[type="radio"] {
  flex-shrink: 0;      /* Prevents the radio circle from getting squished */
  margin-right: 10px;
}

.choice-group {
  display: inline-flex;
  align-items: center;
  white-space: nowrap; 
  margin-right: 15px;  
  margin-bottom: 10px; 
}
.choice-group input {
  margin-right: 6px;
}
