/* ============================================================================
   PrimeDoggy v2 — assets/css/wellness-profile.css
   Destination: /wp-content/themes/primedoggy-v2/assets/css/wellness-profile.css
   Source of truth: Amendment v1.2 §B–E (verbatim copy/structure), restyled
   into the v2 visual system per Brief §4.0 tokens + §4.1 motion. Enqueued
   only on the two wellness templates (inc/enqueue.php, already wired).

   Depends on: tokens.css (--sage/--cream/etc + Inter-numbers rule),
   motion.css (--ease-out-expo/--dur-* + reduced-motion kill switch).
   The `.number` class on progress counters is tokens.css's own selector —
   no duplicate rule needed here.
   ========================================================================== */

:root {
  /* Local component tokens — amber validation accent has no site-wide
     equivalent in tokens.css and is scoped to this file only. */
  --pdw-amber-bg: #fef7ed;
  --pdw-amber-border: #e8b84b;
  --pdw-amber-text: #7a4f08;
}

.pd-wellness-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* ---- Brand header ---- */
.pd-wellness-header {
  text-align: center;
  padding: 1.5rem 0 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.pdw-logo-wrap { width: 68px; margin: 0 auto 0.75rem; border-radius: 14px; overflow: hidden; }
.pdw-logo-wrap img { width: 100%; height: auto; display: block; }
.pdw-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--sage);
  margin-bottom: 0.3rem;
}
.pdw-tool-name { font-family: var(--font-ui); font-size: 13px; color: var(--muted); font-style: italic; }

/* ---- Screens ---- */
.screen { display: none; }
.screen.active { display: block; animation: pdwFadeUp var(--dur-sig) var(--ease-out-expo); }
@keyframes pdwFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pdw-noscript-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* ---- Intro screen ---- */
.pdw-intro-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2.5rem 2.25rem;
  margin-bottom: 1rem;
  text-align: center;
}
.pdw-intro-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 1.125rem;
}
.pdw-intro-h1 em {
  color: var(--sage-emphasis);
  font-style: normal;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(74, 99, 85, 0.4);
  text-underline-offset: 3px;
}
.pdw-intro-sub { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 1.75rem; }
.pdw-trust-list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 11px;
  margin: 0 0 1.875rem;
  padding: 0;
  text-align: left;
}
.pdw-trust-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); font-style: italic; }
.pdw-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdw-check-icon svg { width: 12px; height: 12px; }

.pdw-btn-start {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.pdw-disclaimer-box {
  font-size: 12px;
  color: var(--charcoal);
  line-height: 1.7;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  margin-top: 0.875rem;
}
.pdw-disclaimer-box strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
  font-style: normal;
}

/* ---- Progress ---- */
.pdw-progress-wrap { margin-bottom: 1.5rem; }
.pdw-progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; }
.pdw-progress-meta span { font-size: 12px; color: var(--muted); font-weight: 500; }
.pdw-progress-track { height: 3px; background: var(--sage-light); border-radius: 999px; overflow: hidden; }
.pdw-progress-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  transition: width var(--dur-std) var(--ease-out-expo);
}

/* ---- Question card ---- */
.pdw-q-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.625rem 1.5rem;
  margin-bottom: 0.75rem;
}
.pdw-q-label {
  font-size: 11px;
  color: var(--sage-emphasis);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.pdw-q-text {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 19px;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.pdw-q-sub { font-size: 13px; color: var(--muted); font-style: italic; margin: -0.875rem 0 1.125rem; }

.pdw-options-list { display: flex; flex-direction: column; gap: 9px; }
.pdw-opt-btn {
  width: 100%;
  text-align: left;
  padding: 13px 15px;
  font-size: 15px;
  font-family: var(--font-ui);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--dur-micro) var(--ease-out-expo),
              background var(--dur-micro) var(--ease-out-expo),
              color var(--dur-micro) var(--ease-out-expo);
}
.pdw-radio-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-micro) var(--ease-out-expo);
}
.pdw-opt-btn:hover:not(.is-selected) { border-color: var(--sage); background: var(--sage-light); color: var(--sage-hover); }
.pdw-opt-btn:hover:not(.is-selected) .pdw-radio-dot { border-color: var(--sage); }
.pdw-opt-btn.is-selected { border-color: var(--sage); background: var(--sage); color: #fff; }
.pdw-opt-btn.is-selected .pdw-radio-dot { border-color: #fff; background: rgba(255, 255, 255, 0.2); }
.pdw-opt-btn.is-selected .pdw-radio-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; display: block; }

.pdw-text-field {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  font-family: var(--font-ui);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--dur-micro) var(--ease-out-expo), box-shadow var(--dur-micro) var(--ease-out-expo);
}
.pdw-text-field:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(123, 149, 132, 0.12); }
.pdw-text-field::placeholder { color: var(--muted); font-style: italic; }

.pdw-breed-wrap { position: relative; }
.pdw-breed-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--sage);
  border-top: none;
  border-radius: 0 0 12px 12px;
  z-index: 20;
  max-height: 210px;
  overflow-y: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}
.pdw-breed-item {
  padding: 11px 15px;
  font-size: 14px;
  font-family: var(--font-ui);
  color: var(--muted);
  cursor: pointer;
  border-bottom: 0.5px solid var(--border);
}
.pdw-breed-item:last-child { border-bottom: none; }
.pdw-breed-item:hover { background: var(--sage-light); color: var(--sage-hover); }

