/* PRIMO visual style – gebaseerd op merken.css */

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(circle at 30% 20%, rgba(0, 255, 255, 0.07), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 128, 255, 0.08), transparent 50%),
    url('/wp-content/themes/primetime-mobile/assets/images/primoBG.png');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
}


/* === PRIMETIME HEADER STRUCTUUR === */

.live-header {
  position: fixed;
  top: 2rem;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  background: linear-gradient(to bottom, #140c17, rgba(20,12,23,0.6), transparent);
}

.live-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  gap: 1.2rem;

  /* compacter padding */
  padding: 0.4rem 1rem;
  min-height: 3.8rem;
}

.live-logo img {
  max-height: 5rem; /* kleiner logo */
  height: auto;
  width: auto;
  display: block;
}

.live-logo {
  flex-shrink: 0;
  min-width: 7rem;
}

/* ========================
   PRIMETIME MENU STRUCTUUR
======================== */

/* === 1. OUTER MENU WRAPPER === */
.live-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  overflow: visible;         /* nodig voor submenu's */
  position: relative;        /* nodig voor absolute positioning binnen ul */
}


/* === 2. PRIMETIME MENU LIJST === */
.primetime-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


/* === 3. PRIMETIME MENU LINKS === */
.primetime-menu li a {
  font-family: 'Rubik', sans-serif;
  color: #00f0ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  text-transform: none; /* geen ALL CAPS */
  letter-spacing: 0.02em;
  padding: 0.2rem 0;
  display: inline-block;
  transition: all 0.3s ease;
}

.primetime-menu li a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.primetime-menu li.current-menu-item a,
.primetime-menu li.current_page_item a {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}


/* ========================
   PRIMETIME SUBMENU STRUCTUUR
======================== */

/* === 4. SUBMENU UL – POSITIE & STIJL === */
.primetime-menu li {
  position: relative; /* nodig om submenu correct te positioneren */
}

.primetime-menu li ul {
  position: absolute;
  top: 100%;              /* direct onder parent li */
  left: 0;
  margin: 0;              /* ⛔ voorkomt hover-gap */
  padding: 0.5rem 0;
  background: #0b0f1a;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  display: none;
  list-style: none;
  z-index: 9999;
}

/* === 5. TOON SUBMENU OP HOVER === */
.primetime-menu li:hover > ul {
  display: block;
}

/* === 6. SUBMENU ITEM LIJST === */
.primetime-menu li ul li {
  display: block;
  padding: 0.5rem 1rem;
}

/* === 7. SUBMENU LINKS === */
.primetime-menu li ul li a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: block;
}

.primetime-menu li ul li a:hover {
  background: #171c29;
  color: #00f7ff;
  border-radius: 4px;
}

/* === TIKTOK LINK + BUTTONS === */

.live-tiktok-link {
  display: flex;
  align-items: center;
}

.live-tiktok-link img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.5));
}

.live-tiktok-link img:hover {
  transform: scale(1.1);
}

.live-tiktok-link a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.live-tiktok-link a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
}

/* === CUSTOM HTML BLOK (zoals TikTok call-to-action) === */

