/* rem-scale 2026-11-09: font-size/padding rems ×1.6 — this file was written for 1rem=16px,
   but Bricks sets html{font-size:62.5%} (1rem=10px). See wcp-deploy/fix-rem-scale-2026-11-09.php */
/* WCP Interactive — quiz, staff directory, FAQ, floating CTA.
   Uses the wcpwhite design tokens (Bricks style manager): cream bg, clay
   primary, sage secondary. Fallbacks included for builder contexts. */

/* ── Buttons (shared) ─────────────────────────────────────────────────── */
.wcp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 1.28rem 2.56rem; border-radius: 999px;
  font-weight: 600; font-size: 1.6rem; line-height: 1.2; cursor: pointer;
  text-decoration: none; border: 2px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.wcp-btn:active { transform: scale(.98); }
.wcp-btn-primary {
  background: var(--clay-500-primary, #BE6149); color: #fff;
}
.wcp-btn-primary:hover { background: var(--clay-600-accent, #A24F3A); color: #fff; }
.wcp-btn-secondary {
  background: transparent; color: var(--wcp-sage-deep, #435247);
  border-color: var(--wcp-sage-deep, #435247);
}
.wcp-btn-secondary:hover { background: var(--wcp-sage-deep, #435247); color: #fff; }
.wcp-btn-sm { padding: .88rem 1.76rem; font-size: 1.44rem; }

/* ── Quiz ─────────────────────────────────────────────────────────────── */
.wcp-quiz-wrapper {
  background: var(--wcp-card, #fff);
  border: 1px solid var(--wcp-border, #E7D6C1);
  border-radius: 20px; padding: 26px;
  max-width: 720px; margin: 0 auto;
  font-size: 13.6px;
  box-shadow: 0 6px 24px rgba(47, 58, 51, .06);
}
.wcp-quiz-wrapper--compact { padding: 19px; border-radius: 16px; }

.wcp-quiz-context {
  max-width: 68ch; margin-inline: auto; text-align: center;
  color: var(--wcp-muted, #6E746E); font-size: clamp(13.6px, .96vw, 15.2px);
  line-height: 1.65;
}
.wcp-quiz-wrapper .wcp-btn { font-size: 13.6px; padding: 11px 22px; }
.wcp-quiz-intro h3 {
  hyphens: none;
  margin: 0 0 .65rem; color: var(--wcp-text, #2F3A33);
  font-size: clamp(19.2px, 1.6vw, 24px); line-height: 1.18;
}
.wcp-quiz-intro p {
  color: var(--wcp-muted, #6E746E); margin: 0 0 1.4rem;
  font-size: 14.4px; line-height: 1.65;
}
.wcp-quiz-kicker {
  display: inline-block; font-size: 10.4px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700;
  color: var(--wcp-sage-deep, #435247); margin-bottom: .6rem;
}

.wcp-quiz-progress { display: none; margin-bottom: 18px; }
.wcp-quiz-progress-track {
  height: 6px; border-radius: 999px; background: var(--wcp-bg-soft, #F3E8D8); overflow: hidden;
}
.wcp-quiz-progress-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: var(--clay-500-primary, #BE6149);
  transition: width .3s ease;
}

.wcp-quiz-steps { display: none; }
.wcp-quiz-step { display: none; }
.wcp-quiz-step.active { display: block; animation: wcpFadeIn .25s ease; }
.wcp-quiz-step__counter {
  font-size: 10.4px; color: var(--wcp-muted, #6E746E);
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .35rem;
}
.wcp-quiz-step h3 {
  hyphens: none;
  margin: 0 0 1.15rem; color: var(--wcp-text, #2F3A33);
  font-size: clamp(17.6px, 1.44vw, 22.4px); line-height: 1.22;
}

.wcp-quiz-options { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.wcp-quiz-option {
  width: 100%; text-align: left; padding: 13px 16px;
  border-radius: 12px; border: 1.5px solid var(--wcp-border, #E7D6C1);
  background: var(--wcp-bg, #FAF6EF); color: var(--wcp-text, #2F3A33);
  font-size: 14.4px; line-height: 1.45; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.wcp-quiz-option:hover { border-color: var(--wcp-sage, #6F7F72); }
.wcp-quiz-option.selected {
  border-color: var(--clay-500-primary, #BE6149);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(190, 97, 73, .12);
}
.wcp-quiz-nav { display: flex; justify-content: flex-end; }

.wcp-quiz-result { display: none; text-align: center; animation: wcpFadeIn .3s ease; }
.wcp-quiz-result.active { display: block; }
.wcp-quiz-result-title {
  margin: 0 0 .7rem; color: var(--wcp-sage-deep, #435247);
  font-size: clamp(17.6px, 1.44vw, 22.4px); line-height: 1.22;
}
.wcp-quiz-result-body {
  color: var(--wcp-text, #2F3A33); margin: 0 0 1.4rem;
  font-size: 14.4px; line-height: 1.65;
}
.wcp-quiz-result-actions { display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.wcp-quiz-result-more {
  color: var(--wcp-sage-deep, #435247); font-weight: 600; font-size: 13.2px;
  text-decoration: underline; text-underline-offset: 3px;
}
.wcp-quiz-result-phone { color: var(--wcp-muted, #6E746E); font-size: 13.2px; }
.wcp-quiz-result-phone a { color: var(--wcp-sage-deep, #435247); font-weight: 700; text-decoration: none; }
.wcp-quiz-restart {
  background: none; border: none; color: var(--wcp-muted, #6E746E);
  font-size: 12px; cursor: pointer; text-decoration: underline; margin-top: .9rem;
}
.wcp-quiz-disclaimer {
  font-size: 11.6px; color: var(--wcp-muted, #6E746E);
  border-top: 1px dashed var(--wcp-border, #E7D6C1);
  margin-top: 1.25rem; padding-top: 1.2rem; line-height: 1.5;
}

@keyframes wcpFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Therapist cards ──────────────────────────────────────────────────── */
.wcp-zespol-header { text-align: left; margin: 2.5rem 0 1.25rem; }
.wcp-zespol-header .wcp-zespol-city {
  display: inline-block; font-size: 1.248rem; letter-spacing: .1em; font-weight: 700;
  text-transform: uppercase; color: var(--clay-600-accent, #A24F3A); margin-bottom: .25rem;
}
.wcp-zespol-header h2, .wcp-zespol-header h3 { margin: 0; color: var(--wcp-text, #2F3A33); }

.wcp-zespol-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem; align-items: start;
}

.wcp-therapist-card {
  background: var(--wcp-card, #fff);
  border: 1px solid var(--wcp-border, #E7D6C1);
  border-radius: 16px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.wcp-therapist-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--clay-500-primary, #BE6149), var(--wcp-sage, #6F7F72));
  opacity: .72;
}
.wcp-therapist-card:hover {
  border-color: rgba(190, 97, 73, .26);
  box-shadow: 0 12px 34px rgba(47, 58, 51, .10);
  transform: translateY(-2px);
}
.wcp-therapist-card__header {
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
}
.wcp-therapist-card__avatar {
  flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; background: var(--wcp-bg-soft, #F3E8D8);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 18px rgba(67, 82, 71, .12);
}
.wcp-therapist-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Portrait headshots: anchor to the top so heads aren't clipped in the circular thumbnails. */
.wcpt-ava img { object-position: center top !important; }
/* Paula Kamińska's photo has ~28% headroom, so center-top leaves her face low in the circle. */
/* Anchor her avatar to the bottom to bring her head higher (no bottom gap; portrait still covers the frame). */
.wcpt-ava img[src*="paula-kaminska"] { object-position: center bottom !important; }
/* Per-therapist avatar nudges (zespol z3 + homepage z1). */
/* Julia Bochko — raise slightly (her photo has headroom at the top; anchor a bit toward the bottom). */
.wcpt-ava img[src*="julia-bochko"] { object-position: center 20% !important; }
.wcp-therapist-card__initials {
  font-weight: 700; font-size: 1.92rem; color: var(--wcp-sage-deep, #435247);
}
.wcp-therapist-card__meta h3 { margin: 0; font-size: 1.68rem; color: var(--wcp-text, #2F3A33); }
.wcp-therapist-card__meta p { margin: .15rem 0 0; font-size: 1.36rem; color: var(--wcp-muted, #6E746E); }
.wcp-therapist-card__toggle {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--wcp-sage, #6F7F72); font-size: 2.4rem; line-height: 1;
  transition: transform .2s ease;
}
.wcp-therapist-card.is-open .wcp-therapist-card__toggle { transform: rotate(180deg); }

.wcp-therapist-card__body { display: none; padding-top: 1.6rem; }
.wcp-therapist-card.is-open .wcp-therapist-card__body { display: block; animation: wcpFadeIn .2s ease; }
.wcp-therapist-card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.wcp-tag {
  display: inline-block; padding: .4rem 1.12rem; border-radius: 999px;
  background: var(--wcp-bg-soft, #F3E8D8); color: var(--wcp-sage-deep, #435247);
  font-size: 1.248rem; font-weight: 600;
}
.wcp-tag--sm { font-size: 1.152rem; padding: .32rem .88rem; background: transparent;
  border: 1px solid var(--wcp-border, #E7D6C1); color: var(--wcp-muted, #6E746E); }
.wcp-therapist-card__approach { font-size: 1.472rem; line-height: 1.6; color: var(--wcp-text, #2F3A33); }
.wcp-therapist-card__qualifications { display: flex; flex-wrap: wrap; gap: .3rem; margin: .75rem 0 1rem; }
.wcp-therapist-card__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
}
.wcp-therapist-card__cta .wcp-btn {
  min-height: 38px; white-space: nowrap;
}

/* ── Partner ribbon ───────────────────────────────────────────────────── */
.par-section {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(250,246,239,.92));
  border: 1px solid var(--wcp-border, #E7D6C1);
  border-radius: 20px;
  color: var(--wcp-text, #2F3A33);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(67, 82, 71, .08);
}
.par-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.par-header {
  text-align: center;
  padding: clamp(28px, 5vw, 48px) 0 22px;
}
.par-eyebrow {
  display: inline-block; margin-bottom: .65rem;
  font-size: 1.184rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--clay-600-accent, #A24F3A);
}
.par-header h2 {
  margin: 0;
  font-size: clamp(2.48rem, 3vw, 3.6rem);
  line-height: 1.16;
  color: var(--wcp-text, #2F3A33);
}
.par-header p {
  max-width: 58ch; margin: .75rem auto 0;
  color: var(--wcp-muted, #6E746E); line-height: 1.65;
}
.par-glow-wrap { position: relative; width: 100%; }
.par-glow-top,
.par-glow-bottom {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190,97,73,.25), rgba(111,127,114,.24), transparent);
}
.par-track-wrap {
  position: relative; overflow: hidden;
  padding: clamp(22px, 4vw, 38px) 0;
  background: rgba(243, 232, 216, .52);
}
.par-track-wrap::before,
.par-track-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(50px, 10vw, 130px);
  z-index: 2; pointer-events: none;
}
.par-track-wrap::before { left: 0; background: linear-gradient(90deg, #F3E8D8 0%, rgba(243,232,216,0) 100%); }
.par-track-wrap::after { right: 0; background: linear-gradient(270deg, #F3E8D8 0%, rgba(243,232,216,0) 100%); }
.par-track {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 34px);
  width: max-content;
  animation: parScroll 34s linear infinite;
}
.par-section:hover .par-track { animation-play-state: paused; }
.par-logo {
  width: clamp(156px, 18vw, 230px); height: 86px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.par-logo a {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 16px 20px; border-radius: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(231,214,193,.85);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.par-logo img {
  max-width: 100%; max-height: 56px; object-fit: contain;
  filter: grayscale(100%) contrast(.9) opacity(.72);
  transition: filter .25s ease, transform .25s ease;
}
.par-logo a:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(190,97,73,.28);
}
.par-logo a:hover img { filter: grayscale(0%) contrast(1) opacity(1); transform: scale(1.03); }
@keyframes parScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) {
  .par-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 24px; }
}

/* ── Contact Form 7 ───────────────────────────────────────────────────── */
.wcp-contact-shell {
  width: 100%;
}
.wcp-contact-shell .wpcf7-form {
  display: grid;
  gap: 16px;
}
.wcp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.wcp-form-field,
.wcp-contact-shell label {
  display: grid;
  gap: 7px;
  margin: 0;
  font-weight: 700;
  font-size: 1.376rem;
  color: var(--wcp-sage-deep, #435247);
}
.wcp-form-field--full { grid-column: 1 / -1; }
.wcp-contact-shell .wpcf7-form-control-wrap {
  display: block;
}
.wcp-contact-shell input[type="text"],
.wcp-contact-shell input[type="email"],
.wcp-contact-shell input[type="tel"],
.wcp-contact-shell select,
.wcp-contact-shell textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--wcp-border, #E7D6C1);
  border-radius: 10px;
  background: rgba(250, 246, 239, .72);
  color: var(--wcp-text, #2F3A33);
  padding: 12px 14px;
  font: 500 1.6rem/1.35 "TT Norms", system-ui, sans-serif;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.wcp-contact-shell textarea {
  min-height: 132px;
  resize: vertical;
}
.wcp-contact-shell input:focus,
.wcp-contact-shell select:focus,
.wcp-contact-shell textarea:focus {
  border-color: var(--clay-500-primary, #BE6149);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(190,97,73,.12);
}
.wcp-contact-shell .wcp-form-note {
  margin: 0;
  color: var(--wcp-muted, #6E746E);
  font-size: 1.44rem;
  line-height: 1.55;
}
.wcp-contact-shell .wcp-form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--wcp-muted, #6E746E);
  font-size: 1.408rem;
  line-height: 1.5;
}
.wcp-contact-shell input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--clay-500-primary, #BE6149);
  margin-top: .15rem;
}
.wcp-contact-shell input[type="submit"] {
  display: inline-flex;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--clay-500-primary, #BE6149);
  color: #fff;
  padding: 1.36rem 2.56rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.wcp-contact-shell input[type="submit"]:hover {
  background: var(--clay-600-accent, #A24F3A);
}
.wcp-contact-shell input[type="submit"]:active {
  transform: scale(.98);
}
.wcp-contact-shell .wpcf7-spinner {
  margin: 0 0 0 12px;
}
.wcp-contact-shell .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #A24F3A;
  font-size: 1.312rem;
}
.wcp-contact-shell .wpcf7-response-output {
  margin: 8px 0 0 !important;
  border-radius: 12px;
  border: 1px solid var(--wcp-border, #E7D6C1) !important;
  padding: 12px 14px !important;
  color: var(--wcp-text, #2F3A33);
  background: rgba(255,255,255,.74);
}

/* ── Filter panel ─────────────────────────────────────────────────────── */
.wcp-filter-panel {
  background: var(--wcp-card, #fff); border: 1px solid var(--wcp-border, #E7D6C1);
  border-radius: 16px; padding: clamp(2.16rem, 2vw, 3.2rem);
  margin-top: clamp(2.75rem, 5vw, 4.25rem); margin-bottom: 1.5rem;
  min-height: 188px;
}
.wcp-filter-panel__inner { display: flex; flex-wrap: wrap; gap: 1.35rem 1.5rem; align-items: flex-start; }
.wcp-filter-group { display: flex; flex-direction: column; gap: .5rem; }
.wcp-filter-group--therapy { flex: 1 1 560px; max-width: 100%; }
.wcp-filter-label {
  font-size: 1.2rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wcp-muted, #6E746E);
}
.wcp-filter-toggles { display: flex; flex-wrap: wrap; gap: .4rem; }
.wcp-filter-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .72rem 1.44rem; border-radius: 999px;
  border: 1.5px solid var(--wcp-border, #E7D6C1);
  background: var(--wcp-bg, #FAF6EF); color: var(--wcp-text, #2F3A33);
  font-size: 1.36rem; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.wcp-filter-toggle .wcp-toggle__icon { display: none; }
.wcp-filter-toggle:hover { border-color: var(--wcp-sage, #6F7F72); }
.wcp-filter-toggle.active {
  background: var(--wcp-sage-deep, #435247); border-color: var(--wcp-sage-deep, #435247); color: #fff;
}
.wcp-filter-toggle.active .wcp-toggle__icon { display: inline; }
.wcp-filter-divider { width: 1px; align-self: stretch; background: var(--wcp-border, #E7D6C1); }
.wcp-filter-meta { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; }
#therapist-filter-count { font-size: 1.36rem; color: var(--wcp-muted, #6E746E); }
#therapist-filter-reset {
  display: none; align-items: center; background: none; border: none;
  color: var(--clay-600-accent, #A24F3A); font-size: 1.36rem; font-weight: 600;
  cursor: pointer; text-decoration: underline;
}
.wcp-filter-help { width: min(100%, 760px); margin-top: .25rem; }
.wcp-filter-help__summary {
  list-style: none; display: inline-flex; align-items: center; gap: .35rem;
  color: var(--wcp-sage-deep, #435247); font-size: 1.376rem; font-weight: 700;
  cursor: pointer; border-radius: 999px; padding: .4rem .16rem;
}
.wcp-filter-help__summary::-webkit-details-marker { display: none; }
.wcp-filter-help__summary .material-symbols-outlined {
  font-size: 18px; line-height: 1; color: var(--clay-600-accent, #A24F3A);
}
.wcp-filter-help__popup {
  width: min(100%, 760px); margin-top: .7rem; padding: 1.6rem 1.76rem;
  border: 1px solid var(--wcp-border, #E7D6C1); border-radius: 14px;
  background: var(--wcp-bg, #FAF6EF); color: var(--wcp-text, #2F3A33);
  box-shadow: 0 10px 28px rgba(47,58,51,.07);
}
.wcp-filter-help__popup p { margin: 0 0 .85rem; color: var(--wcp-muted, #6E746E); line-height: 1.55; }
.wcp-filter-help__popup dl {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem; margin: 0;
}
.wcp-filter-help__popup div { min-width: 0; }
.wcp-filter-help__popup dt { font-weight: 800; color: var(--wcp-sage-deep, #435247); margin: 0 0 .15rem; }
.wcp-filter-help__popup dd { margin: 0; color: var(--wcp-muted, #6E746E); line-height: 1.45; font-size: 1.44rem; }

/* ── FAQ accordion ────────────────────────────────────────────────────── */
.wcp-faq-item {
  border: 1px solid var(--wcp-border, #E7D6C1); border-radius: 12px;
  margin-bottom: .6rem; background: var(--wcp-card, #fff); overflow: hidden;
}
.wcp-faq-question {
  width: 100%; text-align: left; padding: 1.6rem 2rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; font-weight: 600; color: var(--wcp-text, #2F3A33);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.wcp-faq-question::after {
  content: '+'; font-size: 2.08rem; color: var(--clay-500-primary, #BE6149);
  transition: transform .2s ease; flex: 0 0 auto;
}
.wcp-faq-question.active::after { transform: rotate(45deg); }
.wcp-faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  padding: 0 2rem; color: var(--wcp-muted, #6E746E); line-height: 1.6;
}
.wcp-faq-answer p { margin: 0 0 1rem; }

/* ── Floating CTA (mobile) ────────────────────────────────────────────── */
.wcp-float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000000;
  display: flex; gap: .5rem; padding: .96rem 1.2rem;
  background: rgba(250, 246, 239, .96);
  border-top: 1px solid var(--wcp-border, #E7D6C1);
  transform: translateY(110%); transition: transform .25s ease;
  backdrop-filter: blur(6px);
}
.wcp-float-cta.visible { transform: none; }
.wcp-float-cta .wcp-btn { flex: 1; padding: 1.12rem .8rem; font-size: 1.44rem; }
@media (min-width: 992px) { .wcp-float-cta { display: none; } }

/* ── Scroll animations ────────────────────────────────────────────────── */
.wcp-animate, .wcp-animate-group > * {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.wcp-animate.wcp-visible, .wcp-animate-group > .wcp-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .wcp-animate, .wcp-animate-group > * { opacity: 1; transform: none; transition: none; }
}

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wcp-quiz-wrapper { padding: 18px; font-size: 12.8px; }
  .wcp-quiz-wrapper--compact { padding: 16px; }
  .wcp-quiz-wrapper .wcp-btn { font-size: 13.2px; padding: 10px 16px; }
  .wcp-quiz-intro h3, .wcp-quiz-step h3, .wcp-quiz-result-title { font-size: 17.6px; }
  .wcp-quiz-intro p, .wcp-quiz-result-body { font-size: 13.2px; }
  .wcp-quiz-kicker, .wcp-quiz-step__counter { font-size: 12px; }
  .wcp-quiz-option { font-size: 13.2px; padding: 11px 13px; }
  .wcp-quiz-result-phone { font-size: 12.4px; }
  .wcp-filter-panel { margin-top: 2rem; min-height: 0; }
  .wcp-filter-divider { display: none; }
  .wcp-filter-help__popup dl { grid-template-columns: 1fr; }
  .wcp-zespol-grid { grid-template-columns: 1fr; }
  .wcp-form-grid { grid-template-columns: 1fr; }
  .wcp-contact-shell input[type="submit"] { width: 100%; justify-content: center; }
  .par-logo { width: 150px; height: 74px; }
}

/* ── Team finder quiz — restore the [hidden] contract ──────────────────────
   The quiz state machine in assets/js/wcp-team-z1.js switches panels with the
   HTML `hidden` attribute:
       intro.hidden = s !== 'intro'; run.hidden = s !== 'run'; res.hidden = ...
   `hidden` only gets `display:none` from the UA stylesheet, and ANY author
   `display` rule beats the UA sheet. The panel CSS sets
   `.qz-intro{display:flex}` and `.qz-result{display:grid}`, so all three panels
   rendered at once and the quiz looked frozen — the questions never appeared to
   change. The design showcase worked only because its reset carried a global
   `[hidden]{display:none}`, which was never ported to production.

   !important because the panel CSS is an inline <style> in the body (a Bricks
   html element), which wins on source order over this stylesheet. */
.qz [hidden],
.qz-intro[hidden],
.qz-run[hidden],
.qz-result[hidden] {
  display: none !important;
}

/* ── „Dopasowanie specjalisty" panel — layered restyle (v2 showcase look) ──────
   Requested layering:  cream OUTER → darker-cream INNER panels → light-green
   questionnaire, with more defined borders and a soft shadow on the outer panel.
   Card treatment follows „Strona zespołu · v2": rounded face, real border,
   soft shadow, gentle lift on hover.

   Lives here (enqueued) rather than in the panel's inline <style>, which sits in
   a Bricks html element and is one save away from being stripped — the exact
   failure that emptied this panel before. Selectors are prefixed with
   #wcp-zsp-v1-root.wcp-zsp-v1 (id, 1,0,x) so they outrank the inline `.z1-*` class rules
   (0,1,0) without needing !important.
   ────────────────────────────────────────────────────────────────────────── */

/* 1 — OUTER: cream, defined edge, soft shadow */
#wcp-zsp-v1-root.wcp-zsp-v1 .z1 {
  background: #FAF6EF;
  border: 1px solid #E7D6C1;
  box-shadow: 0 18px 44px -20px rgba(33, 28, 24, .18), 0 4px 12px -6px rgba(33, 28, 24, .08);
}

/* 2 — QUESTIONNAIRE: light green */
#wcp-zsp-v1-root.wcp-zsp-v1 .zsp-quiz {
  /* Very low-contrast sheen: ~3 levels light-to-dark across the panel, so it
     reads as depth rather than as a gradient. Flat colour kept as a fallback
     for any context that drops the gradient. */
  background: #EEF2EA;
  background: linear-gradient(165deg, #F2F5EF 0%, #EEF2EA 55%, #E9EEE4 100%);
  border: 1px solid #C9D8BF;
  box-shadow: 0 2px 10px -4px rgba(62, 79, 55, .10);
}
#wcp-zsp-v1-root.wcp-zsp-v1 .qz .qz-opt {
  background: #FFFDF8;
  border: 1px solid #C9D8BF;
}
#wcp-zsp-v1-root.wcp-zsp-v1 .qz .qz-bar { background: rgba(62, 79, 55, .12); }

/* 3 — INNER PANELS: darker cream, defined border */
#wcp-zsp-v1-root.wcp-zsp-v1 .zsp-panel,
#wcp-zsp-v1-root.wcp-zsp-v1 .z1-detail {
  background: #F3E8D8;
  background: linear-gradient(165deg, #F7EEE1 0%, #F3E8D8 55%, #EFE3D1 100%);
  border: 1px solid #E0CDB4;
  box-shadow: 0 2px 10px -4px rgba(33, 28, 24, .10);
}

/* 4 — LIST ROWS as v2-style cards on the cream field */
#wcp-zsp-v1-root.wcp-zsp-v1 .z1-row {
  background: #F3E8D8;
  border: 1px solid #E0CDB4;
  border-radius: 18px;
  box-shadow: 0 2px 8px -3px rgba(33, 28, 24, .10);
  transition: border-color .12s cubic-bezier(.22,1,.36,1),
              box-shadow .2s cubic-bezier(.22,1,.36,1),
              transform .2s cubic-bezier(.22,1,.36,1),
              background .12s cubic-bezier(.22,1,.36,1);
}
#wcp-zsp-v1-root.wcp-zsp-v1 .z1-row:hover {
  border-color: #BE6149;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(33, 28, 24, .20), 0 2px 6px -3px rgba(33, 28, 24, .10);
}
#wcp-zsp-v1-root.wcp-zsp-v1 .z1-row.sel {
  background: #FFFDF8;
  border-color: #BE6149;
  box-shadow: 0 0 0 1px #BE6149, 0 10px 22px -12px rgba(33, 28, 24, .18);
}
/* filter chips read against the darker cream */
#wcp-zsp-v1-root.wcp-zsp-v1 .wcp-filter-toggle { background: #FFFDF8; border-color: #E0CDB4; }
#wcp-zsp-v1-root.wcp-zsp-v1 .wcp-filter-toggle.active { background: #BE6149; border-color: #BE6149; }

@media (prefers-reduced-motion: reduce) {
  #wcp-zsp-v1-root.wcp-zsp-v1 .z1-row,
  #wcp-zsp-v1-root.wcp-zsp-v1 .z1-row:hover { transition: none; transform: none; }
}

/* ===== z1 detail chips — "Pracuje z" / "Nurty terapii" / "Kwalifikacje" =====
   The panel restyle moved .zsp-panel / .z1-detail onto darker cream (#F3E8D8).
   The stock chips were warm-100 (#f2eadf) fill on that ground — ~3 levels of
   contrast, effectively invisible — and the --sm quals chips were transparent
   with a warm-200 border. Restyled to match the city pill (.z1-dcity: sage
   border + sage-700 text) one step lighter, so the three rows read as a family
   without competing with the city pill for emphasis.
   Specificity: the panel's inline <style> defines .wcp-tag (0,1,0) and sits
   LATER in the document, so any override must out-specify it — hence the
   #wcp-zsp-v1-root.wcp-zsp-v1 prefix (1,2,1). See handoff, z1 restyle entry. */
#wcp-zsp-v1-root.wcp-zsp-v1 .z1-chips .wcp-tag {
  background: #FBF5EA;
  border: 1px solid #CFDCC5;
  color: #3E4F37;
}
#wcp-zsp-v1-root.wcp-zsp-v1 .z1-chips .wcp-tag--sm {
  background: #FDF9F1;
  border: 1px solid #DCE4D4;
  color: #526748;
}

/* Section backdrop: the ported showcase set #wcp-zsp-v1-root{background:var(--z1-warm-0)}
   = pure #FFF, while the page around it is cream #FAF6EF. Because .z1 is rounded
   (28px), that white showed through as four white corner notches around the panel.
   Transparent so the block sits on whatever the page background is, on any page.
   .z1 still reads against it via its border (#E7D6C1) + drop shadow. */
#wcp-zsp-v1-root.wcp-zsp-v1 { background: transparent; }

/* Filter-panel rules. Both were drawn for the showcase's white panel:
   .wcp-filter-divider used --z1-border-soft rgba(33,28,24,.06) and the
   .wcp-filter-meta dashed rule used --z1-warm-200 #e6dccc. On the restyled
   darker-cream panel (#F3E8D8) neither separates anything. Darkened to warm-300
   territory — still soft, but actually a line. */
#wcp-zsp-v1-root.wcp-zsp-v1 .wcp-filter-divider { background: #C9B79E; }
#wcp-zsp-v1-root.wcp-zsp-v1 .wcp-filter-meta { border-top-color: #C9B79E; }


/* CookieYes banner: when the mobile booking bar (.wcp-float-cta) is visible,
   lift the consent banner above it (48px) so its Accept/Customise/Reject buttons
   stay clear of the bar, and the bar (z 10000000) sits on top of the banner (z 9999999). */
@media (max-width: 991px){
  body.wcp-float-cta-visible .cky-consent-container { transform: translateY(-48px) !important; }
}


/* Hide the Google reCAPTCHA v3 badge (loaded site-wide by Booknetic) while keeping
   its bot protection on the booking form. visibility:hidden (not display:none) so the
   reCAPTCHA script keeps its token flow intact. NOTE: Google's v3 terms ask that the
   "This site is protected by reCAPTCHA..." line be shown in the user flow when the badge
   is hidden — add it to the privacy policy / booking form to stay compliant. */
.grecaptcha-badge { visibility: hidden !important; }

/* ===== z1 detail: sticky lock (showcase "Recepcja" behaviour) =====
   position:sticky on .z1-detail is in the inline z1 style (top:82px) but three
   things stop it engaging: (1) overflow-x:hidden on html/body (fixed in
   wcp-polish.css -> overflow-x:clip); (2) the inline .z1{overflow:hidden
   !important}; (3) the wrapping Bricks section's overflow:hidden. Any ancestor
   with overflow != visible breaks position:sticky, so neutralise .z1 and the
   section. Also bump the sticky top to clear the taller homepage sticky header
   (~140px) — the showcase used 82px for a 76px header. */
#wcp-zsp-v1-root.wcp-zsp-v1 .z1 { overflow: visible !important; }
#wcp-zsp-v1-root.wcp-zsp-v1 .z1-detail { top: 150px !important; }
section:has(#wcp-zsp-v1-root) { overflow: visible !important; }
#brxe-rputip { overflow: visible !important; } /* direct fallback if :has() unsupported */
