/*
 * Pricing package popup (includes/package-modal.php).
 * Builds on the contact form card styles in contact-form.css (.cf-*).
 * --pkg is set by main.js to the clicked package card's platform colour.
 */
.pm {
  --pkg: var(--primary);
  width: 100%;
  max-width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: inherit;
}
.pm::backdrop {
  background: rgba(10, 12, 18, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.pm[open] { animation: pm-in .25s cubic-bezier(.22, 1, .36, 1); }
.pm[open]::backdrop { animation: pm-fade .25s ease; }
@keyframes pm-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }
html.pm-lock { overflow: hidden; }

.pm__card {
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45);
}
.pm__card::before {                       /* platform accent, like the pricing cards */
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--pkg);
}
.pm__close { position: absolute; top: 18px; right: 18px; margin: 0; }

.pm__package {
  padding: 4px 36px 20px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e2e6;
}
.pm__label {
  font: 600 12px/16px 'Inter', system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7a7a7e;
}
.pm__title {
  margin: 6px 0 12px;
  font-family: var(--font-geist-sans), 'Urbanist', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -.01em;
  color: #0f0f10;
}
.pm__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pm__category {
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pkg) 14%, #fff);
  color: var(--pkg);
  font: 600 13px/18px 'Inter', system-ui, sans-serif;
}
.pm__category:empty { display: none; }
.pm__price {
  font-family: var(--font-geist-sans), 'Urbanist', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: #0f0f10;
}
.pm__optional { font-weight: 400; color: #7a7a7e; }

.pm__success { min-height: 380px; }
.pm__success-text {
  max-width: 320px;
  margin: 12px 0 0;
  font: 400 15px/22px 'Inter', system-ui, sans-serif;
  color: #5d5d62;
}
.pm__success-text strong { color: #0f0f10; font-weight: 600; }

@media (max-width: 480px) {
  .pm { max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .pm__card { max-height: calc(100dvh - 20px); }
  .pm__card::before { left: 18px; right: 18px; }
  .pm__close { top: 14px; right: 12px; }
  .pm__title { font-size: 24px; line-height: 28px; }
  .pm__price { font-size: 28px; }
  .pm__success { min-height: 340px; }
}
