/*
 * /campaign: the creator campaign calculator. Sits on webinar.css (cards, grid, lists) and report-web.css (paper page,
 * ink cover); this adds the goal cards, the sliders and the price box. Kolabaja's own tokens only.
 */

.cc-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.cc-main > .wb-card + .wb-card { margin-top: 18px; }
.wb-card h3 { margin: 18px 0 10px; font-size: 16px; font-weight: 600; }

/* ---------------- goal picker ---------------- */

.cc-goals { display: grid; gap: 10px; }
.cc-goal {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.cc-goal:hover { border-color: var(--red-hot); }
.cc-goal input { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.cc-goal input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.cc-goal.on { border-color: var(--red); background: var(--panel); box-shadow: 0 0 0 1px var(--red) inset; }
.cc-goal-t { font-weight: 600; font-size: 16px; }
.cc-goal-d { color: var(--muted); font-size: 14px; line-height: 1.45; }
.cc-goal-f { font-size: 14px; font-weight: 500; color: var(--red); font-variant-numeric: tabular-nums; }

/* ---------------- sliders ---------------- */

.cc-slide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; margin-bottom: 18px; }
.cc-slide label { font-weight: 500; }
.cc-num {
  width: 9.5em;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--text);
  font: 500 16px var(--font);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.cc-num:focus { outline: none; border-color: var(--red-hot); box-shadow: 0 0 0 2px rgba(181, 42, 42, 0.25); }
.cc-slide input[type='range'] { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; accent-color: var(--red); cursor: pointer; }
.cc-range { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: -6px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-field { margin-bottom: 18px; }
.cc-field input { font-size: 16px; font-variant-numeric: tabular-nums; }
.cc-field .wb-note { margin: 6px 0 0; }

/* ---------------- price box ---------------- */

.cc-quote { position: sticky; top: 16px; }
.cc-quote h2 { margin-bottom: 4px; }
.cc-price { display: grid; gap: 2px; margin: 0 0 6px; }
.cc-price b { font-size: clamp(30px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.cc-price span { color: var(--muted); font-size: 15px; }
.cc-videos { font-weight: 500; }
.cc-lines { margin-bottom: 4px; font-size: 15px; }
.cc-legal { margin: 16px 0; padding: 12px 14px; border-radius: 14px; background: rgba(163, 101, 0, 0.1); border: 1px solid rgba(163, 101, 0, 0.25); font-size: 14px; }
.cc-quote .pilot-form h3 { margin: 0; }
.cc-quote .field input { font-size: 16px; }
.cc-done { padding: clamp(20px, 3vw, 28px); border-radius: 20px; border: 1px solid var(--line); background: var(--panel-2); }
.cc-done h3 { margin-top: 0; }
.cc-done h3:focus { outline: none; }
.cc-done .btn { margin-top: 4px; white-space: normal; text-align: center; }

@media (max-width: 860px) {
  .cc-grid { grid-template-columns: minmax(0, 1fr); }
  .cc-quote { position: static; }
}

@media (max-width: 520px) {
  .cc-slide { grid-template-columns: minmax(0, 1fr); }
  .cc-num { width: 100%; text-align: left; }
  .cc-quote .pilot-form { padding: 16px; }
  .cc-quote .pilot-form .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-goal { transition: none; }
}
