/* Container */
.container {
  max-width: 800px;
  margin: 40px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Main Title */
.main-title {
  text-align: center;
  font-size: 2em;
  color: #333;
  margin-bottom: 30px;
}

/* Section Headings */
.section-heading {
  font-size: 1.5em;
  color: #444;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
}

/* Collapsible Buttons */
.collapsible {
  background-color: #007BFF;
  color: white;
  cursor: pointer;
  padding: 16px 24px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 12px;
  transition: background-color 0.3s ease;
}
.collapsible:hover,
.collapsible.active {
  background-color: #0056b3;
}

/* Content sections */
.content {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 30px;
  background-color: #fdfdfd;
}

/* Question containers */
.question-container,
.question-container-multi {
  margin-bottom: 25px;
}

/* Each question step */
.question-step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}
.question-step.active {
  display: block;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Question images */
/*.question-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 12px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
*/

/* Labels */
label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* Input spacing */
input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}
input[type="radio"] {
  margin-right: 6px;
  margin-top: 8px;
}

/* Form navigation buttons */
.form-nav {
  margin-top: 30px;
  text-align: right;
}

.form-nav button {
  background-color: #007BFF;
  border: none;
  color: white;
  padding: 10px 18px;
  margin-left: 12px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-nav button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.form-nav button:hover:not(:disabled) {
  background-color: #0056b3;
}

/* Submit button */
button[type="submit"] {
  background-color: #28a745 !important;
  font-weight: 600;
}
button[type="submit"]:hover {
  background-color: #218838 !important;
}
.progress-indicator {
  text-align: right;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #333;
}
input[type="radio"] + label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: normal;
  vertical-align: middle;
}
.question-step input[type="text"],
.question-step input[type="email"] {
  width: 300px;         /* fixed width for all inputs */
  padding: 8px 12px;    /* consistent padding */
  font-size: 16px;      /* consistent font size */
  box-sizing: border-box; /* so padding + border included in width */
  border: 1px solid #ccc;
  border-radius: 4px;
  display: block;       /* makes sure inputs behave like block elements */
  margin-top: 4px;      /* spacing from label */
  margin-bottom: 12px;  /* spacing after input */
}

/* ==== Enhancements only - DO NOT REMOVE EXISTING ==== */

/* Slightly softer container background and stronger shadow */
.container {
  background-color: #fafafa;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Labels: more spacing and darker color for readability */
label {
  margin-bottom: 8px;
  color: #222;
}

/* Inputs text/email: wider, more padding, nicer focus */
.question-step input[type="text"],
.question-step input[type="email"],
.question-step select {
  width: 320px;  /* slightly wider */
  padding: 10px 14px;
  border: 1.5px solid #bbb;
  border-radius: 6px;
  margin-top: 6px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.question-step input[type="text"]:focus,
.question-step input[type="email"]:focus,
.question-step select {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0,123,255,0.5);
  outline: none;
}


/* Form navigation buttons: bigger padding, shadows and smooth hover */
.form-nav button {
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.form-nav button:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Submit button: bigger, green shadow and smooth hover */
button[type="submit"] {
  padding: 12px 28px !important;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(40,167,69,0.4) !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

button[type="submit"]:hover {
  box-shadow: 0 5px 18px rgba(33,136,56,0.7) !important;
}

/* Progress indicator: slightly bigger and darker */
.progress-indicator {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .question-step input[type="text"],
  .question-step input[type="email"] {
    width: 100% !important;
  }
  .form-nav {
    text-align: center;
  }
  .form-nav button {
    margin: 8px 6px;
    width: 120px;
  }
}
.question-image {
  max-width: 100%;    /* scale down if too large */
  height: auto;       /* keep aspect ratio */
  display: block;     
  object-fit: contain;  /* show the whole image */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin: 12px 0;
}



