/* ── TruBoard Cookie Consent — DPDP Act 2023 ──────────────────────── */
:root {
  --cc-navy:   #001D56;
  --cc-blue:   #1a6fc4;
  --cc-border: #dce3f0;
  --cc-bg:     #ffffff;
  --cc-text:   #1a1a2e;
  --cc-muted:  #718096;
  --cc-light:  #e8edf7;
  --cc-radius: 10px;
}

/* ── Banner ───────────────────────────────────────────────────────── */
#tb-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--cc-bg);
  border-top: 4px solid var(--cc-navy);
  box-shadow: 0 -2px 16px rgba(0,29,86,.12);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  color: var(--cc-text);
}
#tb-cookie-banner.tb-cc-hidden { display: none; }

.tb-cc-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
}

.tb-cc-text { flex: 1; }
.tb-cc-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--cc-navy);
  margin-bottom: 4px;
}
.tb-cc-text p {
  margin: 0;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
}
.tb-cc-text a { color: var(--cc-blue); }

.tb-cc-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.tb-cc-btn-primary {
  background: var(--cc-navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tb-cc-btn-primary:hover { opacity: .88; }

.tb-cc-btn-secondary {
  background: #fff0f0;
  color: #c53030;
  border: 1.5px solid #feb2b2;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tb-cc-btn-secondary:hover { opacity: .88; }

.tb-cc-btn-outline {
  background: transparent;
  color: var(--cc-navy);
  border: 1.5px solid var(--cc-navy);
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tb-cc-btn-outline:hover { background: var(--cc-light); }

/* ── Modals (Cookie Settings + Manage Your Data) ─────────────────── */
.tb-cc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,10,40,.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.tb-cc-modal-overlay.open { display: flex; }

.tb-cc-modal {
  background: var(--cc-bg);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0,29,86,.2);
}
.tb-cc-modal h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cc-navy);
}
.tb-cc-modal > p {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 16px;
}
.tb-cc-modal ul {
  font-size: 13px;
  color: #4a5568;
  margin: 8px 0 16px 20px;
  padding: 0;
  line-height: 1.7;
}

/* Setting rows (Strictly Necessary / Analytics) */
.tb-cc-setting-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cc-border);
}
.tb-cc-setting-item:last-of-type { border-bottom: none; }
.tb-cc-setting-info { flex: 1; }
.tb-cc-setting-info strong {
  display: block;
  font-size: 14px;
  color: var(--cc-text);
  margin-bottom: 4px;
}
.tb-cc-setting-info p {
  margin: 0;
  font-size: 12px;
  color: var(--cc-muted);
  line-height: 1.5;
}

/* Toggle */
.tb-cc-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.tb-cc-toggle input { opacity: 0; width: 0; height: 0; }
.tb-cc-track {
  position: absolute; inset: 0;
  background: #cbd5e0; border-radius: 12px;
  cursor: pointer; transition: background .25s;
}
.tb-cc-toggle input:checked + .tb-cc-track { background: var(--cc-blue); }
.tb-cc-toggle input:disabled + .tb-cc-track { background: var(--cc-navy); cursor: not-allowed; }
.tb-cc-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  transition: transform .25s; pointer-events: none;
}
.tb-cc-toggle input:checked ~ .tb-cc-thumb { transform: translateX(20px); }

/* Modal action buttons */
.tb-cc-modal-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tb-cc-modal-btns button,
.tb-cc-modal-btns a {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.tb-cc-modal-btn-primary {
  background: var(--cc-navy);
  color: #fff !important;
  border: none;
}
.tb-cc-modal-btn-primary:hover { opacity: .88; }
.tb-cc-modal-btn-danger {
  background: #fff0f0;
  color: #c53030 !important;
  border: 1.5px solid #feb2b2;
}
.tb-cc-modal-btn-outline {
  background: transparent;
  color: var(--cc-navy) !important;
  border: 1.5px solid var(--cc-navy);
}
.tb-cc-modal-btn-outline:hover { background: var(--cc-light); }

/* Email copy box (Manage Your Data) */
.tb-cc-email-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f9ff;
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0 16px;
  font-size: 13px;
  color: var(--cc-text);
}
.tb-cc-email-box span { flex: 1; font-weight: 500; }
.tb-cc-email-box button {
  background: none;
  border: 1.5px solid var(--cc-blue);
  color: var(--cc-blue);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Map placeholder ──────────────────────────────────────────────── */
.tb-cc-map-ph {
  background: #f0f4fb;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  text-align: center;
  min-height: 240px;
  gap: 12px;
}
.tb-cc-map-ph-icon {
  width: 52px; height: 52px;
  background: var(--cc-navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.tb-cc-map-ph p {
  margin: 0;
  font-size: 13px;
  color: var(--cc-muted);
  max-width: 360px;
  line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.tb-cc-map-ph a { color: var(--cc-blue); }
.tb-cc-map-ph-btn {
  background: var(--cc-navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.tb-cc-map-ph-btn:hover { opacity: .88; }
.tb-cc-map-ph.rejected .tb-cc-map-ph-btn { display: none; }

/* ── Privacy Settings floating button ────────────────────────────── */
#tb-cc-settings-btn {
  position: fixed;
  bottom: 14px; left: 14px;
  z-index: 9990;
  background: var(--cc-navy);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,29,86,.3);
  display: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
#tb-cc-settings-btn:hover { opacity: .88; }

/* ── Toast ───────────────────────────────────────────────────────── */
#tb-cc-toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1a202c; color: #fff;
  padding: 10px 22px;
  border-radius: 8px; font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 10001;
  white-space: nowrap;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
#tb-cc-toast.show { opacity: 1; }
#tb-cc-toast.green { background: #2f855a; }
#tb-cc-toast.red   { background: #c53030; }

/* ── Contact form disclaimer + stay in touch ──────────────────────── */
.tb-form-disclaimer {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 0;
}
.tb-form-disclaimer a { color: var(--cc-blue); }

.tb-stay-in-touch {
  margin: 16px 0;
  padding: 14px 16px;
  background: #f7f9ff;
  border: 1px solid var(--cc-border);
  border-radius: 8px;
}
.tb-stay-in-touch strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cc-text);
  margin-bottom: 6px;
}
.tb-stay-in-touch p {
  font-size: 12px;
  color: #4a5568;
  margin: 0 0 10px;
  line-height: 1.5;
}
.tb-stay-checkboxes {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
  overflow-x: auto;
}
.tb-stay-checkboxes label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--cc-text);
  cursor: pointer;
  white-space: nowrap;
}
.tb-stay-checkboxes input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--cc-navy);
}
.tb-stay-unsub {
  font-size: 11px;
  color: var(--cc-muted);
  margin: 0;
}
.tb-stay-unsub a { color: var(--cc-blue); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .tb-cc-inner { flex-direction: column; align-items: stretch; }
  .tb-cc-btns { flex-direction: column; }
  .tb-cc-btn-primary, .tb-cc-btn-secondary, .tb-cc-btn-outline { text-align: center; }
  .tb-cc-modal { padding: 20px 16px; }
  #tb-cc-toast { white-space: normal; text-align: center; width: 90%; }
}
