/* CSS for CMP */
:root {
  --cmp-primary: var(--blue);
  --cmp-primary-hover: var(--blue-dark, var(--blue));
  --cmp-text: #2D3748;
  --cmp-text-light: #718096;
  --cmp-bg: #FFFFFF;
  --cmp-border: #E2E8F0;
  --cmp-overlay: rgba(3, 4, 94, 0.6);
}

#cmp-floating-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--cmp-primary);
  border: none;
  cursor: pointer;
  z-index: 99998;
  box-shadow: 0 4px 12px rgba(169, 33, 254, 0.4);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
#cmp-floating-btn:hover {
  transform: scale(1.05);
}
#cmp-floating-btn img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.cmp-hidden {
  display: none !important;
}

#cmp-main-banner {
  position: fixed;
  bottom: 75px;
  left: 85px;
  width: 400px;
  max-width: calc(100vw - 100px);
  background: var(--cmp-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 99999;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  border: 1px solid var(--cmp-border);
}

.cmp-banner-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(to right, rgba(169, 33, 254, 0.05), transparent);
}

.cmp-banner-header h3 {
  color: var(--cmp-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.cmp-banner-header p {
  color: var(--cmp-text);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.cmp-banner-header a {
  color: var(--cmp-primary);
  text-decoration: underline;
  font-weight: 600;
}

.cmp-owl-icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.cmp-banner-actions {
  display: flex;
  border-top: 1px solid var(--cmp-border);
}

.cmp-banner-actions button {
  flex: 1;
  padding: 15px 0;
  border: none;
  background: var(--cmp-bg);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--cmp-text);
}

.cmp-btn-outline {
  border-right: 1px solid var(--cmp-border) !important;
}
.cmp-btn-outline:hover {
  background: #f8f9fa !important;
}

.cmp-banner-actions .cmp-btn-primary {
  background: var(--cmp-primary) !important;
  color: white !important;
}
.cmp-banner-actions .cmp-btn-primary:hover {
  background: var(--cmp-primary-hover) !important;
}

/* Modal */
#cmp-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cmp-overlay);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#cmp-modal {
  background: var(--cmp-bg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  font-family: 'Poppins', sans-serif;
}

.cmp-modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--cmp-border);
}

.cmp-modal-header h3 {
  color: var(--cmp-primary);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
}

#cmp-modal-close {
  background: var(--cmp-primary);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-modal-body {
  padding: 10px 24px;
  overflow-y: auto;
  flex: 1;
}

.cmp-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--cmp-border);
}
.cmp-category:last-child {
  border-bottom: none;
}

.cmp-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cmp-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmp-cat-icon {
  color: #A0AABF;
  font-size: 20px;
}

.cmp-cat-title h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--cmp-text);
  font-weight: 600;
}
.cmp-cat-count {
  color: var(--cmp-text-light);
  font-weight: 400;
  font-size: 0.9rem;
}

.cmp-cat-desc {
  font-size: 0.85rem;
  color: var(--cmp-text-light);
  line-height: 1.5;
  margin: 0;
  padding-left: 28px;
}

.cmp-show-more {
  background: none;
  border: none;
  color: var(--cmp-text-light);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  margin-left: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cmp-show-more:hover { color: var(--cmp-primary); }

.cmp-services-list {
  margin-top: 12px;
  margin-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmp-service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--cmp-border);
  border-radius: 8px;
}
.cmp-service-name {
  font-size: 0.85rem;
  color: var(--cmp-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Toggle Switch */
.cmp-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cmp-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.cmp-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .4s;
}
.cmp-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

.cmp-switch-sm {
  width: 36px;
  height: 20px;
}
.cmp-switch-sm .cmp-slider:before {
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
}
.cmp-switch-sm input:checked + .cmp-slider:before {
  transform: translateX(16px);
}

input:checked + .cmp-slider {
  background-color: var(--cmp-primary);
}
input:disabled + .cmp-slider {
  background-color: #E2E8F0;
  cursor: not-allowed;
}
input:checked:disabled + .cmp-slider {
  background-color: #d89bff;
}
input:checked + .cmp-slider:before {
  transform: translateX(20px);
}
.cmp-slider.round {
  border-radius: 24px;
}
.cmp-slider.round:before {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--cmp-primary);
}
input:checked + .cmp-slider.round:before {
  content: "✓";
}
input:not(:checked) + .cmp-slider.round:before {
  content: "✕";
  color: #A0AABF;
}

.cmp-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--cmp-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cmp-btn-outline-dark {
  flex: 1;
  padding: 12px;
  background: white;
  border: 1px solid var(--cmp-text) !important;
  color: var(--cmp-text) !important;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}
.cmp-btn-outline-dark:hover {
  background: #f8f9fa;
}

.cmp-modal-footer .cmp-btn-primary {
  flex: 1;
  border-radius: 24px;
  padding: 12px;
  background: var(--cmp-primary);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}
.cmp-modal-footer .cmp-btn-primary:hover {
  background: var(--cmp-primary-hover);
}

@media (max-width: 768px) {
  #cmp-main-banner {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 90px; 
  }
}
