.mat-wizard {
  max-width: 820px;
  margin: 0 auto;
}

.mat-wizard__alert {
  background: #fde8e8;
  border: 1px solid #f5b5b5;
  color: #7f1d1d;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.mat-wizard__progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
}

.mat-wizard__progress li {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  color: #5b6577;
  font-size: 0.78rem;
}

.mat-wizard__progress li.is-active,
.mat-wizard__progress li.is-done {
  color: #0b1220;
  font-weight: 700;
}

.mat-wizard__progress-num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4e7ee;
  font-weight: 800;
}

.mat-wizard__progress li.is-active .mat-wizard__progress-num,
.mat-wizard__progress li.is-done .mat-wizard__progress-num {
  background: #e2b13c;
  color: #0b1220;
}

.mat-wizard__step h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.mat-wizard__problems {
  display: grid;
  gap: 0.75rem;
}

.mat-wizard__problem {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.mat-wizard__problem:has(input:checked) {
  border-color: #e2b13c;
  box-shadow: 0 0 0 2px rgba(226, 177, 60, 0.25);
}

.mat-wizard__problem strong {
  display: block;
  margin-bottom: 0.25rem;
}

.mat-wizard__problem small {
  color: #5b6577;
}

.mat-wizard__field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.mat-wizard__field input,
.mat-wizard__field textarea {
  width: 100%;
  border: 1px solid #d5dae3;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
}

.mat-wizard__hint,
.mat-wizard__trust {
  color: #5b6577;
  font-size: 0.92rem;
}

.mat-wizard__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mat-wizard__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.mat-wizard__review {
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.mat-wizard__review dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.mat-wizard__review dt {
  font-weight: 700;
  margin: 0;
}

.mat-wizard__review dd {
  margin: 0.2rem 0 0;
  color: #5b6577;
  white-space: pre-wrap;
}

.mat-confirm {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.mat-confirm__number code {
  font-size: 1.1rem;
  background: #0b1220;
  color: #e2b13c;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
}

@media (max-width: 720px) {
  .mat-wizard__progress {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .mat-wizard__progress-label {
    display: none;
  }
}
