/* ==========================================================================
   v2 — LEGO-thema: contactknop en contactvenster (snippets/contact.rain)
   Alles is gescoped onder .bk2c (prefix "bk2c"), los van de paginastijlen.
   ========================================================================== */

.bk2c {
  --bk2-red: #e3000b;
  --bk2-red-dark: #a3000a;
  --bk2-yellow: #ffcf00;
  --bk2-yellow-dark: #d19f00;
  --bk2-blue: #0a6bc4;
  --bk2-blue-dark: #06447f;
  --bk2-green: #007a33;
  --bk2-green-dark: #004f21;
  --bk2-orange: #ff8a1f;
  --bk2-orange-dark: #c25e00;
  --bk2-ink: #15192b;
  --bk2-muted: #4a5068;
  --bk2-line: #e3e9f2;
  --bk2-soft: #f4f7fb;
  --bk2-font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --bk2-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --brick: var(--bk2-blue);
  --brick-dark: var(--bk2-blue-dark);
  --brick-ink: #fff;
  --stud-h: 12px;
  --stud-inset: 28px;
  --stud-border: 5px;
}

.bk2c-c-red    { --brick: var(--bk2-red);    --brick-dark: var(--bk2-red-dark);    --brick-ink: #fff; }
.bk2c-c-yellow { --brick: var(--bk2-yellow); --brick-dark: var(--bk2-yellow-dark); --brick-ink: var(--bk2-ink); }
.bk2c-c-blue   { --brick: var(--bk2-blue);   --brick-dark: var(--bk2-blue-dark);   --brick-ink: #fff; }
.bk2c-c-green  { --brick: var(--bk2-green);  --brick-dark: var(--bk2-green-dark);  --brick-ink: #fff; }
.bk2c-c-orange { --brick: var(--bk2-orange); --brick-dark: var(--bk2-orange-dark); --brick-ink: var(--bk2-ink); }
.bk2c-c-purple { --brick: #7a3fb8; --brick-dark: #522780; --brick-ink: #fff; }
.bk2c-c-teal   { --brick: #00897b; --brick-dark: #005b52; --brick-ink: #fff; }

.bk2c *,
.bk2c *::before,
.bk2c *::after {
  box-sizing: border-box;
}

.bk2c :focus-visible {
  outline: 3px solid var(--bk2-blue);
  outline-offset: 3px;
}

/* ---------- Zwevende knop ---------- */
.bk2c-fab {
  --fab: #25d366;
  --fab-dark: #128c4a;
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 40px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fab);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--fab-dark), 0 16px 28px rgba(6, 30, 70, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.bk2c-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--fab-dark), 0 20px 32px rgba(6, 30, 70, 0.3);
}

.bk2c-fab:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--fab-dark), 0 8px 16px rgba(6, 30, 70, 0.25);
}

/* ---------- Venster ---------- */
.bk2c-modal[hidden] {
  display: none;
}

.bk2c-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  padding: 40px 20px 32px;
  overflow-y: auto;
  font-family: var(--bk2-font-body);
  font-size: 1rem;
  line-height: 1.5;
}

.bk2c-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 38, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: bk2c-fade 240ms ease both;
}

.bk2c-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(480px, 100%);
  margin: auto;
  padding: 36px 26px 26px;
  border: 5px solid var(--brick);
  border-radius: 26px;
  background: #fff;
  color: var(--bk2-ink);
  box-shadow: 0 10px 0 var(--brick-dark), 0 40px 80px rgba(0, 0, 0, 0.35);
  animation: bk2c-pop 340ms cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

/* Noppen op de bovenrand */
.bk2c-studs::before {
  position: absolute;
  z-index: 1;
  top: calc((var(--stud-h) + var(--stud-border)) * -1 + 1px);
  right: var(--stud-inset);
  left: var(--stud-inset);
  height: var(--stud-h);
  background:
    linear-gradient(90deg, transparent 7px, rgba(255, 255, 255, 0.4) 7px 11px, transparent 11px 27px, rgba(0, 0, 0, 0.14) 27px 31px, transparent 31px) center top / 38px 100% space no-repeat,
    var(--brick);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 10' preserveAspectRatio='none'%3E%3Cpath d='M7 10V3.5A3.5 3.5 0 0 1 10.5 0h17A3.5 3.5 0 0 1 31 3.5V10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 10' preserveAspectRatio='none'%3E%3Cpath d='M7 10V3.5A3.5 3.5 0 0 1 10.5 0h17A3.5 3.5 0 0 1 31 3.5V10z'/%3E%3C/svg%3E");
  -webkit-mask-size: 38px 100%;
  mask-size: 38px 100%;
  -webkit-mask-repeat: space no-repeat;
  mask-repeat: space no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
  content: "";
  pointer-events: none;
}

.bk2c-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bk2-red);
  color: #fff;
  font-family: var(--bk2-font-display);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--bk2-red-dark);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.bk2c-close:hover {
  background: var(--bk2-red-dark);
}

.bk2c-close:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--bk2-red-dark);
}

.bk2c-eyebrow {
  margin: 0;
  color: var(--bk2-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bk2c-modal__dialog h2 {
  margin: 0;
  padding-right: 48px;
  color: var(--bk2-ink);
  font-family: var(--bk2-font-display);
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: none;
}

.bk2c-text {
  margin: 0;
  color: var(--bk2-muted);
}

/* ---------- Opties ---------- */
.bk2c-list {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.bk2c-list li {
  margin: 0;
}

.bk2c-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px 12px 12px;
  border: 3px solid var(--bk2-line);
  border-radius: 16px;
  background: #fff;
  color: var(--bk2-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(21, 25, 43, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.bk2c-option:hover {
  border-color: var(--brick);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--brick-dark);
}

.bk2c-option:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--brick-dark);
}

.bk2c-option__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brick);
  color: var(--brick-ink);
  font-size: 26px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.bk2c-option__icon .fa {
  font-size: 24px;
  line-height: 1;
}

.bk2c-option__copy {
  display: grid;
  min-width: 0;
}

.bk2c-option__copy strong {
  font-family: var(--bk2-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.bk2c-option__copy small {
  overflow: hidden;
  color: var(--bk2-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk2c-option__arrow {
  font-size: 1.2rem;
  font-weight: 900;
  transition: transform 160ms ease;
}

.bk2c-option:hover .bk2c-option__arrow {
  transform: translateX(4px);
}

.bk2c-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--bk2-blue);
  font-family: var(--bk2-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.bk2c-back .fa {
  font-size: 16px;
}

@keyframes bk2c-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bk2c-pop {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .bk2c-fab {
    right: 16px;
    bottom: 24px;
  }

  .bk2c-modal__dialog {
    padding: 32px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk2c *,
  .bk2c *::before,
  .bk2c *::after {
    animation: none !important;
    transition: none !important;
  }
}
