.wz-page {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(183, 243, 74, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(43, 198, 83, 0.12), transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wz-header .header-inner {
  justify-content: space-between;
}

.wz-page .wz-phone {
  display: flex;
}

.wz-main {
  flex: 1;
  padding: 40px 0 64px;
}

.wz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  max-width: 1080px;
}

.wz-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: clip;
}

.wz-top {
  padding: 24px 40px 0;
}

.wz-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.wz-count b {
  color: var(--ink);
}

.wz-mini {
  display: none;
  font-weight: 700;
  color: var(--green-700);
}

.wz-bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint-100);
  overflow: hidden;
}

.wz-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #7bdc3c);
  transition: width 0.6s var(--ease);
}

#wizard {
  padding: 32px 40px 32px;
}

.wz-step {
  display: none;
}

.wz-step.is-active {
  display: block;
  animation: wz-in 0.5s var(--ease) both;
}

.wz-step.is-active.from-left {
  animation-name: wz-in-left;
}

@keyframes wz-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wz-in-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wz-step h1,
.wz-step h2 {
  font-size: clamp(26px, 3.2vw, 34px);
}

.wz-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}

.wz-amount {
  margin-top: 26px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 20px;
  background: var(--mint-50);
  border: 2px solid transparent;
  transition: border-color 0.2s;
  width: fit-content;
  max-width: 100%;
}

.wz-amount:focus-within {
  border-color: var(--green);
}

.wz-amount input {
  border: 0;
  background: none;
  outline: none;
  width: 7.2ch;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 0;
}

.wz-amount span {
  font-size: 24px;
  font-weight: 800;
  color: var(--muted);
}

.wz-terms .chip {
  min-height: 46px;
  padding: 0 18px;
}

.wz-quote {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.wz-quote div {
  padding: 18px 22px;
}

.wz-quote div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.wz-quote small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.wz-quote strong {
  font-size: 20px;
}

.wz-quote div:first-child strong {
  font-size: 28px;
  color: var(--lime);
  letter-spacing: -0.02em;
}

.opts {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

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

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.opt:hover {
  border-color: var(--mint-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff center / 14px no-repeat;
  transition: all 0.2s;
}

.opt:has(input:checked) {
  border-color: var(--green);
  background: var(--mint-50);
}

.opt:has(input:checked)::after {
  border-color: var(--green);
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.opt:has(input:focus-visible) {
  outline: 3px solid rgba(43, 198, 83, 0.35);
  outline-offset: 2px;
}

.opt-ico {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mint-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    color 0.2s;
}

.opt:has(input:checked) .opt-ico {
  background: var(--green);
  color: #fff;
}

.opt-ico svg {
  width: 24px;
  height: 24px;
}

.opt-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}

.opt-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.opts-big .opt {
  padding: 20px 22px;
}

.opts-big .opt-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.opts-big .opt-text strong {
  font-size: 18px;
}

.opt-sm {
  padding: 16px 18px;
}

.kids {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kids strong {
  display: block;
}

.kids small {
  color: var(--muted);
  font-size: 14px;
}

.stepper {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stepper button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.stepper button:hover {
  background: var(--green);
  color: #fff;
}

.stepper input {
  width: 36px;
  border: 0;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  background: none;
  outline: none;
}

.fields {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.fields.two {
  grid-template-columns: 1fr 1fr;
}

.fields.addr {
  grid-template-columns: 2fr 1fr;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-3);
}

.field label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.field input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 17px;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field input::placeholder {
  color: #a3b0b9;
  font-weight: 500;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(43, 198, 83, 0.14);
}

.field.is-invalid input {
  border-color: var(--danger);
}

.field.is-invalid input:focus {
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.14);
}

.field.is-valid input {
  border-color: var(--mint-200);
  background: right 16px center / 20px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232bc653' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.input-prefix,
.input-suffix {
  position: relative;
}

.input-prefix span,
.input-suffix span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}

.input-prefix span {
  left: 18px;
}

.input-prefix input {
  padding-left: 70px;
}

.input-suffix span {
  right: 18px;
}

.input-suffix input {
  padding-right: 52px;
}

.field.is-valid .input-suffix input {
  background-position: right 48px center;
}

.err {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
}

.err:empty {
  display: none;
}

.err-group {
  margin-top: 12px;
}

.hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.wz-safe {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--mint-50);
  font-size: 14px;
  color: var(--ink-3);
  max-width: 560px;
}

.wz-safe svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--green-600);
  margin-top: 1px;
}

.check {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-3);
  cursor: pointer;
  max-width: 640px;
}

.check input {
  position: absolute;
  opacity: 0;
}

.check .box {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid #b7c4cc;
  background: #fff;
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.2s;
}

.check .box svg {
  width: 16px;
  height: 16px;
}

