/**
 * Print Styles for Medicare Plan Picker
 * Hides navigation, focuses on report content
 */

@media print {
  /* Hide non-essential elements */
  .no-print,
  header,
  .site-header,
  footer,
  .site-footer,
  nav,
  .header-top,
  .header-nav,
  .header-nav-wrapper,
  .wizard-nav,
  .wizard-progress,
  .progress-bar,
  .results-actions {
    display: none !important;
  }

  /* Show print-only elements */
  .print-only {
    display: block !important;
  }

  /* Reset page styling */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Container reset */
  .wizard-container,
  .wizard-steps,
  .wizard-step {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
    box-shadow: none !important;
  }

  /* Show all steps that are results */
  .wizard-step.active[data-step="8"] {
    display: block !important;
    padding: 0 !important;
  }

  /* Site branding for print */
  .print-header {
    margin-bottom: 0.5in;
    padding-bottom: 0.25in;
    border-bottom: 2px solid #e0e0e0;
  }

  .print-brand-name {
    font-size: 24pt;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
  }

  .print-subtitle {
    font-size: 14pt;
    color: #666;
    margin: 0.1in 0 0;
  }

  /* Remove the ::before approach */
  .wizard-step.active::before {
    display: none;
  }

  /* Results sections */
  .results-section {
    page-break-inside: avoid;
    margin-bottom: 0.5in;
    padding: 0 !important;
    background: white !important;
    border: none !important;
    box-shadow: none !important;
  }

  .results-section h2 {
    font-size: 14pt;
    color: #2c3e50;
    margin-bottom: 0.25in;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.1in;
  }

  /* Upsell section - compact single row */
  .upsell-section.no-print {
    display: block !important;
    page-break-before: avoid;
    margin-top: 0.25in;
    padding: 0.15in !important;
    border: 1px solid #ccc !important;
    background: #fafafa !important;
  }

  .upsell-section h2 {
    font-size: 10pt !important;
    margin-bottom: 0.1in !important;
  }

  .upsell-intro {
    display: none !important;
  }

  .upsell-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.1in !important;
    justify-content: center;
  }

  .upsell-tile {
    padding: 0.05in 0.1in !important;
    min-width: auto !important;
    flex: 0 0 auto;
    border: 1px solid #ddd !important;
    background: white !important;
  }

  .upsell-icon {
    font-size: 12pt !important;
  }

  .upsell-title {
    font-size: 7pt !important;
  }

  .upsell-desc {
    display: none !important;
  }

  .upsell-check {
    display: none !important;
  }

  .upsell-cta,
  .upsell-summary {
    display: none !important;
  }

  /* Score display */
  .recommendation-card {
    border: 2px solid #2c3e50 !important;
    padding: 0.25in !important;
    margin-bottom: 0.25in;
  }

  .score-display {
    font-size: 18pt !important;
    font-weight: bold;
    color: #2c3e50 !important;
  }

  /* Table styling */
  .factors-table {
    width: 100%;
    border-collapse: collapse;
  }

  .factors-table th,
  .factors-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    font-size: 10pt;
  }

  .factors-table th {
    background: #f5f5f5 !important;
    font-weight: bold;
  }

  /* Score bars - simplified for print */
  .score-bar {
    background: #e0e0e0 !important;
    border: 1px solid #ccc;
  }

  .score-fill {
    background: #333 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Print footer */
  .print-footer {
    margin-top: 0.5in;
    padding-top: 0.25in;
    border-top: 2px solid #e0e0e0;
  }

  .prepared-date {
    font-size: 10pt;
    color: #666;
    margin-bottom: 0.25in;
  }

  .print-callout {
    background: #f5f5f5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border: 1px solid #ccc;
    padding: 0.2in;
    text-align: center;
  }

  .print-callout p {
    margin: 0;
    font-size: 11pt;
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  table {
    page-break-inside: avoid;
  }

  /* Hide visual indicators */
  .upsell-check,
  .discount-badge {
    display: none !important;
  }

  /* Links - show URL */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  /* Don't show URL for internal links */
  a[href^="#"]:after,
  a[href^="javascript"]:after {
    content: "";
  }
}

/* Screen styling for print-only elements */
@media screen {
  .print-only {
    display: none !important;
  }
}
