/* Data Cards & Panels */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-dark {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-card-border);
  color: #ffffff;
}

/* Metric Display Unit */
.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.metric-box.dark .metric-val {
  color: #ffffff;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.metric-box.dark .metric-label {
  color: #94a3b8;
}

/* Event Intelligence Scorecard */
.scorecard-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.scorecard-header {
  background: var(--bg-surface-subtle);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scorecard-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.scorecard-list {
  list-style: none;
}

.scorecard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.scorecard-item:last-child {
  border-bottom: none;
}

.scorecard-key {
  color: var(--text-secondary);
  font-weight: 500;
}

.scorecard-val {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
}

.scorecard-val.status-available {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.scorecard-val.status-limited {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}

.scorecard-val.status-not-available {
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
}

/* Role Density Matrix (Department x Seniority) */
.role-matrix-container {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.role-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.role-matrix-table th,
.role-matrix-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
}

.role-matrix-table th {
  background: var(--bg-surface-subtle);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-matrix-table td.dept-label {
  font-weight: 600;
  background: #fafafa;
  color: var(--text-primary);
  white-space: nowrap;
}

.density-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.density-badge.density-high {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.density-badge.density-present {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.density-badge.density-limited {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.density-badge.density-none {
  background: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

/* Source Transparency Tag */
.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
}

.source-tag svg {
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
}

/* FAQ Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.accordion-item.open {
  border-color: var(--brand-primary-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.15s ease;
}

.accordion-trigger:hover {
  background: var(--bg-surface-subtle);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.accordion-body {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.accordion-item.open .accordion-body {
  display: block;
}

/* Modal Window for Lead Request */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 43, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(circle at 100% 0, rgba(16, 185, 129, 0.1), transparent 34%),
    #ffffff;
}

.modal-title {
  font-size: 1.35rem;
  color: var(--brand-navy);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-box {
    transition-duration: 0.01ms;
  }
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.lead-capture-form .form-group {
  animation: leadFieldEnter 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lead-capture-form .form-group:nth-child(2) {
  animation-delay: 0.04s;
}

.lead-capture-form .form-group:nth-child(3) {
  animation-delay: 0.08s;
}

.lead-capture-form .form-group:nth-child(4) {
  animation-delay: 0.12s;
}

.lead-capture-form .form-group:nth-child(5) {
  animation-delay: 0.16s;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.lead-capture-form .form-label {
  color: #173a5f;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.form-label span.req {
  color: var(--accent-rose);
  font-size: 0.95em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.925rem;
  min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.form-textarea {
  min-height: 96px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.lead-capture-form .form-input:focus,
.lead-capture-form .form-select:focus,
.lead-capture-form .form-textarea:focus {
  background: #fcfffe;
  transform: translateY(-1px);
}

.lead-capture-form .form-input::placeholder,
.lead-capture-form .form-textarea::placeholder {
  color: #8494a5;
}

.lead-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.lead-form-footer .btn {
  flex: 0 0 auto;
  min-width: 156px;
  gap: 0.5rem;
  justify-content: center;
}

.lead-form-privacy {
  max-width: 300px;
  margin: 0;
  color: #718096;
  font-size: 0.76rem;
  line-height: 1.5;
}

.lead-form-status {
  min-height: 0;
  margin: 0;
  color: #b42318;
  font-size: 0.82rem;
}

.lead-form-status:not(:empty) {
  margin-top: 0.85rem;
}

.lead-form-status.is-error {
  color: #b42318;
}

.lead-form-status.is-success {
  color: #087f5b;
}

@keyframes leadFieldEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--accent-rose);
  background-color: #fffaf0;
}

.form-error-msg {
  display: none;
  font-size: 0.775rem;
  color: var(--accent-rose);
  margin-top: 0.3rem;
  font-weight: 500;
}

.form-input.error + .form-error-msg,
.form-select.error + .form-error-msg {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0.5rem;
  }

  .modal-box {
    max-height: 94vh;
    border-radius: 18px 18px 12px 12px;
  }

  .modal-header {
    padding: 1.1rem 1.15rem;
  }

  .modal-body {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .lead-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-form-footer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-capture-form .form-group {
    animation: none;
  }

  .form-input,
  .form-select,
  .form-textarea {
    transition-duration: 0.01ms;
  }
}

/* ==========================================================================
   2-Column Overview Section (Hero Desc & Image Showcase)
   ========================================================================== */

.overview-section {
  padding: 4.5rem 0;
  background: #ffffff;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.event-overview-section {
  background: linear-gradient(180deg, #f8fcfb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.overview-text-col {
  display: flex;
  flex-direction: column;
}

.overview-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.22);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  width: fit-content;
}

.overview-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.overview-lead {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--brand-navy);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.overview-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Key Value Pillars / Highlights in Overview */
.overview-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.overview-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.overview-pillar-item:hover {
  border-color: var(--brand-primary-border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.overview-pillar-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(13, 148, 136, 0.12);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.overview-pillar-icon svg {
  width: 17px;
  height: 17px;
}

.overview-pillar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}

.overview-pillar-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Event Overview Specs Mini Grid */
.overview-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.overview-spec-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}

.overview-spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.overview-spec-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-navy);
  line-height: 1.35;
}

/* CTA Row in Overview */
.overview-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* Overview Image Column & Frame */
.overview-image-col {
  position: relative;
}

.overview-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(6, 164, 184, 0.08) 100%);
  border: 1px solid rgba(13, 148, 136, 0.2);
  box-shadow: 0 24px 48px -12px rgba(13, 43, 42, 0.14), 0 0 0 1px rgba(13, 148, 136, 0.06);
}

.overview-image-frame {
  position: relative;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 16 / 9;
}

.overview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.overview-image-wrapper:hover .overview-img {
  transform: scale(1.03);
}

.overview-img-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 43, 42, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating Glassmorphic Badges */
.overview-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  box-shadow: 0 12px 28px -6px rgba(13, 43, 42, 0.18);
  z-index: 5;
  transition: transform 0.3s ease;
}

.overview-float-badge:hover {
  transform: translateY(-2px);
}

.overview-float-badge.badge-top-right {
  top: -16px;
  right: 18px;
}

.overview-float-badge.badge-bottom-left {
  bottom: -16px;
  left: 18px;
}

.pulse-dot-teal {
  width: 12px;
  height: 12px;
  background: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.badge-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.float-badge-content {
  display: flex;
  flex-direction: column;
}

.float-badge-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

.float-badge-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .overview-heading {
    font-size: 1.85rem;
  }
  .overview-pillars-grid,
  .overview-pills-grid {
    grid-template-columns: 1fr;
  }
  .overview-float-badge.badge-top-right {
    top: -10px;
    right: 10px;
  }
  .overview-float-badge.badge-bottom-left {
    bottom: -10px;
    left: 10px;
  }
}

/* ==========================================================================
   Side Floating Widget (AI Assistant)
   ========================================================================== */

.floating-side-dock {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 14px !important;
  pointer-events: auto !important;
}

.float-btn {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  user-select: none !important;
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.06) !important;
}

.float-btn:active {
  transform: translateY(0) scale(0.96) !important;
}

/* AI Chat Floating Button */
.float-btn-ai {
  background: linear-gradient(135deg, #0d9488 0%, #06a4b8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.float-btn-ai:hover {
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.62) !important;
}

.float-btn-ai.active {
  background: var(--brand-navy) !important;
}

.float-btn-ai-icon-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ai-sparkle-icon {
  width: 26px !important;
  height: 26px !important;
  color: #ffffff !important;
}

.ai-online-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.float-btn-badge-label {
  display: none !important;
}

/* Tooltip on Hover */
.float-btn-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #0d2b2a;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(13, 43, 42, 0.25);
}

