/* form-fix.css */

/* Main form container */
.main_step_form {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 0.375rem;
  margin: 1.5rem auto;
  padding: 1rem;
  max-width: 640px;
  width: 100%;
}

/* Progress bar */
.rg-progressbar {
  background: #e5e7eb;
  border-radius: 0.375rem;
  width: 100%;
  height: 0.5rem;
  position: relative;
}
.rg-progress {
  background: #4b5563;
  height: 100%;
  border-radius: 0.375rem;
  position: absolute;
  top: 0; left: 0;
}
.rg-text {
  font-weight: 600;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

/* Step containers */
.form-step {
  display: none;
  padding: 1rem 0;
}
.form-step.active {
  display: block;
}
.form-step.hidden {
  display: none;
}

/* Step content */
.form-content-inner h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

/* Button group */
.flex.gap-4.justify-center.items-center.w-full {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Buttons */
input[type="button"].next-btn,
input[type="button"].cancerYes,
input[type="button"].cancerNo {
  background: #16a34a; /* Tailwind green-600 */
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 2rem;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin: 0.5rem auto;
  display: block;
}
input[type="button"].next-btn:hover,
input[type="button"].cancerYes:hover,
input[type="button"].cancerNo:hover {
  background: #15803d; /* Tailwind green-700 */
}

/* Selects */
select.form-select {
  width: 100%;
  max-width: 480px;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  margin: 0.5rem auto;
  display: block;
}

/* Loader */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}
.loader.hidden {
  display: none;
}

/* Last step links */
.last-step-content .yes-debt a {
  background: #16a34a;
  color: #fff;
  border-radius: 0.375rem;
  padding: 0.5rem 2rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0;
  transition: background 0.2s;
}
.last-step-content .yes-debt a:hover {
  background: #15803d;
}

/* Only stack buttons on very small screens */
@media (max-width: 400px) {
  .flex.gap-4.justify-center.items-center.w-full {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.centered-input {
  display: flex;
  justify-content: center;
  width: 100%;
}

.centered-input > * {
  width: 100%;
  max-width: 480px;
}