/* Demo quest: 5 functions onboarding */
.dq-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(20, 28, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dq-dialog {
  background: #fff;
  color: #1a1a1a;
  max-width: 520px;
  width: 100%;
  border-radius: 10px;
  padding: 22px 24px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.45;
}
.dq-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.dq-body {
  font-size: 15px;
  margin-bottom: 18px;
}
.dq-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.dq-btn {
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
}
.dq-btn-primary {
  background: #1f6feb;
  color: #fff;
}
.dq-btn-secondary {
  background: #eef1f4;
  color: #222;
}
.dq-btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}
.dq-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10040;
  width: 280px;
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 13px;
}
.dq-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dq-panel-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.dq-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dq-panel-list li {
  padding: 5px 0;
  cursor: pointer;
  color: #333;
}
.dq-panel-list li.dq-done {
  color: #1a7f37;
}
.dq-mark {
  display: inline-block;
  width: 1.1em;
}
.dq-panel-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #667;
}
.dq-panel-tools {
  margin-top: 8px;
  text-align: right;
}
.dq-link {
  border: 0;
  background: none;
  color: #1f6feb;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
}
.dq-tab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10040;
  background: #1f6feb;
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.dq-menu-start {
  position: fixed;
  left: 16px;
  bottom: auto;
  top: 72px;
  z-index: 10030;
}
@media (max-width: 720px) {
  .dq-panel {
    width: calc(100% - 24px);
    left: 12px;
    right: auto;
    width: calc(100% - 24px);
    max-width: 320px;
  }
  .dq-menu-start {
    display: none;
  }
}

/* Same as .btn-secondary / offer-btn below, only orange */
#dq-dashboard-start {
  /* uses uk-margin like neighboring buttons */
}
a.dq-start-learn.btn-secondary,
.dq-start-learn {
  background: #FF6A00 !important;
  color: #FFFFFF !important;
}
a.dq-start-learn.btn-secondary:hover,
.dq-start-learn:hover,
.dq-start-learn:focus {
  background: #FF6A00 !important;
  opacity: 0.8;
  color: #FFFFFF !important;
}
/* hide floating start — dashboard button is primary */
.dq-menu-start { display: none !important; }

.dq-panel-list li.dq-done {
  color: #1a7f37;
  text-decoration: line-through;
  opacity: 0.85;
}
.dq-panel-list li.dq-done .dq-mark {
  text-decoration: none;
}
.dq-panel-close {
  color: #d32f2f !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  padding: 0 4px;
  text-shadow: 0 0 1px #fff;
}
.dq-panel-close:hover {
  color: #b71c1c !important;
  transform: scale(1.1);
}
.dq-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #d32f2f;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 0 6px;
}
.dq-modal-close:hover {
  color: #b71c1c;
}
.dq-dialog {
  position: relative;
}
/* Reward lead form — 3 compact rows */
.dq-lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.dq-row {
  display: flex;
  gap: 8px;
}
.dq-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cfd6dd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
  color: #1a1a1a;
}
.dq-input::placeholder {
  color: #9aa3ad;
  opacity: 1;
}
.dq-input:focus {
  outline: none;
  border-color: #1f6feb;
  box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.15);
}
.dq-input.dq-invalid {
  border-color: #d92d20;
  background: #fff8f7;
}
.dq-form-error {
  color: #b42318;
  font-size: 13px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 6px;
  padding: 8px 10px;
}
.dq-lead-form .dq-actions {
  margin-top: 4px;
}

/* quest tray mobile */
@media (max-width: 720px) {
  .dq-panel {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    bottom: 12px;
    max-height: min(70vh, 480px);
    overflow: auto;
  }
  .dq-tab {
    left: 12px;
    bottom: 12px;
    font-size: 14px;
    font-weight: 600;
  }
}

.dq-row-msg {
  flex-direction: column;
}
.dq-msg-q {
  font-size: 13px;
  line-height: 1.35;
  color: #333;
}
.dq-msg-note {
  color: #888;
  font-size: 12px;
}
.dq-row-yesno {
  gap: 16px;
  align-items: center;
}
.dq-yn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  cursor: pointer;
}
.dq-input[type="number"] {
  -moz-appearance: textfield;
}
.dq-input[type="number"]::-webkit-outer-spin-button,
.dq-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
