/* =========================
   Base / Tokens
========================= */
:root{
  --ink:#0d2c55;           /* primary text / brand */
  --ink-2:#1b3b6f;         /* darker hover */
  --bg:#f8f9fa;            /* page bg */
  --card:#ffffff;          /* surfaces */
  --muted:#666;
  --line:#e6e8ee;

  --brand:#003b6f;         /* buttons, accents */
  --brand-2:#f9a44c;       /* hover accent */

  --good:#22c55e;          /* success */
  --good-soft:rgba(34,197,94,.14);

  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:16px;
  --shadow-sm:0 2px 8px rgba(0,0,0,.06);
  --shadow-md:0 5px 15px rgba(0,0,0,.08);
  --shadow-lg:0 12px 28px rgba(0,0,0,.12);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height:1.45;
}

/* =========================
   Layout
========================= */
.container{
  width: min(90%, 1200px);
  margin: 0 auto;
}

h2{
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  color: #0a1a44;
  margin: 2.5rem auto 1.8rem;
  text-align:center;
}

/* =========================
   Hero
========================= */
.hero{
  background: url('../images/hero-bg-pattern.svg') no-repeat center/cover, #fff;
  color: var(--ink);
  text-align:center;
  padding: clamp(40px, 6vw, 60px) 20px;
  min-height: 280px;
  display:grid;
  place-items:center;
}

.headline-hero{
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  letter-spacing:.2px;
  margin-bottom:.15px;
  font-weight: 800;
  margin-top: 20px;
}

.desc-hero{
  font-size: clamp(.95rem, .85rem + .4vw, 1.05rem);
  opacity:.85;
}

/* CTA buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  padding:10px 16px;
  border-radius: var(--radius-sm);
  text-decoration:none;
  font-weight:700;
  border:1px solid transparent;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn:focus-visible{ outline:3px solid #94c1ff; outline-offset:2px; }

.btn-viewmore,
.btn-retake{
  background: var(--brand);
  color:#fff;
}
.btn-retake:hover,
.btn-viewmore:hover{
  background: var(--brand-2);
  color:#fff;
  transform: translateY(-1px);
}

/* =========================
   Main content
========================= */
.content{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:flex-start;
  justify-content:center;
  margin: 0 auto;
}

