:root {
  --blue: #01267e;
  --green: #58881c;
  --orange: #fe6500;
  --lime: #8bc613;
  --bg: #edf1f7;
  --card: #ffffff;
  --text: #12244f;
  --muted: #5f6f93;
  --line: #d7deed;
  --focus: rgba(1, 38, 126, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  font-size: 120%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Gotham Medium", "Gotham", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(139, 198, 19, 0.2) 0%, rgba(139, 198, 19, 0) 28%),
    radial-gradient(circle at 85% 12%, rgba(254, 101, 0, 0.16) 0%, rgba(254, 101, 0, 0) 26%),
    linear-gradient(160deg, #001a57 0%, #01267e 48%, #0f3c97 100%);
}

.container {
  max-width: 860px;
  margin: 42px auto;
  padding: 0 20px;
}

.shell {
  display: block;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(0, 11, 38, 0.45);
}

.wizard {
  padding: 28px;
}

.brand-bar {
  height: 6px;
  width: 190px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange) 33%,
    var(--green) 33%,
    var(--green) 67%,
    var(--blue) 67%,
    var(--blue) 100%
  );
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  color: var(--blue);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

h2 {
  font-size: clamp(1.3rem, 2.7vw, 1.7rem);
  margin-bottom: 8px;
}

.sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.section-lead {
  font-size: 1.24rem;
  line-height: 1.3;
}

.progress-wrap {
  margin: 22px 0;
}

.progress-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: #e3e9f6;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 16.66%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue) 0%, var(--green) 78%, var(--lime) 100%);
  transition: width 280ms ease;
}

.step-host {
  position: relative;
  min-height: 430px;
}

.step {
  display: none;
  opacity: 0;
}

.step.active {
  display: block;
}

.step.active.from-forward,
.step.active.from-back {
  animation: step-in 220ms ease both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.choice {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.choice:hover {
  border-color: #b7c7e7;
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.choice:has(input:checked) {
  border-color: var(--blue);
  background: #f3f7ff;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label {
  font-size: 0.88rem;
  color: #5c6b8e;
  font-weight: 600;
}

input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a2d63;
  background: #fff;
}

.input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.input-prefix span {
  padding-left: 12px;
  color: #1a2d63;
  font-weight: 600;
}

.input-prefix input {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding-left: 6px;
}

.input-prefix:focus-within {
  border-color: #8ca4d9;
  box-shadow: 0 0 0 4px var(--focus);
}

input:focus {
  outline: none;
  border-color: #8ca4d9;
  box-shadow: 0 0 0 4px var(--focus);
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  background: #fff;
  margin-bottom: 10px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.87rem;
}

.kpi strong {
  display: block;
  margin-top: 3px;
  color: var(--blue);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.01em;
}

.kpi.feature {
  border-color: #c5dca8;
  background: #f4f9ed;
}

.kpi.feature strong {
  color: var(--green);
}

.actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 120px;
  transition: filter 140ms ease, transform 140ms ease;
}

.btn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--blue);
  background: #ebf0fb;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn:not(.btn-secondary) {
  color: #fff;
  background: var(--blue);
}

.error {
  color: #b12704;
  min-height: 1.3em;
  margin: 10px 2px 0;
  font-size: 0.88rem;
}

.hint {
  margin-top: 6px;
}

.hint summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
}

.hint p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.35;
}

.breakdown {
  margin-top: 8px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 12px;
}

.service-grid .kpi {
  text-align: center;
  margin-bottom: 0;
}

.service-grid .service-title {
  font-weight: 700;
  color: var(--blue);
}

.service-grid.single-service {
  grid-template-columns: minmax(260px, 360px);
  justify-content: center;
}

.step-footnote {
  margin-top: 14px;
  font-size: 0.96rem;
}

@media (max-width: 760px) {
  .container {
    margin-top: 20px;
  }

  .wizard {
    padding: 20px;
  }

  .step-host {
    min-height: 470px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
