/* ─── Brief Wizard + Summary Page Styles ──────────────────────────────── */

/* Form inputs */
.qw-input {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(7, 13, 31, 0.6);
  border: 1px solid rgba(62, 72, 79, 0.8);
  border-radius: .75rem;
  color: #dce1fb;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.qw-input::placeholder { color: rgba(189, 200, 209, 0.4); }
.qw-input:focus {
  outline: none;
  border-color: #8ed5ff;
  box-shadow: 0 0 0 3px rgba(142, 213, 255, .12);
}
.qw-input.qw-error { border-color: #ffb4ab; }
select.qw-input { cursor: pointer; }
textarea.qw-input { resize: vertical; min-height: 100px; }

/* Labels */
.qw-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #bdc8d1;
  margin-bottom: .4rem;
}
.qw-label span.req { color: #8ed5ff; margin-left: 2px; }

/* Error text */
.qw-error-msg {
  font-size: .78rem;
  color: #ffb4ab;
  margin-top: .3rem;
}

/* ─── Checkbox / Radio pill groups ─────────────────────────────────── */
.qw-pill-group { display: flex; flex-wrap: wrap; gap: .5rem; }

.qw-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .9rem;
  border-radius: 9999px;
  border: 1px solid rgba(62, 72, 79, 0.8);
  background: rgba(7, 13, 31, 0.5);
  color: #bdc8d1;
  font-size: .875rem;
  cursor: pointer;
  transition: all .18s;
  user-select: none;
}
.qw-pill:hover { border-color: rgba(142, 213, 255, .5); color: #dce1fb; }
.qw-pill input[type="checkbox"],
.qw-pill input[type="radio"] { display: none; }
.qw-pill.checked {
  border-color: #8ed5ff;
  background: rgba(142, 213, 255, .12);
  color: #8ed5ff;
  box-shadow: 0 0 8px rgba(142, 213, 255, .15);
}

/* ─── Toggle switch ─────────────────────────────────────────────────── */
.qw-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
}
.qw-toggle-track {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: rgba(62, 72, 79, 0.8);
  border-radius: 9999px;
  transition: background .2s;
  flex-shrink: 0;
}
.qw-toggle input { display: none; }
.qw-toggle input:checked ~ .qw-toggle-track { background: rgba(142, 213, 255, .4); }
.qw-toggle-thumb {
  position: absolute;
  top: .2rem; left: .2rem;
  width: 1.1rem; height: 1.1rem;
  background: #bdc8d1;
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
.qw-toggle input:checked ~ .qw-toggle-track .qw-toggle-thumb {
  transform: translateX(1.25rem);
  background: #8ed5ff;
}
.qw-toggle-label { font-size: .95rem; color: #bdc8d1; }

/* ─── Step indicator ────────────────────────────────────────────────── */
.qw-step-dot {
  height: .3rem;
  border-radius: 9999px;
  flex: 1;
  transition: background .3s, box-shadow .3s;
}
.qw-step-dot.past    { background: rgba(142, 213, 255, .6); }
.qw-step-dot.current { background: #8ed5ff; box-shadow: 0 0 8px rgba(142, 213, 255, .5); }
.qw-step-dot.future  { background: rgba(62, 72, 79, .8); }

/* ─── Upload zone ───────────────────────────────────────────────────── */
.qw-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 2px dashed rgba(62, 72, 79, 0.8);
  border-radius: .75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: rgba(7, 13, 31, 0.3);
}
.qw-upload-zone:hover {
  border-color: rgba(142, 213, 255, .5);
  background: rgba(142, 213, 255, .04);
}
.qw-upload-zone input[type="file"] { display: none; }

/* ─── Uploaded file chip ────────────────────────────────────────────── */
.qw-file-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: .5rem;
  background: rgba(142, 213, 255, .1);
  border: 1px solid rgba(142, 213, 255, .25);
  font-size: .8rem;
  color: #8ed5ff;
  max-width: 200px;
}
.qw-file-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Style visual cards (step 4) ──────────────────────────────────── */
.qw-style-card {
  border: 2px solid rgba(62, 72, 79, 0.8);
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  background: rgba(7, 13, 31, 0.4);
}
.qw-style-card:hover { border-color: rgba(142, 213, 255, .4); }
.qw-style-card.selected {
  border-color: #8ed5ff;
  background: rgba(142, 213, 255, .08);
  box-shadow: 0 0 12px rgba(142, 213, 255, .15);
}

/* ─── Color picker ─────────────────────────────────────────────────── */
.qw-color-picker-label { display: flex; flex-direction: column; }
.qw-color-swatch-wrap  { display: flex; align-items: center; gap: .75rem; }
.qw-color-input {
  -webkit-appearance: none;
  appearance: none;
  width: 3rem;
  height: 3rem;
  border: 2px solid rgba(142, 213, 255, .25);
  border-radius: .75rem;
  padding: .2rem;
  background: transparent;
  cursor: pointer;
}
.qw-color-input::-webkit-color-swatch-wrapper { padding: 0; border-radius: .5rem; }
.qw-color-input::-webkit-color-swatch         { border: none; border-radius: .5rem; }
.qw-color-input::-moz-color-swatch            { border: none; border-radius: .5rem; }
.qw-color-hex-input {
  width: 7rem;
  background: rgba(7, 13, 31, 0.5);
  border: 1px solid rgba(62, 72, 79, 0.8);
  border-radius: .5rem;
  padding: .4rem .6rem;
  font-size: .85rem;
  font-family: monospace;
  color: var(--color-on-surface);
  letter-spacing: .05em;
  transition: border-color .2s;
}
.qw-color-hex-input:focus {
  outline: none;
  border-color: rgba(142, 213, 255, .6);
}

/* ─── Nav buttons ──────────────────────────────────────────────────── */
.qw-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: .75rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  border: none;
  background: #38bdf8;
  color: #001e2c;
  box-shadow: 0 0 15px rgba(56, 189, 248, .4);
}
.qw-btn-primary:hover  { transform: scale(1.03); box-shadow: 0 0 22px rgba(56, 189, 248, .6); }
.qw-btn-primary:active { transform: scale(.97); }
.qw-btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.qw-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .85rem 1.5rem;
  border-radius: .75rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  border: 1px solid rgba(62, 72, 79, 0.8);
  background: transparent;
  color: #bdc8d1;
}
.qw-btn-ghost:hover { background: rgba(255,255,255,.04); color: #dce1fb; }

/* ─── Autosave badge ────────────────────────────────────────────────── */
.qw-save-badge {
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.qw-save-badge.saving { color: #bdc8d1; background: rgba(255,255,255,.06); }
.qw-save-badge.saved  { color: #8ed5ff; background: rgba(142, 213, 255, .1); }

/* ─── Summary page ──────────────────────────────────────────────────── */
.qw-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(62, 72, 79, .4);
  gap: 1rem;
}
.qw-summary-row:last-child { border-bottom: none; }
.qw-summary-key { font-size: .85rem; color: #bdc8d1; min-width: 160px; flex-shrink: 0; }
.qw-summary-val { font-size: .9rem; color: #dce1fb; text-align: right; }

/* ─── Client Panel ──────────────────────────────────────────────────── */

/* Progress timeline */
.qw-panel-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.qw-panel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  text-align: center;
}

.qw-panel-step-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 2px solid rgba(62, 72, 79, .8);
  background: rgba(7, 13, 31, .5);
  color: #87929a;
  transition: all .3s;
  z-index: 1;
  position: relative;
}
.qw-panel-step-icon .material-symbols-outlined { font-size: 1.1rem; }

.qw-panel-step.past .qw-panel-step-icon {
  border-color: rgba(142, 213, 255, .5);
  background: rgba(142, 213, 255, .1);
  color: #8ed5ff;
}
.qw-panel-step.current .qw-panel-step-icon {
  border-color: #8ed5ff;
  background: rgba(142, 213, 255, .18);
  color: #8ed5ff;
  box-shadow: 0 0 14px rgba(142, 213, 255, .4);
}

.qw-panel-step-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .5rem;
  color: #87929a;
  line-height: 1.2;
}
.qw-panel-step.past .qw-panel-step-label   { color: rgba(142, 213, 255, .7); }
.qw-panel-step.current .qw-panel-step-label { color: #8ed5ff; }

/* Connecting line between steps */
.qw-panel-step-line {
  position: absolute;
  top: 1.25rem;           /* vertically centered with icons (icon h = 2.5rem, so center = 1.25rem) */
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(62, 72, 79, .6);
  transform: translateX(0);
  z-index: 0;
}
.qw-panel-step.past .qw-panel-step-line  { background: rgba(142, 213, 255, .4); }
.qw-panel-step.current .qw-panel-step-line { background: rgba(142, 213, 255, .2); }

/* Variant selection cards */
.qw-variant-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid rgba(62, 72, 79, .8);
  border-radius: 1rem;
  cursor: pointer;
  transition: all .2s;
  background: rgba(7, 13, 31, .4);
  position: relative;
}
.qw-variant-card:hover {
  border-color: rgba(142, 213, 255, .4);
  background: rgba(142, 213, 255, .04);
}
.qw-variant-card.selected {
  border-color: #8ed5ff;
  background: rgba(142, 213, 255, .08);
  box-shadow: 0 0 16px rgba(142, 213, 255, .15);
}

.qw-variant-img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: .5rem;
  flex-shrink: 0;
}
.qw-variant-img-placeholder {
  width: 96px;
  height: 72px;
  flex-shrink: 0;
  border-radius: .5rem;
  background: rgba(62, 72, 79, .3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qw-variant-info { flex: 1; min-width: 0; }

.qw-variant-check {
  color: #8ed5ff;
  opacity: 0;
  transition: opacity .2s;
  flex-shrink: 0;
}
.qw-variant-check.visible { opacity: 1; }
.qw-variant-check .material-symbols-outlined { font-size: 1.4rem; }

/* Alert banners */
.qw-panel-alert {
  padding: .875rem 1.25rem;
  border-radius: .75rem;
  font-size: .875rem;
  border-left: 4px solid;
}
.qw-panel-alert-success {
  background: rgba(92, 221, 139, .08);
  border-color: #5cdd8b;
  color: #5cdd8b;
}
.qw-panel-alert-error {
  background: rgba(255, 180, 171, .08);
  border-color: #ffb4ab;
  color: #ffb4ab;
}

/* Refund modal */
.qw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.qw-modal-box {
  width: 100%;
  max-width: 480px;
}