.float-btn:hover .float-btn-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-4px);
}

/* ==========================================================================
   AI Chat Assistant Window
   ========================================================================== */

.ai-chat-window {
  position: fixed !important;
  bottom: 24px !important;
  right: 96px !important;
  width: 385px !important;
  max-width: calc(100vw - 120px) !important;
  height: 550px !important;
  max-height: calc(100vh - 48px) !important;
  background: #ffffff !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(13, 148, 136, 0.25) !important;
  box-shadow: 0 24px 60px -12px rgba(13, 43, 42, 0.36), 0 0 0 1px rgba(13, 148, 136, 0.12) !important;
  z-index: 1000005 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(16px) scale(0.96) !important;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ai-chat-window.ai-chat-active {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

/* Header */
.ai-chat-header {
  background: linear-gradient(135deg, #0d2b2a 0%, #16403e 100%);
  color: #ffffff;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #06a4b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffffff;
  font-weight: 700;
}

.ai-avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.ai-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 1.5px solid #0d2b2a;
  border-radius: 50%;
}

.ai-chat-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.ai-chat-subtitle {
  font-size: 0.725rem;
  color: #8ab5b3;
  line-height: 1.2;
}

.ai-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-header-btn {
  background: transparent;
  border: none;
  color: #a8d4d1;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ai-header-btn svg {
  pointer-events: none;
}

.ai-header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Chat Body */
.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #f8fcfb;
}

/* Messages */
.ai-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 90%;
  animation: chatMsgIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-msg-bot {
  align-self: flex-start;
}

.ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-bot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #06a4b8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.ai-avatar-pulse {
  animation: avatarGlow 1.5s infinite alternate ease-in-out;
}

