/* ==========================================================================
   CONFIGURAÇÕES GERAIS E FUNDO (DARK MODE PREMIUM)
   ========================================================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    /* Fundo escuro com gradiente radial elegante */
    background: radial-gradient(circle at top left, #1e293b, #0f172a);
    color: #e2e8f0;
    padding: 20px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ==========================================================================
   CARD DO FORMULÁRIO (EFEITO GLASSMORPHISM)
   ========================================================================== */
.container {
    /* Fundo translúcido (vidro) */
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 500px;
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

h2 {
    color: #38bdf8; /* Azul Neon claro */
    font-size: 16pt;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.sub-empresa {
    color: #94a3b8;
    font-size: 9pt;
    text-align: center;
    margin-bottom: 35px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   CAMPOS DE ENTRADA (INPUTS MODERNOS)
   ========================================================================== */
.campo-grupo {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 10.5pt;
    letter-spacing: 0.3px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 11pt;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: #475569;
}

/* Efeito de Foco Neon */
input[type="text"]:focus {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.9);
    outline: none;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Campos bloqueados (readonly) */
input[type="text"][readonly] {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #94a3b8 !important;
    border-color: transparent !important;
}

#mensagemBusca {
    display: block;
    margin-top: 8px;
}

/* ==========================================================================
   ÁREA DA FOTO / CÂMERA (ESTILO APP)
   ========================================================================== */
.campo-foto {
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(56, 189, 248, 0.4);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.instrucao-foto {
    font-size: 9.5pt;
    color: #94a3b8;
    margin-bottom: 15px;
}

input[type="file"] {
    display: none;
}

/* Botão da Câmera Vibrante */
.btn-camera {
    display: inline-block;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 12pt;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-camera:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

.btn-camera:active {
    transform: scale(0.96);
}

/* Prévia da Foto com borda Neon */
#fotoPreview {
    border: 2px solid #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    border-radius: 12px !important;
}

/* ==========================================================================
   TERMO LEGAL (ALERTA DISCRETO)
   ========================================================================== */
.termo-legal {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.termo-legal p {
    font-size: 9pt;
    line-height: 1.5;
    color: #fbbf24;
    text-align: justify;
}

/* ==========================================================================
   BOTÃO DE ENVIO PRINCIPAL (NEON VERDE)
   ========================================================================== */
button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff;
    border: none;
    padding: 18px;
    font-size: 13pt;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
}

button[type="submit"]:active:not(:disabled) {
    transform: scale(0.97);
}

/* Botão bloqueado (quando não achou o RE) */
button:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}