/* Print-Specific Styles for Badge Form */
@media print {
    /* Hide everything except badge form when printing */
    body * {
        visibility: hidden;
    }
    
    #badgeForm,
    #badgeForm * {
        visibility: visible;
    }
    
    #badgeForm {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    /* Hide buttons, navigation, and screen-only elements */
    .btn-primary,
    .btn-secondary,
    button,
    .language-toggle,
    header,
    .progress-container,
    .print-preview-note,
    .form-actions,
    #badgeApplicationForm h2,
    #badgeApplicationForm .form-group,
    #badgeApplicationForm .form-row,
    #badgeApplicationForm label,
    #badgeApplicationForm input,
    #badgeApplicationForm select,
    #badgeApplicationForm .badge-notice {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Show print layout */
    .badge-print-container {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Page setup */
    @page {
        size: letter;
        margin: 0.5in;
    }
    
    /* Badge form print styling */
    .badge-print-container {
        width: 100%;
        max-width: 7.5in;
        margin: 0 auto;
        font-family: Arial, sans-serif;
        font-size: 11pt;
        color: #000;
        background: white;
    }
    
    .badge-print-header {
        text-align: center;
        border-bottom: 3px solid #003366;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .badge-print-header h1 {
        font-size: 14pt;
        font-weight: bold;
        color: #003366;
        margin: 0 0 5px 0;
        text-transform: uppercase;
    }
    
    .badge-print-header h2 {
        font-size: 16pt;
        font-weight: bold;
        color: #003366;
        margin: 5px 0;
        text-transform: uppercase;
    }
    
    .badge-print-header .form-number {
        font-size: 9pt;
        color: #666;
        margin-top: 5px;
    }
    
    .badge-section {
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
    
    .badge-section-title {
        font-size: 11pt;
        font-weight: bold;
        color: #003366;
        border-bottom: 2px solid #003366;
        padding-bottom: 3px;
        margin-bottom: 10px;
        text-transform: uppercase;
    }
    
    .badge-field {
        margin-bottom: 12px;
        display: flex;
        align-items: baseline;
    }
    
    .badge-field-label {
        font-weight: bold;
        min-width: 140px;
        font-size: 10pt;
    }
    
    .badge-field-value {
        flex: 1;
        border-bottom: 1px solid #000;
        min-height: 18px;
        padding-left: 5px;
        font-size: 11pt;
    }
    
    .badge-field-row {
        display: flex;
        gap: 15px;
        margin-bottom: 12px;
    }
    
    .badge-field-row .badge-field {
        flex: 1;
        margin-bottom: 0;
    }
    
    .badge-field-small .badge-field-value {
        max-width: 60px;
    }
    
    .badge-checkbox {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 2px solid #000;
        margin-right: 8px;
        vertical-align: middle;
    }
    
    .badge-checkbox.checked::after {
        content: "✓";
        display: block;
        text-align: center;
        font-size: 12pt;
        font-weight: bold;
        line-height: 10px;
    }
    
    .badge-signature-section {
        margin-top: 30px;
        page-break-inside: avoid;
    }
    
    .badge-signature-line {
        margin-top: 25px;
        margin-bottom: 8px;
    }
    
    .badge-signature-line .signature-line {
        width: 60%;
        border-bottom: 1px solid #000;
        display: inline-block;
        min-height: 20px;
        margin-right: 20px;
    }
    
    .badge-signature-line .date-line {
        width: 25%;
        border-bottom: 1px solid #000;
        display: inline-block;
        min-height: 20px;
    }
    
    .badge-signature-label {
        font-size: 9pt;
        color: #666;
        margin-top: 3px;
    }
    
    .badge-notice {
        border: 2px solid #003366;
        padding: 12px;
        margin: 20px 0;
        background: #f5f5f5;
        font-size: 9pt;
        line-height: 1.4;
        page-break-inside: avoid;
    }
    
    .badge-notice strong {
        display: block;
        font-size: 10pt;
        color: #003366;
        margin-bottom: 8px;
        text-transform: uppercase;
    }
    
    .badge-footer {
        margin-top: 30px;
        padding-top: 15px;
        border-top: 2px solid #003366;
        font-size: 8pt;
        color: #666;
        text-align: center;
    }
    
    /* Remove web form styling */
    .card {
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .instructions {
        display: none !important;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        font-size: 11pt !important;
        color: #000 !important;
    }
    
    .form-group {
        margin-bottom: 0 !important;
    }
    
    .form-row {
        display: flex !important;
        gap: 15px !important;
    }
}

/* Screen-only: Add print preview button styling */
@media screen {
    .print-preview-note {
        background: #E6F2FF;
        border: 2px solid #0066CC;
        padding: 15px;
        margin: 20px 0;
        border-radius: 8px;
        font-size: 0.95rem;
    }
    
    .print-preview-note strong {
        color: #003366;
        display: block;
        margin-bottom: 8px;
    }
}
