/* ═══════════════════════════════════════════════════════════
   MULTI-STEP WIZARD FORM — Instalator24
   ═══════════════════════════════════════════════════════════ */

.inst24-wizard {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(8,23,70,0.12);
  padding: 36px 40px;
  max-width: 640px;
  width: 100%;
  position: relative;
}

/* ─── Progress bar ─── */
.wiz-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
}
.wiz-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--gray-100);
  z-index: 0;
}
.wiz-progress-step {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--gray-300);
  transition: all 0.3s ease;
}
.wiz-progress-step.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(222,152,47,0.4);
}
.wiz-progress-step.done {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.wiz-progress-step.done span { display: none; }
.wiz-progress-step.done::before {
  content: '\f00c'; /* fa-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 13px;
}

/* ─── Steps ─── */
.wiz-step { display: none; animation: wiz-fade 0.35s ease; }
.wiz-step.active { display: block; }
@keyframes wiz-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wiz-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.3;
}
.wiz-desc {
  color: var(--gray-500);
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.6;
}

/* ─── Service tiles (step 1) ─── */
.wiz-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.wiz-svc {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 12px;
  padding: 18px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  text-align: center;
  min-height: 110px;
}
.wiz-svc i {
  font-size: 26px;
  color: var(--orange);
  transition: transform 0.2s;
}
.wiz-svc:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(222,152,47,0.15);
}
.wiz-svc:hover i { transform: scale(1.15); }
.wiz-svc.selected {
  border-color: var(--orange);
  background: rgba(222,152,47,0.05);
}
.wiz-svc.selected i { color: var(--orange-dark); }

.wiz-confirm {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px;
  margin-bottom: 14px;
}
.wiz-confirm-icon { font-size: 28px; color: #16a34a; flex-shrink: 0; }
.wiz-confirm strong { color: var(--navy); }
.wiz-confirm small { color: var(--gray-500); font-size: 13px; }

.wiz-link {
  background: transparent;
  border: 0;
  color: var(--orange);
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  font-size: 13px;
  text-decoration: underline;
}
.wiz-link:hover { color: var(--orange-dark); }

/* ─── Fields ─── */
.wiz-field { margin-bottom: 18px; }
.wiz-field label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}
.wiz-field input[type="text"],
.wiz-field input[type="tel"],
.wiz-field input[type="email"],
.wiz-field select,
.wiz-field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  outline: none;
  transition: all 0.2s;
}
.wiz-field input:focus,
.wiz-field select:focus,
.wiz-field textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(222,152,47,0.1);
}

/* ─── Range slider ─── */
.wiz-range {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
}
.wiz-range input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--gray-200);
  border-radius: 3px;
  outline: none;
}
.wiz-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(222,152,47,0.4);
  border: 3px solid #fff;
}
.wiz-range input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(222,152,47,0.4);
}
.wiz-range output {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: var(--navy);
  min-width: 90px;
  text-align: right;
  white-space: nowrap;
}
.wiz-range output strong {
  color: var(--orange);
  font-size: 18px;
  font-weight: 800;
}

/* ─── Consent checkbox ─── */
.wiz-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.55;
  cursor: pointer;
  margin: 12px 0 18px;
}
.wiz-consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--orange); }
.wiz-consent a { color: var(--orange); text-decoration: underline; }

/* ─── Nav buttons ─── */
.wiz-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.wiz-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 10px;
  cursor: pointer;
  border: 0;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wiz-btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(222,152,47,0.35);
  flex: 1 1 auto;
  justify-content: center;
  min-width: 160px;
}
.wiz-btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.wiz-btn--primary[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.wiz-btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}
.wiz-btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

.wiz-submit {
  font-size: 15px;
  padding: 16px 30px;
}

/* ─── Trust row (step 4) ─── */
.wiz-trust {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  color: var(--gray-500);
}
.wiz-trust i { color: #16a34a; margin-right: 4px; }

/* ─── Thank you state ─── */
.wiz-thanks {
  text-align: center;
  padding: 30px 10px;
}
.wiz-thanks-icon {
  font-size: 64px;
  color: #16a34a;
  margin-bottom: 16px;
  animation: wiz-pop 0.5s ease;
}
@keyframes wiz-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.wiz-thanks h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 12px;
}
.wiz-thanks p { color: var(--gray-700); line-height: 1.7; margin: 0 0 8px; }

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .inst24-wizard { padding: 24px 18px; border-radius: 16px; }
  .wiz-progress { margin-bottom: 22px; }
  .wiz-progress-step { width: 32px; height: 32px; font-size: 12px; }
  .wiz-progress::before { left: 16px; right: 16px; }
  .wiz-title { font-size: 19px; line-height: 1.3; }
  .wiz-desc { font-size: 13px; margin-bottom: 18px; }

  /* Service tiles — easier to tap, clearer */
  .wiz-services { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wiz-svc { min-height: 110px; padding: 16px 10px; font-size: 13px; gap: 10px; }
  .wiz-svc i { font-size: 26px; }

  /* Fields — iOS-safe 16px font + bigger padding */
  .wiz-field { margin-bottom: 16px; }
  .wiz-field label { font-size: 13px; margin-bottom: 6px; }
  .wiz-field input,
  .wiz-field select,
  .wiz-field textarea { padding: 14px 16px; font-size: 16px !important; }

  /* Range slider — bigger thumb for finger control */
  .wiz-range { padding: 14px 16px; gap: 14px; }
  .wiz-range input[type="range"] { height: 8px; }
  .wiz-range input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; }
  .wiz-range input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; }
  .wiz-range output { font-size: 14px; min-width: 80px; }
  .wiz-range output strong { font-size: 17px; }

  /* Nav buttons — primary on bottom, full width, big tap area */
  .wiz-nav { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .wiz-btn { width: 100%; justify-content: center; padding: 15px 22px; font-size: 15px; min-height: 52px; }
  .wiz-submit { padding: 17px 24px; font-size: 16px; }

  /* Consent checkbox — larger tap area */
  .wiz-consent { font-size: 12px; padding: 4px 0; }
  .wiz-consent input { width: 18px; height: 18px; margin-top: 2px; }

  /* Confirmation (when pre-selected) */
  .wiz-confirm { padding: 14px 16px; gap: 12px; }
  .wiz-confirm-icon { font-size: 24px; }

  /* Thank-you state */
  .wiz-thanks { padding: 24px 8px; }
  .wiz-thanks-icon { font-size: 52px; }
  .wiz-thanks h3 { font-size: 21px; }
  .wiz-thanks p { font-size: 14px; }
}

/* iPhone SE / very small */
@media (max-width: 380px) {
  .inst24-wizard { padding: 20px 14px; }
  .wiz-title { font-size: 17px; }
  .wiz-svc { min-height: 100px; padding: 14px 8px; font-size: 12px; }
  .wiz-svc i { font-size: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wiz-step { animation: none; }
  .wiz-thanks-icon { animation: none; }
  .wiz-svc, .wiz-btn { transition: none; }
}
