/* CSS/index_styles.css */
.page-banner {
  height: 350px;
  position: relative;
  overflow: hidden;
}

.main-carousel-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.mini-gallery-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 0.9s ease-in-out,
    transform 0.9s ease-in-out;
}

.mini-gallery-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.dot, .mini-dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.mini-dot {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.10);
}
.mini-dot.active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.06);
}

.sparkle-bg {
  background-image:
    radial-gradient(circle at 20% 20%, rgb(255, 255, 255), transparent 35%),
    radial-gradient(circle at 80% 35%, rgb(255, 255, 255), transparent 30%),
    radial-gradient(circle at 30% 80%, rgb(255, 255, 255), transparent 35%),
    radial-gradient(circle at 70% 85%, rgb(255, 255, 255), transparent 30%);
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #059669;
  cursor: pointer;
  margin-top: -8px;
  transition: background 0.3s;
}

input[type=range]::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #059669;
  cursor: pointer;
  transition: background 0.3s;
}

input[type=range]:focus::-webkit-slider-thumb {
  background: #047857;
}
input[type=range]:focus::-moz-range-thumb {
  background: #047857;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(2px);
}

.modal-panel {
  position: relative;
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  margin: 32px auto;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transform: translateY(8px);
  opacity: 0;
  animation: modalIn 180ms ease-out forwards;
}

@keyframes modalIn {
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  color: #111827;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover {
  background: #ffffff;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .modal-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.modal-left {
  background: #0b1220;
  padding: 18px;
}

.modal-right {
  padding: 22px;
}

.modal-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.modal-slides {
  position: absolute;
  inset: 0;
}

.modal-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.modal-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(17, 24, 39, 0.55);
  color: #ffffff;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.modal-arrow:hover {
  background: rgba(17, 24, 39, 0.75);
}

.modal-prev { left: 12px; }
.modal-next { right: 12px; }

.modal-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}

.modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.12);
}

.modal-dot.active {
  background: rgba(255,255,255,0.95);
}

body.modal-open {
  overflow: hidden;
}

/* Shared background used for Workflow / Auto-Delivery tiles and ROI slider box */
.gcx-bg-tile {
  position: relative;
  overflow: hidden;
}

.gcx-bg-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("Photos/Tools.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  pointer-events: none;
}

.gcx-bg-tile > * {
  position: relative;
  z-index: 1;
}

/* HubSpot iframe embed (Request Demo section) */
.hubspot-embed-frame {
  width: 100%;
}

.hubspot-iframe {
  width: 100%;
  border: 0;
  display: block;
  min-height: 720px; /* adjust after you paste the real HubSpot form */
}
