/* ==========================================================================
   Bytecore InfoTech — Component Specific Styles
   Strict Zero Horizontal Overflow & Mobile Fluidity
   ========================================================================== */

/* --------------------------------------------------------------------------
   Live Software Demo Sandbox (Interactive Simulator)
   -------------------------------------------------------------------------- */
.demo-sandbox-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.demo-tabs-bar {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.demo-tabs-bar::-webkit-scrollbar {
  display: none;
}

.demo-tab-item {
  padding: 0.95rem 1.35rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  flex-shrink: 0;
}

.demo-tab-item:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.demo-tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-surface);
  font-weight: 700;
}

.demo-display-screen {
  padding: 1.6rem;
  min-height: 420px;
  background: var(--bg-surface);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.demo-screen-panel {
  display: none;
  width: 100%;
}

.demo-screen-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

/* Simulator UI Elements */
.sim-app-shell {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sim-topbar {
  background: var(--bg-surface-elevated);
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
}

.sim-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sim-app-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sim-badge-live {
  font-size: 0.68rem;
  background: var(--success-bg);
  color: var(--success);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.sim-body {
  padding: 1.15rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 1. ERP Simulator */
.erp-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  width: 100%;
}

.erp-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.erp-mini-card .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.erp-mini-card .val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.erp-mini-card .change {
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
  margin-top: 0.25rem;
}

.erp-table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  -webkit-overflow-scrolling: touch;
  display: block;
}

.sim-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
  min-width: 480px;
}

.sim-table th {
  background: var(--bg-subtle);
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.sim-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.sim-table tr:last-child td {
  border-bottom: none;
}

.sim-pill {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.sim-pill.success {
  background: var(--success-bg);
  color: var(--success);
}

.sim-pill.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.sim-pill.info {
  background: var(--bg-badge);
  color: var(--accent);
}

/* 2. Billing & WhatsApp Simulation */
.billing-sim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.15rem;
  width: 100%;
}

.invoice-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.invoice-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
}

.whatsapp-mockup {
  background: #0b141a;
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e9edef;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.whatsapp-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.whatsapp-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
}

.whatsapp-bubble {
  background: #005c4b;
  border-radius: 8px 8px 0 8px;
  padding: 0.7rem 0.8rem;
  font-size: 0.78rem;
  line-height: 1.45;
  align-self: flex-end;
  max-width: 96%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow-wrap: break-word;
}

.whatsapp-pdf-attach {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.whatsapp-pdf-attach i {
  color: #ef4444;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.whatsapp-pay-btn {
  display: block;
  background: #25D366;
  color: #0b141a;
  text-align: center;
  font-weight: 700;
  padding: 0.4rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Interactive ROI & Project Cost Estimator
   -------------------------------------------------------------------------- */
.calculator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  width: 100%;
}

.calc-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.calc-industry-select {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.65rem;
  width: 100%;
}

.calc-ind-btn {
  padding: 0.6rem 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  touch-action: manipulation;
  width: 100%;
}

.calc-ind-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.calc-ind-btn.active {
  background: var(--primary-light-bg);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.calc-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.65rem;
  width: 100%;
}

.module-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.7rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  touch-action: manipulation;
  width: 100%;
  box-sizing: border-box;
}

.module-checkbox-label:hover {
  border-color: var(--border-medium);
}

.module-checkbox-label.checked {
  background: var(--primary-light-bg);
  border-color: var(--primary);
}

.module-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mod-info {
  min-width: 0;
}

.mod-info strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.mod-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.calc-slider-group {
  margin-bottom: 1.15rem;
  width: 100%;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.slider-val-badge {
  color: var(--accent);
  font-weight: 700;
}

.custom-range-slider {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-medium);
  outline: none;
  accent-color: var(--primary);
}

/* Calculator Summary Result Box */
.calc-result-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.result-header {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.15rem;
}

.result-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.result-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.result-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  width: 100%;
}

.result-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  min-width: 0;
}

.result-metric-card .r-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.result-metric-card .r-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  overflow-wrap: break-word;
}

.result-breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
  width: 100%;
}

.result-breakdown-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  gap: 0.5rem;
}

.result-breakdown-list li strong {
  color: var(--text-primary);
  flex-shrink: 0;
}

.calc-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Comparison Matrix Table
   -------------------------------------------------------------------------- */
.comparison-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
  display: block;
}

.comp-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th {
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.comp-table th:first-child {
  width: 32%;
}

.comp-table th.highlight-col {
  background: var(--primary-light-bg);
  color: var(--primary);
  border-top: 3px solid var(--primary);
}

.comp-table td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.comp-table td.highlight-col {
  background: hsla(var(--primary-hue), var(--primary-sat), var(--primary-light), 0.04);
  font-weight: 600;
  color: var(--text-primary);
}

.comp-table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Testimonials & Case Studies
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.test-stars {
  color: #f59e0b;
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.test-quote {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.test-client {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.test-client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light-bg);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.test-client-info h6 {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.test-client-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Interactive Consultation & Demo Booking Form
   -------------------------------------------------------------------------- */
.contact-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  width: 100%;
}

.contact-sidebar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.contact-sidebar h3 {
  color: #ffffff;
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.contact-sidebar p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1.65rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.75rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.info-text-group label {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-text-group a, .info-text-group span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  overflow-wrap: break-word;
}

.contact-form-side {
  padding: 2.25rem 1.75rem;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  width: 100%;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px; /* Prevents auto-zoom on iOS mobile */
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-control:focus {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 85px;
}

/* --------------------------------------------------------------------------
   Floating Quick Action Widgets
   -------------------------------------------------------------------------- */
.floating-widgets {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 999;
}

.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1.2rem;
  position: relative;
  touch-action: manipulation;
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-whatsapp {
  background: #25D366;
  color: #ffffff;
}

.float-whatsapp .badge-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
}

.float-top {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.float-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 400px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notice i {
  color: var(--success);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Component Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .calc-grid, .billing-sim-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  
  .calculator-card {
    padding: 1.35rem;
  }

  .erp-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-sidebar, .contact-form-side {
    padding: 1.35rem;
  }
}

@media (max-width: 600px) {
  .calc-industry-select {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-modules-grid {
    grid-template-columns: 1fr;
  }

  .demo-display-screen {
    padding: 0.85rem;
  }

  .sim-body {
    padding: 0.75rem;
  }

  .erp-stat-row {
    grid-template-columns: 1fr;
  }

  .result-metrics-grid {
    grid-template-columns: 1fr;
  }

  .floating-widgets {
    bottom: 1rem;
    right: 1rem;
  }

  .float-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .toast-notice {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 360px) {
  .calc-industry-select {
    grid-template-columns: 1fr;
  }
  
  .calculator-card {
    padding: 0.95rem;
  }
}
