/**
 * FNRH Form - Specific Styles
 * Estilos específicos do formulário de check-in FNRH
 */

        /* Campo de email sempre em maiúsculo */
        input[type="email"],
        input[name*="_email"] {
            text-transform: uppercase;
        }

        input[type="email"]::placeholder,
        input[name*="_email"]::placeholder {
            text-transform: none;
        }

        /* Progress Indicator */
        .progress-indicator {
            background: white;
            border-radius: 12px;
            padding: 0.5rem 0.75rem;
            box-shadow: var(--shadow-md);
            margin-bottom: 0.5rem;
        }
        
        .progress-steps {
            display: flex;
            justify-content: space-between;
            position: relative;
        }
        
        .progress-steps::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--border-color);
            z-index: 1;
        }
        
        .progress-step {
            position: relative;
            z-index: 2;
            text-align: center;
            flex: 1;
        }
        
        .progress-step-indicator {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: white;
            border: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.25rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .progress-step.active .progress-step-indicator {
            background: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }
        
        .progress-step-indicator i {
            font-size: 0.875rem;
        }
        
        .progress-step.completed .progress-step-indicator {
            background: #48bb78;
            border-color: #48bb78;
            color: white;
        }
        
        .progress-step-label {
            font-size: 0.7rem;
            color: var(--text-secondary);
            font-weight: 500;
            display: none;
        }
        
        .progress-step.active .progress-step-label {
            color: var(--primary-color);
            font-weight: 600;
            display: block;
        }
        

        /* Guest Section Redesign */
        .guest-section {
            background: white !important;
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            box-shadow: var(--shadow-md);
            border: 2px solid transparent;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .guest-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .guest-section.active {
            border-color: rgba(var(--primary-rgb), 0.3);
            background-color: white !important;
        }
        
        .guest-section.active::before {
            transform: scaleX(1);
        }
        
        .guest-counter {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
            color: white;
            border-radius: 12px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            margin-right: 15px;
            box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
        }
        

        /* Select2 customization */
        .select2-container--bootstrap-5 .select2-selection--single {
            height: 42px !important;
            padding: 0.375rem 0.75rem !important;
            font-size: 1rem !important;
            border-radius: 8px;
            border: 2px solid var(--border-color);
            line-height: 1.5;
        }
        
        .select2-container--bootstrap-5.select2-container--focus .select2-selection,
        .select2-container--bootstrap-5.select2-container--open .select2-selection {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
        }
        
        .select2-dropdown {
            border-radius: 8px;
            border-color: #ced4da;
        }
        
        .select2-search__field {
            font-size: 16px !important; /* Prevent iOS zoom */
        }
        
        .select2-results__option--highlighted {
            background-color: var(--primary-color) !important;
        }
        
        .select2-container--bootstrap-5 .select2-selection__rendered {
            padding-left: 0 !important;
            font-size: 1rem !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }
        
        /* Limita tamanho dos itens no dropdown */
        .select2-results__option {
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            font-size: 1rem !important;
        }
        
        .select2-container--bootstrap-5 .select2-selection__arrow {
            height: 38px !important;
        }
        
        /* Mobile adjustments */
        @media (max-width: 768px) {
            .select2-container {
                width: 100% !important;
            }
            
            .select2-container--bootstrap-5 .select2-selection--single {
                font-size: 16px !important; /* Prevent iOS zoom */
                height: 42px !important;
            }
            
            .select2-container--bootstrap-5 .select2-selection__rendered {
                font-size: 16px !important;
            }
        }


        /* Document Upload Drag & Drop Styles */
        .document-upload-container {
            width: 100% !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
        }
        
        .document-dropzone {
            border: 2px dashed #e9ecef;
            border-radius: 12px;
            padding: 2rem;
            text-align: center !important;
            background: #f8f9fa;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100% !important;
            max-width: 500px !important;
            margin: 0 auto !important;
        }
        
        .document-dropzone:hover {
            border-color: var(--primary-color);
            background: rgba(var(--primary-rgb), 0.05);
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.1);
        }
        
        .document-dropzone.dragover {
            border-color: var(--primary-color);
            background: rgba(var(--primary-rgb), 0.1);
            transform: scale(1.02);
        }
        
        .dropzone-content {
            position: relative;
            z-index: 2;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            width: 100% !important;
        }
        
        .dropzone-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
            animation: float 3s ease-in-out infinite;
            text-align: center !important;
            width: 100% !important;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
        }
        
        .document-dropzone h4 {
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            font-weight: 600;
            text-align: center !important;
            width: 100% !important;
        }
        
        .document-dropzone p {
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
            text-align: center !important;
            width: 100% !important;
        }
        
        .upload-options {
            display: flex !important;
            gap: 0.75rem;
            justify-content: center !important;
            align-items: center !important;
            margin-bottom: 1rem;
            width: 100% !important;
        }
        
        .upload-options .btn {
            border-radius: 8px;
            font-weight: 500;
            padding: 0.75rem 1.5rem;
            transition: all 0.3s ease;
            min-width: 140px;
            text-align: center;
        }
        
        .upload-options .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .supported-formats {
            margin-top: 1rem;
            text-align: center !important;
            width: 100% !important;
        }
        
        .uploaded-files {
            width: 100%;
        }
        
        .uploaded-file {
            background: #f8f9fa;
            border: 2px solid #28a745;
            border-radius: 12px;
            padding: 1.5rem;
            position: relative;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
        }
        
        .uploaded-file:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            border-color: var(--primary-color);
        }
        
        /* Preview estilo companhia aérea */
        .file-preview-container {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }
        
        .file-preview-image {
            width: 150px;
            height: 100px;
            border-radius: 8px;
            border: 2px solid #e9ecef;
            position: relative;
            overflow: hidden;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .file-preview-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .file-preview-pdf {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 150px;
            height: 100px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
            border: none;
        }
        
        .file-preview-pdf i {
            font-size: 3rem;
            margin-bottom: 0.25rem;
        }
        
        .file-preview-pdf span {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .file-info {
            flex: 1;
            min-width: 0; /* Permite que o flex item encolha */
            overflow: hidden;
        }
        
        .file-name {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }
        
        .file-status {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #28a745;
            font-size: 0.95rem;
            font-weight: 500;
            margin-top: 0.5rem;
        }
        
        .file-status i {
            font-size: 1rem;
        }
        
        .file-size {
            color: var(--text-secondary);
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }
        
        .remove-file {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: white;
            border: 2px solid #dc3545;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #dc3545;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            font-size: 1.2rem;
        }
        
        .remove-file:hover {
            background: #dc3545;
            color: white;
            transform: scale(1.1);
            border-color: #dc3545;
        }
        
        /* Sucesso animation */
        @keyframes checkmark {
            0% { transform: scale(0) rotate(0deg); }
            50% { transform: scale(1.2) rotate(10deg); }
            100% { transform: scale(1) rotate(0deg); }
        }
        
        .success-checkmark {
            animation: checkmark 0.6s ease-out;
            color: #28a745;
        }
        
        /* Document upload wrapper */
        .document-upload-wrapper {
            width: 100%;
        }
        
        /* Modal de erro customizado */
        .upload-error-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            animation: fadeIn 0.3s ease;
        }
        
        .upload-error-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .upload-error-content {
            background: white;
            border-radius: 16px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            animation: slideUp 0.3s ease;
            text-align: center;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(20px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .error-icon {
            width: 80px;
            height: 80px;
            background: #fee;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
        }
        
        .error-icon i {
            font-size: 2.5rem;
            color: #dc3545;
        }
        
        .error-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 1rem;
        }
        
        .error-message {
            color: #666;
            margin-bottom: 2rem;
            line-height: 1.6;
        }
        
        .supported-formats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .format-item {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 1rem;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .format-item i {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            display: block;
        }
        
        .format-item.jpg i,
        .format-item.png i {
            color: #28a745;
        }
        
        .format-item.pdf i {
            color: #dc3545;
        }
        
        .format-item span {
            font-weight: 600;
            color: #333;
            text-transform: uppercase;
            font-size: 0.875rem;
        }
        
        .modal-close-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .modal-close-btn:hover {
            background: #0056b3;
            transform: translateY(-1px);
        }
        
        /* Mobile adjustments for preview */
        @media (max-width: 768px) {
            .file-preview-container {
                flex-direction: column;
                text-align: center;
            }
            
            .file-preview-image {
                width: 100%;
                max-width: 200px;
                height: 120px;
            }
            
            .remove-file {
                top: 0.5rem;
                right: 0.5rem;
            }
        }
        
        /* Mobile optimizations */
        @media (max-width: 768px) {
            .document-dropzone {
                padding: 1.5rem 1rem;
            }
            
            .dropzone-icon {
                font-size: 2.5rem;
            }
            
            .upload-options {
                flex-direction: column;
                align-items: center;
                gap: 0.5rem;
            }
            
            .upload-options .btn {
                width: 100%;
                max-width: 220px;
                min-width: 200px;
            }
        }
        

        /* Signature Pad Styles */
        .signature-container {
            position: relative;
            max-width: 100%;
            margin: 0 auto;
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 10px;
        }
        
        .signature-pad {
            display: block;
            width: 100% !important;
            max-width: none;
            height: 200px;
            background-color: #fff;
            cursor: crosshair;
            touch-action: none;
            border: 2px solid #dee2e6;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
            margin: 0 auto;
        }
        
        .signature-pad:hover {
            border-color: #adb5bd;
        }
        
        .signature-pad.signing {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
        }
        
        .signature-line {
            position: absolute;
            bottom: 50px;
            left: 10px;
            right: 10px;
            border-bottom: 1px dashed #999;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding-bottom: 5px;
            pointer-events: none;
        }
        
        .signature-hint {
            font-size: 0.75rem;
            color: #999;
            background: white;
            padding: 0 10px;
            display: inline-block;
            margin-bottom: -5px;
        }
        
        .signature-pad.has-signature ~ .signature-line .signature-hint {
            display: none;
        }
        
        .signature-pad.is-invalid {
            border-color: #dc3545 !important;
            box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
        }
        
        .signature-container .invalid-feedback {
            margin-top: 0.5rem;
            font-size: 0.875em;
        }
        
        @media (max-width: 768px) {
            .signature-pad {
                height: 150px;
            }
            
            .signature-line {
                bottom: 40px;
            }
            
            /* Mostra botão de câmera apenas em mobile */
            .btn-camera-select.mobile-only {
                display: inline-flex !important;
            }
            
            .uploaded-file {
                padding: 0.75rem;
            }
            
            .file-icon {
                font-size: 1.25rem;
                width: 2.5rem;
            }
        }
        
        /* Loading state */
        .dropzone-loading {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3;
        }
        
        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid var(--primary-color);
            border-radius: 50%;
            width: 2rem;
            height: 2rem;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        

        /* Force center alignment for document upload - Override Bootstrap */
        .col-md-6 .document-upload-container,
        .col-md-12 .document-upload-container,
        .col-md-4 .document-upload-container,
        .col-md-3 .document-upload-container {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100% !important;
        }
        
        .form-group .document-upload-container {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100% !important;
        }
        
        .form-control:focus,
        .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
            outline: none;
        }

        /* Padronização de altura dos inputs e selects em 42px */
        .guest-section .form-control,
        .guest-section .form-select {
            height: 42px !important;
            min-height: 42px !important;
            padding: 0.375rem 0.75rem !important;
        }

        .guest-section textarea.form-control {
            height: auto !important;
            min-height: 80px !important;
        }


        /* Facial Capture Styles */
        .facial-capture-container {
            width: 100% !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
        }
        
        .facial-capture-zone {
            border: 2px dashed #007bff;
            border-radius: 12px;
            padding: 2rem;
            text-align: center !important;
            background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100% !important;
            min-height: 200px;
        }
        
        /* Máscara oval para captura facial */
        .facial-camera-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
        
        .facial-camera-container {
            position: relative;
            width: 90%;
            max-width: 400px;
            height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .facial-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 20px;
            transform: scaleX(-1); /* Espelhar para parecer selfie */
        }
        
        .facial-video.document-mode {
            transform: none; /* Não espelhar para documentos */
        }
        
        .facial-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        
        .facial-overlay-svg {
            width: 100%;
            height: 100%;
        }
        
        .facial-mask-bg {
            fill: rgba(0, 0, 0, 0.7);
        }
        
        .facial-guide-text {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 20px;
            font-weight: 600;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
            background: rgba(0, 0, 0, 0.5);
            padding: 10px 20px;
            border-radius: 25px;
            z-index: 10;
        }
        
        .facial-instructions {
            position: absolute;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 16px;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
            background: rgba(0, 0, 0, 0.6);
            padding: 8px 16px;
            border-radius: 20px;
            z-index: 10;
            max-width: 90%;
        }
        
        .facial-controls {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
        }
        
        .facial-capture-btn {
            width: auto;
            height: 60px;
            border-radius: 30px;
            border: 3px solid white;
            background: #007bff;
            color: white;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 30px;
            font-weight: 600;
            gap: 10px;
        }
        
        .facial-capture-btn i {
            font-size: 24px;
        }
        
        .facial-capture-btn:hover {
            transform: scale(1.05);
            background: #0056b3;
        }
        
        .facial-cancel-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid white;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .facial-cancel-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }
        
        .facial-canvas {
            display: none;
        }
        
        .facial-capture-zone:hover {
            border-color: #0056b3;
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
        }
        
        .facial-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            z-index: 2;
        }
        
        .facial-icon {
            font-size: 3rem;
            color: #007bff;
            margin-bottom: 1rem;
            opacity: 0.8;
        }
        
        .facial-capture-zone h4 {
            color: #007bff;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .facial-capture-zone p {
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }
        
        .facial-options {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .btn-facial-camera,
        .btn-facial-upload {
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        /* Styles for birth date confirmation modal */
        .security-icon {
            width: 80px;
            height: 80px;
            background: rgba(var(--primary-rgb), 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }
        
        #birthDateConfirmModal .modal-content {
            border: none;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        }
        
        #birthDateConfirmModal .form-control-lg {
            font-size: 1.5rem;
            letter-spacing: 0.1em;
            font-weight: 500;
        }
        
        #birthDateConfirmModal .btn {
            min-width: 120px;
        }
        
        /* Styles for auto-filled field indicators */
        .field-auto-filled-indicator {
            margin-bottom: 1rem;
            font-size: 0.95rem;
            border-radius: 8px;
            animation: slideDown 0.3s ease;
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .btn-facial-camera:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
        }
        
        .btn-facial-upload:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
        }
        
        /* Force center alignment for facial capture */
        .col-md-6 .facial-capture-container,
        .col-md-12 .facial-capture-container,
        .col-md-4 .facial-capture-container,
        .col-md-3 .facial-capture-container {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100% !important;
        }
        
        .form-group .facial-capture-container {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100% !important;
        }
        
        .form-label {
            color: var(--text-secondary);
            font-weight: 500;
            margin-bottom: 0.25rem;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        

        /* Input com ícone */
        .input-icon {
            position: relative;
        }
        
        .input-icon i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            pointer-events: none;
        }
        
        .input-icon .form-control {
            padding-left: 3rem;
        }
        

        /* Animações */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .guest-section {
            animation: slideIn 0.5s ease-out;
        }
        

        /* Modal de validação customizado */
        #validationModal .modal-content {
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        }
        
        #validationModal .modal-body {
            padding: 2rem;
        }
        
        #validationModal .fa-exclamation-triangle {
            animation: pulse 1.5s ease-in-out infinite;
        }
        
        #validationModal .list-unstyled li {
            padding: 0.5rem 1rem;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #dc3545;
        }
        
        #validationModal .modal-dialog {
            max-width: 500px;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        

        /* Kiosk Mode: Touch-friendly improvements */
        .kiosk-mode input[type="text"],
        .kiosk-mode input[type="email"],
        .kiosk-mode input[type="tel"],
        .kiosk-mode input[type="number"],
        .kiosk-mode textarea,
        .kiosk-mode select {
            min-height: 54px !important;
            font-size: 18px !important;
            padding: 15px 12px !important;
            border-radius: 8px !important;
            border: 2px solid #ddd !important;
            transition: all 0.3s ease !important;
        }
        
        .kiosk-mode input:focus,
        .kiosk-mode textarea:focus,
        .kiosk-mode select:focus {
            border-color: var(--primary-color) !important;
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1) !important;
            outline: none !important;
        }

        /* Botões maiores em kiosk - EXCETO seletor de idioma no header */
        .kiosk-mode .btn:not(.language-selector .btn):not(.dropdown-toggle) {
            min-height: 54px !important;
            font-size: 18px !important;
            padding: 15px 24px !important;
            font-weight: 600 !important;
        }
        
        .kiosk-mode .form-label {
            font-size: 16px !important;
            font-weight: 600 !important;
            margin-bottom: 8px !important;
        }
        
        .kiosk-mode .modal-dialog {
            margin: 20px auto !important;
        }
        
        .kiosk-mode .modal-content {
            border-radius: 12px !important;
        }
        
        .kiosk-mode .modal-body {
            padding: 30px !important;
        }
        
        .kiosk-mode .modal-title {
            font-size: 24px !important;
            font-weight: 700 !important;
        }
        
        /* Touch-specific adjustments */
        @media (pointer: coarse) {
            input[type="text"],
            input[type="email"],
            input[type="tel"],
            input[type="number"],
            textarea,
            select {
                min-height: 50px !important;
                font-size: 16px !important;
                padding: 12px !important;
            }

            /* Botões maiores em touch - EXCETO seletor de idioma no header */
            .btn:not(.language-selector .btn):not(.dropdown-toggle) {
                min-height: 50px !important;
                font-size: 16px !important;
                padding: 12px 20px !important;
            }
            
            /* Prevent zoom on iOS */
            input[type="text"],
            input[type="email"],
            input[type="tel"],
            input[type="number"],
            textarea {
                font-size: 16px !important;
            }
        }
        
        /* Virtual Keyboard Customization */
        @if(request()->get('kiosk') == '1' && ($client->kiosk_virtual_keyboard ?? false))
        #virtualKeyboard {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 9999;
            background: white;
            border-top: 3px solid var(--primary-color);
            box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
            display: none;
        }
        
        .simple-keyboard {
            max-width: none !important;
            background-color: #f8f9fa !important;
            border-radius: 0 !important;
            padding: 15px !important;
        }
        
        .simple-keyboard .hg-button {
            background-color: white !important;
            border: 2px solid #e9ecef !important;
            color: #495057 !important;
            font-size: 24px !important;
            font-weight: 600 !important;
            height: 65px !important;
            min-width: 55px !important;
            margin: 4px !important;
            border-radius: 8px !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
            transition: all 0.2s ease !important;
        }
        
        .simple-keyboard .hg-button:hover,
        .simple-keyboard .hg-button:active {
            background-color: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            color: white !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3) !important;
        }
        
        .simple-keyboard .hg-button.hg-functionBtn {
            background-color: #6c757d !important;
            color: white !important;
            font-size: 18px !important;
        }
        
        .simple-keyboard .hg-button.hg-functionBtn:hover,
        .simple-keyboard .hg-button.hg-functionBtn:active {
            background-color: #495057 !important;
        }
        
        .keyboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: var(--primary-color);
            color: white;
            font-weight: 600;
        }
        
        .keyboard-close {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        
        .keyboard-close:hover {
            background: rgba(255,255,255,0.3);
        }
        
        /* Ajustar layout quando teclado está visível */
        body.keyboard-visible {
            padding-bottom: 280px;
        }
        
        body.keyboard-visible .container {
            transition: padding-bottom 0.3s ease;
        }
        @endif
        
        /* Kiosk Mode Indicator */
        .kiosk-indicator {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--primary-color);
            color: white;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 12px;
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            margin-right: 15px;
        }
        
        .kiosk-indicator i {
            font-size: 14px;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }
        
        @media (max-width: 768px) {
            .kiosk-indicator {
                position: absolute;
                top: 10px;
                right: 10px;
                padding: 6px 12px;
                font-size: 12px;
                margin-left: 0;
            }
            
            .kiosk-indicator span {
                display: none;
            }
            
            .kiosk-indicator i {
                font-size: 16px;
            }
        }
        

        /* Proteção contra múltiplos cliques no submit */
        .form-submitting {
            pointer-events: none;
            opacity: 0.7;
        }
        
        .form-submitting .btn:not(#submitButton) {
            opacity: 0.5;
        }
        
        #submitButton:disabled {
            cursor: not-allowed;
            opacity: 0.8;
        }
        

        /* Modal de Loading Interativo */
        .processing-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 99999;
        }
        
        .processing-modal-overlay {
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }
        
        .processing-modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            text-align: center;
            min-width: 400px;
            max-width: 500px;
            animation: slideIn 0.3s ease;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translate(-50%, -60%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }
        
        .processing-icon {
            color: var(--primary-color);
        }
        
        .processing-title {
            color: #333;
            margin-bottom: 20px;
            font-weight: 600;
        }
        
        .processing-steps {
            margin: 30px 0;
            text-align: left;
        }
        
        .step-item {
            display: flex;
            align-items: center;
            margin: 15px 0;
            padding: 10px;
            border-radius: 8px;
            opacity: 0.3;
            transition: all 0.3s ease;
        }
        
        .step-item.active {
            opacity: 1;
            color: #007bff;
            background: rgba(0, 123, 255, 0.1);
        }
        
        .step-item.completed {
            opacity: 1;
            color: #28a745;
            background: rgba(40, 167, 69, 0.1);
        }
        
        .step-item i {
            margin-right: 15px;
            width: 20px;
            font-size: 18px;
        }
        
        .progress-container {
            width: 100%;
            height: 8px;
            background: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
            margin: 20px 0;
        }
        
        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #007bff, #0056b3);
            width: 0%;
            transition: width 0.5s ease;
            animation: shimmer 1.5s infinite;
        }
        
        @keyframes shimmer {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }
        
        .processing-message {
            color: #666;
            margin: 20px 0;
        }
        
        .security-note {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
            font-size: 12px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        
        .security-note i {
            margin-right: 8px;
            color: #28a745;
        }
        
        /* Responsivo para o modal */
        @media (max-width: 768px) {
            .processing-modal-content {
                min-width: 90%;
                max-width: 90%;
                padding: 25px;
            }

            .processing-title {
                font-size: 1.2rem;
            }

            .step-item {
                font-size: 0.9rem;
            }

            /* Ocultar setas dos botões de navegação no mobile */
            #nextStep i.fa-arrow-right,
            #prevStep i.fa-arrow-left,
            #backToGuestSelection i.fa-arrow-left {
                display: none;
            }
        }

        /* Submit Button Loading State */
        #submitButton.btn-loading {
            opacity: 0.7;
            cursor: not-allowed;
            pointer-events: none;
        }

        #submitButton:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        /* Phone field input-group height consistency */
        .input-group:has(input[type="tel"]) {
            min-height: 42px;
        }

        .input-group input[type="tel"] {
            min-height: 42px !important;
            height: 42px !important;
        }

        .input-group:has(input[type="tel"]) select {
            min-height: 42px !important;
            height: 42px !important;
        }

        .input-group:has(input[type="tel"]) .select2-container--bootstrap-5 .select2-selection--single {
            min-height: 42px !important;
            height: 42px !important;
            display: flex;
            align-items: center;
        }

        /* DDI addon select height fix - Select2 without bootstrap-5 theme */
        .input-group:has(input[type="tel"]) .select2-container {
            min-height: 42px !important;
            height: 42px !important;
        }

        .input-group:has(input[type="tel"]) .select2-container .select2-selection {
            min-height: 42px !important;
            height: 42px !important;
            display: flex !important;
            align-items: center !important;
            padding: 0 8px !important;
        }

        .input-group:has(input[type="tel"]) .select2-container .select2-selection__rendered {
            line-height: 42px !important;
            display: flex !important;
            align-items: center !important;
            padding-left: 8px !important;
        }

        .input-group:has(input[type="tel"]) .select2-container .select2-selection__arrow {
            height: 42px !important;
            display: flex !important;
            align-items: center !important;
        }

        /* Fallback for addon-select without Select2 */
        .input-group:has(input[type="tel"]) .addon-select {
            min-height: 42px !important;
            height: 42px !important;
        }

        /* ============================================
           Search Person Loading Modal - Animated
           ============================================ */
        .search-loading-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .search-loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }

        .search-loading-content {
            position: relative;
            z-index: 2;
            background: white;
            border-radius: 20px;
            padding: 40px 50px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.4s ease;
            min-width: 320px;
        }

        .search-loading-icon-container {
            position: relative;
            width: 120px;
            height: 120px;
            margin: 0 auto 25px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Círculos pulsantes */
        .search-loading-ring {
            position: absolute;
            border: 3px solid var(--primary-color);
            border-radius: 50%;
            opacity: 0;
            animation: pulse-ring 2s ease-out infinite;
        }

        .search-loading-ring:nth-child(1) {
            width: 60px;
            height: 60px;
            animation-delay: 0s;
        }

        .search-loading-ring:nth-child(2) {
            width: 80px;
            height: 80px;
            animation-delay: 0.4s;
        }

        .search-loading-ring:nth-child(3) {
            width: 100px;
            height: 100px;
            animation-delay: 0.8s;
        }

        .search-loading-icon {
            position: relative;
            z-index: 2;
            font-size: 3rem;
            color: var(--primary-color);
            animation: float-icon 2s ease-in-out infinite;
        }

        .search-loading-text {
            font-size: 1.2rem;
            color: #333;
            font-weight: 500;
            margin-bottom: 10px;
            min-height: 30px;
            transition: opacity 0.3s ease;
        }

        .search-loading-subtext {
            font-size: 0.9rem;
            color: #666;
        }

        /* Animação dos círculos pulsantes */
        @keyframes pulse-ring {
            0% {
                transform: scale(0.5);
                opacity: 0.8;
            }
            100% {
                transform: scale(1.5);
                opacity: 0;
            }
        }

        /* Animação do ícone flutuando */
        @keyframes float-icon {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        /* Animação de saída */
        .search-loading-modal.hiding {
            animation: fadeOut 0.3s ease forwards;
        }

        .search-loading-modal.hiding .search-loading-content {
            animation: slideDown 0.3s ease forwards;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideDown {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(30px);
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
            }
            to {
                opacity: 0;
            }
        }

        /* Responsivo */
        @media (max-width: 768px) {
            .search-loading-content {
                padding: 30px 25px;
                min-width: 280px;
                margin: 0 20px;
            }

            .search-loading-icon-container {
                width: 100px;
                height: 100px;
            }

            .search-loading-icon {
                font-size: 2.5rem;
            }

            .search-loading-ring:nth-child(1) {
                width: 50px;
                height: 50px;
            }

            .search-loading-ring:nth-child(2) {
                width: 70px;
                height: 70px;
            }

            .search-loading-ring:nth-child(3) {
                width: 90px;
                height: 90px;
            }
        }

        /* ============================================
           Estados de Resultado no Modal
           ============================================ */

        /* Estado de Sucesso */
        .search-loading-modal.success .search-loading-ring {
            animation: none;
            opacity: 0;
        }

        .search-loading-modal.success .search-loading-icon {
            animation: successBounce 0.6s ease forwards;
            color: #28a745;
        }

        .search-loading-modal.success .search-loading-icon-container::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: rgba(40, 167, 69, 0.15);
            animation: successRing 0.6s ease forwards;
        }

        .search-loading-modal.success .search-loading-text {
            color: #28a745;
            font-weight: 600;
        }

        .search-loading-modal.success .search-loading-subtext {
            color: #28a745;
            opacity: 0.8;
        }

        @keyframes successBounce {
            0% { transform: scale(1); }
            30% { transform: scale(1.3); }
            50% { transform: scale(0.9); }
            70% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        @keyframes successRing {
            0% { transform: scale(0.5); opacity: 0; }
            50% { opacity: 1; }
            100% { transform: scale(1.2); opacity: 0.3; }
        }

        /* Estado Não Encontrado */
        .search-loading-modal.not-found .search-loading-ring {
            animation: none;
            opacity: 0;
        }

        .search-loading-modal.not-found .search-loading-icon {
            animation: notFoundShake 0.5s ease forwards;
            color: #6c757d;
        }

        .search-loading-modal.not-found .search-loading-text {
            color: #333;
            font-weight: 500;
        }

        .search-loading-modal.not-found .search-loading-subtext {
            color: #666;
        }

        @keyframes notFoundShake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-5px); }
            40% { transform: translateX(5px); }
            60% { transform: translateX(-5px); }
            80% { transform: translateX(5px); }
        }
