/* Paleta base extraída diretamente da imagem do logo */
:root {
    --bg-dark: #0b0f19;          /* Fundo escuro do logo */
    --card-dark: #131a2a;        /* Fundo dos campos e containers */
    --neon-blue: #00d2ff;        /* Neon Ciano do 'i' */
    --neon-green: #00ff87;       /* Neon Verde do 'c' e 'u' */
    --neon-pink: #ff007f;        /* Neon Rosa/Roxo do 's' e bordas */
    --neon-yellow: #ffdf00;      /* Neon Amarelo do 'o' */
    --text-light: #f1f2f6;       /* Texto claro de alta leitura */
    --text-muted: #8b9bb4;       /* Texto de suporte cinza */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Montserrat', sans-serif;
}

body {
    background: radial-gradient(circle at center, #1a233a 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.container-master {
    width: 100%;
    max-width: 750px;
}

/* Formulário Web Estilo Gamer/Neon */
.form-container {
    background-color: var(--card-dark);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 210, 255, 0.05);
}

h2 {
    color: var(--text-light);
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 35px;
}

/* Inputs e Elementos do Form */
.form-row {
    display: flex;
    gap: 20px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #222d44;
    border-radius: 12px;
    background-color: #0b0f19;
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

/* Upload de Imagem Personalizado */
.photo-upload-label {
    border: 2px dashed #222d44;
    padding: 35px;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    background-color: #0b0f19;
    transition: all 0.3s ease;
}

.photo-upload-label:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}

.photo-upload-label input[type="file"] {
    display: none;
}

.status-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* Seleção de Dias Estilo Botões Grid */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1c263c;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.checkbox-tile:hover {
    background-color: #24324f;
    border-color: rgba(255, 255, 255, 0.1);
}

.checkbox-tile input {
    accent-color: var(--neon-green);
}

/* Botão Enviar com Gradiente do Logo */
button#btnGenerate {
    width: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    color: var(--text-light);
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 0, 127, 0.2);
    transition: all 0.3s ease;
    margin-top: 15px;
}

button#btnGenerate:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 210, 255, 0.4);
}

button#btnGenerate:active {
    transform: translateY(0);
}

/* ==========================================================================
   ESTILO DO PDF REESTILIZADO (Adequado para impressão sem gastar tinta preta)
   ========================================================================== */
#a4-preview-container {
    display: none;
}

/* Para o PDF usamos fundo branco para impressão limpa, mas mantemos as cores neon nos títulos e logo */
.a4-sheet {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    background-color: #ffffff;
    color: #1e272e;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Recriação do Logotipo via Código no topo do PDF */
.pdf-header {
    display: flex;
    flex-direction: column; /* Empilha o logo e o endereço um em cima do outro */
    align-items: center;    /* Centraliza os dois horizontalmente */
    text-align: center;     /* Centraliza as linhas de texto do endereço */
    margin-bottom: 15px;
    width: 100%;
}


.logo-area {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-placeholder-iocus {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(90deg, #00d2ff, #00ff87, #ffdf00, #ff007f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.logo-placeholder-park {
    font-size: 16px;
    font-weight: 300;
    color: #131a2a;
    letter-spacing: 9px;
    margin-top: -2px;
    padding-left: 2px;
}

.logo-placeholder-indoor {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 400;
    color: #ff007f;
    letter-spacing: 3px;
    margin-top: 5px;
}

.logo-placeholder-indoor::before,
.logo-placeholder-indoor::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ff007f;
}

/* Área do Endereço */
.address-area {
    text-align: right;
    font-size: 11px;
    color: #57606f;
    line-height: 1.5;
}

.company-name {
    font-weight: 700;
    color: #131a2a;
    font-size: 13px;
}

/* Divisor com o degradê idêntico à borda circular do logo */
.pdf-divider {
    height: 3px;
    background: linear-gradient(90deg, #00d2ff, #ffdf00, #ff007f);
    margin-bottom: 25px;
    border-radius: 2px;
}

/* Ajuste Nobre de Altura para a Foto de Corpo Inteiro */
.pdf-photo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#pdfPhoto {
    max-height: 90mm; /* Mantém a proporção vertical perfeita de corpo inteiro */
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #f1f2f6;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.pdf-name {
    text-align: center;
    font-size: 26px;
    color: #131a2a;
    margin-bottom: 20px;
    font-weight: 800;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
}

.pdf-section {
    margin-bottom: 20px;
}

.pdf-section h3 {
    font-size: 13px;
    text-transform: uppercase;
    color: #ff007f; /* Rosa Neon do logo para os títulos de seção */
    margin-bottom: 8px;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #f1f2f6;
    padding-bottom: 4px;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide o bloco em duas colunas organizadas */
    gap: 10px;
    background-color: #f8fafc;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    border-left: 3px solid #00d2ff;
}


.pdf-days-list {
    font-size: 13px;
    font-weight: 600;
    color: #131a2a;
    background-color: #f1f2f6;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid #00ff87; /* Detalhe em Verde */
}

.pdf-text-block {
    font-size: 13px;
    line-height: 1.6;
    color: #2f3542;
    text-align: justify;
    white-space: pre-line;
}

.pdf-footer {
    margin-top: auto;
    text-align: center;
    font-size: 10px;
    color: #a4b0be;
    border-top: 1px solid #f1f2f6;
    padding-top: 12px;
}

/* ==========================================================================
   ADICIONAR NO FINAL DO SEU ARQUIVO STYLE.CSS
   ========================================================================== */

/* Cabeçalho que aparece na tela do computador */
.web-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-dark);
    padding: 15px 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* REGRA QUE ESTAVA FALTANDO: Configura o logo bem menor na tela */
.web-logo-img {
    height: 80px; /* Tamanho reduzido e elegante */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.15));
}

.web-address-area {
    text-align: right;
    line-height: 1.4;
}

.web-company-name {
    font-weight: 700;
    color: var(--text-light);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.web-company-address, 
.web-company-city {
    color: var(--text-muted);
    font-size: 12px;
}

/* Configura o logo menor também na folha do PDF */
.pdf-logo-img {
    height: 60mm; /* Tamanho reduzido e discreto para o papel A4 */
    width: auto;  
    object-fit: contain;
}

/* Ajuste automático para celulares */
@media (max-width: 600px) {
    .web-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 15px;
    }
    .web-address-area {
        text-align: center;
    }
}

/* ==========================================================================
   CORREÇÃO DO REPLICADOR DE FORMULÁRIO (IMPRESSÃO A4)
   ========================================================================== */

/* Na navegação normal pelo computador, mantém a folha de perfil oculta */
#a4-preview-container {
    display: none;
}

@media print {
    /* Esconde totalmente a interface de formulário e cabeçalhos da web */
    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .container-master, 
    .web-header, 
    .form-container, 
    #profileForm,
    button {
        display: none !important; /* Remove qualquer elemento do formulário */
    }

    /* Torna o container do PDF visível e força o formato A4 absoluto */
    #a4-preview-container {
        display: block !important;
        width: 210mm !important;
        height: 297mm !important;
    }

    .a4-sheet {
        width: 210mm !important;
        height: 297mm !important;
        padding: 20mm !important;
        box-sizing: border-box !important;
        background-color: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
    }

    /* Força imagens e cores do logo a aparecerem no PDF */
    img {
        max-width: 100% !important;
        display: block !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