@keyframes avatarGlow {
  from {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.6);
  }
  to {
    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
  }
}

.ai-msg-bubble {
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  word-break: break-word;
  position: relative;
}

.ai-msg-bot .ai-msg-bubble {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-top-left-radius: 3px;
  box-shadow: 0 4px 12px rgba(13, 43, 42, 0.05);
}

.ai-msg-bot .ai-msg-bubble strong {
  color: var(--brand-navy);
}

.ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg, #0d9488 0%, #0a7c72 100%);
  color: #ffffff;
  border-top-right-radius: 3px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.ai-msg-time {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  text-align: right;
  font-family: var(--font-mono);
}

.ai-msg-user .ai-msg-time {
  color: rgba(255, 255, 255, 0.7);
}

/* Streaming Typewriter Cursor */
.ai-streaming-cursor {
  display: inline-block;
  width: 5px;
  height: 14px;
  background: var(--brand-primary);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 1px;
  animation: cursorBlink 0.7s infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Formatted Lists & Paragraphs in Bot Message */
.ai-bullet-list {
  margin: 0.4rem 0 0.4rem 1.15rem;
  padding: 0;
  list-style-type: disc;
}

.ai-bullet-item {
  margin-bottom: 0.25rem;
  line-height: 1.45;
}

.ai-p-gap {
  margin: 0.5rem 0;
}

/* Action Buttons inside Bot Message */
.ai-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  animation: chatMsgIn 0.3s ease;
}

.ai-action-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
}

.ai-action-btn:hover {
  transform: translateY(-1px);
}

