.stageouter {
  --stage-accent: #0055AB;
  --stage-muted: #d1d5db;
  max-width:100%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.stage-number {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.stage-number span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--stage-muted);
  border-radius: 50%;
  color: #6b7280;
  font-weight: 700;
  transition: .2s ease;
}

.stage-number span.active {
  border-color: var(--stage-accent);
  background: var(--stage-accent);
  color: #fff;
  box-shadow: 0 0 0 5px rgb(37 99 235 / 14%);
}

.formstages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mystage {
  display: none;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(15 23 42 / 7%);
}

.mystage.active {
  display: block;
  animation: stage-in .25s ease;
}

.formstages .row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 0;
}

.formstages [class*="col-md-"] {
  box-sizing: border-box;
  padding: 0 10px;
}

.formstages .col-md-6 {
  width: 50%;
}

.formstages .col-md-12 {
  width: 100%;
}

.formstages input:not([type="checkbox"]),
.formstages select,
.formstages textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.formstages textarea {
  min-height: 120px;
  resize: vertical;
}

.formstages input:focus,
.formstages select:focus,
.formstages textarea:focus {
  border-color: var(--stage-accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

.formstages .row .row {
  align-items: center;
  gap: 0;
}

.formstages input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--stage-accent);
}

.formstages p {
  margin: 8px 0;
}

.nextstage2,
.sendbtn {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--stage-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.nextstage2:hover,
.sendbtn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.formstages :invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

@keyframes stage-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .mystage {
    padding: 18px 10px;
  }

  .formstages .col-md-6,
  .formstages .col-md-12 {
    width: 100%;
  }
}