/* ============================================================================
   Tu Es Belle CE Academy — Pending Approval Banner + Overlay
   Purpose: Temporarily hide all course-purchase, waitlist, and payment
   promises while individual TDLR course approvals are pending.
   Compliance: 16 TAC §59.30(a) — no course may be offered before TDLR
   approval. §59.51(b) — advertisements require provider + course numbers.
   To disable per page: add <html data-pa-disable="true"> or remove the
   pending-approval.css / pending-approval.js includes from that page.
   To disable sitewide: remove the two <link>/<script> tags site-wide.
   ============================================================================ */

:root {
  --pa-bg: #1a1a1a;
  --pa-gold: #c9a44c;
  --pa-gold-dark: #8a6a25;
  --pa-text: #f4efe3;
  --pa-muted: #b8b0a0;
  --pa-panel: rgba(20, 20, 20, 0.94);
  --pa-border: rgba(201, 164, 76, 0.35);
}

/* Sticky top banner */
.pa-topbanner {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: linear-gradient(90deg, var(--pa-gold-dark) 0%, var(--pa-gold) 50%, var(--pa-gold-dark) 100%);
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 10px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.2px;
}

.pa-topbanner strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pa-topbanner a {
  color: #1a1a1a;
  text-decoration: underline;
  font-weight: 700;
}

@media (max-width: 600px) {
  .pa-topbanner {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* Overlay wrapper — applied to any section identified as payment / waitlist / cta */
.pa-covered {
  position: relative !important;
  min-height: 140px;
}

.pa-covered > *:not(.pa-overlay) {
  filter: blur(4px) grayscale(0.6);
  pointer-events: none !important;
  user-select: none;
  opacity: 0.35;
}

/* The overlay panel that sits on top */
.pa-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--pa-panel);
  border: 1px solid var(--pa-border);
  border-radius: 12px;
  color: var(--pa-text);
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pa-overlay .pa-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  background: var(--pa-gold);
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
}

.pa-overlay .pa-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--pa-text);
  margin: 0 0 10px 0;
  max-width: 520px;
}

.pa-overlay .pa-sub {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--pa-muted);
  line-height: 1.55;
  margin: 0 0 16px 0;
  max-width: 540px;
}

.pa-overlay .pa-cite {
  font-size: 11px;
  color: var(--pa-muted);
  opacity: 0.75;
  font-style: italic;
  margin-top: 4px;
  max-width: 480px;
}

@media (max-width: 600px) {
  .pa-overlay {
    padding: 22px 16px;
  }
  .pa-overlay .pa-headline {
    font-size: 18px;
  }
  .pa-overlay .pa-sub {
    font-size: 13px;
  }
}

/* Waitlist CTA button — turn into a disabled visual state */
.pa-disabled-btn {
  opacity: 0.4 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  text-decoration: line-through !important;
}