.primo-custom-html {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.primo-custom-html img {
  max-width: 200px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

.primo-custom-html .tiktok-btn {
  margin: 0 auto;
}


@media (max-width: 768px) {
  /* === HEADER + LOGO === */
  .live-header {
    padding: 0.4rem 0.6rem;
    gap: 0.8rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .live-logo {
    flex: 1 1 auto;
    min-width: auto;
  }

  .live-logo img {
    max-height: 4rem;
    height: auto;
    width: auto;
  }

  /* === MENU STRUCTUUR === */
  .live-menu-wrapper {
    flex: 1 1 auto;
    justify-content: center;
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .primetime-menu {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
  }

  .primetime-menu li a {
    font-size: 0.75rem;
  }

  /* === HAMBURGER MENU === */
  .hamburger-toggle {
    display: flex;
  }

  .live-menu-wrapper {
    position: fixed;
    top: 5.4rem;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    display: none;
    z-index: 9999;
  }

  .live-menu-wrapper.open {
    display: flex;
  }

  .primetime-menu {
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
  }

  /* === PRIMO-ENGINE STRUCTUUR === */
  #primo-engine {
    height: calc(100vh - var(--header-h, 60px));
    min-height: auto; /* overschrijft desktop */
  }

  .primo-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: visible;  /* goed */;
    padding: 1rem;
    box-sizing: border-box;
  }

  .chat-bubble-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 0.5rem 5rem; /* extra onderruimte voor CTA */
    margin: 0;
    box-sizing: border-box;
    font-size: 0.6rem;       /* bubbels kleiner */
    line-height: 1.15;
  }


  .chat-form {
    flex: 0 0 auto;
    margin-bottom: 1rem;
  }

  /* CTA-zone blijft sticky en zichtbaar */
  .chat-options {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 50;
  }

  /* === CONTENT ELEMENTEN === */
  .primo-bubble {
    font-size: 0.55rem;
    line-height: 1.4;
    padding: 0.75rem 0.9rem;
  }

  .primo-option {
    font-size: 0.85rem;
    padding: 0.9rem 1.2rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* === CUSTOM HTML ELEMENTEN === */
  .primo-custom-html {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .primo-custom-html img {
    max-width: 160px;
  }

  .primo-custom-html .tiktok-btn {
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem;
    width: 100%;
    max-width: 280px;
  }
}


@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background-color: #000;
  color: #ddd;
  overflow-x: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


#primo-engine {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;

  /* Glow zichtbaar + animatie */
  position: relative;
  z-index: 2;
  overflow: visible;

  /* Compactere padding – kaart schuift hoger */
  padding: 1rem 1rem 2rem 1rem !important;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}


#primo-engine.show-engine {
  opacity: 1;
  transform: translateY(0);
  animation: primetimeGlow 1.2s ease forwards;
}


.primo-bubble {
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 90%;
  word-break: break-word;

  /* Donkerder + gradient overlay */
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0.82) 0%,
    rgba(10, 10, 20, 0.88) 100%
  );
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);

  /* Sterker contrast */
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);

  /* Blur blijft voor glow-effect */
  backdrop-filter: blur(4px);
}



.primo-left {
  align-self: flex-start;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0.82) 0%,
    rgba(10, 10, 20, 0.88) 100%
  );
  border-left: 4px solid #00ffff;
}

.primo-right {
  align-self: flex-end;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0.82) 0%,
    rgba(10, 10, 20, 0.88) 100%
  );
  border-right: 4px solid #ff00aa;
}


.primo-bubble strong {
  color: #00ffff; /* standaardkleur voor naam */
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.primo-right strong {
  color: #ff00aa; /* optioneel: andere kant andere kleur */
  text-shadow: 0 0 5px rgba(255, 0, 170, 0.3);
}

.primo-option {
  background: #00ffff;
  color: #000;
  font-weight: 800;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  padding: clamp(0.6rem, 1.6vw, 1rem) clamp(1rem, 2vw, 1.4rem);
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;

  /* Nieuw: zet CTA's rechts in de kaart */
  width: auto;
  min-width: 260px;
  max-width: 380px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}



.primo-option:hover {
  background: #00cccc;
}


.primo-back {
  background: transparent;
  color: #00ffff;
  font-weight: bold;
  border: 2px solid #00ffff;
  margin-bottom: 1rem;
  box-shadow: none;
}

.primo-back:hover {
  background: rgba(0, 255, 255, 0.1);
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 6px #00ffff) drop-shadow(0 0 3px #00ffff);
  }
  50% {
    filter: drop-shadow(0 0 18px #00ffff) drop-shadow(0 0 6px #00ffff);
  }
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.primo-mascotte {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
}

.primo-mascotte img {
  max-width: 220px;
  height: auto;
  animation: float 3s ease-in-out infinite, glow 1.6s ease-in-out infinite, popIn 0.6s ease-out;
}

/* === HAMBURGER MENU STYLING === */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  padding: 0;
  position: absolute;
  top: 1.3rem;
  right: 1.2rem;
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: #00ffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}



/* Alleen voor deckpagina's uitschakelen */
.page-template-page-deck .hamburger-toggle {
  display: none !important;
}

.primo-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.primo-top-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.primo-top-logo {
  height: 4.5rem;
  width: auto;
}

.primo-follow-btn {
  background: #ff00aa;
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 1.2rem;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.primo-follow-btn:hover {
  background: #ff33bb;
}

.primo-top-right {
  font-weight: bold;
  color: #fff;
  font-size: 0.9rem;
}

/* === MULTISELECT STRUCTUUR === */
.primo-multiselect {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1.2rem 0;
}

/* === BUTTON-STIJL === */
.primo-multi-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

/* === HOVER EFFECT === */
.primo-multi-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* === GESELECTEERD === */
.primo-multi-btn.selected {
  background-color: #fff;
  color: #000;
  font-weight: 600;
  border-color: #fff;
}

/* === VIEWPORT WRAPPER === */
#primetime-deck {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.deck-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ======================================
   CHAT STRUCTUUR – BUBBLES + OPTIES
   ====================================== */

.chat-bubble-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-y: auto;
}


/* =========================
   BUTTONS – ALGEMEEN
========================= */

.tiktok-btn {
  background-color: #00ffff;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  max-width: 80%;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tiktok-btn:hover {
  background-color: #00cccc;
}

.tiktok-btn.secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Multi-select variant */
.multi-select .tiktok-btn {
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: all 0.2s ease;
}

.multi-select .tiktok-btn.selected {
  background-color: #00ffff;
  color: #000;
  font-weight: 700;
  border-color: #00ffff;
  opacity: 1;
}

.multi-select .tiktok-btn.selected::before {
  content: "✓ ";
  font-weight: bold;
}


/* =========================
   FORMULIEREN – VOORSTEL
========================= */

.voorstel-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #00ffff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.voorstel-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #ffffff;
  gap: 0.4rem;
}

.voorstel-form input[type="text"],
.voorstel-form input[type="email"],
.voorstel-form input[type="tel"] {
  padding: 0.7rem 1rem;
  border: 1px solid #00ffff;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.voorstel-form input:focus {
  border-color: #00ffff;
  box-shadow: 0 0 4px #00ffff;
}

.voorstel-form .cta-btn {
  margin-top: 1rem;
  padding: 0.9rem 1.4rem;
  background-color: #00ffff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.voorstel-form .cta-btn:hover {
  background-color: #00dddd;
}

/* =========================
   VOORUITGANGSBALK
========================= */

#deck-progress-wrapper {
  position: fixed;
  top: calc(3rem);
  height: 6px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  z-index: 9998;
}

