/* Campaign wizard — 2/3 stepped form, 1/3 sticky preview. Leans on base.css
   for tokens, buttons, inputs, chips and the phone mock. */

.wizard-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 0;
}
.wizard-hero {
  text-align: left;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: fadeUp 0.5s ease backwards;
}
.wizard-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.wizard-hero .subtitle {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 520px;
}

/* ── Layout: wizard ≈2/3, preview ≈1/3 ── */
.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wizard {
  padding: 26px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp 0.5s 0.1s ease backwards;
}

/* ── Tabs ── */
.tabs { display: flex; align-items: center; gap: 8px; }
.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 4px;
  cursor: default;
  font-family: var(--font);
}
.tab-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--cream);
  border: 1.5px solid var(--blush);
  color: var(--ink-soft);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.tab-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.tab-line {
  flex: 1;
  height: 1.5px;
  border-radius: 2px;
  background: var(--blush);
  transition: background 0.3s;
  min-width: 12px;
}
.tab.current .tab-num {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  box-shadow: 0 0 0 4px var(--coral-wash);
}
.tab.current .tab-name { color: var(--ink); }
.tab.done { cursor: pointer; }
.tab.done .tab-num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.tab.done .tab-name { color: var(--ink); }
.tab-line.done { background: var(--ink); }

@media (max-width: 640px) {
  .tabs { gap: 4px; }
  .tab { padding: 2px; gap: 6px; }
  .tab-num { width: 26px; height: 26px; font-size: 0.72rem; }
  .tab-line { min-width: 6px; }
  .tab-name { display: none; }
  .tab.current .tab-name { display: inline; }
}

/* ── Sliding step panels ── */
.steps-window { overflow: hidden; }
.steps-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(.3,.9,.3,1);
}
.step-panel {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 2px;
}
.step-panel h2 { font-size: 1.35rem; margin-bottom: 2px; }
/* Collapse inactive panels so the card hugs the current step's height. */
.step-panel[data-inactive] { height: 0; overflow: hidden; visibility: hidden; }

/* ── Logo picker (step 1) ── */
.logo-picker {
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo-circle {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink-soft);
  background: var(--coral-wash);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.logo-circle:hover { border-color: var(--coral); }
.logo-circle:active { transform: scale(0.96); }
.logo-circle.has-logo { border: 1.5px solid var(--blush); background: var(--cream); }
.logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-empty { color: var(--coral-deep); display: grid; place-items: center; }
.logo-empty svg { width: 34px; height: 34px; }
.logo-actions { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.logo-buttons { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Account block ── */
.auth-forms { display: flex; flex-direction: column; gap: 10px; }
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--canvas);
  border-radius: 999px;
  align-self: flex-start;
}
.auth-tab {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-tab.on { background: var(--cream); color: var(--ink); box-shadow: 0 1px 2px var(--shadow); }
.auth-btn { align-self: flex-start; }

.auth-session {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--moss-wash);
  flex-wrap: wrap;
}
.auth-ok {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.auth-email { font-weight: 600; font-size: 0.92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.auth-signout {
  margin-left: auto;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.auth-signout:hover { color: var(--coral-deep); background: var(--coral-wash); }

/* ── Photos ── */
.photo-drop {
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.photo-drop:hover, .photo-drop.dragover { border-color: var(--coral); color: var(--ink); background: var(--coral-wash); }
.photo-drop-icon { display: grid; place-items: center; }
.photo-drop-icon svg { width: 22px; height: 22px; }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-thumbs:empty { display: none; }
.photo-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--blush);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(20,20,20,0.75);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Long pick-lists (the ~40 careers) scroll instead of swallowing the card. */
.chips--scroll {
  max-height: 180px;
  overflow-y: auto;
  padding: 2px;
  border-radius: 14px;
}

/* ── Search pickers (cities, universities): results drop down under the box ── */
.chips:empty { display: none; }
.search { position: relative; }
.search-results {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--paper);
  border: 1px solid var(--blush);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20,20,20,0.14), 0 2px 6px rgba(20,20,20,0.06);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}
.search-result strong { font-weight: 700; color: var(--ink); }
.search-result span { font-size: 0.78rem; color: var(--ink-soft); font-weight: 500; }
.search-result:hover, .search-result.active { background: var(--cream); }
.search-empty { padding: 10px 12px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }
.chip--pick { display: inline-flex; align-items: center; gap: 7px; }
.chip-x { font-size: 1.05rem; line-height: 1; opacity: 0.65; }
.chip--pick:hover .chip-x { opacity: 1; }

/* ── Reach tiers ── */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tier {
  position: relative;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 10px 14px;
  border-radius: 18px;
  background: var(--cream);
  border: 1.5px solid var(--blush);
  cursor: pointer;
  text-align: center;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tier:hover { border-color: var(--ink-soft); }
.tier:active { transform: scale(0.97); }
.tier.on { border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-wash); }
.tier-name { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.tier-reach { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.tier-unit { font-size: 0.72rem; color: var(--ink-soft); font-weight: 500; }
.tier-price { font-size: 1rem; font-weight: 700; margin-top: 6px; color: var(--coral-deep); }
/* Prices are quoted without IVA; Checkout adds 21% on top. */
.tier-vat { font-size: 0.68rem; color: var(--ink-soft); font-weight: 500; }
.tier-badge {
  margin-top: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  padding: 4px 9px;
}
.custom-reach {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.custom-reach input { max-width: 200px; }

@media (max-width: 640px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}

/* ── Summary ── */
.summary {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--blush);
  overflow: hidden;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--blush);
}
.summary-row:last-child { border-bottom: none; }
.summary-row span { color: var(--ink-soft); font-weight: 500; flex-shrink: 0; }
.summary-row strong { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.summary-row.total { background: var(--coral-wash); }
.summary-row.total span, .summary-row.total strong { color: var(--coral-deep); font-weight: 750; font-size: 1.05rem; }
.pay-note { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6; }
.pay-note a { color: var(--coral-deep); }

/* ── Errors + nav ── */
.form-error {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--coral-deep);
  background: var(--coral-wash);
  border-radius: 12px;
  padding: 10px 14px;
}
.wizard-nav { display: flex; align-items: center; gap: 12px; }
.wizard-nav-spacer { flex: 1; }

/* ── Success card ── */
.success-card { align-items: center; text-align: center; gap: 12px; }
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(255,107,107,0.30);
}
.success-card.is-cancelled .success-icon { background: var(--ink-soft); box-shadow: none; }
.success-sub { color: var(--ink-soft); font-size: 0.9rem; }
.success-sub code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; background: var(--canvas); padding: 2px 6px; border-radius: 6px; }
.success-steps { text-align: left; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); line-height: 1.5; }
.success-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ── Preview column ── */
.preview-col {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.6s 0.15s ease backwards;
}
.preview-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.preview-caption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; }
  .preview-col .phone { --pt: 0.6px; --bezel: 8px; border-radius: 34px; }
  .preview-col .screen { border-radius: 26px; }
  .wizard { padding: 22px 18px 20px; }
  .field-row { flex-direction: column; }
  .nav-links .nav-link:last-child { display: none; }
}