/* Optional filter panel */
.filter-section{
  flex:0 0 260px;
  background: var(--card);
  padding:16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size:14px;
  border:1px solid var(--line);
}
.filter-section h5{
  margin:10px 0 6px;
  font-weight:800;
  font-size:15px;
  color: var(--brand);
}
.checkbox-group{ display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.filter-section label{
  display:flex; align-items:center; gap:8px;
  padding:6px 4px; border-radius:6px; cursor:pointer;
  transition: background .2s ease, padding-left .2s ease;
}
.filter-section label:hover{ background:#f1f5f9; padding-left:8px; }
.filter-section input[type="checkbox"]{ width:16px; height:16px; cursor:pointer; }

/* =========================
   Pet grid & cards
========================= */
.pet-grid{
  flex:1;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Card */
.pet-card{
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pet-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color:#dfe3ea;
}

/* Image (white frame on top/sides) */
.pet-card img{
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-top: 10px solid #ffffff;
  border-left: 10px solid #ffffff;
  border-right: 10px solid #ffffff;
  border-bottom: none;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: #f9fafb;
}

/* Info */
.pet-info{
  padding:14px 16px 6px;
  text-align:left;
}
.pet-info h3{
  font-size:1.1rem;
  font-weight:700;
  color:#222;
}
.pet-info p{
  margin-top:4px;
  font-size:.95rem;
  color: var(--muted);
}

/* Personality bubbles */
.personality-container{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin: 10px 14px 12px;
}
.personality-bubble{
  padding:5px 10px;
  border-radius: 999px;
  font-size:12px;
  font-weight:700;
  text-transform:capitalize;
  border:1px solid #0000;
}
.playful{     background:#fdd9d9; color:#8c3f3f; }
.quiet{       background:#ebded0; color:#583b2b; }
.energetic{   background:#fff0c1; color:#8c7200; }
.laid-back{   background:#daffd7; color:#2e6f40; }
.kid-friendly{background:#d7f8ff; color:#2e626f; }
.pet-friendly{background:#ece0fa; color:#583d6c; }

/* =========================
   Score badge
========================= */
.score-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background-color: #22c55e;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.score-badge:hover{ background-color: #16a34a; }

@media (max-width: 480px){
  .score-badge{ font-size: 0.75rem; padding: 3px 8px; }
}

/* =========================
   Buttons row (bottom of card)
========================= */
.button-container{
  margin-top: auto;
  display:flex;
  align-items:center;
  justify-content:flex-start; /* keep order left→right */
  gap:12px;
  padding:14px 16px 16px;
  border-top: 1px solid #f1f1f1;
  background:#fff;
}

/* Force child order: View first, Heart second */
.button-container > a.btn-details{ order:1; }
.button-container > form         { order:2; margin:0; display:inline-block; }

/* View Details button */
.btn-details{
  flex:1; /* stretches nicely */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 22px;
  background:#12095d;        /* indigo */
  color:#fff;
  border:none;
  border-radius:12px;
  font-weight:600;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  transition: background .2s ease, transform .15s ease;
}
.btn-details:hover{ background:#0f084b; transform:translateY(-1px); }
.btn-details:focus-visible{ outline:3px solid #cfe3ff; outline-offset:2px; }

/* Heart button (soft pink square) */
.btn-heart{
  width:44px; height:44px; min-width:44px;
  display:inline-grid; place-items:center;
  background:#ffecec;
  border:1.5px solid #f8b4b4;
  border-radius:12px;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-heart i{ font-size:18px; color:#e11d48; }
.btn-heart:hover{ background:#ffe2e2; border-color:#fca5a5; transform:translateY(-1px); }
.btn-heart.favorited{ background:#ffe2e2; border-color:#fca5a5; }
.btn-heart.favorited i{ color:#b91c1c; }

/* =========================
   Debug block
========================= */
.debug-matching{
  font-size:12px;
  margin:10px 12px 12px;
  background:#f4f6f8;
  padding:8px;
  border-radius:6px;
  border:1px solid var(--line);
}

/* =========================
   "View more" arrow
========================= */
.view-more-container{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top: 20px;
  cursor:pointer;
}
.view-more-container i{
  font-size:24px;
  color: var(--brand);
  transition: transform .25s ease;
}
.view-more-container:hover i{ transform: translateY(5px); }

/* =========================
   Adoption process
========================= */
.adoption-process{
  text-align:center;
  margin-top:40px;
  background:#fff;
  border:1px solid #e6e8ee;
  border-radius:12px;
  padding:14px 16px 28px;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}

.progress-container{
  display:flex;
  justify-content:space-between;
  gap: clamp(14px, 4vw, 40px);
  max-width:800px;
  margin:0 auto;
  padding: 18px 6px;
  position:relative;
}
.progress-container::before{ display:none; }

.step{
  flex:1 1 0;
  text-align:center;
  position:relative;
  z-index:1;
  cursor:pointer;
  transition: transform .2s ease;
}
.step:hover{ transform: translateY(-3px); }

.step .circle{
  --sz: 90px;
  width: var(--sz);
  height: var(--sz);
  margin: 0 auto;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font: 800 20px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  background:#eef2f7;
  color:#263238;
  border:2px solid #d6dce5;
  box-shadow: inset 0 0 0 0 rgba(13,44,85,0), 0 2px 6px rgba(0,0,0,.05);
  transition: background .25s ease, color .25s ease, border-color .25s ease,
              box-shadow .25s ease, transform .2s ease;
}

.step.active .circle{
  background: #e5f7ef;
  color:#065f46;
  border-color:#bbf7d0;
  box-shadow: 0 6px 18px rgba(16,185,129,.18);
}

.step:hover .circle,
.step:focus-within .circle{
  background:#0d2c55;
  color:#fff;
  border-color:#0d2c55;
  box-shadow: 0 8px 22px rgba(13,44,85,.28);
  transform: scale(1.04);
}

.step .circle::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  box-shadow: inset 0 0 0 0 rgba(13,44,85,.12);
  transition: box-shadow .25s ease;
}
.step:hover .circle::after{ box-shadow: inset 0 0 0 8px rgba(255,255,255,.14); }

.step p{
  margin-top:10px;
  font-size:14px;
  color:#374151;
  transition: color .2s ease, font-weight .2s ease;
}
.step:hover p{ color:#0d2c55; font-weight:600; }

.step a, .step button{ outline:none; }
.step a:focus-visible, .step button:focus-visible{
  outline:3px solid #94c1ff; outline-offset:4px; border-radius:12px;
}

@media (max-width:640px){
  .step .circle{ --sz: 76px; font-size:18px; }
}

/* =========================
   FAQ
========================= */
.faq summary{
  font-weight:800;
  font-size:16px;
  padding:12px 15px;
  background: var(--card);
  color:#111;
  border-radius: var(--radius-sm);
  list-style:none;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  cursor:pointer;
  margin-bottom: 14px;
  border:1px solid var(--line);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.faq summary:hover{ background:#f8fafc; border-color:#dfe3ea; transform: translateY(-1px); }
.faq summary i{
  font-size:18px; color: var(--brand);
  position:absolute; right:15px;
  transition: transform .3s ease;
}
.faq[open] summary i{ transform: rotate(180deg); }

.faq-list{
  list-style:none; padding: 0 15px 15px; margin:0;
  display:flex; flex-direction:column; gap:10px;
}
.faq-list li{
  padding:10px;
  background:#f4f6f8;
  border-radius: var(--radius-sm);
  transition: background .2s ease;
  text-align:left;
  border:1px solid var(--line);
}
.faq-list li:hover{ background:#e9eef5; }
.faq-list a{
  text-decoration:none; color:#007bff; font-weight:700; display:block; text-align:center;
}
.faq-list a:hover{ text-decoration:underline; }

/* =========================
   No perfect banner
========================= */
.pet-grid .no-perfect-banner{
  grid-column: 1 / -1;
  justify-self: center;
  width: min(850px, 100%);
  margin: 0 0 18px;
}

.no-perfect-banner{
  background: linear-gradient(135deg, #fffaf0, #fff7ed);
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn 0.4s ease-in-out;
}
.no-perfect-banner strong{
  display:block;
  margin-bottom:8px;
  font-size:1rem;
  font-weight:700;
  color:#7c2d12;
}

@keyframes fadeIn{
  from{ opacity:0; transform: translateY(-6px); }
  to{ opacity:1; transform: translateY(0); }
}

@media (max-width: 600px){
  .no-perfect-banner{ padding:14px 16px; font-size:0.9rem; }
  .no-perfect-banner strong{ font-size:0.95rem; }
}

/* =========================
   Utilities / Responsiveness
========================= */
@media (max-width: 960px){
  .filter-section{ flex: 1 1 100%; order: -1; }
  .progress-container{ max-width: 100%; padding: 16px 12px; }
  .step .circle{ width:76px; height:76px; font-size:18px; }
}
@media (max-width: 600px){
  .button-container{ padding: 8px 10px 12px; }
  .btn{ margin:8px 6px; }
}

a, button{ -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible{
  outline:3px solid #a7d8ff;
  outline-offset:2px;
}

/* =========================
   MOBILE/TABLET RESPONSIVE FIX PACK
   (append to end of file)
   ========================= */

/* iOS text zoom sanity */
html { -webkit-text-size-adjust: 100%; }

/* ---------- HERO (phones & small tablets) ---------- */
@media (max-width: 430px){
  .hero{
    min-height: auto !important;
    padding: 64px 16px 28px !important;      /* room under sticky header */
    background-position: center !important;
  }
  .headline-hero{
    font-size: clamp(1.6rem, 7vw, 2.1rem) !important;
    line-height: 1.15 !important;
    max-width: 18ch !important;
    margin: 0 auto .35rem !important;
  }
  .desc-hero{
    font-size: .95rem !important;
    line-height: 1.45 !important;
    max-width: 36ch !important;
    margin-top: 20px;
    margin: 0 auto 12px !important;
  }
  .btn-retake{
    width: 100% !important;
    max-width: 320px !important;
  }
}

/* ---------- PET GRID LAYOUT ---------- */

/* Tablets: comfortable 3-up */
@media (min-width: 601px) and (max-width: 900px){
  .pet-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Phones: force 2-up always (iPhone X/11/12/13/14/15, XR, etc.) */
@media (max-width: 600px){
  .container{ width: min(94%, 1200px) !important; } /* a bit more breathing room */

  .pet-grid{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* Card & media sizing */
  .pet-card{
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .pet-card img{
    height: clamp(130px, 34vw, 170px) !important;
    object-fit: cover !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
  }

  /* Info block: smaller text, tighter spacing */
  .pet-info{ padding: 10px 12px 6px !important; }
  .pet-info h3{ font-size: 1rem !important; }
  .pet-info p{
    font-size: .9rem !important;
    line-height: 1.3 !important;
    margin-top: 4px !important;
  }

  /* Score badge a touch smaller so it doesn't collide with borders */
  .score-badge{ padding: 6px 10px !important; font-size: .75rem !important; }

  /* Pills: vertical column, no text changes */
  .personality-container{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin: 8px 12px 10px !important;
  }
  .personality-bubble{
    font-size: 12px !important;
    padding: 6px 10px !important;
    max-width: 100% !important;
    white-space: normal !important;  /* let long labels wrap inside the pill */
  }

  /* Footer: compact single row (View + Heart) */
  .button-container{
    display: grid !important;
    grid-template-columns: 1fr 42px !important; /* left grows, right fixed */
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 12px 12px !important;
  }
  .btn-details{
    min-height: 40px !important;
    padding: 10px 12px !important;
    font-size: .95rem !important;
    line-height: 1 !important;
  }
  .button-container > form{ margin: 0 !important; }
  .btn-heart{
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 10px !important;
  }
}

/* Really narrow devices: fall back to 1 column to avoid squish */
@media (max-width: 340px){
  .pet-grid{ grid-template-columns: 1fr !important; }
}

/* ---------- ADOPTION PROCESS (keep all steps visible) ---------- */
@media (max-width: 600px){
  .adoption-process{ padding: 12px 12px 18px !important; }
  .progress-container{
    gap: 12px !important;
    max-width: 100% !important;
    padding: 14px 6px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity;
  }
  .step{ scroll-snap-align: center; }
  .step .circle{ --sz: 64px !important; font-size: 16px !important; }
}

/* ---------- Small polish for focus/hover on touch ---------- */
@media (hover: none){
  .btn:hover, .btn-details:hover, .btn-heart:hover{ transform: none !important; }
}

/* ===============================
   Personality pills — tidy text, not oval
   (phones and small tablets)
   =============================== */
@media (max-width: 600px){
  /* 2 columns for the pills */
  .pet-card .personality-container{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 8px !important;
    row-gap: 6px !important;
    margin: 8px 12px 10px !important;
  }
  /* cancel any old "column" flex rule */
  .personality-container{ flex-direction: initial !important; }

  /* Rectangular chips, single-line text, centered */
  .pet-card .personality-bubble{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 6px 8px !important;
    min-height: 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;

    border-radius: 10px !important;      /* <- not oval */
    font-size: 9px !important;
    line-height: 1.1 !important;
    letter-spacing: .1px !important;

    white-space: nowrap !important;       /* keep “Kid-Friendly” on one line */
    word-break: keep-all !important;
    hyphens: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;   /* safety if a very long label appears */
  }
}

/* -------------------------------
   Hero spacing tweak on iPhones
   ------------------------------- */
@media (max-width: 430px){
  .hero{
    padding-top: calc(64px + env(safe-area-inset-top)) !important;
  }
  .hero .headline-hero{ margin: 12px auto 6px !important; }
  .hero .desc-hero{     margin: 8px auto 14px !important; }
}
/* ---------- Back To Top Button ---------- */
#backToTop{
  position: fixed; bottom: 24px; right: 24px; z-index: 9999; width: 48px; height: 48px;
  border: none; outline: none; border-radius: 50%;
  background: rgba(18, 9, 93, 0.75); color: #fff; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transform: translateY(15px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .3s ease;
  pointer-events: none;
}
#backToTop.show{ opacity: .9; visibility: visible; transform: translateY(0); pointer-events: auto; }
#backToTop:hover{ background: rgba(18, 9, 93, 0.95); transform: scale(1.1); }
/* --- FORCE SPACE BETWEEN PAYMENT PILLS --- */
/* ===== FINAL OVERRIDE: Payment pills size + spacing (no overlap) ===== */
.don-payment-pills{
  display: grid !important;
  grid-auto-flow: column !important;     /* lay items left→right */
  grid-auto-columns: max-content !important;
  column-gap: 18px !important;           /* space between pills */
  row-gap: 0 !important;
  align-items: center !important;
}
/* =========================
   FAQ — force pill UI + hide markers
   (works for: a single <details> wrapping a <ul>,
    OR multiple <details>—one per question)
   ========================= */

/* 0) General reset so the UA triangles disappear everywhere */
.container.faqs details > summary,
.faqs details > summary {
  list-style: none !important;
}
.container.faqs details > summary::-webkit-details-marker,
.faqs details > summary::-webkit-details-marker {
  display: none !important;
}
.container.faqs details > summary::marker,
.faqs details > summary::marker {
  content: "" !important;
}

/* 1) Title */
.container.faqs h2 { text-align:center !important; margin: 50px 0 12px !important; }

/* 2) “View All Questions” link */
.container.faqs a[href*="faqs"] {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;
  background:#0d2c55 !important;
  color:#fff !important;
  font-weight:800 !important;
  text-decoration:none !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 6px 18px rgba(13,44,85,.18) !important;
  transition: transform .15s ease, background .2s ease !important;
  margin: 6px auto 18px !important;
}
.container.faqs a[href*="faqs"]:hover { background:#0a2445 !important; transform: translateY(-1px) !important; }

/* 3A) If your questions are inside a UL as <li><a>…</a></li> */
.container.faqs .faq-list { list-style:none !important; padding:0 !important; margin:0 !important; display:flex !important; flex-direction:column !important; gap:16px !important; }
.container.faqs .faq-list li { margin:0 !important; padding:0 !important; }
.container.faqs .faq-list li > a {
  display:flex !important; align-items:center !important; justify-content:space-between !important;
  background:#0d2c55 !important; color:#fff !important; text-decoration:none !important;
  font-weight:800 !important; padding:18px 22px !important; border-radius:18px !important;
  border:1px solid rgba(255,255,255,.08) !important; box-shadow:0 6px 18px rgba(13,44,85,.18) !important;
  transition: background .2s ease, transform .15s ease !important;
}
.container.faqs .faq-list li > a:hover { background:#0a2445 !important; transform: translateY(-1px) !important; }
.container.faqs .faq-list li > a::after {
  content:"\f054"; /* fa-chevron-right */
  font-family: "Font Awesome 6 Free"; font-weight:900; font-size:14px; margin-left:12px; color:#fff;
}

/* 3B) If each question is its own <details><summary>…</summary><div>answer</div></details> */
.container.faqs details.faq,
.container.faqs details.faq-item { margin: 0 0 16px !important; border:0 !important; padding:0 !important; }

.container.faqs details.faq > summary,
.container.faqs details.faq-item > summary {
  display:flex !important; align-items:center !important; justify-content:space-between !important; gap:16px !important;
  width:100% !important; padding:18px 22px !important; border-radius:18px !important; cursor:pointer !important;
  background:#0d2c55 !important; color:#fff !important; font-weight:800 !important; font-size: clamp(1rem, .95rem + .3vw, 1.25rem) !important;
  border:1px solid rgba(255,255,255,.08) !important; box-shadow:0 6px 18px rgba(13,44,85,.18) !important;
  transition: background .2s ease, transform .15s ease !important;
}
.container.faqs details.faq > summary:hover,
.container.faqs details.faq-item > summary:hover { background:#0a2445 !important; transform: translateY(-1px) !important; }

.container.faqs details.faq > summary::after,
.container.faqs details.faq-item > summary::after {
  content:"\f078"; /* fa-chevron-down */
  font-family:"Font Awesome 6 Free"; font-weight:900; font-size:14px; color:#fff; transition: transform .25s ease;
}
.container.faqs details.faq[open] > summary::after,
.container.faqs details.faq-item[open] > summary::after { transform: rotate(180deg); }

/* answer panel */
.container.faqs details.faq > .faq-answer,
.container.faqs details.faq-item > .faq-answer {
  background:#f8fafc !important; border:1px solid #e6e8ee !important; border-top:0 !important;
  border-radius:0 0 14px 14px !important; margin-top:-10px !important; padding:16px 18px 18px !important;
  color:#333 !important; line-height:1.55 !important; box-shadow:0 6px 16px rgba(0,0,0,.06) !important;
}

/* Mobile polish */
@media (max-width:640px){
  .container.faqs .faq-list li > a { padding:16px 18px !important; }
  .container.faqs a[href*="faqs"] { width:100% !important; max-width:320px !important; }
}
/* Center the "View All Questions" button */
.container.faqs .faq-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: #0d2c55;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(13,44,85,.18);
  transition: transform .15s ease, background .2s ease;
  /* this centers it */
  margin: 6px auto 18px; 
}
.container.faqs .faq-cta:hover{ background:#0a2445; transform: translateY(-1px); }

/* Hide browser marker (just in case) */
.container.faqs details > summary{
  list-style: none;
}
.container.faqs details > summary::-webkit-details-marker{ display:none; }
.container.faqs details > summary::marker{ content:""; }

/* DO NOT create a second chevron via CSS */
.container.faqs details.faq-item > summary::after,
.container.faqs details.faq > summary::after{
  content: none !important;
}

/* Use the <i> inside summary as the only chevron */
.container.faqs .faq-item summary i{
  margin-left: auto;           /* push it to the right */
  font-size: 14px;
  transition: transform .25s ease;
  color: #fff;                 /* match your pill color */
}
.container.faqs .faq-item[open] summary i{
  transform: rotate(180deg);
}
/* Alternate: keep inline-flex but center via parent */
.container.faqs{
  text-align: center;
  margin-bottom: 80px;
}
.container.faqs .faq-cta{
  display: inline-flex;     /* ok to keep */
  margin: 6px 0 18px;       /* no auto needed when parent centers text */
}

/* =========================
   Personality bubbles — modern chips
   (label-agnostic, color-cycling)
========================= */

/* Container */
.personality-container{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
  margin: 10px 14px 12px;
}

/* Chip base */
.personality-bubble{
  --chip-bg: #f5f7ff;
  --chip-br: #e4e9ff;
  --chip-fg: #0d2c55;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border:1px solid var(--chip-br);
  background:var(--chip-bg);
  color:var(--chip-fg);
  border-radius:12px;
  font-size:12px;
  font-weight:700;
  line-height:1;
  letter-spacing:.1px;
  white-space:nowrap;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
}
.personality-bubble:hover{
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

/* Tiny colored dot for visual hierarchy (no icon markup needed) */
.personality-bubble::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  margin-right:8px;
  background: currentColor;
  opacity:.85;
}

/* Palette: cycle subtle colors per pill order (works with any labels) */
.personality-container .personality-bubble:nth-child(5n+1){
  --chip-bg:#eef6ff; --chip-br:#d9e9ff; --chip-fg:#0b3b75; /* blue */
}
.personality-container .personality-bubble:nth-child(5n+2){
  --chip-bg:#ecfdf5; --chip-br:#c9f1e2; --chip-fg:#065f46; /* green */
}
.personality-container .personality-bubble:nth-child(5n+3){
  --chip-bg:#fff7ed; --chip-br:#ffe4c7; --chip-fg:#9a3412; /* orange */
}
.personality-container .personality-bubble:nth-child(5n+4){
  --chip-bg:#f5f3ff; --chip-br:#e6dfff; --chip-fg:#5b21b6; /* violet */
}
.personality-container .personality-bubble:nth-child(5n+5){
  --chip-bg:#fef2f2; --chip-br:#fde2e2; --chip-fg:#991b1b; /* red */
}

/* Accessibility on hover (slightly higher contrast) */
.personality-container .personality-bubble:nth-child(5n+1):hover{ --chip-bg:#e5f1ff; --chip-br:#cfe5ff; }
.personality-container .personality-bubble:nth-child(5n+2):hover{ --chip-bg:#e6fbf1; --chip-br:#bfeedd; }
.personality-container .personality-bubble:nth-child(5n+3):hover{ --chip-bg:#fff3e3; --chip-br:#ffdbb5; }
.personality-container .personality-bubble:nth-child(5n+4):hover{ --chip-bg:#f0edff; --chip-br:#dfd5ff; }
.personality-container .personality-bubble:nth-child(5n+5):hover{ --chip-bg:#feeaea; --chip-br:#fdd6d6; }

/* Mobile keeps your existing responsive pack — this just tightens a bit */
@media (max-width: 600px){
  .personality-container{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 6px;
    margin: 8px 12px 10px;
  }
  .personality-bubble{
    width:100%;
    min-height:32px;
    padding:6px 8px;
    border-radius:10px;
    font-size:10.5px;       /* a hair larger than 9px for readability */
    white-space:nowrap;     /* keep single-line on phones */
  }
}

/* Remove dots/bullets from personality chips */
.personality-bubble::before{
  content: none !important;   /* hides the decorative dot */
}

/* Safety: if any page used <ul><li> for the chips */
.personality-container{
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.personality-container li{
  list-style: none !important;
}
.personality-container li::marker{
  content: "" !important;
}

/* In case something set spans as list-items */
.personality-container span.personality-bubble,
.personality-container li.personality-bubble{
  display: inline-flex !important;
}
