/* ===== Cookie Consent Modal (Cookie Wall) — V5.1.6F ===== */
/* Blocking overlay that prevents page interaction until user makes a choice */

/* ── Overlay ── */
.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 37, 64, 0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cookie-consent-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Modal Card ── */
.cookie-consent-card {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 48px rgba(10, 37, 64, 0.25);
  text-align: center;
  position: relative;
}
.cookie-consent-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0A2540;
  margin-bottom: 8px;
}
.cookie-consent-card p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 20px;
}
.cookie-consent-card p a {
  color: #0F7CCF;
  text-decoration: none;
  font-weight: 600;
}
.cookie-consent-card p a:hover {
  text-decoration: underline;
}

/* ── Icon ── */
.cookie-consent-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ── */
.cookie-consent-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}
.cookie-consent-btn:focus-visible {
  outline: 2px solid #0F7CCF;
  outline-offset: 2px;
}

/* Accept All — Primary */
.cookie-consent-btn--accept {
  background: #0F7CCF;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 124, 207, 0.3);
}
.cookie-consent-btn--accept:hover {
  background: #005F99;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 124, 207, 0.4);
}

/* Essential Only — Outline */
.cookie-consent-btn--essential {
  background: #FFFFFF;
  color: #0A2540;
  border: 1px solid #E5E7EB;
}
.cookie-consent-btn--essential:hover {
  border-color: #0F7CCF;
  color: #0F7CCF;
  background: #F0F9FF;
}

/* Manage Preferences — Text link */
.cookie-consent-btn--manage {
  background: transparent;
  color: #6B7280;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 24px;
}
.cookie-consent-btn--manage:hover {
  color: #0F7CCF;
}

/* ── Preferences Panel (hidden by default) ── */
.cookie-consent-prefs {
  display: none;
  text-align: left;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}
.cookie-consent-prefs.active {
  display: block;
}
.cookie-pref-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
}
.cookie-pref-item:last-child {
  border-bottom: none;
}
.cookie-pref-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-pref-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-pref-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #D1D5DB;
  border-radius: 22px;
  transition: 0.2s;
}
.cookie-pref-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: 0.2s;
}
.cookie-pref-toggle input:checked + .cookie-pref-slider {
  background: #0F7CCF;
}
.cookie-pref-toggle input:checked + .cookie-pref-slider::before {
  transform: translateX(18px);
}
.cookie-pref-toggle input:disabled + .cookie-pref-slider {
  background: #0F7CCF;
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-pref-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0A2540;
  margin-bottom: 2px;
}
.cookie-pref-info p {
  font-size: 12px;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.5;
}

/* ── body.cookie-locked — prevents page scroll/interaction ── */
body.cookie-locked {
  overflow: hidden !important;
}
body.cookie-locked .main-header,
body.cookie-locked .top-bar,
body.cookie-locked .main-nav,
body.cookie-locked .hero,
body.cookie-locked .company-intro,
body.cookie-locked section,
body.cookie-logged footer,
body.cookie-locked .wa-float,
body.cookie-locked .mobile-bar {
  pointer-events: none;
  user-select: none;
}
/* Consent overlay always interactive */
body.cookie-locked .cookie-consent-overlay {
  pointer-events: auto;
  user-select: auto;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .cookie-consent-card {
    padding: 28px 20px 20px;
    border-radius: 12px;
  }
  .cookie-consent-card h3 {
    font-size: 18px;
  }
}
