/* ==========================================================================
   BIZZLOOP COMPONENT STYLESHEET (css/components.css)
   Compact 8 service cards, workflow pipelines, miniature UI previews, buttons & modals
   ========================================================================== */

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--bl-brand-500) 0%, #0D3DB0 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(20, 81, 216, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1D4ED8 0%, var(--bl-brand-500) 100%);
  box-shadow: 0 8px 24px rgba(20, 81, 216, 0.35);
  color: #FFFFFF;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: var(--bl-dark);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border: 1px solid var(--bl-border);
  box-shadow: var(--bl-shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--bl-brand-300);
  background: var(--bl-brand-50);
  color: var(--bl-brand-600);
  box-shadow: 0 4px 16px rgba(20, 81, 216, 0.08);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ── CARDS & INTERACTION ── */
.bl-card {
  background: #FFFFFF;
  border: 1px solid var(--bl-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bl-card-interactive {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.bl-card-interactive:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 81, 216, 0.3);
  box-shadow: var(--bl-shadow-lg), 0 0 0 1px rgba(20, 81, 216, 0.15);
}

/* ── COMPACT 8 SERVICE CARDS WITH MINIATURE UI PREVIEWS ── */
.service-card-compact {
  background: #FFFFFF;
  border: 1px solid var(--bl-border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.service-card-compact:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 81, 216, 0.3);
  box-shadow: 0 16px 32px rgba(20, 81, 216, 0.08), 0 0 0 1px rgba(20, 81, 216, 0.15);
}

/* Miniature UI Demo Snippet Box inside Compact Cards */
.mini-ui-snippet {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.6875rem;
  line-height: 1.3;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-card-compact:hover .mini-ui-snippet {
  background: #FFFFFF;
  border-color: rgba(20, 81, 216, 0.2);
}

/* ── WORKFLOW PIPELINE COMPONENT ── */
.workflow-pipeline-bar {
  background: #F1F5F9;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #E2E8F0;
}

.pipeline-step {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.pipeline-arrow {
  font-size: 0.6875rem;
  color: #94A3B8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-card-compact:hover .pipeline-arrow {
  color: var(--bl-brand-500);
  transform: translateX(2px);
}

/* Responsive Mobile Workflow Pipeline */
@media (max-width: 639px) {
  .workflow-pipeline-bar {
    padding: 0.5rem;
  }
}

/* ── POPULAR PRICING CARD ── */
.popular-pricing-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 2px solid var(--bl-brand-500);
  box-shadow: 0 20px 50px rgba(20, 81, 216, 0.12);
  z-index: 10;
}

@media (min-width: 1024px) {
  .popular-pricing-card {
    transform: translateY(-10px);
  }
  .popular-pricing-card:hover {
    transform: translateY(-14px);
  }
}

/* ── PRICING SWITCH COMPONENT (PERFECTLY ALIGNED & ANIMATED) ── */
.pricing-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #F1F5F9;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--bl-border);
}

.pricing-toggle-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: none;
  background: transparent;
}

.pricing-toggle-label:hover {
  color: var(--bl-brand-600);
}

.pricing-toggle-label.active {
  color: #0F172A;
  font-weight: 800;
}

.pricing-switch-btn {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: #CBD5E1;
  cursor: pointer;
  transition: background-color 0.28s ease, box-shadow 0.28s ease;
  border: 2px solid transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.pricing-switch-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(20, 81, 216, 0.6);
}

.pricing-switch-btn.active {
  background: linear-gradient(135deg, var(--bl-brand-500) 0%, #0D3DB0 100%);
  box-shadow: 0 0 10px rgba(20, 81, 216, 0.35);
}

.pricing-switch-thumb {
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transform: translateX(3px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-switch-btn.active .pricing-switch-thumb {
  transform: translateX(21px);
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* ── FAQ ACCORDION ── */
.faq-accordion-item {
  border: 1px solid var(--bl-border);
  border-radius: 1rem;
  background: #FFFFFF;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-accordion-item.active {
  border-color: var(--bl-brand-300);
  background: linear-gradient(135deg, #F8FAFC 0%, rgba(239, 246, 255, 0.6) 100%);
  box-shadow: 0 8px 24px rgba(20, 81, 216, 0.06);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bl-dark);
}

.faq-trigger:hover {
  color: var(--bl-brand-600);
}

.faq-icon-rotator {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 9999px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bl-slate-600);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-accordion-item.active .faq-icon-rotator {
  transform: rotate(45deg);
  background: var(--bl-brand-500);
  color: #FFFFFF;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.5rem;
}

.faq-accordion-item.active .faq-content {
  padding-bottom: 1.25rem;
}

/* ── SPA MODALS & OVERLAYS ── */
.bl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bl-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bl-modal-panel {
  background: #FFFFFF;
  border-radius: 1.75rem;
  border: 1px solid var(--bl-border);
  box-shadow: var(--bl-shadow-xl);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bl-modal-backdrop.open .bl-modal-panel {
  transform: scale(1) translateY(0);
}

.bl-spa-panel {
  background: #FFFFFF;
  border-radius: 1.75rem;
  border: 1px solid var(--bl-border);
  box-shadow: var(--bl-shadow-xl);
  width: 100%;
  max-width: 56rem; /* max-w-4xl */
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ── FORM CONTROLS ── */
.bl-input, .bl-select, .bl-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--bl-border);
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--bl-dark);
  transition: all 0.2s ease;
  font-family: inherit;
}

.bl-input:focus, .bl-select:focus, .bl-textarea:focus {
  outline: none;
  border-color: var(--bl-brand-500);
  box-shadow: 0 0 0 3px rgba(20, 81, 216, 0.15);
}

.bl-input::placeholder, .bl-textarea::placeholder {
  color: #94A3B8;
}

/* ── COOKIE BANNER ── */
#cookie-consent-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 28rem;
  z-index: 800;
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── RESPONSIVE MOBILE & TABLET ENHANCEMENTS ── */
@media (max-width: 639px) {
  #cookie-consent-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
  .bl-modal-panel, .bl-spa-panel {
    border-radius: 1.25rem;
    max-height: 95vh;
  }
}
