/* ==========================================================================
   Playbook lead-capture popup
   Fixed to the real viewport (NOT the scaled page stage) — intentionally
   placed outside .hero-stage in index.html so position:fixed behaves
   correctly regardless of scroll position or page scale.
   ========================================================================== */

.playbook-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.playbook-popup.is-open {
  display: flex;
}

.playbook-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 20, 0.72);
  backdrop-filter: blur(3px);
}

.playbook-popup__card {
  position: relative;
  width: 92%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #14284a 0%, #0a1830 55%, #060f1e 100%);
  border: 1px solid rgba(217, 195, 138, 0.25);
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: playbookPopupIn 0.25s ease-out;
}

@keyframes playbookPopupIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.playbook-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.playbook-popup__close:hover {
  color: #ffffff;
}

.playbook-popup__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9c38a;
}

.playbook-popup__title {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: #ffffff;
}

.playbook-popup__body {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.playbook-popup__field {
  text-align: left;
  margin-bottom: 14px;
}
.playbook-popup__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.playbook-popup__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.playbook-popup__field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.playbook-popup__field input:focus {
  outline: none;
  border-color: #d9c38a;
  background: rgba(255, 255, 255, 0.1);
}

/* Brevo honeypot: present in the DOM for bots, invisible to real users */
.playbook-popup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.playbook-popup__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  background-image: linear-gradient(
    200.59deg,
    rgb(208, 195, 161) 9.28%,
    rgb(217, 195, 138) 16.8%,
    rgb(199, 195, 187) 30.14%,
    rgb(173, 147, 81) 47.57%,
    rgb(139, 111, 37) 78.34%
  );
  color: #ffffff;
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.playbook-popup__submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.playbook-popup__submit--link {
  margin-top: 4px;
}

.playbook-popup__decline {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.playbook-popup__decline:hover {
  color: rgba(255, 255, 255, 0.7);
}

.playbook-popup__success-state {
  padding: 12px 0 4px;
}

.playbook-popup__hidden-iframe {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .playbook-popup__card {
    padding: 32px 22px 26px;
  }
  .playbook-popup__title {
    font-size: 24px;
  }
}
