/* Page background */
body {
 font-family: "Poppins", sans-serif; font-weight: 400; 
  padding: 20px;
  background: #f2f2f2; font-size: 17px
}

.form-header{text-align: center; margin-bottom: 30px}

.hidden {
  display: none;
}
/* Main container */
.form-container {
  width: 100%;
  max-width: 800px; margin-left: auto; margin-right: auto
}

/* Each step (form panel) */
.step {
    display: none;
    background: #ffffff; /* white form */
    padding-top: 30px;
    padding-right: 35px;
    padding-left: 35px;
    padding-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
}

.step.active {
  display: block;
}

/* Inputs full width */
input,
select,
textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box; border-radius:6px;  font-family: "Poppins", sans-serif; border-color: #868686; font-size: 17px
}

/* Textareas slightly taller */
textarea {
  min-height: 220px;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* Labels */
label {
  display: block;
  margin-top: 15px;
}

/* Headings spacing */
h3, h4 {
  margin-top: 40px; margin-bottom: 10px
}

h3{text-transform: uppercase}

/* Navigation buttons */
.navigation {
  margin-top: 30px;
  display: flex;
}

#prevBtn {
  margin-right: auto; background-color: #528BD0; color: #ffffff; border:none; cursor: pointer
}

#nextBtn {
  margin-left: auto;  background-color:#82B859; color: #ffffff; border:none; cursor: pointer
}

#prevBtn:hover {
background-color: #ffffff; color: #111111
}
#nextBtn:hover {
background-color: #ffffff; color: #111111
}

button {
  padding: 20px 30px; font-size: 18px
}

/* Messages */
.message {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  background: #fff;
}

/* Consent section */
.consent {
  margin-top: 20px;
}

label input[type="checkbox"],
label input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Force checkbox groups to be one per row */
label input[type="checkbox"],
label input[type="radio"] {
  margin-right: 8px;
}

label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* If inside grid, break out */
.grid-3 label,
.grid-2 label {
  grid-column: 1 / -1;
}

.field-error {
  border: 2px solid #d93025;
  background-color: #fff5f5;
}

#loadingSpinner {
  text-align: center;
  margin-top: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}




/* Mobile styles */
@media (max-width: 768px) {

  /* Stack all grid layouts into one column */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* Optional: reduce padding for smaller screens */
  .step {
    padding: 20px;
  }

  /* Make buttons full width (optional but nice UX) */
  .navigation {
    flex-direction: column;
    gap: 10px;
  }

  #prevBtn,
  #nextBtn {
    width: 100%;
    margin: 0;
  }

  button {
    width: 100%;
    padding: 16px;font-size: 18px
  }

  /* Ensure labels + inputs stack cleanly */
  label {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Improve spacing on small screens */
  input,
  select,
  textarea {
    font-size: 18px; /* prevents iOS zoom */
  }
}




