/* EB5 Immigration SA — Cookie Consent Banner Styles */

/* ─── Main Banner ─────────────────────────────────────────────── */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a2e;
  border-top: 3px solid #c9a84c;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  padding: 20px 0;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-banner-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; }
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.cookie-banner-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-banner-text h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.cookie-banner-text p {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-text a {
  color: #c9a84c;
  text-decoration: none;
  font-weight: 600;
}

.cookie-banner-text strong {
  color: #c9a84c;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn-primary {
  background: #c9a84c;
  color: #1a1a2e;
  border-color: #c9a84c;
}

.cookie-btn-primary:hover {
  background: #b8943a;
  border-color: #b8943a;
}

.cookie-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.cookie-btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.cookie-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border-color: transparent;
  font-weight: 500;
}

.cookie-btn-ghost:hover {
  color: #fff;
  text-decoration: underline;
}

/* ─── Preferences Panel ───────────────────────────────────────── */
#cookie-preferences-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cookie-prefs-inner {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cookie-prefs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.cookie-prefs-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

#cookie-prefs-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #718096;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}

#cookie-prefs-close:hover {
  background: #f0f0f0;
  color: #1a1a2e;
}

.cookie-prefs-body {
  padding: 8px 28px;
}

/* ─── Cookie Category ─────────────────────────────────────────── */
.cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-category-header strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.cookie-category-header p {
  font-size: 0.825rem;
  color: #718096;
  margin: 0;
  line-height: 1.5;
}

/* ─── Toggle Switch ───────────────────────────────────────────── */
.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e0;
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background-color: #c9a84c;
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
  transform: translateX(22px);
}

.cookie-toggle.always-on {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38a169;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  margin-top: 2px;
}

/* ─── Preferences Footer ──────────────────────────────────────── */
.cookie-prefs-footer {
  padding: 20px 28px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-link {
  font-size: 0.8rem;
  color: #718096;
  text-decoration: none;
}

.cookie-link:hover {
  color: #c9a84c;
  text-decoration: underline;
}
