/* CRM Administrator Agent Page Specific Styles */
:root {
  --crm-accent: #8b5cf6;
  --crm-accent-soft: #ede9fe;
  --crm-accent-alt: #7c3aed;
}

/* Hero badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Hero right sidebar */
.hero-right {
  background: #f9fafb;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.mini-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-right-title {
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--crm-accent-alt);
}

.stat-caption {
  font-size: 11px;
  color: var(--text-muted);
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.hero-bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--crm-accent);
  margin-top: 5px;
  flex-shrink: 0;
}

.hero-note {
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 880px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 18px;
  position: relative;
}

.pricing-card.highlight {
  border-color: var(--crm-accent-alt);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.18);
}

.pricing-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ede9fe;
  color: var(--crm-accent-alt);
  border: 1px solid #c4b5fd;
}

.pricing-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pricing-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pricing-price {
  font-size: 22px;
  font-weight: 600;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-inc {
  font-size: 12px;
  color: var(--crm-accent-alt);
  margin-bottom: 10px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.check {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid var(--crm-accent-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  color: var(--crm-accent-alt);
}

.pricing-footer-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  background: var(--bg-soft);
}

/* Formula box */
.formula-box {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.formula-highlight {
  color: var(--crm-accent-alt);
  font-weight: 500;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.steps > * {
  min-width: 0;
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 12px;
}

.step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--crm-accent-alt);
  margin-bottom: 4px;
}

.step-title {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text);
}

/* Timeline */
.timeline {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 14px 16px;
  font-size: 13px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.timeline-step {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  color: var(--text-muted);
  background: var(--bg-soft);
}

.timeline-text strong {
  display: block;
  margin-bottom: 2px;
}

/* CTA panel */
.cta-panel {
  background: #f9fafb;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 18px;
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.cta-panel > * {
  min-width: 0;
}

@media (max-width: 880px) {
  .cta-panel {
    grid-template-columns: 1fr;
  }
}

.cta-text {
  font-size: 14px;
}

.cta-text p {
  margin: 0 0 6px;
  color: var(--text-muted);
}

.cta-highlight {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-row-inline > div {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

@media (max-width: 600px) {
  .form-row-inline {
    grid-template-columns: 1fr;
  }
}

.cta-panel form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.cta-panel .cta-text {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Ensure sections and footer respect page width constraints */
/* CRITICAL FIX: Sections must not exceed the page container width */
.page-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  min-width: 0 !important;
  position: relative !important;
  /* Ensure sections don't break out of their container */
  contain: layout style;
  /* Explicitly prevent any width expansion beyond parent */
  display: block !important;
  /* Nuclear fallback: never exceed page container width */
  max-width: min(100%, 1120px) !important;
  left: auto !important;
  right: auto !important;
}

/* Ensure main container doesn't overflow and respects page width */
.page > main {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  position: relative !important;
  display: block !important;
  /* Ensure main never exceeds page container */
  contain: layout style;
}

/* Nuclear option: ensure ALL sections inside main are constrained */
.page > main > section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  /* Nuclear fallback: never exceed page container width */
  max-width: min(100%, 1120px) !important;
  /* Ensure section respects parent positioning - keep relative for proper containment */
  /* position already set to relative above */
}

/* Ensure page container itself doesn't allow overflow */
.page {
  overflow-x: hidden !important;
  position: relative;
}

/* CRITICAL FIX: If sections are outside .page (rendering bug), constrain them anyway */
body > section#how,
body > section#cta {
  width: 100% !important;
  max-width: 1120px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  position: relative !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
  /* Center it like .page container */
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Fix footer if it's also outside .page */
body > footer.page-section,
body > footer {
  width: 100% !important;
  max-width: 1120px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  position: relative !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
  /* Center it like .page container */
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Ensure all content inside page sections is constrained */
.page-section > * {
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Specific rules for sections - ensure they don't exceed parent */
section#how,
section#cta {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  min-width: 0 !important;
  position: relative !important;
  contain: layout style;
  display: block !important;
  /* Force section to stay within parent bounds */
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* Nuclear fallback: never exceed viewport or page container width */
  max-width: min(100%, 1120px) !important;
}

/* Ensure all children are constrained */
section#how > *,
section#cta > * {
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

footer.page-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  min-width: 0;
  position: relative;
  contain: layout style;
}