.ai-action-primary {
  background: linear-gradient(135deg, #0d9488 0%, #0a7c72 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.ai-action-primary:hover {
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.ai-action-wa {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.ai-action-wa:hover {
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
}

.ai-action-chip {
  background: var(--bg-surface-subtle);
  color: var(--brand-navy);
  border: 1px solid var(--border-light);
}

.ai-action-chip:hover {
  background: #ffffff;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Typing Indicator Animation */
.ai-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.7rem 0.95rem;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Quick Prompts Row */
.ai-quick-prompts {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.55rem 0.85rem;
  background: #f0f7f7;
  border-top: 1px solid var(--border-light);
  scrollbar-width: none;
  position: relative;
  z-index: 5;
}

.ai-quick-prompts::-webkit-scrollbar {
  display: none;
}

.ai-chip {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  z-index: 6;
}

.ai-chip:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.ai-chip:active {
  transform: scale(0.95);
  background: #097268;
  color: #ffffff;
}

/* Footer / Input Form */
.ai-chat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.ai-chat-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #f8fcfb;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-chat-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
  background: #ffffff;
}

.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ai-send-btn:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.05);
}

.ai-send-btn:active {
  transform: scale(0.95);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 640px) {
  body.ai-chat-opened .floating-side-dock {
    display: none !important;
  }
  .ai-chat-window {
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 1000010 !important;
  }
  .floating-side-dock {
    bottom: 18px !important;
    right: 18px !important;
    gap: 10px !important;
  }
  .float-btn {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Blog Detail Two-Column & Sticky Sidebar Layout */
.blog-detail-container {
  max-width: 1240px;
  margin: 0 auto;
}

.blog-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2.5rem;
  align-items: start;
}

.blog-main-article {
  min-width: 0;
}

.article-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content h2 {
  margin: 2.4rem 0 0.9rem;
  color: #102f50;
  font-size: clamp(1.45rem, 2.5vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-content h3 {
  margin: 1.8rem 0 0.7rem;
  color: #173d61;
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  font-weight: 700;
  line-height: 1.4;
}

.article-content h4 {
  margin: 1.5rem 0 0.6rem;
  color: #1e4264;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.article-content p {
  margin: 0 0 1.2rem;
  line-height: 1.85;
}

.article-content p.lead {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #0d9488;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  color: #334155;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.75;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: #334155;
  line-height: 1.85;
}

.article-content li {
  padding-left: 0.2rem;
}

.article-content li + li {
  margin-top: 0.4rem;
}

.article-content a {
  color: #0d8278;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: #0f766e;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #0d9488;
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
  color: #475569;
  font-style: italic;
}

.article-content code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 0.9em;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-sidebar {
  position: sticky;
  top: 85px;
  z-index: 20;
}

/* Ultra-Crisp High-Visibility Section Media (Under H2) */
.blog-section-media,
.article-content .blog-section-media,
.article-content figure.blog-section-media {
  margin: 1.5rem 0 2rem 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid var(--border-color, #e2e8f0) !important;
  background: var(--bg-surface-alt, #f8fafc) !important;
  display: block !important;
  width: 100% !important;
}

.blog-section-media img,
.article-content .blog-section-media img,
.article-content figure.blog-section-media img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1200 / 628;
  object-fit: cover !important;
  display: block !important;
  border-radius: 12px;
}

/* Premium Animated Compact Blog Lead Card */
.blog-lead-card-premium {
  position: relative;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  padding: 18px 20px 16px 20px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.blog-lead-card-premium:hover {
  box-shadow: 0 16px 36px -6px rgba(13, 148, 136, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

.card-shimmer-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d9488, #2563eb, #0d9488, #10b981);
  background-size: 300% 100%;
  animation: shimmerBar 6s ease-in-out infinite;
}

@keyframes shimmerBar {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 100px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  margin-bottom: 6px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0d9488;
  position: relative;
  display: inline-block;
}

.live-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.4);
  animation: livePulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.status-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0d9488;
}

.card-title-compact {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main, #091a2b);
  margin: 0 0 3px 0;
  line-height: 1.25;
}

.card-subtitle-compact {
  font-size: 11.5px;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.compact-lead-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-group-compact {
  display: flex;
  flex-direction: column;
}

.compact-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #475569);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-input {
  width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 6px;
  font-size: 12.5px;
  box-sizing: border-box;
  background: var(--bg-surface-alt, #f8fafc);
  color: var(--text-main, #0f172a);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.compact-input:hover {
  background: var(--bg-surface, #ffffff);
  border-color: #94a3b8;
}

.compact-input:focus {
  outline: none;
  background: var(--bg-surface, #ffffff);
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.select-wrapper-compact {
  position: relative;
  display: flex;
  align-items: center;
}

.compact-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: #64748b;
}

.compact-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
  margin-top: 2px;
}

.compact-submit-btn:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.compact-submit-btn:active {
  transform: translateY(0);
}

.compact-submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.compact-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--text-muted, #64748b);
  margin-top: 2px;
}

.compact-alert {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.4;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1023px) {
  .blog-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .blog-sidebar {
    position: static !important;
    max-width: 500px;
    margin: 2rem auto 0 auto;
    width: 100%;
  }
}



