/* Base Form Styles */
#aiForm {
  padding: 20px;
  border: 1px solid #ddd;
  color:#fff;
  background: #2e299e;
  border-radius: 25px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: "Inter Tight", inter-tight, sans-serif;
  transition: height 0.5s ease; /* Smooth height transition */
  overflow: hidden;
  background-image: linear-gradient(128deg, var(--e-global-color-primary) 0%, #0d012e 100%);
}
.loader {
  text-align: center;
  padding: 20px;
  font-size: 18px;
}

.spinner {
  margin: 0 auto 10px;
  width: 40px;
  height: 40px;
  border: 4px solid #615be5;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Simple spin animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  counter-reset: step;
  padding-left: 0;
}
.progress-bar li {
  list-style-type: none;
  width: 100%;
  position: relative;
  text-align: center;
  font-size: 13px;
  color: #fff;
}
.progress-bar li:before {
  content: counter(step);
  counter-increment: step;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border: 1px solid #ddd;
  display: block;
  text-align: center;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  
}
.progress-bar li.active {
    color: white;
    border-color: #ffffff;
	font-weight: 500;
    font-size: 82%;
    
}

.progress-bar li.active:before {font-size: 100%; font-weight: 700; border: 1px solid #b87d15; color: #ffaa45;}
.progress-bar li:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #ddd;
  top: 15px;
  left: -50%;
  z-index: -1;
}
.progress-bar li:first-child:after {
  content: none;
}
.progress-bar li.active:after {
  background: #ffffff;
}
/* Step Sections */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}
.form-step.active {
  display: block;
  padding: 5px 10px 5px 20px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Form Headings & Labels */
.form-step h3 {
  font-size: 20px;
  margin-bottom: 20px;
}
#aiForm label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
    font-size: 110%;
}
/* Inputs */
#aiForm input[type="text"], input[type="email"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px; /* Ensures mobile devices don’t zoom */
}
#aiForm input[type="radio"] {
  margin-right: 5px;
}
/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

button {background-color:#605BE5}

button.next-btn, button.prev-btn, button.submit-btn {
    padding: 15px 20px 15px 20px;
    color: #ffffff;
    border-radius: 15px;
    font-size: 16px;
    border: none;
	background-color:#605BE5;
	margin-top: 20px;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.form-step:first-child .form-navigation {
  justify-content: flex-end;
}

.form-navigation .next-btn {
  margin-left: auto;
}

label[for="consent"] {
  font-size: 14px !important; 
  line-height: 1.5;
}

/* Success Message Styles */
.success-message {
    margin: 0;
    padding: 20px 10px 20px 10px;
    transition: height 0.5s ease; /* Smooth height transition */
    overflow: hidden;
    background-image: linear-gradient(128deg, var(--e-global-color-primary) 0%, #0d012e 100%);
    border: 0px solid #c8e6c9;
    border-radius: 25px;
    text-align: center;
}

.success-message h2, .success-message h3 {
  margin-bottom: 20px;
  color: #ffffff;
}
.success-message p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  color:#ffffff;
}
/* Mobile Adjustments */
@media (max-width: 480px) {
  /* Adjust progress bar: Hide text labels and show numbers only */
  .progress-bar li {
    font-size: 0; /* Hide the text label */
  }
  .progress-bar li:before {
    font-size: 14px; /* Ensure the number is legible */
    line-height: 30px;
    width: 30px;
    height: 30px;
    display: inline-block;
  }
  #aiForm {
    min-height: 650px;
  }
  /* Inputs already set to 16px to prevent zoom */
}