#deck-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #00ffff, #ff00ff);
  transition: width 0.4s ease;
}


/* =========================
   PRIMO FORMULIER
========================= */

.primo-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #00ffff;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.15);
  font-family: 'Urbanist', sans-serif;
}

.primo-form label {
  font-size: 0.95rem;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.primo-form input[type="text"],
.primo-form input[type="email"],
.primo-form input[type="tel"],
.primo-form textarea,
.primo-form select {
  width: 100%;
  box-sizing: border-box; /* voorkomt overflow van de velden */
  padding: 0.8rem 1rem;
  border: 1px solid #00ffff;
  border-radius: 8px;
  background-color: #111;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.primo-form input:focus,
.primo-form textarea:focus,
.primo-form select:focus {
  border-color: #00ffff;
  box-shadow: 0 0 6px #00ffff;
}

.primo-form .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 0.2rem;
}

.primo-form .checkbox-group label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #fff;
}

.primo-form .checkbox-group input[type="checkbox"] {
  margin-right: 0.6rem;
  accent-color: #00ffff;
}

.primo-form button[type="submit"],
.primo-form .cta-btn {
  margin-top: 1rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(to right, #00ffff, #ff00ff);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.primo-form button[type="submit"]:hover,
.primo-form .cta-btn:hover {
  opacity: 0.85;
}

/* Feedback (PRIMO formulieren) */
.form-feedback {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #00ffff; /* PRIMETIME cyaan */
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.form-feedback.error {
  color: #ff0050; /* TikTok rood */
  text-shadow: 0 0 8px rgba(255, 0, 80, 0.3);
}


/* =========================
   Footer – structuur + stijl
========================= */
.site-footer {
  background:
    linear-gradient(180deg, rgba(0,0,0,.88), rgba(0,0,10,.96)),
    radial-gradient(70% 120% at 10% 0%, rgba(0,255,255,.08), transparent 60%),
    radial-gradient(60% 100% at 90% 20%, rgba(255,0,204,.08), transparent 60%);
  color: #d6e8ef;
  padding: 3rem 1.25rem 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative; /* separator */
  font-family: 'Orbitron', sans-serif;
}

.site-footer .footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}

.footer-col { display: flex; flex-direction: column; gap: .75rem; }

.footer-brand { grid-column: span 3; align-items: center; text-align: center; }
.footer-nav   { grid-column: span 3; }
.footer-legal { grid-column: span 3; }
.footer-contact { grid-column: span 3; }

/* Logo */
#site-footer .footer-logo {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 260px !important;   /* desktop cap */
  max-height: 64px !important;
  margin: 0 auto 1rem;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0,255,255,.25));
}

