/*
 * /10/wizard12.css — TailoredQuote AI mockup demo wizard
 *
 * Lead-capture wizard for /10/index12.html. Full-screen frosted-glass
 * takeover with 6 steps:
 *   upload → brief → email → loading → success ↔ amend → locked
 *
 * Design language: D2 Apple-inspired — #f5f5f7 wash, #0071e3 accent,
 * 16-20px radius cards, subtle shadows, micro-interactions on buttons.
 *
 * Inherits design tokens from index10.css; only adds tq-launch / tq-wiz /
 * tq-* classes specific to the demo wizard.
 */

/* ─── Hero launcher card (visible on the page itself) ───────────────────── */
.tq-launch-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.10), 0 1px 0 rgba(11, 18, 32, 0.04);
  border: 1px solid rgba(10, 102, 255, 0.10);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease;
  outline: none;
}
.tq-launch-card:hover,
.tq-launch-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 72px rgba(10, 102, 255, 0.18), 0 1px 0 rgba(11, 18, 32, 0.04);
}
.tq-launch-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.tq-launch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tq-launch-pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  position: relative;
  display: inline-block;
}
.tq-launch-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  animation: tq-pulse 2s ease-out infinite;
}
@keyframes tq-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(2.6); opacity: 0;   }
  100% { transform: scale(2.6); opacity: 0;   }
}

.tq-launch-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--ink);
}

.tq-launch-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tq-launch-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 14px;
}
.tq-launch-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
}
.tq-launch-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 14.5px;
}
.tq-launch-text strong { color: var(--ink); font-weight: 700; }
.tq-launch-sub         { color: var(--muted); font-size: 12.5px; }

.tq-launch-footer { display: flex; flex-direction: column; gap: 6px; }
.tq-launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  width: 100%;
  letter-spacing: 0.1px;
  box-shadow: 0 6px 16px rgba(10, 102, 255, 0.30);
  transition: background 0.15s ease, transform 0.15s ease;
}
.tq-launch-card:hover .tq-launch-button { background: var(--accent-strong); transform: translateY(-1px); }
.tq-launch-hint {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* ─── Wizard overlay (full-screen takeover) ─────────────────────────────── */
.tq-wiz {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.tq-wiz.tq-wiz-open { display: flex; animation: tq-fade 0.22s ease-out; }
@keyframes tq-fade { from { opacity: 0; } to { opacity: 1; } }

.tq-wiz-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter:         blur(20px) saturate(160%);
}

.tq-wiz-shell {
  position: relative;
  z-index: 1;
  margin: auto;
  background: #ffffff;
  width: min(680px, 96vw);
  max-height: min(94vh, 920px);
  border-radius: 24px;
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.40), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: tq-rise 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes tq-rise {
  from { transform: translateY(28px) scale(0.985); opacity: 0; }
  to   { transform: translateY(0)    scale(1);     opacity: 1; }
}

/* Header */
.tq-wiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter:         blur(12px);
}
.tq-wiz-brand {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.tq-wiz-brand span { color: var(--accent); }
.tq-wiz-close {
  appearance: none;
  border: 0;
  background: var(--surface-2);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease;
}
.tq-wiz-close:hover  { background: #e3e6ec; }
.tq-wiz-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Progress pips */
.tq-wiz-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 8px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.tq-wiz-pip {
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.10);
  transition: background 0.18s ease, width 0.18s ease;
}
.tq-wiz-pip.tq-pip-active { background: var(--accent); width: 36px; }
.tq-wiz-pip.tq-pip-done   { background: var(--accent); }

/* Body */
.tq-wiz-main {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 26px 26px 22px;
}
.tq-wiz-main::-webkit-scrollbar      { width: 8px; }
.tq-wiz-main::-webkit-scrollbar-thumb { background: rgba(11, 18, 32, 0.16); border-radius: 999px; }

.tq-wiz-step { display: none; animation: tq-step-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tq-wiz-step.tq-step-active { display: block; }
@keyframes tq-step-in {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.tq-step-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tq-step-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.tq-step-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Field group */
.tq-field { margin-bottom: 18px; }
.tq-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.tq-input,
.tq-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15.5px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  transition: border 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.tq-input:focus,
.tq-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.tq-textarea { min-height: 110px; resize: vertical; line-height: 1.5; }

/* Cost to Job — number input with £ prefix */
.tq-budget-input {
  position: relative;
}
.tq-budget-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
  pointer-events: none;
}
.tq-budget-input .tq-input {
  padding-left: 30px;
}
/* Hide the spinner controls — they look ugly on a money field */
.tq-budget-input .tq-input::-webkit-outer-spin-button,
.tq-budget-input .tq-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tq-budget-input .tq-input { -moz-appearance: textfield; }

.tq-helper {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 0;
}
.tq-helper.tq-error { color: #c0392b; font-weight: 600; }

/* Step 1 — photo upload */
.tq-drop {
  display: block;
  border: 2px dashed var(--accent);
  border-radius: 18px;
  background: var(--accent-soft);
  padding: 36px 22px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tq-drop:hover,
.tq-drop.tq-drop-hover {
  background: rgba(10, 102, 255, 0.14);
  transform: translateY(-1px);
}
.tq-drop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(10, 102, 255, 0.18);
  font-size: 26px;
}
.tq-drop strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.tq-drop span   { display: block; font-size: 13.5px; color: var(--muted); }

.tq-upload-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.tq-upload-actions button {
  flex: 1 1 140px;
  appearance: none;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 11px;
  cursor: pointer;
  transition: border 0.15s ease, background 0.15s ease;
}
.tq-upload-actions button:hover { border-color: var(--accent); background: var(--accent-soft); }

.tq-thumb {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 14px;
}
.tq-thumb img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}
.tq-thumb-meta { flex: 1 1 auto; min-width: 0; }
.tq-thumb-meta strong { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-thumb-meta span   { display: block; font-size: 12px; color: var(--muted); }
.tq-thumb-change {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.tq-thumb-change:hover { text-decoration: underline; }

/* Step 2 — starter chips */
.tq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 18px;
}
.tq-chip {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.tq-chip:hover,
.tq-chip.tq-chip-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Step 3 — Turnstile + checkbox */
.tq-turnstile-slot {
  margin: 10px 0 14px;
  min-height: 70px;
  display: flex;
  justify-content: center;
}
.tq-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  margin-bottom: 8px;
}
.tq-check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Step 4 — loading */
.tq-loading {
  text-align: center;
  padding: 30px 10px 20px;
}
.tq-loading-orb {
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, var(--accent) 0%, var(--accent-soft) 25%, var(--accent) 50%, var(--accent-soft) 75%, var(--accent) 100%);
  animation: tq-spin 2.6s linear infinite;
  position: relative;
}
.tq-loading-orb::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: #fff;
  border-radius: inherit;
}
.tq-loading-orb::after {
  /* TailoredQuote favicon as the centrepiece. PNG with alpha sits cleanly
     on the white inner circle (.tq-loading-orb::before). 56px keeps a
     comfortable margin inside the 94px inner; 96x96 source = sharp on
     retina at this display size. */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/favicon-96x96.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 56px 56px;
  animation: tq-bob 2s ease-in-out infinite;
}
@keyframes tq-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes tq-bob  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.tq-loading-copy {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  min-height: 24px;
  transition: opacity 0.25s ease;
}
.tq-loading-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
}

