/* Cookie Consent Tool Styles */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.cc-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cc-banner {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius, 16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 24px;
  font-family: inherit;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow-y: auto;
}
.cc-overlay.active .cc-banner {
  transform: translateY(0);
}

.cc-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cc-header svg {
  width: 24px;
  height: 24px;
  color: var(--blue, #004fab);
  flex-shrink: 0;
}
.cc-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--navy, #002950);
  font-weight: 800;
}
.cc-text {
  margin: 0;
  color: var(--text, #0b1828);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cc-text a {
  color: var(--blue, #004fab);
  text-decoration: underline;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.cc-btn {
  flex: 1 1 auto;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 0.95rem;
}
.cc-btn-primary {
  background: var(--blue, #004fab);
  color: #fff;
}
.cc-btn-primary:hover {
  background: #0a5fcb;
}
.cc-btn-secondary {
  background: transparent;
  color: var(--blue, #004fab);
  border-color: var(--blue, #004fab);
}
.cc-btn-secondary:hover {
  background: #eef5ff;
}
.cc-btn-link {
  background: transparent;
  color: var(--muted, #667085);
  text-decoration: underline;
  padding: 0.4rem;
  font-size: 0.85rem;
  border: none;
  font-weight: 600;
  width: 100%;
}
.cc-btn-link:hover {
  color: var(--navy, #002950);
}

.cc-settings {
  display: none;
  border-top: 1px solid #edf0f6;
  padding-top: 16px;
  margin-top: 8px;
}
.cc-settings.open {
  display: block;
}
.cc-service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f8fb;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.cc-service-info h4 {
  margin: 0 0 4px 0;
  color: var(--navy, #002950);
  font-size: 1rem;
}
.cc-service-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #667085);
}
.cc-service-mandatory {
  font-size: 0.8rem;
  color: var(--muted, #667085);
  font-weight: 600;
}

/* Switch Toggle */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}
.cc-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .cc-slider {
  background-color: var(--blue, #004fab);
}
input:checked + .cc-slider:before {
  transform: translateX(20px);
}
input:disabled + .cc-slider {
  background-color: #e2e8f0;
  cursor: not-allowed;
}

/* Form Fallback */
.recaptcha-fallback {
  background: #fff9ec;
  border: 1px solid #ffe9b6;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--text);
}
.recaptcha-fallback p {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .cc-actions {
    flex-direction: column;
  }
}
