/* Chef Juan's meal plan quiz. Uses the brand tokens from chefjuans-brand when present. */
.cj-mp-quiz, .cj-mp-plan {
  --mp-bg: var(--cj-paper-2, #1a1614);
  --mp-ink: var(--cj-ink, #f4ede0);
  --mp-muted: var(--cj-ink-muted, #b8b1a0);
  --mp-soft: var(--cj-ink-soft, #8a8272);
  --mp-brass: var(--cj-brass, #c9a44a);
  --mp-brass-hi: var(--cj-brass-hi, #dbb85a);
  --mp-line: var(--cj-divider, #2a231e);
  --mp-love: #3f8f5a;
  --mp-never: #a8432c;
  max-width: 820px;
  margin: 0 auto 48px;
  color: var(--mp-ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cj-mp-quiz *, .cj-mp-quiz *::before, .cj-mp-quiz *::after { box-sizing: border-box; }

.cj-mp-progress { height: 6px; background: var(--mp-line); border-radius: 3px; overflow: hidden; margin: 8px 0 10px; }
.cj-mp-progress span { display: block; height: 100%; background: var(--mp-brass); transition: width .3s ease; }
.cj-mp-stepno { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-soft); margin: 0 0 18px; }

.cj-mp-step { background: var(--mp-bg); border: 1px solid var(--mp-line); border-radius: 6px; padding: 28px 28px 24px; }
.cj-mp-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; line-height: 1.15; font-weight: 600; color: var(--mp-ink) !important; margin: 0 0 8px !important; }
.cj-mp-intro { color: var(--mp-muted); margin: 0 0 22px; }

.cj-mp-q { margin: 0 0 26px; }
.cj-mp-label { font-weight: 600; margin: 0 0 10px; color: var(--mp-ink); }
.cj-mp-note { font-size: 14px; color: var(--mp-soft); margin: 10px 0 0; }
.cj-mp-err, .cj-mp-formerr { color: #f08a6d; font-size: 14px; margin: 6px 0 0; min-height: 0; }
.cj-mp-err:empty, .cj-mp-formerr:empty { display: none; }

.cj-mp-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cj-mp-choice, .cj-mp-chip {
  font: inherit; font-size: 15px; cursor: pointer; color: var(--mp-ink); background: transparent;
  border: 1px solid var(--mp-line); border-radius: 999px; padding: 9px 16px; line-height: 1.2;
  transition: border-color .15s, background .15s;
}
.cj-mp-choice:hover, .cj-mp-chip:hover { border-color: var(--mp-brass); }
.cj-mp-choice:focus-visible, .cj-mp-chip:focus-visible, .cj-mp-btn:focus-visible, .cj-mp-input:focus-visible { outline: 2px solid var(--mp-brass-hi); outline-offset: 2px; }
.cj-mp-choice.is-on { background: var(--mp-brass); border-color: var(--mp-brass); color: #0d0d0d; font-weight: 600; }

.cj-mp-rate-group { margin: 0 0 16px; }
.cj-mp-rate-title { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-brass); margin: 0 0 8px; }
.cj-mp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cj-mp-chip { display: inline-flex; align-items: center; gap: 6px; }
.cj-mp-chip-ico { width: 14px; height: 14px; display: inline-block; border-radius: 50%; border: 1px solid var(--mp-soft); }
.cj-mp-chip.is-love { background: rgba(63, 143, 90, .18); border-color: var(--mp-love); }
.cj-mp-chip.is-love .cj-mp-chip-ico { border: 0; background: var(--mp-love); -webkit-mask: none; }
.cj-mp-chip.is-love .cj-mp-chip-ico::before { content: "\2665"; display: block; color: #fff; font-size: 10px; line-height: 14px; text-align: center; }
.cj-mp-chip.is-never { background: rgba(168, 67, 44, .18); border-color: var(--mp-never); text-decoration: line-through; color: var(--mp-muted); }
.cj-mp-chip.is-never .cj-mp-chip-ico { border: 0; background: var(--mp-never); }
.cj-mp-chip.is-never .cj-mp-chip-ico::before { content: "\00d7"; display: block; color: #fff; font-size: 12px; line-height: 14px; text-align: center; }
.cj-mp-rate-extra { display: grid; gap: 10px; margin-top: 6px; }

.cj-mp-input {
  width: 100%; font: inherit; font-size: 16px; color: var(--mp-ink); background: #0d0d0d;
  border: 1px solid var(--mp-line); border-radius: 4px; padding: 11px 12px;
}
.cj-mp-input::placeholder { color: var(--mp-soft); }
select.cj-mp-input { appearance: auto; }
.cj-mp-people { display: grid; gap: 10px; }
.cj-mp-count { max-width: 220px; }
.cj-mp-person { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 8px; align-items: center; }
.cj-mp-person-n { color: var(--mp-muted); font-size: 14px; }

.cj-mp-contact { display: grid; gap: 4px; }
.cj-mp-field { display: grid; gap: 6px; margin-top: 8px; }
.cj-mp-field span { font-size: 14px; color: var(--mp-muted); }
.cj-mp-check { display: flex; gap: 10px; align-items: flex-start; color: var(--mp-ink); font-size: 15px; cursor: pointer; }
.cj-mp-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mp-brass); flex: none; }
.cj-mp-check a { color: var(--mp-brass); }
.cj-mp-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.cj-mp-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--mp-line); }
.cj-mp-btn {
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: .02em; cursor: pointer; text-decoration: none !important;
  background: var(--mp-brass); color: #0d0d0d !important; border: 1px solid var(--mp-brass); border-radius: 4px; padding: 12px 22px; display: inline-block;
}
.cj-mp-btn:hover { background: var(--mp-brass-hi); }
.cj-mp-btn[disabled] { opacity: .6; cursor: wait; }
.cj-mp-btn--ghost { background: transparent; color: var(--mp-ink) !important; border-color: var(--mp-line); }
.cj-mp-btn--ghost:hover { background: transparent; border-color: var(--mp-brass); }
.cf-turnstile { margin: 8px 0 4px; }

@media (max-width: 600px) {
  .cj-mp-step { padding: 20px 16px; }
  .cj-mp-title { font-size: 28px; }
  .cj-mp-person { grid-template-columns: 1fr 1fr; }
  .cj-mp-person-n { grid-column: 1 / -1; }
  .cj-mp-nav { justify-content: stretch; }
  .cj-mp-nav .cj-mp-btn { flex: 1 1 auto; text-align: center; }
}

/* The theme styles every <button> (brass fill, uppercase). Reset ours so selected and
   unselected states are clearly different. */
body .cj-mp-quiz button.cj-mp-choice,
body .cj-mp-quiz button.cj-mp-chip {
  background: transparent !important; color: var(--mp-ink) !important; border: 1px solid #4a3f35 !important;
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; font-size: 15px !important;
  border-radius: 999px !important; padding: 9px 16px !important; box-shadow: none !important; line-height: 1.2 !important; min-height: 0 !important;
}
body .cj-mp-quiz button.cj-mp-choice:hover, body .cj-mp-quiz button.cj-mp-chip:hover { border-color: var(--mp-brass) !important; }
body .cj-mp-quiz button.cj-mp-choice.is-on { background: var(--mp-brass) !important; border-color: var(--mp-brass) !important; color: #0d0d0d !important; font-weight: 700 !important; }
body .cj-mp-quiz button.cj-mp-chip.is-love { background: rgba(63, 143, 90, .22) !important; border-color: var(--mp-love) !important; }
body .cj-mp-quiz button.cj-mp-chip.is-never { background: rgba(168, 67, 44, .22) !important; border-color: var(--mp-never) !important; color: var(--mp-muted) !important; text-decoration: line-through !important; }
body .cj-mp-quiz button.cj-mp-btn {
  text-transform: none !important; letter-spacing: .02em !important; font-size: 16px !important; font-weight: 700 !important;
  background: var(--mp-brass) !important; color: #0d0d0d !important; border: 1px solid var(--mp-brass) !important; border-radius: 4px !important; padding: 12px 22px !important;
}
body .cj-mp-quiz button.cj-mp-btn--ghost { background: transparent !important; color: var(--mp-ink) !important; border-color: #4a3f35 !important; }
body .cj-mp-quiz .cj-mp-input { background: #0d0d0d !important; color: var(--mp-ink) !important; border: 1px solid #4a3f35 !important; border-radius: 4px !important; }
body .cj-mp-quiz .cj-mp-input:focus { border-color: var(--mp-brass) !important; }
body.cj-brand .entry-content .cj-mp-quiz a.cj-mp-btn { color: #0d0d0d !important; text-decoration: none !important; }
body.cj-brand .entry-content .cj-mp-quiz a.cj-mp-btn--ghost { color: var(--mp-ink) !important; }
body.cj-brand .entry-content .cj-mp-quiz a.cj-mp-btn.cj-mp-btn.cj-mp-btn.cj-mp-btn.cj-mp-btn { color: #0d0d0d !important; text-decoration: none !important; }
body.cj-brand .entry-content .cj-mp-quiz a.cj-mp-btn--ghost.cj-mp-btn.cj-mp-btn.cj-mp-btn.cj-mp-btn { color: var(--mp-ink) !important; }
