/* Core modal styles based on provided snippet */
.cta-modal {
  position: fixed; inset: 0; z-index: 999999;
  display: none; align-items: center; justify-content: center;
}
.cta-modal.is-open { display: flex; }
.cta-modal__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
}
.cta-modal__dialog {
  position: relative; z-index: 1;
  width: min(92vw, 400px);
  background: #ffffff; border-radius: 16px;
  padding: 28px 24px 32px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  text-align: center;
}
.cta-modal__text {
  margin: 0 0 16px; font-size: 1rem; color: #333;
  font-weight: 600;
}
.cta-modal__close {
  position: absolute; top: 8px; right: 10px;
  border: none; background: transparent; font-size: 28px;
  line-height: 1; cursor: pointer; color: #666;
}
.cta-modal__close:hover { color: #000; }

.cta-button {
  display: inline-block;
  width: 80%;
  padding: 20px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800; font-size: 26px;
  color: #fff; background: #d10000; /* big red */
  box-shadow: 0 0 20px rgba(209,0,0,0.5);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: pulse 1.8s infinite ease-in-out;
}
.cta-button:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 0 30px rgba(209,0,0,0.7);
}

@keyframes pulse {
  0%, 80% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(209,0,0,0.5);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 40px rgba(209,0,0,0.9);
  }
}

body.cta-modal-open { overflow: hidden; }

/* Sticky floating phone button (1 inch above bottom = ~96px) */
.cpta-fab {
  position: fixed;
  right: 16px;
  bottom: 96px; /* ~1 inch above viewport bottom */
  z-index: 999999;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #d10000;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.cpta-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.cpta-fab:active {
  transform: scale(0.98);
}

.cpta-fab__icon {
  line-height: 1;
}

/* Respect admin bar (logged-in) */
body.admin-bar .cpta-fab {
  bottom: calc(96px + 32px);
}