.check input:checked + .box {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.check input:focus-visible + .box {
  outline: 3px solid rgba(43, 198, 83, 0.35);
  outline-offset: 2px;
}

.wz-nav {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}

.wz-back:hover {
  color: var(--ink);
  background: var(--bg);
}

.wz-back svg {
  width: 18px;
  height: 18px;
}

.wz-back[hidden] {
  visibility: hidden;
  display: inline-flex;
}

.wz-next {
  min-width: 200px;
  min-height: 58px;
  font-size: 17px;
}

.wz-next[hidden] {
  display: none;
}

.wz-next.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.wz-done {
  text-align: center;
  padding: 20px 0 10px;
}

.wz-done .wz-sub {
  margin-inline: auto;
}

.done-ico {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--mint-100);
  display: grid;
  place-items: center;
}

.done-ico svg {
  width: 64px;
  height: 64px;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.done-ico circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 0.7s var(--ease) 0.1s forwards;
}

.done-ico path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.5s var(--ease) 0.6s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

[data-done-tel] {
  white-space: nowrap;
}

.done-sum {
  margin: 28px auto 0;
  max-width: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  text-align: left;
}

.done-sum div {
  padding: 14px 16px;
  background: #fff;
}

.done-sum small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.done-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wz-final .wz-nav,
.wz-final .wz-top,
.wz-final ~ .wz-aside .sum-card {
  display: none;
}

.wz-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.sum-card {
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(183, 243, 74, 0.25), transparent 70%),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.sum-type {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(43, 198, 83, 0.2);
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
}

.sum-amount {
  margin-top: 14px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sum-list {
  margin: 18px 0 0;
  display: grid;
  gap: 0;
}

.sum-list div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.sum-list dt {
  color: rgba(255, 255, 255, 0.6);
}

.sum-list dd {
  margin: 0;
  font-weight: 700;
}

.sum-list div:nth-child(2) dd {
  color: var(--lime);
  font-size: 17px;
}

.sum-example {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.sum-trust {
  margin: 0;
  padding: 20px 22px;
  list-style: none;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.sum-trust li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sum-trust .tick {
  width: 22px;
  height: 22px;
}

.sum-trust .tick svg {
  width: 12px;
  height: 12px;
}

.sum-mascot {
  position: relative;
  padding: 18px 18px 0;
  border-radius: 20px;
  background:
    radial-gradient(240px 160px at 0% 100%, rgba(183, 243, 74, 0.35), transparent 70%),
    #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tip {
  position: relative;
  margin-left: 92px;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--mint-100);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.tip.is-new {
  animation: tip-in 0.45s var(--ease);
}

@keyframes tip-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sum-mascot-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: -40px;
}

.sum-mascot-row img {
  flex: none;
  width: 96px;
  height: 120px;
  object-fit: cover;
  object-position: top;
}

.sum-mascot-row div {
  padding: 50px 0 16px;
  line-height: 1.35;
}

.sum-mascot-row strong {
  display: block;
  font-size: 15px;
}

.sum-mascot-row small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.sum-mascot-row a {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-700);
  text-decoration: none;
}

.wz-footer {
  padding: 24px 0 32px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.wz-footer a {
  color: var(--ink-3);
}

@media (max-width: 960px) {
  .wz-layout {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
  .wz-aside {
    position: static;
  }
  .wz-mini {
    display: inline;
  }
  .sum-trust,
  .sum-mascot {
    display: none;
  }
}

@media (max-width: 640px) {
  .wz-main {
    padding: 16px 0 40px;
  }
  .wz-header .header-phone small {
    display: none;
  }
  .wz-card {
    border-radius: 22px;
  }
  .wz-top {
    padding: 20px 20px 0;
  }
  #wizard {
    padding: 24px 20px 22px;
  }
  .wz-amount input {
    font-size: 40px;
  }
  .wz-quote div {
    padding: 16px 18px;
  }
  .wz-quote div:first-child strong {
    font-size: 24px;
  }
  .wz-quote strong {
    font-size: 17px;
  }
  .opts-grid {
    grid-template-columns: 1fr;
  }
  .opt {
    padding: 14px 16px;
    gap: 14px;
  }
  .opt::after {
    width: 20px;
    height: 20px;
    background-size: 12px;
  }
  .opts-big .opt {
    padding: 16px;
  }
  .opts-big .opt-ico {
    width: 46px;
    height: 46px;
  }
  .opts-big .opt-text strong {
    font-size: 17px;
  }
  .opt-ico {
    width: 42px;
    height: 42px;
  }
  .fields.two,
  .fields.addr {
    grid-template-columns: 1fr;
  }
  .kids {
    flex-direction: column;
    align-items: flex-start;
  }
  .wz-nav {
    position: sticky;
    bottom: 0;
    margin: 28px -20px -22px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .wz-next {
    min-width: 0;
    flex: 1;
  }
  .sum-card {
    padding: 22px;
  }
}

@media (max-width: 380px) {
  .wz-header .header-phone strong {
    font-size: 13px;
  }
  .wz-amount input {
    font-size: 34px;
  }
}
