:root {
  --bg: #f8f7f4;
  --panel: #ffffff;
  --text: #1f2a37;
  --muted: #536171;
  --accent: #d9480f;
  --accent-soft: #ffe7db;
  --border: #e8e3dc;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top right, #fff2eb, var(--bg) 40%);
  color: var(--text);
}

.container {
  max-width: 880px;
  margin: 2rem auto;
  padding: 1.25rem;
}

header h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

header p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.status {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #7a2f12;
}

.status.error {
  background: #fdecea;
  color: var(--danger);
}

.progress-wrap {
  width: 100%;
  height: 10px;
  background: #ece7e2;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.progress-bar {
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, #f76707, var(--accent));
  transition: width 220ms ease;
}

.wizard-step,
.card {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 22px rgba(50, 35, 20, 0.06);
}

.wizard-step.active,
.report .card {
  display: block;
}

label {
  display: block;
  margin: 0.85rem 0 0.4rem;
  font-weight: 600;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d5d1ca;
  font-size: 0.98rem;
}

button {
  margin-top: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.94;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.row button {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.checkbox-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.checkbox-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  background: #fbfaf8;
  border: 1px solid #efeae3;
  border-radius: 8px;
  padding: 0.55rem;
}

.checkbox-item input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
}

.hint {
  color: var(--muted);
  margin-top: 0.4rem;
}

pre {
  background: #fbfaf8;
  border: 1px solid #efeae3;
  border-radius: 8px;
  padding: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.back-link {
  color: #0c63a6;
  text-decoration: none;
}

@media (max-width: 720px) {
  .container {
    margin: 1rem auto;
    padding: 0.9rem;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .row button {
    width: 100%;
  }
}