.tq-loading-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  max-width: 340px;
  margin: 0 auto 18px;
}
.tq-loading-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.6s ease;
}

.tq-loading-warn {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}

/* Step 5 — success */
.tq-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  background: var(--success-soft);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 38px;
  font-weight: 800;
  animation: tq-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes tq-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.10); opacity: 1; }
  100% { transform: scale(1);   }
}

.tq-success-email {
  display: inline-block;
  background: var(--surface-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.tq-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 14px 0 22px;
}
.tq-counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.tq-tip {
  background: var(--warn-soft);
  border: 1px solid rgba(179, 89, 0, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--warn);
  margin: 18px 0 0;
  line-height: 1.5;
}
.tq-tip strong { display: block; margin-bottom: 4px; }

/* Step 6 — locked */
.tq-locked-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.tq-locked-perks {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0 22px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.tq-locked-perks li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
  line-height: 1.45;
}
.tq-locked-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

/* Step actions row */
.tq-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.tq-btn {
  appearance: none;
  border: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tq-btn-primary {
  background: var(--accent);
  color: #fff;
  flex: 1 1 auto;
  box-shadow: 0 6px 16px rgba(10, 102, 255, 0.28);
}
.tq-btn-primary:hover  { background: var(--accent-strong); transform: translateY(-1px); }
.tq-btn-primary:disabled { background: rgba(10, 102, 255, 0.32); cursor: not-allowed; transform: none; box-shadow: none; }
.tq-btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  flex: 1 1 auto;
}
.tq-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.tq-btn-link {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  padding: 8px 6px;
  margin-left: -6px;
}
.tq-btn-link:hover { text-decoration: underline; }

/* Generic banner inside the wizard (errors, info) */
.tq-banner {
  background: var(--accent-soft);
  border: 1px solid rgba(10, 102, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--accent-strong);
  margin-bottom: 14px;
  line-height: 1.45;
}
.tq-banner.tq-banner-info  { /* inherits tq-banner default blue styling — explicit alias */ }
.tq-banner.tq-banner-error {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.22);
  color: #8a2417;
}

/* Mobile tweaks */
@media (max-width: 540px) {
  .tq-wiz-shell { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .tq-wiz-main  { padding: 20px 18px 18px; }
  .tq-step-title { font-size: 22px; }
  .tq-launch-card { padding: 22px 18px 18px; }
  .tq-launch-title { font-size: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tq-launch-pulse::after,
  .tq-loading-orb,
  .tq-loading-orb::after,
  .tq-success-icon { animation: none; }
  .tq-wiz.tq-wiz-open,
  .tq-wiz-shell,
  .tq-wiz-step { animation: none; }
  .tq-launch-card { transition: none; }
}
