/* Quote modal + motion for Book Publishing Test */

.bpt-modal[hidden] { display: none !important; }
.bpt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.bpt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 40, 0.72);
  backdrop-filter: blur(6px);
}
.bpt-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 1.15rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: bptModalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes bptModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.bpt-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #5c6b7a;
  cursor: pointer;
}
.bpt-modal__close:hover { color: #1A0F3D; }
.bpt-modal__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B3AED;
}
.bpt-modal__head h2 {
  margin: 0.45rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  color: #1A0F3D;
  line-height: 1.2;
}
.bpt-modal__head p {
  margin: 0.55rem 0 0;
  color: #5c6b7a;
  font-size: 0.92rem;
  line-height: 1.55;
}
.bpt-modal__form { margin-top: 1.25rem; }
.bpt-modal__field { margin: 0 0 0.75rem; }
.bpt-modal__field input,
.bpt-modal__field textarea {
  width: 100%;
  border: 1px solid rgba(12, 35, 64, 0.18);
  border-radius: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: #fff !important;
  font-size: 0.94rem;
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
  font-family: inherit;
}
.bpt-modal__field input::placeholder,
.bpt-modal__field textarea::placeholder {
  color: #000 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #000 !important;
}
.bpt-modal__field textarea { min-height: 90px; resize: vertical; }
.bpt-modal__consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.35rem 0 1rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #5c6b7a;
  cursor: pointer;
}
.bpt-modal__consent input { margin-top: 0.15rem; accent-color: #6B3AED; }
.bpt-modal__submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  min-height: 52px;
  background: #6B3AED;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bpt-modal__submit:hover { background: #5521C9; }
body.bpt-modal-open { overflow: hidden; }

/* Reveal on scroll */
.bpt-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.bpt-reveal.is-in {
  opacity: 1;
  transform: none;
}
.bpt-reveal--left { transform: translateX(-40px); }
.bpt-reveal--right { transform: translateX(40px); }
.bpt-reveal--left.is-in,
.bpt-reveal--right.is-in { transform: none; }
.bpt-reveal--scale {
  transform: scale(0.94);
}
.bpt-reveal--scale.is-in { transform: none; }
/* Hero must never stay invisible (IO can miss above-fold items) */
.bpt-hero .bpt-reveal {
  opacity: 1;
  transform: none;
}
.bpt-delay-1 { transition-delay: 0.08s; }
.bpt-delay-2 { transition-delay: 0.16s; }
.bpt-delay-3 { transition-delay: 0.24s; }
.bpt-delay-4 { transition-delay: 0.32s; }

/* Parallax helpers */
.bpt-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .bpt-reveal,
  .bpt-reveal--left,
  .bpt-reveal--right,
  .bpt-reveal--scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .bpt-parallax { transform: none !important; }
}
