/* MKP DeviceFarm · Wizard styles
 * 4-step modal · big bottom buttons · friendly Thai */

.wiz-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9600;
  display: flex; align-items: center; justify-content: center;
  animation: wiz-fade 180ms ease-out;
  padding: 16px;
}
@keyframes wiz-fade { from { opacity: 0 } to { opacity: 1 } }

.wiz-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 640px; max-width: 100%; max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: wiz-pop 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes wiz-pop { from { transform: scale(0.94); opacity: 0 } to { transform: scale(1); opacity: 1 } }

.wiz-hdr {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.wiz-hdr .wiz-icon { font-size: 32px; color: var(--accent); line-height: 1; }
.wiz-hdr .wiz-title { font-size: 18px; font-weight: 700; flex: 1; }
.wiz-hdr .wiz-close {
  background: transparent; border: 0; color: var(--text-muted);
  cursor: pointer; font-size: 22px; line-height: 1; padding: 4px;
  border-radius: 4px;
}
.wiz-hdr .wiz-close:hover { color: var(--text-primary); background: var(--bg-hover); }

.wiz-stepper {
  display: flex; gap: 4px; padding: 18px 28px 6px;
}
.wiz-step {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--bg-hover);
  transition: background 0.3s;
}
.wiz-step.done   { background: var(--success); }
.wiz-step.active { background: var(--accent); }

.wiz-step-label {
  padding: 0 28px 14px;
  font-size: 12px;
  color: var(--text-secondary);
}
.wiz-step-label b { color: var(--text-primary); font-weight: 600; }

.wiz-body {
  flex: 1;
  padding: 12px 28px 24px;
  overflow-y: auto;
}
.wiz-q { font-size: 17px; font-weight: 700; margin-bottom: 18px; line-height: 1.4; }
.wiz-help { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }

.wiz-choices { display: flex; flex-direction: column; gap: 10px; }
.wiz-choice {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.wiz-choice:hover { border-color: var(--accent-hover); background: var(--bg-hover); }
.wiz-choice.selected { border-color: var(--accent); background: rgba(234,134,35,0.08); }
.wiz-choice input { margin-top: 4px; accent-color: var(--accent); }
.wiz-choice .choice-icon { font-size: 24px; line-height: 1; }
.wiz-choice .choice-text { flex: 1; }
.wiz-choice .choice-text b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.wiz-choice .choice-text span { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

.wiz-input-group { margin-bottom: 14px; }
.wiz-input-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.wiz-input-group input, .wiz-input-group select, .wiz-input-group textarea {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 14px; color: var(--text-primary);
  font-size: 14px; font-family: inherit; line-height: 1.5;
  box-sizing: border-box;
}
.wiz-input-group input:focus, .wiz-input-group select:focus, .wiz-input-group textarea:focus { outline: none; border-color: var(--accent); }
.wiz-input-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

.wiz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.wiz-chip {
  background: var(--bg-primary); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-primary);
}
.wiz-chip .x { cursor: pointer; color: var(--text-muted); }
.wiz-chip .x:hover { color: var(--error); }

.wiz-account-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  max-height: 280px; overflow-y: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
}
.wiz-account {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.wiz-account:hover { background: var(--bg-hover); }
.wiz-account.selected { border-color: var(--accent); background: rgba(234,134,35,0.08); }
.wiz-account input { accent-color: var(--accent); }
.wiz-account .handle { flex: 1; font-weight: 600; }
.wiz-account .pill { font-size: 10px; padding: 2px 6px; }

.wiz-summary {
  background: var(--bg-primary);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
}
.wiz-summary h5 { margin: 0 0 12px 0; font-size: 14px; color: var(--text-primary); }
.wiz-summary-row { display: flex; gap: 14px; padding: 6px 0; font-size: 13px; line-height: 1.5; }
.wiz-summary-row .k { color: var(--text-secondary); min-width: 130px; }
.wiz-summary-row .v { color: var(--text-primary); font-weight: 500; flex: 1; }

.wiz-footer {
  display: flex; gap: 10px; padding: 18px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.wiz-footer .spacer { flex: 1; }
.wiz-btn {
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
}
.wiz-btn:hover { background: var(--bg-hover); border-color: var(--accent); }
.wiz-btn.primary {
  background: var(--accent); color: #000; border-color: var(--accent);
  font-weight: 700;
}
.wiz-btn.primary:hover { background: var(--accent-hover); }
.wiz-btn.primary:disabled { opacity: 0.5; cursor: not-allowed; }
.wiz-btn.danger { color: var(--error); border-color: var(--error); }
.wiz-btn.danger:hover { background: var(--error); color: #fff; }

.wiz-error { color: var(--error); font-size: 13px; padding: 10px 14px; margin-bottom: 12px; background: var(--error-bg); border-radius: 6px; }
