/* Paleta Premium do Site TicketFace */
:root {
    --tf-primary: #22B31B;
    --tf-primary-dark: #1a8c15;
    --tf-secondary: #011640;
    --tf-accent: #22B31B;
    --tf-text: #1f2937;
    --tf-muted: #64748b;
    --tf-border: #e5e7eb;
    --tf-bg: #ffffff;
    --tf-soft: #f8fafc;
    --tf-gradient: linear-gradient(135deg, #22B31B, #1a8c15);
    --tf-gradient-blue: linear-gradient(135deg, #011640, #1e40af);
    --tf-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --tf-shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --tf-shadow-green: 0 8px 25px rgba(34, 179, 27, 0.2);
    --tf-shadow-blue: 0 8px 25px rgba(1, 22, 64, 0.2);
}

/* Alert box styles */
.tf-alert {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.tf-alert-info {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    color: #1e40af;
}

.tf-alert-info svg {
    fill: currentColor;
    flex-shrink: 0;
}

.tf-alert strong {
    font-weight: 600;
}

.tf-alert small {
    color: rgba(30, 64, 175, 0.7);
    font-size: 13px;
}

#ticket-face-form-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tf-text);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--tf-primary);
}

#ticket-face-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tf-primary);
    z-index: 1;
}

/* Removido efeito rotativo pesado */

/* Removido efeitos de fundo para design mais limpo */

/* Cabeçalho Premium */
.tf-header { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin: 0; 
    padding: 32px 32px 24px; 
    background: rgba(248,250,252,0.5);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    border-radius: 16px 16px 0 0;
}

.tf-header-icon { 
    width: 60px; 
    height: 60px; 
    border-radius: 12px; 
    background: var(--tf-primary);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    color: white;
    box-shadow: 0 2px 8px rgba(34, 179, 27, 0.2);
}

/* Removido efeito pulsante do ícone */

.tf-header-text h2 { 
    margin: 0 0 8px; 
    font-size: 28px; 
    font-weight: 700;
    color: var(--tf-secondary);
    letter-spacing: -0.3px;
}

.tf-header-text p { 
    margin: 0; 
    color: var(--tf-muted); 
    font-size: 16px; 
    font-weight: 400;
    line-height: 1.4;
}

/* Layout moderno com seções */
#ticket-face-form {
    position: relative;
    z-index: 2;
}

.tf-form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 32px; 
    padding: 32px;
    background: rgba(255,255,255,0.3);
}

.tf-form-col { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    position: relative;
}

