/* Compass Gym - herbruikbare onderdelen: knoppen, labels, formulieren, modals en chat */

/* ============================================================
   Knoppen
   ============================================================ */

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 15px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(198,216,224,.18);
}

.btn--ice { background: var(--ice); color: var(--on-ice); }
.btn--light { background: var(--text); color: var(--on-ice); }
.btn--dark { background: var(--on-ice); color: var(--text); }
.btn--ice:hover, .btn--light:hover { color: var(--on-ice); }
.btn--dark:hover { color: var(--text); }

.btn--sm { padding: 12px 22px; white-space: nowrap; }
.btn--md { padding: 17px 26px; }
.btn--lg { padding: 18px 30px; font-size: 14px; }
.btn--xs { padding: 12px 18px; font-size: 11px; align-self: flex-start; }
.btn--block { display: block; width: 100%; padding: 16px; font-size: 13px; }

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(237,239,240,0.45);
  border-radius: 999px;
  padding: 18px 28px;
  background: rgba(11,27,45,0.35);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.btn-ghost:hover {
  background: rgba(237,239,240,.08);
  border-color: var(--text);
  color: var(--text);
}

.btn-ghost--dark {
  border-color: var(--line-2);
  background: transparent;
  color: var(--text-2);
  padding: 13px 22px;
  font-size: 14px;
}

.btn-row {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

.link-btn {
  background: none;
  border: none;
  padding: 12px 0;
  color: var(--text-3);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* ============================================================
   Labels, bolletjes, chips
   ============================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(198,216,224,0.35);
  border-radius: 999px;
  background: rgba(11,27,45,0.45);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ice);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.dot--red {
  width: 7px;
  height: 7px;
  background: var(--red);
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(198,216,224,0.12);
  color: var(--ice);
  font-size: 13px;
  font-weight: 700;
}

.chips {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
}

/* Lijst met vinkjes */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-3);
  color: var(--text-4);
  font-size: 15px;
}

.checks li::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 3px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2372A4B8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}

/* Tabbladen (pil-vorm) */
.tabs {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}

.tab {
  min-height: 44px;
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.tab.is-on {
  background: var(--ice);
  color: var(--on-ice);
  font-weight: 700;
}

/* ============================================================
   Formulieren
   ============================================================ */

.lead-form label, .callback label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.lead-form input[type=text], .callback input[type=text], .callback input[type=tel], .callback select {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
  font-size: 16px;
}

.lead-form input:focus, .callback input:focus, .callback select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

label.check {
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

label.check input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--ice);
}

.lead-sent {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(198,216,224,0.12);
  border: 1px solid var(--ice);
  font-size: 14px;
}

/* ============================================================
   Modals (privacybeleid & voorwaarden)
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow-y: auto;
  background: rgba(8,22,36,0.92);
  backdrop-filter: blur(8px);
}

.modal.open {
  display: block;
}

.modal-box {
  position: relative;
  max-width: 720px;
  margin: 60px auto;
  padding: 56px 52px;
  background: var(--bg-2);
  border-radius: var(--radius);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--ice);
  font-size: 28px;
  cursor: pointer;
}

.modal-overline {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--ice);
}

.modal-title {
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.modal-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(240,242,240,0.7);
}

.modal-body p { margin-bottom: 24px; }
.modal-body p.tight { margin-bottom: 8px; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body ul { margin: 0 0 24px 20px; padding: 0; }
.modal-body strong { color: var(--text); }
.modal-body .modal-date { color: var(--ice); font-size: 11px; letter-spacing: 2px; font-family: var(--font-display); }

/* ============================================================
   Chat (veelgestelde vragen)
   ============================================================ */

.chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: calc(100vw - 36px);
}

.chat-panel {
  width: 360px;
  max-width: 100%;
  max-height: min(560px, calc(100vh - 120px));
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.chat-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.chat-head div {
  flex: 1;
}

.chat-head strong {
  display: block;
}

.chat-head span {
  font-size: 12px;
  color: var(--text-3);
}

.chat-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  font-size: 22px;
  cursor: pointer;
}

.chat-body, #chatAnswer {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#chatAnswer {
  padding: 0;
}

.bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-4);
  font-size: 14px;
  line-height: 1.55;
}

.bubble--me {
  align-self: flex-end;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--ice);
  color: var(--on-ice);
  font-weight: 600;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-chip {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.chat-chip:hover {
  border-color: var(--ice);
  background: var(--bg-5);
}

.chat-dm {
  font-size: 13px;
  color: var(--text-3);
}

.chat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 22px 0 18px;
  border: none;
  border-radius: 29px;
  background: var(--ice);
  color: var(--on-ice);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform .2s ease;
}

.chat-btn:hover {
  transform: translateY(-2px);
}

.chat-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--on-ice);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
