:root {
  --page: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --blue: #0a84ff;
  --blue-soft: rgba(10, 132, 255, 0.1);
  --success: #30a46c;
  --line: rgba(29, 29, 31, 0.1);
  --shadow: 0 18px 45px rgba(29, 29, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, var(--page) 68%, #eef1f5 100%);
  color: var(--text);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wizard-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  min-height: 100vh;
}

.side-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 64px);
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
}

.side-panel img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.side-panel p,
.step p,
.step-count,
label,
pre,
.call-preview span,
.plan-grid span {
  color: var(--text-soft);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 520px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
}

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

.progress span {
  display: block;
  width: 11%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--success), var(--blue));
  transition: width 180ms ease;
}

.wizard-panel {
  display: grid;
  align-content: center;
  padding: clamp(20px, 5vw, 64px);
}

form {
  display: grid;
  gap: 24px;
}

.step {
  display: none;
  gap: 18px;
}

.step.is-active {
  display: grid;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px;
}

::placeholder {
  color: #9a9aa0;
}

.form-grid,
.choice-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid label,
.plan-grid label,
.service-list label,
.call-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
}

.choice-grid label {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.plan-card {
  position: relative;
  align-content: start;
  min-height: 250px;
}

.plan-card input {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  min-height: 18px;
}

.plan-card strong {
  color: var(--text);
  font-size: 28px;
}

.plan-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.plan-card ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 13px;
}

.plan-card.is-featured {
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 18px 42px rgba(10, 132, 255, 0.12);
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-list label {
  grid-template-columns: auto minmax(140px, 1fr) minmax(140px, 0.7fr);
  align-items: center;
}

.custom-services,
.package-guidance,
.review-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.package-guidance {
  border-color: rgba(10, 132, 255, 0.2);
  background: var(--blue-soft);
  color: #045fba;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.is-disabled {
  opacity: 0.48;
}

.is-disabled input,
.is-disabled select,
.is-disabled textarea {
  cursor: not-allowed;
}

.custom-services h3,
.review-card h3 {
  margin: 0;
  color: var(--text);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

.service-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 132, 255, 0.08) 1px, transparent 1px),
    #ffffff;
  background-size: 42px 42px;
  box-shadow: var(--shadow);
  cursor: crosshair;
}

.map-grid {
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(29, 29, 31, 0.12);
  border-radius: 10px;
}

.map-radius {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(10, 132, 255, 0.5);
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  pointer-events: none;
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(10, 132, 255, 0.35);
  pointer-events: none;
}

.map-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-soft);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
}

.map-fields {
  align-content: start;
}

.call-preview {
  display: grid;
  gap: 10px;
}

.call-preview button,
.primary-button,
.secondary-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 14px;
}

.primary-button,
.call-preview button {
  border-color: rgba(10, 132, 255, 0.35);
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.secondary-button {
  background: #ffffff;
  color: var(--text);
}

.back-home-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  padding: 0 11px;
  text-decoration: none;
}

.back-home-link:hover {
  color: var(--blue);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

pre {
  overflow: auto;
  min-height: 240px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  white-space: pre-wrap;
}

.ready-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(10, 132, 255, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(10, 132, 255, 0.1);
  padding: 18px;
}

.ready-card strong {
  font-size: 24px;
  color: var(--text);
}

.ready-card span {
  color: var(--text-soft);
  line-height: 1.45;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-card p {
  color: var(--text-soft);
  line-height: 1.45;
}

.review-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(14px);
  opacity: 0;
  padding: 12px 14px;
  border: 1px solid rgba(48, 164, 108, 0.4);
  border-radius: 8px;
  background: #ffffff;
  transition: 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.wizard-legal {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: min(720px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-soft);
  padding: 10px 12px;
  font-size: 12px;
}

.wizard-legal a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 35;
  display: none;
  width: min(420px, calc(100% - 36px));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(29, 29, 31, 0.18);
  padding: 16px;
}

.cookie-banner.is-visible {
  display: grid;
}

.cookie-banner p {
  color: var(--text-soft);
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 820px) {
  .wizard-shell,
  .form-grid,
  .wide-grid,
  .choice-grid,
  .map-layout,
  .review-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    min-height: 340px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-list label {
    grid-template-columns: auto 1fr;
  }

  .service-list label input:last-child {
    grid-column: 1 / -1;
  }

  .wizard-legal {
    position: static;
    margin: 0 18px 18px;
  }

  .cookie-banner {
    bottom: 18px;
  }
}
