/* ══ DIGITALE WEGWIJZER — Koraal Advocaten ══ */

/* Zwevende knop rechtsonder */
.ww-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--coral); color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(233,97,59,.35);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.ww-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(233,97,59,.45);
}
.ww-fab svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ww-fab.ww-hidden { display: none; }

/* Paneel */
.ww-panel {
  position: fixed; bottom: 28px; right: 28px; z-index: 9001;
  width: 380px; max-height: 560px;
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 16px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(20px); opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}
.ww-panel.ww-open {
  transform: translateY(0); opacity: 1;
  pointer-events: auto;
}

/* Header */
.ww-header {
  background: var(--green); color: var(--white);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.ww-header-title {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}
.ww-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.6); transition: color .2s;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
}
.ww-close:hover { color: var(--white); }
.ww-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Body (scrollbaar) */
.ww-body {
  flex: 1; overflow-y: auto;
  padding: 24px 20px;
}

/* Stap-indicator */
.ww-step-label {
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--coral);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.ww-step-label::before {
  content: ''; width: 16px; height: 1.5px; background: var(--coral); flex-shrink: 0;
}

/* Vraag */
.ww-question {
  font-size: 18px; font-weight: 700; color: var(--green);
  letter-spacing: -.02em; line-height: 1.3;
  margin-bottom: 20px;
}

/* Keuze-knoppen */
.ww-options { display: flex; flex-direction: column; gap: 8px; }
.ww-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--f); font-size: 14px; font-weight: 500; color: var(--green);
  text-align: left; width: 100%;
  transition: border-color .2s, background .2s, transform .15s;
}
.ww-option:hover {
  border-color: var(--coral);
  background: var(--white);
  transform: translateX(4px);
}
.ww-option-icon {
  font-size: 18px; flex-shrink: 0; width: 28px; text-align: center;
}

/* Resultaat-sectie */
.ww-result-intro {
  font-size: 14px; font-weight: 300; color: var(--muted);
  line-height: 1.6; margin-bottom: 20px;
}

/* Advocaat mini-kaart */
.ww-lawyer {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.ww-lawyer:first-of-type { border-top: none; }
.ww-lawyer-photo {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  background: var(--sand); flex-shrink: 0;
}
.ww-lawyer-info { flex: 1; min-width: 0; }
.ww-lawyer-name {
  font-size: 15px; font-weight: 700; color: var(--green);
  letter-spacing: -.01em;
}
.ww-lawyer-spec {
  font-size: 12px; font-weight: 300; color: var(--muted);
  margin-top: 2px;
}
.ww-lawyer-links {
  display: flex; gap: 8px; margin-top: 6px;
}
.ww-lawyer-links a {
  font-size: 11px; color: var(--coral); text-decoration: none;
  font-weight: 500; transition: color .2s;
}
.ww-lawyer-links a:hover { color: var(--green); }

/* CTA-knoppen in resultaat */
.ww-ctas {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 20px;
}
.ww-cta-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px;
  background: var(--coral); color: var(--white);
  font-family: var(--f); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none;
  border: none; border-radius: 2px; cursor: pointer;
  transition: background .2s;
}
.ww-cta-primary:hover { background: #d4542f; }
.ww-cta-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  background: transparent; color: var(--green);
  font-family: var(--f); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-decoration: none;
  border: 1.5px solid var(--green); border-radius: 2px;
  transition: background .2s, color .2s;
}
.ww-cta-secondary:hover { background: var(--green); color: var(--white); }

/* Footer / Disclaimer + Opnieuw */
.ww-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  background: var(--cream);
}
.ww-disclaimer {
  font-size: 10px; font-weight: 300; color: var(--muted);
  line-height: 1.4;
}
.ww-restart {
  background: none; border: none; cursor: pointer;
  font-family: var(--f); font-size: 11px; font-weight: 600;
  color: var(--coral); letter-spacing: .03em;
  white-space: nowrap;
  transition: color .2s;
}
.ww-restart:hover { color: var(--green); }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .ww-fab { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .ww-fab svg { width: 22px; height: 22px; }
  .ww-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%; max-height: 75vh;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
  }
  .ww-panel.ww-open { transform: translateY(0); }
}

/* Animatie voor opties */
.ww-option { opacity: 0; transform: translateY(8px) translateX(0); }
.ww-options.ww-animated .ww-option {
  opacity: 1; transform: translateY(0) translateX(0);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
