

[data-wizard] {
  font-family: var(--wiz-font, system-ui, sans-serif);
  color: var(--wiz-text, #1a1a1a);
  background: var(--wiz-bg, #ffffff);
}

.wiz-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 48px;
}



.wiz-progress-track {
  height: 4px;
  background: var(--wiz-border, #e0e0e0);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 44px;
}

.wiz-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--wiz-primary, #1a1a1a);
  border-radius: 4px;
  transition: width 0.45s ease;
}



.wiz-stage {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.wiz-panel {
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.wiz-panel.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.wiz-panel.wiz-from-right {
  opacity: 0;
  transform: translateX(50px);
}

.wiz-panel.wiz-from-left {
  opacity: 0;
  transform: translateX(-50px);
}

.wiz-panel.wiz-to-left {
  opacity: 0;
  transform: translateX(-50px);
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
}

.wiz-panel.wiz-to-right {
  opacity: 0;
  transform: translateX(50px);
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
}



.wiz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--wiz-muted, #666);
  font-size: 13px;
  font-family: var(--wiz-font, system-ui, sans-serif);
  cursor: pointer;
  padding: 0 0 22px;
  transition: color 0.15s;
  text-decoration: none;
}

.wiz-back:hover { color: var(--wiz-text, #1a1a1a); }

.wiz-back-arrow {
  display: block;
  flex: 0 0 auto;
}



.wiz-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wiz-primary, #1a1a1a);
  margin: 0 0 10px;
}

.wiz-question {
  font-size: clamp(19px, 4vw, 25px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--wiz-text, #1a1a1a);
}

.wiz-subtitle {
  font-size: 14px;
  color: var(--wiz-muted, #666);
  margin: 0 0 28px;
  line-height: 1.6;
}



.wiz-slider-wrap { margin: 4px 0 32px; padding: 0 14px; }

.wiz-slider-value {
  font-size: clamp(40px, 10vw, 58px);
  font-weight: 800;
  color: var(--wiz-primary, #1a1a1a);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
}


.wiz-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  
  background: linear-gradient(
    to right,
    var(--wiz-primary, #1a1a1a) 0%,
    var(--wiz-primary, #1a1a1a) var(--wiz-slider-pct, 50%),
    var(--wiz-border, #e0e0e0)  var(--wiz-slider-pct, 50%),
    var(--wiz-border, #e0e0e0)  100%
  );
  outline: none;
  cursor: pointer;
}

.wiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wiz-primary, #1a1a1a);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s;
}

.wiz-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.wiz-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--wiz-primary, #1a1a1a);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wiz-slider::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: var(--wiz-border, #e0e0e0);
}

.wiz-slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--wiz-muted, #666);
  margin-top: 10px;
}



.wiz-radio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}


.wiz-cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wiz-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.wiz-radio-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  border: 1.5px solid var(--wiz-border, #e0e0e0);
  border-radius: var(--wiz-radius, 10px);
  background: var(--wiz-bg, #fff);
  color: var(--wiz-text, #1a1a1a);
  font-family: var(--wiz-font, system-ui, sans-serif);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: center;
  
  white-space: normal;
  line-height: 1.3;
}

.wiz-radio-btn:hover {
  border-color: var(--wiz-primary, #1a1a1a);
  background: var(--wiz-surface, #f5f5f5);
}

.wiz-radio-btn.is-selected {
  border-color: var(--wiz-primary, #1a1a1a);
  background: var(--wiz-primary, #1a1a1a);
  color: #fff;
}



.wiz-yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.wiz-yesno-btn {
  padding: 18px 16px;
  border: 1.5px solid var(--wiz-border, #e0e0e0);
  border-radius: var(--wiz-radius, 10px);
  background: var(--wiz-bg, #fff);
  color: var(--wiz-text, #1a1a1a);
  font-family: var(--wiz-font, system-ui, sans-serif);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  text-align: center;
}

.wiz-yesno-btn:hover {
  border-color: var(--wiz-primary, #1a1a1a);
  background: var(--wiz-surface, #f5f5f5);
}

.wiz-yesno-btn:active { transform: scale(0.97); }



.wiz-loading {
  text-align: center;
  padding: 12px 0 20px;
}

.wiz-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--wiz-border, #e0e0e0);
  border-top-color: var(--wiz-primary, #1a1a1a);
  border-radius: 50%;
  animation: wiz-spin 0.75s linear infinite;
  margin: 0 auto 28px;
}

@keyframes wiz-spin { to { transform: rotate(360deg); } }

.wiz-loading-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--wiz-text, #1a1a1a);
  margin: 0 0 28px;
}

.wiz-checks {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.wiz-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--wiz-muted, #666);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.wiz-check-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wiz-primary, #1a1a1a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}



.wiz-reject {
  text-align: center;
  padding: 8px 0 12px;
}

.wiz-reject-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.wiz-reject-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--wiz-text, #1a1a1a);
}

.wiz-reject-msg {
  font-size: 15px;
  color: var(--wiz-muted, #666);
  margin: 0 0 28px;
  line-height: 1.65;
}

.wiz-reject-criteria {
  background: var(--wiz-surface, #f5f5f5);
  border-radius: var(--wiz-radius, 10px);
  padding: 20px 24px;
  text-align: left;
  margin-bottom: 28px;
}

.wiz-reject-criteria > p {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wiz-muted, #666);
  margin: 0 0 12px;
}

.wiz-reject-criteria ol {
  margin: 0;
  padding-left: 20px;
  color: var(--wiz-text, #1a1a1a);
  font-size: 14px;
  line-height: 1.9;
}

.wiz-back-wide { width: 100%; gap: 8px; }



.wiz-form { margin-top: 8px; }

.wiz-field { margin-bottom: 18px; }

.wiz-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wiz-text, #1a1a1a);
  margin-bottom: 6px;
}

.wiz-label span { color: var(--wiz-accent, #cc3366); }

.wiz-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--wiz-border, #e0e0e0);
  border-radius: var(--wiz-radius, 10px);
  background: var(--wiz-bg, #fff);
  color: var(--wiz-text, #1a1a1a);
  font-family: var(--wiz-font, system-ui, sans-serif);
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.wiz-input:focus {
  border-color: var(--wiz-primary, #1a1a1a);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wiz-primary, #1a1a1a) 12%, transparent);
}

.wiz-input.is-invalid { border-color: #dc2626; }


.wiz-tel-wrap {
  display: flex;
  border: 1.5px solid var(--wiz-border, #e0e0e0);
  border-radius: var(--wiz-radius, 10px);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wiz-tel-wrap:focus-within {
  border-color: var(--wiz-primary, #1a1a1a);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wiz-primary, #1a1a1a) 12%, transparent);
}

.wiz-tel-prefix {
  padding: 12px 14px;
  background: var(--wiz-surface, #f5f5f5);
  color: var(--wiz-muted, #666);
  font-size: 14px;
  font-weight: 500;
  border-right: 1.5px solid var(--wiz-border, #e0e0e0);
  white-space: nowrap;
  user-select: none;
}

.wiz-tel-input {
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
}

.wiz-tel-input:focus { box-shadow: none; }


.wiz-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}


.wiz-char-count {
  display: block;
  font-size: 12px;
  color: var(--wiz-muted, #666);
  text-align: right;
  margin-top: 4px;
}

.wiz-char-count.is-near-limit {
  color: #dc2626;
  font-weight: 600;
}


.wiz-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.wiz-pills-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.wiz-pills-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); }

.wiz-pill {
  display: block;
  cursor: pointer;
}

.wiz-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wiz-pill span {
  display: block;
  padding: 10px 16px;
  border: 1.5px solid var(--wiz-border, #e0e0e0);
  border-radius: var(--wiz-radius, 10px);
  font-size: 14px;
  font-weight: 500;
  color: var(--wiz-muted, #666);
  background: transparent;
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.wiz-pill:hover span {
  border-color: var(--wiz-primary, #1a1a1a);
  color: var(--wiz-primary, #1a1a1a);
}

.wiz-pill.is-selected span,
.wiz-pill input[type="radio"]:checked + span {
  border-color: var(--wiz-primary, #1a1a1a);
  background: var(--wiz-primary, #1a1a1a);
  color: #fff;
}


.wiz-field--terms .wiz-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--wiz-muted, #666);
  cursor: pointer;
  line-height: 1.55;
}

.wiz-field--terms input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--wiz-primary, #1a1a1a);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.wiz-field--terms a {
  color: var(--wiz-primary, #1a1a1a);
}


.wiz-field-error {
  display: block;
  font-size: 12px;
  color: #dc2626;
  margin-top: 5px;
  min-height: 15px;
  line-height: 1.3;
}


.wiz-form-error {
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 10px;
}



.wiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--wiz-radius, 10px);
  font-family: var(--wiz-font, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
}

.wiz-btn:hover:not(:disabled)  { opacity: 0.85; }
.wiz-btn:active:not(:disabled) { transform: scale(0.98); }
.wiz-btn:disabled              { opacity: 0.4; cursor: not-allowed; }

.wiz-btn-primary {
  width: 100%;
  background: var(--wiz-primary, #1a1a1a);
  color: #ffffff;
  margin-top: 8px;
}

.wiz-btn-outline {
  background: transparent;
  color: var(--wiz-primary, #1a1a1a);
  border-color: var(--wiz-primary, #1a1a1a);
}

.wiz-btn-submit { width: 100%; }



.wiz-error {
  color: #dc2626;
  font-size: 14px;
  padding: 8px 0;
}



@media (max-width: 480px) {
  .wiz-wrap { padding: 0 0 36px; }

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

  .wiz-slider-value { font-size: 44px; }

  .wiz-yesno { gap: 10px; }

  .wiz-btn { padding: 13px 20px; }
}
