/* ============================================================
   NeuroMotion Home PT — Print Stylesheet
   Applied when printing forms (forms.html)
   ============================================================ */

@media print {
  /* Hide navigation, non-essential UI */
  .navbar, .footer, .page-hero, .btn:not(.btn-print), .filter-tabs,
  .breadcrumb, .hero-scroll, .carousel-controls, .carousel-btn,
  .doc-header button, .mobile-menu, .hamburger,
  .lang-toggle, .portal-sidebar, .no-print { display: none !important; }

  /* Reset page layout */
  body {
    font-family: 'Times New Roman', serif;
    font-size: 11pt;
    color: #000;
    background: white;
    margin: 0;
    padding: 0;
  }
  * { -webkit-print-color-adjust: exact; color-adjust: exact; }

  .container { max-width: 100%; padding: 0 1cm; }

  /* Force open all doc-body sections */
  .doc-body { display: block !important; padding: .5cm 1cm; }
  .doc-header { background: #f0f0f0 !important; border-bottom: 1pt solid #ccc; }

  /* Page breaks */
  .doc-section { page-break-inside: avoid; break-inside: avoid; margin-bottom: 1cm; }
  .doc-section + .doc-section { page-break-before: auto; }
  .page-break { page-break-after: always; break-after: always; }

  /* Print-friendly form styles */
  .form-control {
    border: 1pt solid #999;
    border-radius: 0;
    padding: .3cm;
    background: white;
    box-shadow: none;
  }
  .form-label { font-weight: bold; }

  /* Signature area */
  .sig-canvas {
    border: 1pt dashed #333;
    background: white;
    height: 2cm;
  }
  .sig-actions { display: none; }

  /* Print header with logo/practice info */
  .print-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2pt solid #2C3E50;
    padding-bottom: .4cm;
    margin-bottom: .75cm;
  }
  .print-header .practice-name {
    font-size: 16pt;
    font-weight: bold;
    color: #2C3E50;
  }
  .print-header .practice-contact {
    font-size: 9pt;
    color: #555;
    text-align: right;
    line-height: 1.5;
  }

  /* Form tables */
  table { width: 100%; border-collapse: collapse; }
  td, th { border: .5pt solid #999; padding: .2cm; font-size: 10pt; }
  th { background: #e0e0e0; font-weight: bold; }

  /* Legal text */
  .legal-text { font-size: 10pt; line-height: 1.6; }

  /* Links */
  a { color: #000; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  a[href^="tel"]::after, a[href^="mailto"]::after { content: ""; }

  /* Page numbering */
  @page {
    margin: 2cm;
    @bottom-center {
      content: "NeuroMotion Home PT — Page " counter(page) " of " counter(pages);
      font-size: 8pt;
      color: #666;
    }
  }
  @page :first {
    @top-left { content: "CONFIDENTIAL — PATIENT COPY"; font-size: 8pt; color: #888; }
  }
}
