/*
 * counselling-finder.css  –  Premium redesign
 * Uses brand tokens: olive #4D624D · cream #E7E3DA · charcoal #2F2F2F · gold #C6A969
 */

/* ── Tokens ─────────────────────────────────────────────────────────── */
.cf-page {
  --olive:      #4D624D;
  --olive-dk:   #3a4e3a;
  --olive-lt:   rgba(77,98,77,0.10);
  --cream:      #E7E3DA;
  --cream-dk:   #dbd6cc;
  --charcoal:   #2F2F2F;
  --gold:       #C6A969;
  --white:      #ffffff;
  --border:     #e4dfd7;
  --text-muted: #7a7166;
  --now-bg:     #e6f5ec;
  --now-fg:     #1a6b3a;
  --soon-bg:    #fef8e7;
  --soon-fg:    #7a5800;
  --wait-bg:    #f0ede8;
  --wait-fg:    #5e574e;
  --card-r:     16px;
  --shadow-sm:  0 2px 12px rgba(47,47,47,0.07);
  --shadow-md:  0 6px 28px rgba(47,47,47,0.11);
  --shadow-lg:  0 16px 56px rgba(47,47,47,0.14);
}

/* ── Global layout ───────────────────────────────────────────────────── */
.cf-container {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Crisis banner ───────────────────────────────────────────────────── */
.cf-crisis-banner {
  background: #6b1a27;
  color: #fff;
  padding: .75rem 1.25rem;
}
.cf-crisis-inner {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  text-align: center;
}
.cf-crisis-icon {
  flex-shrink: 0;
  width: 17px; height: 17px;
  color: #f9a8b4;
  margin-top: 2px;
}
.cf-crisis-inner p { font-size: .875rem; line-height: 1.55; margin: 0; }
.cf-crisis-link { color: #f9a8b4; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cf-crisis-link:hover { color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.cf-hero {
  background: var(--olive);
  padding: 3.5rem 0 2.75rem;
  text-align: center;
}
.cf-hero-badge {
  display: inline-block;
  background: rgba(198,169,105,.22);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: .28rem .85rem;
  margin-bottom: 1.1rem;
}
.cf-hero-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .8rem;
}
.cf-hero-accent { color: var(--gold); }
.cf-hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 1rem;
}
.cf-privacy-note {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
}

/* ── Quiz section ────────────────────────────────────────────────────── */
.cf-quiz-section {
  background: var(--cream);
  padding: 2.5rem 0 0;
}

/* Quiz card */
.cf-quiz-card {
  background: var(--white);
  border-radius: var(--card-r);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2.25rem 1.75rem;
  max-width: 660px;
  margin-inline: auto;
  transition: opacity .35s ease, transform .35s ease;
}
.cf-quiz-card.cf-quiz-done {
  opacity: .35;
  transform: scale(0.985);
  pointer-events: none;
}

/* Progress */
.cf-progress-wrap {
  height: 4px;
  background: #e8e4dc;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .65rem;
}
.cf-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--olive), var(--gold));
  border-radius: 99px;
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.cf-progress-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Steps */
.cf-step { display: none; }
.cf-step.active { display: block; animation: cf-in .25s ease both; }
@keyframes cf-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cf-q-label {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

/* ── Choice grid ─────────────────────────────────────────────────────── */
.cf-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

/* Option card */
.cf-choice {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #faf9f7;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1rem;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .15s;
  user-select: none;
  position: relative;
}
.cf-choice:hover {
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(77,98,77,.12);
  transform: translateY(-1px);
}
.cf-choice.selected {
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(77,98,77,.15), 0 2px 10px rgba(77,98,77,.12);
}
.cf-choice.selected .cf-choice-icon svg { stroke: var(--olive); }
.cf-choice.selected .cf-choice-text { color: var(--olive); font-weight: 700; }

/* Check dot on selected */
.cf-choice.selected::after {
  content: '';
  position: absolute;
  top: .55rem; right: .6rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--olive);
}

/* Icon box */
.cf-choice-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cf-choice-icon svg {
  width: 16px; height: 16px;
  stroke: var(--text-muted);
  transition: stroke .18s;
}
.cf-choice-text {
  font-size: .875rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  transition: color .18s;
}

/* Nav bar (back only) */
.cf-quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  min-height: 46px;
}

/* Buttons */
.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: .6rem 1.35rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.cf-btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.cf-btn-ghost:hover {
  border-color: var(--olive);
  color: var(--olive);
  background: var(--olive-lt);
}

