/* ---- WolfTech repair-request wizard (multi-step) ---- */
.wt-req {
  --wt-req-blue: var(--blue, #2f68f5);
  --wt-req-soft: var(--soft-blue, #eef3ff);
  --wt-req-line: var(--line, #e3e8f2);
  --wt-req-muted: var(--muted, #5b6b8c);
  --wt-req-ink: #101828;
  --wt-req-radius: 18px;
  margin-top: 8px;
  color: var(--wt-req-ink);
}

.wt-req-progress {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 4px 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.wt-req-progress::-webkit-scrollbar {
  display: none;
}

.wt-req-progress li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 110px;
  padding: 10px 14px;
  border: 1px solid var(--wt-req-line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--wt-req-muted);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.wt-req-progress-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--wt-req-soft);
  color: var(--wt-req-blue);
  font-size: 12px;
  font-weight: 900;
}

.wt-req-progress li.is-current {
  border-color: var(--wt-req-blue);
  background: var(--wt-req-soft);
  color: var(--wt-req-blue);
}

.wt-req-progress li.is-done .wt-req-progress-dot {
  background: #059669;
  color: #fff;
}

.wt-req-form {
  border: 1px solid var(--wt-req-line);
  border-radius: var(--wt-req-radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.wt-req-step {
  display: none;
}

.wt-req-step.is-active {
  display: block;
  animation: wt-req-fade 0.25s ease;
}

@keyframes wt-req-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.wt-req-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--wt-req-blue);
}

.wt-req-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.wt-req-lead,
.wt-req-privacy,
.wt-req-summary-note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--wt-req-muted);
}

.wt-req-detect {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(47, 104, 245, 0.22);
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%), #ffffff;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wt-req-detect:hover {
  border-color: var(--wt-req-blue);
  box-shadow: 0 6px 20px rgba(47, 104, 245, 0.08);
}

.wt-req-detect-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.wt-req-detect-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6);
  animation: wt-req-pulse 2s infinite ease-in-out;
}

@keyframes wt-req-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.wt-req-detect-badge-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #059669;
  letter-spacing: 0.02em;
}

.wt-req-detect-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.wt-req-detect-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.wt-req-detect-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  flex-shrink: 0;
}

.wt-req-detect-icon svg {
  width: 18px;
  height: 18px;
  color: #059669;
}

.wt-req-detect-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wt-req-detect-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wt-req-muted);
}

.wt-req-detect-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--wt-req-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wt-req-detect-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wt-req-detect-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.wt-req-detect-pill.is-selected {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.wt-req-detect-pill.is-idle {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.wt-req-detect-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  background: var(--wt-req-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(47, 104, 245, 0.2);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.wt-req-detect-apply-btn:hover {
  background: #1e4fd9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 104, 245, 0.3);
}

.wt-req-detect-apply-btn:active {
  transform: translateY(0);
}

.wt-req-options {
  display: grid;
  gap: 10px;
}

.wt-req-options-devices,
.wt-req-options-delivery {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wt-req-options-faults {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wt-req-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--wt-req-line);
  border-radius: 14px;
  background: #fff;
  text-align: start;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.wt-req-opt:hover {
  border-color: var(--wt-req-blue);
  box-shadow: 0 8px 20px rgba(47, 104, 245, 0.08);
}

.wt-req-opt.is-selected,
.wt-req-opt[aria-pressed='true'] {
  border-color: var(--wt-req-blue);
  background: var(--wt-req-soft);
}

.wt-req-opt-icon svg {
  width: 26px;
  height: 26px;
  color: var(--wt-req-blue);
}

.wt-req-opt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wt-req-opt-body strong {
  font-size: 14px;
  font-weight: 800;
}

.wt-req-opt-body small {
  font-size: 12px;
  line-height: 1.8;
  color: var(--wt-req-muted);
}

.wt-req-opt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.wt-req-opt-meta em {
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4f6fb;
  color: #33415c;
}

.wt-req-brands,
.wt-req-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 14px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}

.wt-req-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--wt-req-line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wt-req-chip .wt-req-opt-body {
  gap: 2px;
}

.wt-req-chip:hover {
  border-color: var(--wt-req-blue);
  background: var(--wt-req-soft);
}

.wt-req-chip.is-selected,
.wt-req-chip[aria-pressed='true'] {
  border-color: var(--wt-req-blue);
  background: var(--wt-req-soft);
  color: var(--wt-req-blue);
}

.wt-req-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--wt-req-muted);
}

.wt-req-urgency {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.wt-req-urgency legend {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.wt-req-urgency-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- fields, summary, actions ---- */
.wt-req-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.wt-req-field > span {
  font-size: 12px;
  font-weight: 800;
  color: #33415c;
}

.wt-req-field input,
.wt-req-field textarea,
.wt-req-field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--wt-req-line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: inherit;
}

.wt-req-field input:focus,
.wt-req-field textarea:focus,
.wt-req-field select:focus {
  outline: none;
  border-color: var(--wt-req-blue);
  box-shadow: 0 0 0 3px rgba(47, 104, 245, 0.12);
}

.wt-req-grid {
  display: grid;
  gap: 0 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.wt-req-field-wide {
  grid-column: 1 / -1;
}

.wt-req-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 14px;
  font-size: 13px;
  line-height: 1.9;
  cursor: pointer;
}

.wt-req-checkbox input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--wt-req-blue);
}

/* The WhatsApp number mirrors the mobile until the visitor unticks the box. */
.wt-req-whatsapp-same {
  margin-bottom: 4px;
}

.wt-req-field input.is-mirrored {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
}

.wt-req-address,
.wt-req-schedule {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--wt-req-line);
  border-radius: 14px;
  background: #fbfcff;
}

