/* Homepage widgets (SLA matrix, budget calculator, testimonial carousel) — linked from index.php after css/geral.css. */

/* SLA floating button */
.sla-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 220px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 20px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(5,150,105,0.4);
  transition: all 0.25s ease;
}
.sla-floating-btn:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(5,150,105,0.6);
}
@media (max-width: 640px) {
  .sla-floating-btn {
    bottom: 78px;
    right: 24px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* Budget calculator floating button */
.calc-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 20px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  transition: all 0.25s ease;
}
.calc-floating-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,99,235,0.6);
}

/* Budget calculator form controls */
.calc-group { display: flex; flex-direction: column; gap: 8px; }
.calc-label { font-size: 0.9rem; font-weight: 600; color: #e2e8f0; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; }
.calc-val-badge { font-size: 0.85rem; background: rgba(37,99,235,0.2); color: #93c5fd; padding: 2px 10px; border-radius: 12px; }
.calc-grid { display: grid; gap: 10px; }
.calc-grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.calc-grid-3 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.calc-opt-btn, .calc-ui-btn, .calc-urgency-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ccc;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}
.calc-opt-btn strong, .calc-ui-btn strong, .calc-urgency-btn strong { font-size: 0.9rem; color: #fff; }
.calc-opt-btn span, .calc-ui-btn span, .calc-urgency-btn span { font-size: 0.78rem; color: #888; }
.calc-opt-btn:hover, .calc-ui-btn:hover, .calc-urgency-btn:hover {
  border-color: rgba(59,130,246,0.5);
  background: rgba(255,255,255,0.07);
}
.calc-opt-btn.active, .calc-ui-btn.active, .calc-urgency-btn.active {
  border-color: #2563eb;
  background: rgba(37,99,235,0.18);
  box-shadow: inset 0 0 0 1px #2563eb;
}
.calc-range {
  width: 100%;
  accent-color: #2563eb;
  cursor: pointer;
}
.calc-addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.calc-addon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 0.85rem;
  color: #ddd;
}
.calc-addon-item:hover { background: rgba(255,255,255,0.07); }
.calc-addon-check { accent-color: #2563eb; width: 16px; height: 16px; cursor: pointer; }
.calc-result-box {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(15,23,42,0.6));
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-result-main { display: flex; justify-content: space-between; align-items: flex-end; }
.calc-result-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; }
.calc-total-amount { font-size: 1.8rem; font-weight: 700; color: #60a5fa; line-height: 1.1; }
.calc-time-amount { font-size: 1.1rem; font-weight: 600; color: #e2e8f0; }
.calc-breakdown-desc { font-size: 0.83rem; color: #cbd5e1; margin: 0; line-height: 1.4; }
.calc-submit-btn {
  display: block;
  text-align: center;
  background: #2563eb;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.calc-submit-btn:hover { background: #1d4ed8; }

/* SLA matrix inside the modal */
.sla-widget-content { max-width: 840px; }
.sla-widget-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sla-widget-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.88rem; color: #e2e8f0; min-width: 600px; }
.sla-widget-table thead tr { border-bottom: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.sla-widget-table th { padding: 14px 16px; color: #fff; width: 34%; }
.sla-widget-table th.tier-essencial { color: #93c5fd; text-align: center; width: 22%; }
.sla-widget-table th.tier-profissional { color: #60a5fa; text-align: center; width: 22%; }
.sla-widget-table th.tier-enterprise { color: #34d399; text-align: center; width: 22%; background: rgba(52,211,153,0.1); border-radius: 8px 8px 0 0; }
.sla-widget-table th .pill-247 { display: inline-block; font-size: 0.65rem; background: #059669; color: #fff; padding: 2px 6px; border-radius: 10px; text-transform: uppercase; font-weight: 700; margin-left: 4px; }
.sla-widget-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.sla-widget-table td { padding: 12px 16px; }
.sla-widget-table td.td-label { font-weight: 600; }
.sla-widget-table td.td-essencial { text-align: center; color: #94a3b8; }
.sla-widget-table td.td-profissional { text-align: center; color: #cbd5e1; }
.sla-widget-table td.td-enterprise { text-align: center; color: #34d399; font-weight: 600; background: rgba(52,211,153,0.05); }
.sla-widget-table td.td-enterprise-rounded { border-radius: 0 0 8px 8px; }
.sla-widget-cta-row { margin-top: 16px; text-align: center; }
.sla-widget-cta-btn { display: inline-block; padding: 10px 24px; }

/* Testimonial carousel widget */
.tst-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9980;
  max-width: 380px;
  width: calc(100vw - 48px);
  font-family: inherit;
}
.tst-card {
  background: #23201e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tst-card.minimized .tst-body {
  display: none;
}
.tst-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tst-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
}
.tst-badge {
  font-size: 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}
.tst-minimize-btn {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}
.tst-minimize-btn:hover { color: #fff; }
.tst-body {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tst-slider-wrapper {
  overflow: hidden;
  width: 100%;
}
.tst-slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}
.tst-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tst-stars {
  display: flex;
  gap: 3px;
}
.tst-star {
  color: #f59e0b;
  font-size: 1.1rem;
  line-height: 1;
}
.tst-quote {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #d1d5db;
  font-style: italic;
}
.tst-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.tst-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tst-author-info {
  display: flex;
  flex-direction: column;
}
.tst-author-name {
  font-size: 0.83rem;
  color: #f8fafc;
  font-weight: 600;
}
.tst-author-role {
  font-size: 0.74rem;
  color: #94a3b8;
}
.tst-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tst-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.tst-nav-btn:hover {
  background: rgba(37, 99, 235, 0.3);
  color: #fff;
  border-color: #2563eb;
}
.tst-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tst-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.tst-dot.active {
  background: #2563eb;
  width: 18px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .tst-container {
    bottom: 80px;
    left: 16px;
    width: calc(100vw - 32px);
  }
}