/* Slogan */
.footer-tagline {
  text-align: center;
  color: #dfeef5;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

/* TikTok follow */
.footer-social-single { text-align: center; }
.footer-social-single a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  color: #00ffff;
  font-size: 1.05rem;
  text-decoration: none;
}
.footer-social-single a:hover span { text-decoration: underline; }
.footer-social-icon {
  width: 24px; height: 24px; object-fit: contain;
}

/* Titels */
.footer-title {
  font-weight: 800;
  color: #fff;
  margin: 0 0 .5rem;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Linklijsten */
.footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .45rem;
}
.footer-links a {
  color: #d6e8ef; text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease;
}
.footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0,255,255,.35);
}

/* Contact */
.footer-address { font-style: normal; line-height: 1.5; }
.footer-address a { color: #eaf6ff; text-decoration: none; }
.footer-address a:hover { text-decoration: underline; }

/* KvK / BTW */
.footer-meta {
  list-style: none; padding: 0; margin: .5rem 0 0;
  color: #a8c7ce; display: flex; flex-direction: column; gap: .2rem;
}
.footer-meta .meta-label { font-weight: 600; margin-right: .25rem; }

/* CTA */
.footer-cta { margin-top: .8rem; }

/* Onderbalk */
.footer-bottom {
  max-width: 1220px;
  margin: 1.4rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  color: #a7c2c9;
  font-size: .9rem;
}

/* Separator lijn */
.site-footer:after {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

/* Cookie knop */
.cookie-settings {
  appearance: none; background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #eaf6ff; border-radius: 6px;
  padding: .35rem .6rem; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.cookie-settings:hover { background: rgba(255,255,255,.07); border-color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .site-footer .footer-inner { grid-template-columns: repeat(6, 1fr); }
  .footer-brand   { grid-column: span 6; }
  .footer-nav     { grid-column: span 3; }
  .footer-legal   { grid-column: span 3; }
  .footer-contact { grid-column: span 6; }
  #site-footer .footer-logo {
    max-width: 220px !important;
    max-height: 56px !important;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; }
  .footer-col { grid-column: auto; }
  .footer-bottom { font-size: .85rem; }
  #site-footer .footer-logo {
    max-width: 180px !important;
    max-height: 52px !important;
  }
}


:root{
  --engine-pad: clamp(24px, 4svh, 64px);
  --cta-max: clamp(140px, 22svh, 200px);

  /* Nieuw: footerhoogte */
  --footer-h: 5rem; /* basis, kan je exact tunen */

  /* Nieuw: host-afbeelding hoogte (dynamisch gebruikt voor CTA-positionering) */
  --hosts-h: clamp(480px, 72vh, 920px);
}




/* CTA-zone definitief rechts uitgelijnd */
#primo-engine .chat-options {
  justify-self: end;      /* rechts in grid */
  margin: 0 2rem 2vh 0;   /* afstand van rand */
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Laptop-schermen: CTA iets boven het midden rechts */
@media (min-width: 1024px) and (max-width: 1440px) {
  #primo-engine .chat-options {
    position: absolute;
    top: calc(var(--hosts-h) * 0.45); /* ~midden van hosts */
    right: 2rem;
    transform: translateY(-50%);
    margin: 0;
    justify-self: auto;
    align-items: flex-end;
  }

  /* === Default laptop bubble-list === */
  #primo-engine .chat-bubble-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;                /* iets compacter */
    margin: 0;
    padding: 0 1.2rem;          /* minder breed */
    overflow-y: auto;
    max-height: none;
    font-size: 0.95rem;         /* tekst kleiner */
    line-height: 1.4;
  }

  /* Subtiel uitzoomen van de hele kaart */
  #primo-engine .primo-inner {
    transform: scale(0.9);
    transform-origin: center top;
  }

  /* Knoppen compacter */
  #primo-engine .primo-option {
    min-width: 220px;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  /* Formulieren compacter */
  #primo-engine .primo-form {
    padding: 1.5rem;
    gap: 1rem;
  }
}



