#formContainer{
    width: 35rem;
    margin-top: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    opacity: 1;
    max-height: 1000px;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
  }
  
  .form-group.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
  }
  
  
  .form-group.input-error {
    border: 2px solid red;
    background-color: #fff5f5;
    padding: 1.5rem;
    border-radius: 10px;
  }
  
  .label-div {
    padding: 15px;
    background: linear-gradient(135deg, #f0e6f6, #f7f3fa);
    border: 1px solid #c9a9df;
    border-radius: 12px;
    margin-bottom: 1rem;
    max-width: 90%;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(180, 130, 255, 0.15);
    transition: all 0.3s ease;
  }
  
  .option-container {
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    width: 90%;
    background: linear-gradient(135deg, #ffffff, #f9f9fb);
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
  }

  .label-div:hover,
.option-container:hover {
  box-shadow: 0 4px 12px rgba(100, 100, 255, 0.2);
}


input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  
    width: 20px;
    height: 20px;
    border: 2px solid #5c00b8;          /* Purple border */
    border-radius: 50%;
    background-color: white;            /* White inside the ring */
    position: relative;
    cursor: pointer;
    transition: border 0.3s ease, background-color 0.3s ease;
  }
  
  input[type="radio"]:hover {
    box-shadow: 0 0 0 3px rgba(128, 0, 255, 0.2); /* Purple glow on hover */
  }
  
  input[type="radio"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #8000ff;         /* Purple inner circle */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
  }
  
  input[type="radio"]:checked::after {
    transform: translate(-50%, -50%) scale(1);  /* Show purple dot */
  }
  
  .form-check-input {
    background-color: white !important;
    border-color: #8000ff !important;
  }
  

  /* Custom Checkbox Styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    width: 20px;
    height: 20px;
    border: 2px solid #8000ff; /* Purple border */
    border-radius: 4px;
    background-color: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
  }
  
  input[type="checkbox"]:hover {
    box-shadow: 0 0 0 3px rgba(128, 0, 255, 0.2); /* Soft purple glow */
  }
  
  /* Inner checkmark (✓) */
  input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #8000ff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: all 0.2s ease-in-out;
  }
  
  /* Show checkmark on checked */
  input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
  }

  .form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .right-buttons {
    display: flex;
    gap: 1rem;
  }

  .right-buttons.full-width {
    width: 100%;
  }
  
  .right-buttons.full-width #nextButton {
    width: 100%;
    display: block;
    text-align: center;
  }
  
  .form-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    color: white;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .form-btn.back {
    background-color: #dc3545;
  }
  
  .form-btn.next {
    background-color: #007bff;
  }
  
  .form-btn.submit {
    background-color: #28a745;
  }
  
  .form-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }
  
  .form-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  
  /* Full-width "Next" button on first page */
.full-width-next #nextButton {
    width: 100%;
  }
  
  /* Optional: make it centered nicely */
  .full-width-next .right-buttons {
    width: 100%;
    justify-content: center;
  }

  /* Make the button stretch full width and center it */
  #nextButton.full-width {
    width: 100% !important;
    display: block !important;
    text-align: center;
    margin: 1rem auto 0 auto; /* center it with margin auto */
  }




  /*Load Progress Bar Start*/
  .progress-bar-container {
    display: flex;
    min-height: 50px;   
    margin-bottom: 2rem;
    width: 100%;
    height: 30px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #e0e0e0;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  }
  
  .progress-step {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    flex: 1;
    text-align: center;
    padding: 0.8rem 0;
    font-weight: bold;
    color: #666;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, color 0.4s ease; /* <-- ✨ Add this line */
  }
  
  
  .progress-step:last-child {
    border-right: none;            /* 🛠️ No border on the last step */
  }
  
  .progress-step.active {
    background-color: #7a5cfa;
    color: white;
    animation: pulse 1.5s infinite;
  }
  
  .progress-step.completed {
    background-color: #d6d6f7;
    color: #555;
  }

  .progress-step {
    transition: background-color 0.4s ease;
  }

  .progress-step.active::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 20%;
    width: 60%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    animation: underlineGlow 1.2s infinite alternate;
  }
  
  @keyframes underlineGlow {
    from {
      opacity: 0.5;
      transform: scaleX(0.8);
    }
    to {
      opacity: 1;
      transform: scaleX(1);
    }
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(122, 92, 250, 0.7);
    }
    70% {
      transform: scale(1.02);
      box-shadow: 0 0 8px 4px rgba(122, 92, 250, 0);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(122, 92, 250, 0);
    }
  }



  /* ===========================
   MOBILE RESPONSIVE FIXES
   =========================== */

#formContainer {
  max-width: 35rem;   /* keep desktop sizing */
  width: 100%;        /* allow shrinking */
  box-sizing: border-box;
}

/* Below 700px, give full-width with safe padding */
@media (max-width: 700px) {
  #formContainer {
    max-width: 100%;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .label-div,
  .option-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .option-container {
    align-self: stretch;   /* stop pushing to the right */
  }
}

/* Optional: prevent any horizontal scroll caused by shadows */
html, body {
  overflow-x: hidden;
}

  
  
  
  
  /*Load progress bar end*/


  

  