.pdw-validation-msg {
  font-size: 13px;
  color: var(--pdw-amber-text);
  background: var(--pdw-amber-bg);
  border: 1px solid var(--pdw-amber-border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 9px;
  font-style: italic;
}

/* ---- Nav row ---- */
.pdw-nav-row { display: flex; gap: 10px; align-items: center; margin-top: 0.75rem; }
.pdw-btn-back {
  padding: 13px 18px;
  font-size: 14px;
  white-space: nowrap;
}
.pdw-btn-next { flex: 1; padding: 14px 20px; font-size: 15px; }

/* ---- Email screen ---- */
.pdw-email-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.625rem;
}
.pdw-email-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-bottom: 0.5rem; }
.pdw-email-card p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.pdw-field-group { margin-bottom: 13px; }
.pdw-field-lbl {
  display: block;
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 5px;
}
.pdw-field-inp {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  font-family: var(--font-ui);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--dur-micro) var(--ease-out-expo), box-shadow var(--dur-micro) var(--ease-out-expo);
}
.pdw-field-inp:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(123, 149, 132, 0.12); }
.pdw-btn-submit { width: 100%; padding: 15px; margin-top: 4px; }
.pdw-privacy-line { font-size: 12px; color: var(--muted); text-align: center; margin-top: 11px; font-style: normal; }

/* ---- Loading state (walking paws, §C) ---- */
.pdw-loading-wrap { text-align: center; padding: 4rem 0; }
.pdw-paw-walk { display: inline-flex; gap: 14px; align-items: center; color: var(--sage); }
.pdw-paw { width: 28px; opacity: 0.35; transition: opacity var(--dur-std) var(--ease-out-expo); }
.pdw-paw.pdw-active { opacity: 1; transform: scale(1.08); }
.pdw-loading-time { font-size: 13px; color: var(--muted); margin-top: 1.5rem; font-style: italic; }
.pdw-loading-msg {
  font-size: 14px;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
  transition: opacity 200ms ease;
}

/* ---- Results ---- */
.pdw-result-hero { background: var(--sage); border-radius: 16px; padding: 1.75rem; margin-bottom: 1rem; }
.pdw-dog-tag {
  display: block;
  text-align: center;
  font-size: 15px;
  font-family: var(--font-ui);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 1rem;
  color: #fff;
}
.pdw-result-opening {
  background: rgba(255, 255, 255, 0.15);
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.125rem;
}
.pdw-result-opening p { color: #fff; font-size: 15px; line-height: 1.75; margin: 0; }

.pdw-ai-disclaimer {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 0.5rem 0 0;
  font-style: italic;
}
.pdw-ai-disclaimer a { color: var(--sage); }

.pdw-fallback-notice {
  font-size: 13px;
  color: var(--pdw-amber-text);
  background: var(--pdw-amber-bg);
  border: 1px solid var(--pdw-amber-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.pdw-fallback-restart-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--pdw-amber-text);
  text-decoration: underline;
  cursor: pointer;
}

.pdw-result-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.375rem;
  margin-bottom: 0.875rem;
}
.pdw-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sage-emphasis);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--sage-light);
}
.pdw-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.pdw-result-section p { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0; }
.pdw-reset-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.pdw-reset-list li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.375rem;
  position: relative;
}
.pdw-reset-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-light);
  border: 1.5px solid var(--sage);
}
.pdw-transition-line { margin-bottom: 1rem !important; }

.pdw-upsell-card {
  background: var(--sage-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sage);
  border-radius: 0 12px 12px 0;
  padding: 1.125rem 1.25rem;
  margin-bottom: 0.75rem;
}
.pdw-upsell-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0 0 4px; color: var(--charcoal); }
.pdw-upsell-card p { font-size: 13px; margin-bottom: 9px !important; }
.pdw-upsell-link { font-size: 13px; font-weight: 500; color: var(--sage-hover); text-decoration: none; font-family: var(--font-ui); }
.pdw-upsell-link:hover { text-decoration: underline; }

.pdw-closing-line {
  font-size: 16px;
  color: var(--sage-emphasis);
  font-style: italic;
  text-align: center;
  padding: 0.75rem 0;
  line-height: 1.6;
  font-weight: 600;
}

.pdw-btn-restart {
  width: 100%;
  padding: 11px;
  font-size: 13px;
  font-style: italic;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: all var(--dur-micro) var(--ease-out-expo);
}
.pdw-btn-restart:hover { background: var(--sage-light); color: var(--sage-hover); border-color: var(--sage); }

.pdw-error-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
}
.pdw-error-card p { color: var(--muted); margin-bottom: 1rem; }

/* ---- CTA band (Plan §10.1) ---- */
.pdw-cta-band { text-align: center; padding: 1.5rem 0; }
.pdw-cta-heading { font-family: var(--font-display); font-size: 20px; color: var(--charcoal); margin-bottom: 1rem; }
.pdw-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 480px) {
  .pd-wellness-wrap { padding: 1.125rem 1rem 3.5rem; }
  .pdw-intro-card { padding: 1.875rem 1.375rem 1.75rem; }
  .pdw-intro-h1 { font-size: 24px; }
  .pdw-brand-name { font-size: 25px; }
  .pdw-q-text { font-size: 17px; }
  .pdw-opt-btn { padding: 14px 13px; font-size: 14px; }
  .pdw-cta-row { flex-direction: column; }
}

@media (min-width: 700px) {
  .pdw-intro-card { padding: 3rem 3.5rem 2.5rem; }
  .pdw-intro-h1 { font-size: 34px; }
  .pdw-q-card { padding: 2rem 2.25rem; }
  .pdw-result-section { padding: 1.75rem 2rem; }
  .pdw-email-card { padding: 2.5rem; }
  .pdw-result-hero { padding: 2.25rem 2.5rem; }
}