#primo-engine .primo-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  align-content: start;

  width: 100%;
  max-width: clamp(720px, 85vw, 1100px);
  min-height: calc(100svh - var(--chrome-offset, 0px) - (1.2 * var(--engine-pad, 0px)));

  margin: 0 auto;
  padding: 1vh 2rem 2vh 2rem; /* compacter boven/onder */
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: 
    0 0 28px rgba(0, 255, 255, 0.25),
    0 0 140px rgba(255, 0, 255, 0.12) inset;
  gap: 1.8rem;
}

/* === Laptop schermen (lage hoogte) === */
@media (max-height: 900px) {
  #primo-engine .chat-bubble-list {
    padding-top: var(--bubble-top, clamp(72px, 10vh, 160px)) !important;
    padding-bottom: calc(var(--options-h, 72px) + 12px) !important;
  }
}



/* === Grote schermen (breed én hoog) === */
@media (min-width: 1440px) and (min-height: 900px) {
  #primo-engine .chat-bubble-list {
    flex: 1; 
    display: flex;
    flex-direction: column;
    gap: 1rem;

    margin: 0;
    padding: 0 2rem;
    padding-top: clamp(160px, 16vh, 260px); /* bubbels lager starten */
    padding-bottom: 0;
  }
  #primo-engine .chat-options {
    top: calc(var(--hosts-h) * 0.55);   /* lager startpunt */
    transform: translateY(-40%);        /* minder omhoog */
  }
}


/* Header animatie */
.live-header {
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.live-header.hide-header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}


/* Floating knop rechtsboven */
.primo-float-btn {
  position: fixed;
  /* rekening houden met header/progress/wp-adminbar via --chrome-offset */
  top: calc(var(--chrome-offset, 0px) + clamp(12px, 2.5vh, 24px));
  right: clamp(12px, 2.5vw, 24px);

  background: rgba(0,0,0,0.75);
  border: 2px solid #00ffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  /* fade-in vanuit JS met .show-btn */
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease 0.2s, transform 0.3s ease 0.2s;

  z-index: 99999;       /* werkt nu omdat element “positioned” is */
  pointer-events: auto;

  /* veilige glyph-fallback voor ✕ teken */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: #00ffff;
  text-shadow: 0 0 14px rgba(0,255,255,0.95), 0 0 24px rgba(255,0,170,0.5);
}

.primo-float-btn.show-btn {
  opacity: 1;
  transform: scale(1);
}




@keyframes primetimeGlow {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 255, 0),
                0 0 0 rgba(255, 0, 255, 0);
  }
  40% {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.7),
                0 0 80px rgba(255, 0, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.8),
                0 0 120px rgba(255, 0, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 28px rgba(0, 255, 255, 0.25),
                0 0 140px rgba(255, 0, 255, 0.12) inset;
  }
}

/* === Fallback overlay na afsluiten fullscreen === */
#primo-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 255, 255, 0.07), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255, 0, 170, 0.07), transparent 60%),
    linear-gradient(180deg, #0d0d1a 0%, #000 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.6;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#primo-fallback.show {
  opacity: 1;
  pointer-events: auto;
}

/* Actieknoppen onder de tekst */
#primo-fallback .fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2rem;
}

#primo-fallback .fallback-actions a {
  padding: 1rem 2rem;
  border-radius: 2.2rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
  text-align: center;
  min-width: 220px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.45), 0 0 36px rgba(255, 0, 170, 0.35);
}

#primo-fallback .closing-note {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.95em;
  color: rgba(0, 255, 255, 0.8); /* lichtere cyaan tint */
  font-weight: 500;
}


/* Home knop in cyan (PRIMETIME stijl) */
#primo-fallback .fallback-actions a.home-btn {
  background: linear-gradient(135deg, #00ffff, #00ccff);
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(0,255,255,0.5), 0 0 32px rgba(0,255,255,0.25);
}
#primo-fallback .fallback-actions a.home-btn:hover {
  background: linear-gradient(135deg, #00e6e6, #0099cc);
  box-shadow: 0 0 20px rgba(0,255,255,0.8), 0 0 40px rgba(0,255,255,0.4);
}

