/* "3 profiles" lead popup (js/profiles-popup.js). White card with a blue
   marquee band on desktop; a bottom sheet on phones so it never covers the
   page the way a full-screen interstitial does. */

.pp-lock,
.pp-lock body {
  overflow: hidden;
}

.pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 14, 40, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pp-overlay.is-open {
  display: flex;
  animation: pp-fade 0.25s ease;
}

@keyframes pp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pp-card {
  position: relative;
  width: min(32rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 1.5rem;
  background: #ffffff;
  color: #14213a;
  font-family: Aeonik, Arial, sans-serif;
  box-shadow: 0 1.5rem 4rem rgba(0, 20, 90, 0.35);
  animation: pp-rise 0.35s cubic-bezier(0.3, 1, 0.35, 1);
}

.pp-card:focus {
  outline: none;
}

@keyframes pp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Blue band with the offer scrolling across it. */
.pp-band {
  overflow: hidden;
  background: #0047ff;
  color: #ffffff;
  white-space: nowrap;
}

.pp-band-track {
  display: inline-flex;
  padding: 0.6875rem 0;
  animation: pp-marquee 22s linear infinite;
}

.pp-band-item {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding-right: 0.875rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pp-band-mark {
  width: 0.75rem;
  height: auto;
  opacity: 0.7;
}

@keyframes pp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pp-body {
  padding: 1.75rem 2rem 1.75rem;
}

.pp-close {
  position: absolute;
  top: 3.25rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 33, 58, 0.06);
  color: #14213a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pp-close:hover {
  background: rgba(20, 33, 58, 0.12);
}

.pp-title {
  margin: 0 2.5rem 0.625rem 0;
  font-family: Featuredisplay, Georgia, serif;
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #14213a;
}

.pp-title em {
  font-style: italic;
  color: #0047ff;
}

.pp-sub {
  margin: 0 0 1.375rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #5b6480;
}

.pp-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #14213a;
}

.pp-label .pp-optional {
  font-weight: 400;
  color: #5b6480;
}

.pp-field + .pp-field {
  margin-top: 1rem;
}

.pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pp-chip {
  padding: 0.5rem 0.875rem;
  border: 1px solid #e1e4f0;
  border-radius: 999px;
  background: #f7f8fc;
  color: #14213a;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pp-chip:hover {
  border-color: #0047ff;
}

.pp-chip[aria-checked="true"] {
  border-color: #0047ff;
  background: #0047ff;
  color: #ffffff;
}

.pp-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.875rem;
  border: 1px solid #e1e4f0;
  border-radius: 0.75rem;
  background: #f7f8fc;
  color: #14213a;
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pp-input::placeholder {
  color: #8a91a8;
}

.pp-input:focus {
  outline: none;
  border-color: #0047ff;
  background: #ffffff;
}

.pp-input[aria-invalid="true"] {
  border-color: #a94436;
}

.pp-error {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #a94436;
}

.pp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pp-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pp-submit {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #0047ff;
  color: #ffffff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pp-submit:hover {
  background: #0039cc;
}

.pp-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.pp-dismiss {
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  color: #5b6480;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.pp-dismiss:hover {
  color: #14213a;
}

.pp-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: #5b6480;
}

.pp-note a {
  color: #0047ff;
  text-decoration: none;
}

.pp-note a:hover {
  text-decoration: underline;
}

/* Phones: bottom sheet. */
@media (max-width: 600px) {
  .pp-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .pp-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 1.25rem 1.25rem 0 0;
    animation-name: pp-sheet;
  }

  @keyframes pp-sheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .pp-body {
    padding: 1.375rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  }

  .pp-close {
    top: 3.125rem;
    right: 0.75rem;
  }

  .pp-title {
    font-size: 1.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-overlay.is-open,
  .pp-card,
  .pp-band-track {
    animation: none;
  }
}