.wt-req-schedule {
  display: grid;
  gap: 0 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wt-req-summary-card,
.wt-req-contact {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--wt-req-line);
  border-radius: 16px;
  background: #fbfcff;
}

.wt-req-summary-card h4,
.wt-req-contact h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
}

.wt-req-summary,
.wt-req-success .wt-req-summary {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 13px;
}

.wt-req-summary dt {
  font-weight: 800;
  color: #33415c;
}

.wt-req-summary dd {
  margin: 0;
  line-height: 1.9;
  word-break: break-word;
}

.wt-req-errors {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}

.wt-req-errors ul {
  margin: 8px 0 0;
  padding-inline-start: 18px;
}

.wt-req-error {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
}

.wt-req-nav,
.wt-req-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wt-req-nav {
  justify-content: space-between;
  border-top: 1px solid var(--wt-req-line);
  padding-top: 16px;
}

.wt-req-nav .btn svg,
.wt-req-actions .btn svg {
  width: 18px;
  height: 18px;
}

.wt-req-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.wt-req-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wt-req-noscript {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 13px;
}

/* ---- success panel ---- */
.wt-req-success {
  border: 1px solid #a7f3d0;
  border-radius: var(--wt-req-radius);
  background: #f0fdf4;
  padding: 22px;
}

.wt-req-success-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.wt-req-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
}

.wt-req-success-icon svg {
  width: 24px;
  height: 24px;
}

.wt-req-success h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}

.wt-req-success p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #14532d;
}

.wt-req-reference {
  margin: 0 0 14px;
  font-size: 14px;
}

.wt-req-reference strong {
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--wt-req-blue);
}

/* ---- step 4: precise location capture ---- */
.wt-req-geo {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--wt-req-line);
  border-radius: 16px;
  background: #f8faff;
}

.wt-req-geo-head strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.wt-req-geo-head .wt-req-hint {
  margin: 4px 0 12px;
}

.wt-req-geo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wt-req-geo-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wt-req-geo-button svg {
  width: 18px;
  height: 18px;
}

.wt-req-geo-button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.wt-req-geo-status {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  color: #33415c;
}

.wt-req-geo-status[data-tone='busy'] {
  color: var(--wt-req-blue);
}

.wt-req-geo-status[data-tone='ok'] {
  color: #047857;
}

.wt-req-geo-status[data-tone='warn'] {
  color: #b45309;
}

.wt-req-geo-status[data-tone='error'] {
  color: #dc2626;
}

.wt-req-geo-link {
  margin-top: 12px;
}

.wt-req-geo-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wt-req-geo-link-row input {
  flex: 1 1 220px;
}

.wt-req-geo-link-row .btn {
  white-space: nowrap;
}

.wt-req-pin {
  margin: 14px 0 0;
}

.wt-req-pin-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wt-req-line);
  border-radius: 14px;
  background: var(--wt-req-soft);
  aspect-ratio: 16 / 9;
}

.wt-req-pin-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.wt-req-pin-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
}

.wt-req-pin-badge {
  padding: 4px 10px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #14532d;
  font-weight: 800;
  direction: ltr;
}

.wt-req-pin-link,
.wt-req-pin-clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--wt-req-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.wt-req-pin-clear {
  color: #b91c1c;
}

.wt-req-geo-or {
  margin: 16px 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  color: var(--wt-req-muted);
}

.wt-req-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}

.wt-req-date-chip .wt-req-opt-body strong {
  font-size: 12px;
}

.wt-req-date-chip .wt-req-opt-body small {
  font-size: 11px;
  color: var(--wt-req-muted);
}

.wt-req-date-chip.is-selected .wt-req-opt-body small {
  color: var(--wt-req-blue);
}

.wt-req-steps-track {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.wt-req-steps-track li {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #d1fae5;
}

.wt-req-steps-track li.is-done {
  background: #059669;
}

.wt-req-steps-track li.is-current {
  background: var(--wt-req-blue);
}

.wt-req-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
}

/* ---- tracker ---- */
.wt-req-track-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--wt-req-line);
  border-radius: 16px;
  background: #fbfcff;
}

.wt-req-history {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.wt-req-history li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--wt-req-line);
  font-size: 13px;
}

.wt-req-history time,
.wt-req-history span {
  font-size: 12px;
  color: var(--wt-req-muted);
}

@media (max-width: 640px) {
  .wt-req-form,
  .wt-req-success {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .wt-req-progress {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
  }

  .wt-req-progress li {
    flex: 0 0 auto;
    min-width: auto;
    padding: 7px 11px;
    font-size: 11px;
  }

  .wt-req-detect {
    padding: 12px 14px;
    gap: 10px;
    margin-bottom: 16px;
  }

  .wt-req-detect-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wt-req-detect-action {
    width: 100%;
    justify-content: space-between;
  }

  .wt-req-options-devices {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .wt-req-opt.wt-req-device {
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
    min-height: 72px;
  }

  .wt-req-opt.wt-req-device .wt-req-opt-icon svg {
    width: 22px;
    height: 22px;
  }

  .wt-req-opt.wt-req-device .wt-req-opt-body strong {
    font-size: 12.5px;
    line-height: 1.3;
  }

  .wt-req-opt.wt-req-device .wt-req-opt-body small {
    font-size: 10.5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wt-req-field input,
  .wt-req-field textarea,
  .wt-req-field select {
    font-size: 16px; /* prevent iOS Safari auto-zoom */
  }

  .wt-req-summary {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .wt-req-summary dd {
    margin-bottom: 10px;
  }

  .wt-req-actions .btn,
  .wt-req-nav .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .wt-req-options-devices {
    grid-template-columns: 1fr;
  }
}