.tf-form-col:first-child {
    padding-right: 20px;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.tf-form-col:first-child::before {
    content: "Dados Pessoais";
    position: absolute;
    top: -16px;
    left: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--tf-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Layout de duas colunas para dados pessoais */
.tf-personal-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

/* Removido texto "Verificação Biométrica" */

.tf-form-group { 
    margin: 0; 
    position: relative;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.15s ease;
}

.tf-form-group:hover {
    background: rgba(255,255,255,0.9);
    border-color: var(--tf-primary);
    transform: translateY(-1px);
}

.tf-form-group label { 
    display: block; 
    margin-bottom: 6px; 
    font-weight: 600; 
    font-size: 13px; 
    color: var(--tf-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    opacity: 0.8;
}

.tf-form-group label::after {
    content: " *"; 
    color: var(--tf-primary); 
    font-weight: 700;
}

.tf-form-group input, .tf-form-group select {
    width: 100%; 
    padding: 12px 16px; 
    border: none; 
    border-radius: 6px; 
    font-size: 15px;
    transition: all 0.15s ease; 
    box-sizing: border-box; 
    background: rgba(248,250,252,0.9);
    position: relative;
    z-index: 1;
    height: 44px;
    color: var(--tf-text);
}

.tf-form-group input:focus, .tf-form-group select:focus { 
    outline: none; 
    background: rgba(255,255,255,1);
    box-shadow: 0 0 0 2px rgba(34, 179, 27, 0.2);
    transform: translateY(-1px);
}

/* Card Scanner Premium */
.tf-scan-card { 
    background: rgba(255,255,255,0.9);
    border: 2px dashed rgba(34, 179, 27, 0.4); 
    border-radius: 12px; 
    padding: 24px; 
    position: relative;
    transition: all 0.2s ease;
    overflow: hidden;
}

/* Removido efeito de scanner animado */

.tf-scan-card:hover {
    border-color: var(--tf-primary);
    background: rgba(255,255,255,1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 179, 27, 0.1);
}

/* Removido efeito de brilho para design mais limpo */

.tf-scan-card > * {
    position: relative;
    z-index: 1;
}

.tf-scan-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    margin-top: 20px; 
}

.tf-helper { 
    color: var(--tf-muted); 
    font-size: 13px; 
    text-align: center;
    font-style: italic;
}

/* Botões Premium Simplificados */
/* Botão Iniciar - Verde com alta visibilidade */
.tf-primary-btn { 
    background: #22B31B !important; 
    color: white !important; 
    border: 2px solid #1a8a15 !important; 
    padding: 14px 28px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 15px; 
    font-weight: 600; 
    transition: all 0.2s ease; 
    box-shadow: 0 4px 12px rgba(34, 179, 27, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    text-transform: none;
    letter-spacing: 0;
}

/* Removido efeito de brilho nos botões */

.tf-primary-btn:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 6px 16px rgba(34, 179, 27, 0.5), 0 0 0 1px rgba(255,255,255,0.2);
    background: #1e9e18 !important;
    border-color: #166b12 !important;
}

.tf-primary-btn:hover .btn-ico {
    color: #ffffff;
}

.tf-primary-btn:hover .btn-ico svg {
    fill: #ffffff;
}

.tf-primary-btn:active { 
    transform: translateY(0); 
}

/* Botão Capturar - Verde com alta visibilidade (mesma cor do Iniciar) */
.tf-success-btn { 
    background: #22B31B !important; 
    color: white !important; 
    border: 2px solid #1a8a15 !important; 
    padding: 14px 28px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 15px; 
    font-weight: 600; 
    transition: all 0.2s ease; 
    box-shadow: 0 4px 12px rgba(34, 179, 27, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
}

.tf-success-btn:hover { 
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 179, 27, 0.5), 0 0 0 1px rgba(255,255,255,0.2);
    background: #1e9e18 !important;
    border-color: #166b12 !important;
    color: #ffffff !important;
}

.tf-success-btn:hover .btn-ico {
    color: #ffffff;
}

.tf-success-btn:hover .btn-ico svg {
    fill: #ffffff;
}

/* Preview Premium */
.tf-photo-preview { 
    margin-top: 16px; 
    text-align: center; 
}

.tf-photo-preview img { 
    max-width: 320px; 
    max-height: 380px; 
    border-radius: 16px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tf-photo-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tf-empty-preview { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-height: 280px; 
    color: var(--tf-muted);
    background: #ffffff;
    border-radius: 20px;
    border: 2px dashed #d1d5db;
    position: relative;
}

/* Removido efeito de pulso para design mais limpo */

.tf-empty-illustration { 
    font-size: 64px; 
    line-height: 1; 
    position: relative;
    z-index: 1;
}

.tf-empty-preview p {
    position: relative;
    z-index: 1;
    font-weight: 600;
    margin-top: 16px;
}

/* Mensagens */
.tf-messages { margin-top: 20px; padding: 15px; border-radius: 10px; font-weight: 600; text-align: center; }
.tf-messages.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.tf-messages.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Modal Base */
.tf-modal { display: none; position: fixed; z-index: 9999; inset: 0; background-color: rgba(0,0,0,0.5); }
.tf-modal-content { background-color: #fff; margin: 5% auto; padding: 30px; border-radius: 14px; width: 90%; max-width: 420px; position: relative; text-align: center; }
.tf-close { color: #aaa; position: absolute; right: 15px; top: 10px; font-size: 28px; font-weight: bold; cursor: pointer; }
.tf-close:hover { color: #000; }

/* Scanner modal */
.tf-scan-modal h3 { margin-top: 0; }
.tf-video-wrapper { position: relative; display: inline-block; }
.tf-video-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; justify-content: center; align-items: center; }
.tf-face-guide { width: 240px; height: 300px; border: 3px solid rgba(0,124,186,0.9); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,0.25) inset; }
.tf-scan-progress { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.tf-scan-progress .dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 2px rgba(255,255,255,0.6); }
.tf-scan-progress .dot.active { background: var(--tf-primary); }
.tf-scan-progress .dot.done { background: var(--tf-accent); }

/* Loading */
.tf-loading { display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid var(--tf-primary); border-radius: 50%; animation: spin 1s linear infinite; margin-right: 10px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Responsivo */
@media (max-width: 900px) { .tf-form-grid { grid-template-columns: 1fr; } }

/* Validação */
.tf-form-group input:invalid { border-color: #dc3545; }
.tf-form-group input:valid { border-color: #28a745; }
.tf-form-group label::after { content: " *"; color: #dc3545; }

/* Remoções antigas que não usamos mais */
.tf-camera-btn { display: none; }

.tf-instruction { text-align: center; margin-bottom: 8px; }
.tf-face-guide::after { content: ''; position: absolute; inset: 0; border-radius: 16px; border: 2px dashed rgba(0,0,0,0.15); pointer-events:none; }

/* Indicadores de direção */
.tf-dir-arrow { position:absolute; width:0; height:0; border-style:solid; opacity:0; transition: opacity .2s ease; z-index:3; }
.tf-dir-arrow.up { left:50%; transform:translateX(-50%); top:8px; border-width: 0 12px 16px 12px; border-color: transparent transparent rgba(0,0,0,0.4) transparent; }
.tf-dir-arrow.down { left:50%; transform:translateX(-50%); bottom:8px; border-width: 16px 12px 0 12px; border-color: rgba(0,0,0,0.4) transparent transparent transparent; }
.tf-video-wrapper.show-up .tf-dir-arrow.up { opacity:1; }
.tf-video-wrapper.show-down .tf-dir-arrow.down { opacity:1; } 

/* Scanner com fundo preto e máscara circular */
.tf-modal-content.tf-scan-modal { background:#000; color:#fff; }
.tf-scan-modal h3, .tf-scan-modal .tf-instruction { color:#fff; }
.tf-video-wrapper { background:#000; }

/* Tamanho do círculo (máscara) */
.tf-scan-modal { --tf-hole-size: 260px; }

/* Overlay com máscara circular: transparente no centro, completamente escuro nas bordas */
.tf-video-overlay { position:absolute; inset:0; pointer-events:none; display:flex; justify-content:center; align-items:center; }
.tf-video-overlay::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) calc(var(--tf-hole-size)/2 - 10px), rgba(0,0,0,0.95) calc(var(--tf-hole-size)/2), rgba(0,0,0,1) calc(var(--tf-hole-size)/2 + 20px)); }

/* Anel guia circular */
.tf-face-guide { width: var(--tf-hole-size); height: var(--tf-hole-size); border-radius: 50%; border: 3px solid rgba(255,255,255,0.9); box-shadow: none; position:absolute; top:50%; left:50%; transform: translate(-50%, -50%); z-index:3; }
.tf-face-guide::after { content: none; }

/* Indicadores de progresso visíveis sobre o fundo escuro */
.tf-scan-progress .dot { background:#9ca3af; box-shadow: none; }
.tf-scan-progress .dot.active { background: #60a5fa; }
.tf-scan-progress .dot.done { background: #34d399; }

/* Setas em branco para contraste */
.tf-dir-arrow.up { border-color: transparent transparent rgba(255,255,255,0.85) transparent; }
.tf-dir-arrow.down { border-color: rgba(255,255,255,0.85) transparent transparent transparent; }

/* Botão fechar visível no tema escuro */
.tf-close { color:#fff; }
.tf-close:hover { color:#ddd; } 

/* Tela cheia e centralização do scanner */
.tf-modal { background-color: rgba(0,0,0,0.95); }
.tf-modal-content.tf-scan-modal { width:100%; max-width:none; height:100%; margin:0; border-radius:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; padding:20px; box-sizing:border-box; }

/* Dimensão do vídeo dentro do modal escuro */
.tf-video-wrapper { width: min(90vw, 520px); height: auto; }
#camera-video, #camera-canvas { width: 100%; height: auto; display:block; }

/* Texto e controles no tema escuro */
.tf-instruction { color:#fff; }
.tf-camera-controls { display:flex; gap:10px; justify-content:center; } 

/* Forçar fundo preto absoluto do modal e remover sombras/cores claras */
.tf-modal { background-color: rgba(0,0,0,0.98) !important; }
.tf-modal-content.tf-scan-modal { background:#000 !important; box-shadow:none; }

/* Máscara elíptica (oval) centralizada: apenas o oval fica visível */
/* Define tamanho da máscara - ajustado para não cortar */
.tf-scan-modal { --tf-hole-width: 280px; --tf-hole-height: 340px; }

/* Corrige overlay e adiciona máscara oval por clip-path para compatibilidade ampla */
.tf-video-wrapper { 
    position: relative; 
    overflow: hidden; 
    min-height: 450px; /* Altura mínima para acomodar o oval completo */
    display: flex;
    align-items: center;
    justify-content: center;
}
.tf-video-overlay { z-index: 2; }
.tf-video-overlay::before { content:''; position:absolute; inset:0; background: rgba(0,0,0,0.92); -webkit-mask: radial-gradient(ellipse var(--tf-hole-width) var(--tf-hole-height) at 50% 50%, transparent 99%, black 100%); mask: radial-gradient(ellipse var(--tf-hole-width) var(--tf-hole-height) at 50% 50%, transparent 99%, black 100%); }

/* Anel guia acompanha a forma oval */
.tf-face-guide { 
    width: var(--tf-hole-width); 
    height: var(--tf-hole-height); 
    border-radius: 50% / 60%; 
    border: 3px solid rgba(255,255,255,0.95); 
    box-shadow:none; 
    position:absolute; 
    top:50%; 
    left:50%; 
    transform: translate(-50%, -50%); 
    z-index:3; 
}

/* Dots, setas e texto acima da máscara */
.tf-scan-progress, .tf-dir-arrow, .tf-instruction { position: relative; z-index:3; }

/* Ajuste de contraste dos dots em tema escuro */
.tf-scan-progress .dot { background:#6b7280; }
.tf-scan-progress .dot.active { background:#60a5fa; }
.tf-scan-progress .dot.done { background:#34d399; }

/* Ajustar largura máxima para caber o oval com respiro */
.tf-video-wrapper { 
    width: min(92vw, calc(var(--tf-hole-width) + 80px)); 
    height: min(80vh, 500px); /* Altura adequada para não cortar o oval */
}
#camera-video, #camera-canvas { 
    filter: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
} 

/* Forçar tela cheia sem moldura branca */
.tf-modal-content.tf-scan-modal { width:100% !important; max-width:none !important; height:100% !important; margin:0 !important; border-radius:0 !important; }
/* Opcional: ocultar título para focar no círculo */
.tf-scan-modal h3 { display:none; } 

/* Cabeçalho do scanner com ícone e subtítulo */
.tf-scan-header { color:#fff; display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.tf-scan-header .icon { font-size:20px; line-height:1; }
.tf-scan-header .title { font-weight:800; font-size:16px; }
.tf-scan-header .sub { font-weight:500; font-size:12px; opacity:0.85; } 

/* Overrides finais para garantir máscara oval centralizada - dimensões ajustadas */
.tf-scan-modal { --tf-hole-width: 300px; --tf-hole-height: 360px; }
.tf-video-overlay::before { 
    content:''; 
    position:absolute; 
    inset:0; 
    background: rgba(0,0,0,0.92); 
    -webkit-mask: radial-gradient(ellipse var(--tf-hole-width) var(--tf-hole-height) at 50% 50%, transparent 99%, black 100%); 
    mask: radial-gradient(ellipse var(--tf-hole-width) var(--tf-hole-height) at 50% 50%, transparent 99%, black 100%); 
}
.tf-face-guide { 
    width: var(--tf-hole-width) !important; 
    height: var(--tf-hole-height) !important; 
    position:absolute !important; 
    top:50% !important; 
    left:50% !important; 
    transform: translate(-50%, -50%) !important; 
    border-radius: 50% / 60% !important; 
    border: 3px solid rgba(255,255,255,0.95) !important; 
    z-index:3; 
    box-shadow:none !important; 
} 

/* Escurecer totalmente fora do oval - spotlight effect */
.tf-video-overlay::before { 
  content:''; 
  position:absolute; 
  inset:0; 
  pointer-events:none; 
  z-index:2;
  background: radial-gradient(ellipse var(--tf-hole-width) var(--tf-hole-height) at 50% 50%, rgba(0,0,0,0) 94%, rgba(0,0,0,0.98) 96%, rgba(0,0,0,1) 98%);
}

/* Forçar progresso no rodapé do vídeo */
.tf-scan-progress { position:absolute !important; top:auto !important; bottom:10px !important; left:50% !important; transform: translateX(-50%) !important; z-index:3; } 

/* Opcional: ocultar os pontos de progresso (descomente a linha abaixo) */
/* .tf-scan-progress { display:none !important; } */

/* Se quiser manter, reduzir contraste para menos destaque */
.tf-scan-progress .dot { opacity:0.8; } 

/* Mostrar somente a área do oval no vídeo/canvas - ajustado para não cortar */
#camera-video, #camera-canvas {
  /* Remover clip-path que pode causar cortes */
  /* -webkit-clip-path: ellipse(calc(var(--tf-hole-width) / 2) calc(var(--tf-hole-height) / 2) at 50% 50%); */
  /* clip-path: ellipse(calc(var(--tf-hole-width) / 2) calc(var(--tf-hole-height) / 2) at 50% 50%); */
  
  /* Usar apenas máscara suave para não cortar o conteúdo */
  -webkit-mask-image: radial-gradient(ellipse var(--tf-hole-width) var(--tf-hole-height) at 50% 50%, #fff 96%, rgba(255,255,255,0.3) 98%, rgba(255,255,255,0) 100%);
  mask-image: radial-gradient(ellipse var(--tf-hole-width) var(--tf-hole-height) at 50% 50%, #fff 96%, rgba(255,255,255,0.3) 98%, rgba(255,255,255,0) 100%);
  
  /* Garantir posicionamento centralizado */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} 

/* Scanner Modal Premium - Tema TicketFace */
.tf-modal { 
    background: linear-gradient(135deg, rgba(1, 22, 64, 0.95), rgba(34, 179, 27, 0.95)) !important; 
    backdrop-filter: blur(10px);
}

.tf-modal-content.tf-scan-modal { 
    background: linear-gradient(135deg, var(--tf-secondary), rgba(1, 22, 64, 0.9)) !important;
    border: 2px solid rgba(34, 179, 27, 0.3);
}

.tf-video-wrapper { 
    background: var(--tf-secondary) !important;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(34, 179, 27, 0.1) 50%, transparent 70%);
    animation: scannerPulse 2s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes scannerPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Fora do oval completamente escuro - efeito spotlight melhorado */
.tf-video-overlay::before {
    content:''; 
    position:absolute; 
    inset:0; 
    pointer-events:none; 
    z-index:2;
    background: radial-gradient(
        ellipse var(--tf-hole-width) var(--tf-hole-height) at 50% 50%, 
        rgba(0,0,0,0) 92%, 
        rgba(0,0,0,0.98) 94%,
        rgba(0,0,0,1) 96%
    ) !important;
}

/* Linha do oval premium com brilho */
.tf-face-guide { 
    border: 4px solid var(--tf-primary) !important;
    box-shadow: 
        0 0 20px rgba(34, 179, 27, 0.6),
        inset 0 0 20px rgba(34, 179, 27, 0.2);
    animation: guidePulse 2s ease-in-out infinite;
}

@keyframes guidePulse {
    0%, 100% { 
        border-color: var(--tf-primary);
        box-shadow: 
            0 0 20px rgba(34, 179, 27, 0.6),
            inset 0 0 20px rgba(34, 179, 27, 0.2);
    }
    50% { 
        border-color: rgba(34, 179, 27, 0.8);
        box-shadow: 
            0 0 30px rgba(34, 179, 27, 0.8),
            inset 0 0 30px rgba(34, 179, 27, 0.3);
    }
}

/* Setas com efeito neon */
.tf-dir-arrow.up { 
    border-color: transparent transparent rgba(34, 179, 27, 0.95) transparent;
    filter: drop-shadow(0 0 5px rgba(34, 179, 27, 0.8));
}
.tf-dir-arrow.down { 
    border-color: rgba(34, 179, 27, 0.95) transparent transparent transparent;
    filter: drop-shadow(0 0 5px rgba(34, 179, 27, 0.8));
} 

/* Inputs simplificados com ícones */
.tf-input { 
    position: relative; 
    display: block; 
}

.tf-input .tf-ico {
    position: absolute; 
    left: 16px; 
    top: 50%; 
    transform: translateY(-50%);
    width: 18px; 
    height: 18px; 
    color: var(--tf-muted);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    pointer-events: none; 
    z-index: 2;
    transition: all 0.2s ease;
}

.tf-input .tf-ico svg { 
    width: 16px; 
    height: 16px; 
    fill: currentColor; 
}

.tf-input input, .tf-input select {
    padding-left: 48px !important;
    min-height: 48px; 
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Ajuste específico do select para não deslocar seta nativa */
.tf-input select { 
    background-position: right 16px center; 
    background-repeat: no-repeat; 
}

/* Estados de validação simplificados */
.tf-input input:invalid { 
    background: rgba(239, 68, 68, 0.05);
}

.tf-input input:valid { 
    background: rgba(34, 179, 27, 0.05);
}

.tf-input input:focus + .tf-ico,
.tf-input select:focus + .tf-ico {
    color: var(--tf-primary);
}

/* Botões Premium com ícones */
.tf-primary-btn, .tf-success-btn { 
    border: none !important; 
    display: inline-flex; 
    align-items: center; 
    gap: 12px; 
    justify-content: center;
    min-width: 160px;
}

.tf-primary-btn .btn-ico, .tf-success-btn .btn-ico { 
    display: inline-flex; 
    width: 20px; 
    height: 20px; 
    color: var(--tf-secondary); 
}

.tf-primary-btn .btn-ico svg, .tf-success-btn .btn-ico svg { 
    fill: var(--tf-secondary); 
    width: 20px;
    height: 20px;
}

/* Texto dos botões em azul */
.tf-primary-btn, .tf-success-btn { 
    color: var(--tf-secondary) !important; 
} 

/* Garantir largura total e box-sizing */
.tf-input input, .tf-input select { 
    width: 100%; 
    box-sizing: border-box; 
}

/* Actions do formulário Premium */
.tf-form-actions {
    margin: 0;
    text-align: center;
    padding: 32px;
    background: rgba(248,250,252,0.3);
    border-top: 1px solid rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    border-radius: 0 0 16px 16px;
}

.tf-form-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--tf-primary);
    border-radius: 2px;
}

/* Responsivo Premium */
@media (max-width: 768px) { 
    #ticket-face-form-container {
        margin: 16px;
        border-radius: 16px;
    }
    
    .tf-header {
        padding: 24px 20px 20px;
        gap: 16px;
        border-radius: 16px 16px 0 0;
    }
    
    .tf-header-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .tf-header-text h2 {
        font-size: 24px;
    }
    
    .tf-form-grid { 
        grid-template-columns: 1fr; 
        gap: 24px;
        padding: 24px 20px;
    }
    
    .tf-form-col:first-child {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    
    .tf-personal-data {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tf-form-group {
        padding: 14px;
    }
    
    .tf-scan-card {
        padding: 20px;
    }
    
    .tf-primary-btn, .tf-success-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .tf-form-actions {
        padding: 24px 20px;
        border-radius: 0 0 16px 16px;
    }
}