.step {
      display: none;
    }
.step.active {
  display: block;
}

/* progress bar */
.progress-container {
  width: 100%;
  background-color: #eee;
  border-radius: 25px;
  height: 15px;
  margin-bottom: 30px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #007bff;
  transition: width 0.4s ease;
}

/* Spinner overlay */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  padding: 2rem;
}
form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 2em;
}
h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
label {
  display: block;
  margin-top: 3rem;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.inline-group {
  display: flex;
  gap: 1rem;
}
.inline-group > div {
  flex: 1;
}
button {
  margin-top: 2rem;
  padding: 0.8rem;
  width: 100%;
  background-color: #0f2065;
  border: none;
  color: #fff;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #0056b3;
}

h2 {
  margin-bottom: 30px;
  font-size: 30px;
  font-weight: bold;
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.upload-wrapper {
  width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="file"] {
  background: lightgrey;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
}

label {
  margin-bottom: 6px;
  font-weight: bold;
}

select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.preview {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}
.preview img {
  width: 120px;
  height: auto;
  margin: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}


/* radio styles and text on same line styles */
.question-block {
  margin-bottom: 2.5rem;
  
  
}

/* Align question and radios horizontally */
.question-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 750px;
  flex-wrap: nowrap; /* ❗ prevents radios from dropping below */
}

/* Question text shares the same line */
.question-text {
  flex: 1;
  margin-right: 20px;
  display: inline-block;
  white-space: normal; /* allows wrapping text but keeps radios in line */
  
}

/* Radio group stays aligned on the right */
.radio-row {
  display: flex;
  gap: 20px;
  flex-shrink: 0; /* prevents shrinking */
  white-space: nowrap; /* keeps radios together */
}

/* Comments + File Uploads */
.question-body label {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  max-width:75%
}

.question-body {
  width: 96%;
}

textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}

input[type="file"] {
  margin-top: 5px;
}

.fileError {
  display: block;
  margin-top: 3px;
}

/* Optional: allow stacking only on small screens */
@media (max-width: 600px) {
  .question-inline {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .radio-row {
    margin-top: 8px;
  }
}

/* ========== CHECKBOX SECTION STYLES ONLY ========== */
.checkbox-block {
  margin-top: 3.5em;
}

.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 1.5em;
  flex-wrap: wrap;
}

.checkbox-text {
  flex: 0 0 auto;
  font-weight: 700;
  margin-right: 1em;
  max-width: 500px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}

.checkbox-row label {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: center;
  font-weight: normal;
  max-width: 180px;
  gap: 8px;

}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.3em;
}

/* ========== step title ========== */

.step-title {
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  padding: 3px 3px;

  background-color: #0f2065;
}