/* ===== REUSABLE FOOTER STYLES ===== */
/* Emotional Trap Assessment - footer + top banner */

.top-banner-wrapper {
  max-width: 700px;
  margin: 20px auto 0;
  padding: 0 20px;
  z-index: 10;
}

.top-banner-container {
  background: linear-gradient(135deg, rgba(34, 197, 154, 0.12), rgba(74, 222, 128, 0.06));
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(34, 197, 154, 0.15);
}

.top-banner-container .footer-statement {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 12px;
}

.top-banner-container .footer-ref-bar {
  justify-content: center;
  margin-bottom: 12px;
}

.top-banner-container .footer-actions {
  justify-content: center;
}

.footer-container {
  text-align: center;
  padding: 32px 20px 24px;
  max-width: 700px;
  margin: 40px auto 0;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  color: var(--text-muted, var(--muted, #857f9e));
  font-family: var(--sans, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 13px;
  line-height: 1.6;
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.footer-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(0.2);
}

.footer-statement-wrap {
  max-width: 580px;
}

.footer-statement {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: var(--text-secondary, var(--text2, #b7b2d0));
}

.footer-statement strong {
  color: var(--text-primary, var(--text, #eceaf6));
  font-weight: 600;
}

.footer-ref-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  margin-bottom: 20px;
}

.footer-ref-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, var(--muted, #857f9e));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-ref-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-primary, #f59e0b);
  letter-spacing: 0.04em;
  font-family: 'Courier New', monospace;
}

.footer-actions {
  display: flex;
  justify-content: center;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1;
}

.footer-btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1.5px solid rgba(37, 211, 102, 0.3);
}

.footer-btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  transform: translateY(-1px);
}

/* Page-level CTA banner (inline on full-report) */
.page-cta-banner {
  background: linear-gradient(135deg, rgba(34, 197, 154, 0.12), rgba(74, 222, 128, 0.06));
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 32px auto 24px;
  max-width: 700px;
  box-shadow: 0 6px 24px rgba(34, 197, 154, 0.15);
  text-align: center;
}

.page-cta-text {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
  color: var(--text-secondary, var(--text2, #b7b2d0));
}

.page-cta-ref-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.page-cta-ref-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, var(--muted, #857f9e));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-cta-ref-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent-primary, #f59e0b);
  letter-spacing: 0.04em;
  font-family: 'Courier New', monospace;
}

.page-cta-whatsapp {
  display: inline-block;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1.5px solid rgba(37, 211, 102, 0.3);
  padding: 12px 28px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.page-cta-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
}

/* PDF loading spinner */
.footer-loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #25d366;
  border-radius: 50%;
  animation: footerSpin 0.7s linear infinite;
}

@keyframes footerSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 28px 16px 20px;
    font-size: 12px;
  }
  .footer-top-row {
    gap: 14px;
  }
  .footer-logo {
    height: 28px;
  }
  .footer-statement {
    font-size: 13px;
  }
  .footer-btn {
    width: 100%;
  }
  .page-cta-banner {
    padding: 20px 16px;
  }
}

/* ===== ASSESSMENT CROSSLINKS ===== */
.footer-crosslinks {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  text-align: left;
}

.top-banner-container .footer-crosslinks {
  display: none !important;
}

.footer-crosslinks-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary, #eceaf6);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-crosslinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.footer-crosslink-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-crosslink-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

.footer-crosslink-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-crosslink-info {
  display: flex;
  flex-direction: column;
}

.footer-crosslink-title {
  font-size: 13px;
  font-weight: 600;
  color: #60a5fa;
}

.footer-crosslink-sub {
  font-size: 11.5px;
  color: var(--text-muted, #857f9e);
  margin-top: 2px;
}