/* Restart knop in magenta (PRIMETIME stijl) */
#primo-fallback .fallback-actions a.restart-btn {
  background: linear-gradient(135deg, #ff00aa, #cc00ff);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255,0,170,0.5), 0 0 32px rgba(255,0,255,0.25);
}
#primo-fallback .fallback-actions a.restart-btn:hover {
  background: linear-gradient(135deg, #ff33bb, #dd00ff);
  box-shadow: 0 0 20px rgba(255,0,170,0.8), 0 0 40px rgba(255,0,255,0.4);
}


/* =========================
   FORM CONTAINER – PRIMOvoorstelformulier
========================= */ 

.chat-form {
  margin: 2rem auto;
  max-width: 640px;           /* breedte van het formulier */
  display: flex;
  justify-content: center;    /* centreert het blok */
}

.chat-form .primo-form {
  width: 100%;
  box-sizing: border-box; /* voorkomt overflow */
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #00ffff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

/* Labels en velden */
.chat-form .primo-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #ffffff;
  gap: 0.4rem;
}

.chat-form .primo-form input[type="text"],
.chat-form .primo-form input[type="email"],
.chat-form .primo-form input[type="tel"],
.chat-form .primo-form textarea,
.chat-form .primo-form select {
  padding: 0.7rem 1rem;
  border: 1px solid #00ffff;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.chat-form .primo-form input:focus,
.chat-form .primo-form textarea:focus,
.chat-form .primo-form select:focus {
  border-color: #00ffff;
  box-shadow: 0 0 4px #00ffff;
}

/* Submit knop */
.chat-form .primo-form button[type="submit"] {
  margin-top: 1rem;
  padding: 0.9rem 1.4rem;
  background-color: #00ffff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-form .primo-form button[type="submit"]:hover {
  background-color: #00dddd;
}

@media (max-width: 768px) {
  /* Bubbles: scrollbaar + rekening houden met CTA-hoogte */
  #primo-engine .chat-bubble-list {
  flex: 1 1 auto;
  overflow-y: auto !important;
  min-height: 0; /* ⬅️ belangrijk! anders knijpt flex hem */
  padding: 1rem 0.5rem 5rem !important; /* vaste waarde, stabiel */
  margin: 0;
  box-sizing: border-box;
  font-size: 0.65rem !important;
  line-height: 1.25 !important;
  }


  /* CTA-zone */
  #primo-engine .chat-options {
    position: sticky;
    align-items: center;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);

    /* compactere adem */
    padding: 0.25rem 0.75rem max(env(safe-area-inset-bottom, 0.5rem), 0.5rem);
    gap: 0.5rem;

    display: flex;
    flex-direction: column;

    /* cap hoogte: als er veel knoppen zijn, scrolt alléén de CTA-zone */
    max-height: 46vh;
    overflow-y: auto;
    z-index: 50;
  }

  /* geen extra marge boven de eerste knop */
  #primo-engine .chat-options > *:first-child {
    margin-top: 0 !important;
  }

  /* bubbels compacter */
  #primo-engine .primo-bubble {
    font-size: 0.65rem !important;
    line-height: 1.25 !important;
    padding: 0.6rem 0.8rem !important;
  }

  /* knoppen compacter */
  #primo-engine .primo-option {
    font-size: 0.85rem !important;
    padding: 0.6rem 0.9rem !important;
  }
}

/* === Alleen laatste kaart: bubbles iets lager en links === */
#primo-engine .primo-inner[data-card="PRIMOvoorstelformulier"] .chat-bubble-list {
  margin: 0 !important;             /* geen centreren */
  max-width: none !important;       /* volle kolom gebruiken */
  align-items: flex-start !important;
  justify-content: flex-start !important;

  /* zet bubbels lager (host gezicht zichtbaar houden) */
  padding-top: 12vh !important;     /* schuif groep omlaag */
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 3rem;
}

/* === Grote schermen: CTA midden rechts === */
@media (min-width: 1440px) and (min-height: 900px) {
  #primo-engine .chat-options {
    position: absolute;
    top: calc(var(--hosts-h) * 0.55); /* ~midden van hosts */
    right: 2rem;
    transform: translateY(-40%);
    margin: 0;
    justify-self: auto;
    align-items: flex-end;
  }
}

/* Mobiel: laatste kaart formulier mag niet over footer heen vallen */
@media (max-width: 768px) {
  #primo-engine .primo-inner[data-card="PRIMOvoorstelformulier"] {
    overflow: auto !important;
    padding-bottom: var(--footer-h, 5rem); /* extra ruimte onderin */
    box-sizing: border-box;
  }
}  