/* ── Results section ─────────────────────────────────────────────────── */
.cf-results-section {
  background: var(--cream);
  padding: 2rem 0 3.5rem;
}
.cf-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
  max-width: 660px;
  margin-inline: auto;
}
.cf-results-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--charcoal);
}
.cf-restart-btn {
  font-size: .8rem;
  padding: .45rem 1rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
}
.cf-restart-btn:hover {
  border-color: var(--olive);
  color: var(--olive);
  background: var(--olive-lt);
}

/* Cards grid */
.cf-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 660px;
  margin-inline: auto;
}

/* ── Service card (premium redesign) ─────────────────────────────────── */
.cf-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--card-r);
  padding: 1.35rem 1.35rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.cf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d0cbc2;
}
.cf-card-matched {
  border-left: 3px solid var(--olive);
  animation: cf-in .3s ease both;
}

/* Card header */
.cf-card-header { display: flex; flex-direction: column; gap: .2rem; }
.cf-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.3;
  margin: 0;
}
.cf-card-tagline {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Badges row */
.cf-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

/* Badges */
.cf-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 50px;
  padding: .2rem .6rem;
  white-space: nowrap;
}
.cf-badge-cost {
  background: var(--olive);
  color: #fff;
}
.cf-avail-now  { background: var(--now-bg);  color: var(--now-fg); }
.cf-avail-soon { background: var(--soon-bg); color: var(--soon-fg); }
.cf-avail-wait { background: var(--wait-bg); color: var(--wait-fg); }

/* Method pills */
.cf-method {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  font-size: .68rem;
  font-weight: 600;
  color: #666;
  background: #f0ede7;
  border-radius: 50px;
  padding: .2rem .55rem;
}
.cf-method svg { flex-shrink: 0; }

/* Meta */
.cf-card-meta {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding-top: .1rem;
}
.cf-meta-label { font-weight: 700; color: var(--charcoal); }

/* Contact links */
.cf-card-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  padding-top: .15rem;
}
.cf-contact-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  padding: .3rem .65rem;
  transition: all .18s;
}
.cf-phone-link { color: var(--olive); background: var(--olive-lt); }
.cf-phone-link:hover { background: var(--olive); color: #fff; }
.cf-web-link   { color: #555; background: #f0ede7; }
.cf-web-link:hover { background: var(--charcoal); color: #fff; }

/* Note */
.cf-card-note {
  font-size: .72rem;
  color: #b8a97a;
  font-style: italic;
  margin: 0;
  padding-top: .15rem;
  border-top: 1px solid #f0ede7;
}

/* No match */
.cf-no-match {
  font-size: .9rem;
  color: #555;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--card-r);
  padding: 1.5rem;
  grid-column: 1 / -1;
}

/* ── All-services divider ─────────────────────────────────────────────── */
.cf-divider {
  max-width: 660px;
  margin-inline: auto;
  margin-top: 2.75rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--cream-dk);
}
.cf-all-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: .3rem;
}
.cf-all-sub { font-size: .83rem; color: var(--text-muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.cf-faq-section {
  background: var(--white);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.cf-faq-inner { max-width: 660px; }
.cf-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
}
.cf-faq-list { display: flex; flex-direction: column; gap: .5rem; }
.cf-faq-item {
  background: #faf9f7;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.cf-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .95rem 1.1rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .15s;
}
.cf-faq-q::-webkit-details-marker { display: none; }
.cf-faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--olive);
  flex-shrink: 0;
  margin-left: .75rem;
  transition: transform .22s;
}
details[open] .cf-faq-q { background: #f5f2ee; }
details[open] .cf-faq-q::after { transform: rotate(45deg); }
.cf-faq-a {
  padding: 0 1.1rem 1rem;
  font-size: .875rem;
  color: #555;
  line-height: 1.65;
  border-top: 1px solid var(--border);
}
.cf-faq-a p { margin: .65rem 0 0; }

/* ── Credit ──────────────────────────────────────────────────────────── */
.cf-credit {
  background: var(--cream);
  border-top: 1px solid var(--cream-dk);
  padding: 1.5rem 0;
}
.cf-credit p {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
.cf-inline-link { color: var(--olive); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cf-inline-link:hover { color: var(--olive-dk); }

/* ── Utilities ───────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .cf-quiz-card  { padding: 1.5rem 1rem 1.25rem; }
  .cf-choices    { grid-template-columns: 1fr; }
  .cf-q-label    { font-size: 1.15rem; }
  .cf-hero       { padding: 2.5rem 0 2rem; }
  .cf-hero-title { font-size: 1.7rem; }
}
