/* ====================================================
   ARQUIVO: cadastro.css
   DESCRIÇÃO: Estilização da página de cadastro da Nodo
   AUTOR: Desenvolvimento Nodo
   DATA: 2026
   ==================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0a1929 0%, #1a3a5f 50%, #0a4b7a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: linear-gradient(135deg, #e0f2fe 0%, #b8e1ff 50%, #a0d0ff 100%);
    color: #1e293b;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes move { from { transform: translate(0, 0); } to { transform: translate(-50%, -50%); } }
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) rotate(45deg); }
}
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
    transition: background 0.3s ease;
}
body.light-mode::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

body::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M10 10 L 90 10 L 90 90 L 10 90 Z" fill="none" stroke="%2300ffff" stroke-width="0.5"/><circle cx="50" cy="50" r="5" fill="%2300ffff"/><line x1="50" y1="50" x2="10" y2="10" stroke="%2300ffff" stroke-width="0.3"/><line x1="50" y1="50" x2="90" y2="10" stroke="%2300ffff" stroke-width="0.3"/><line x1="50" y1="50" x2="90" y2="90" stroke="%2300ffff" stroke-width="0.3"/><line x1="50" y1="50" x2="10" y2="90" stroke="%2300ffff" stroke-width="0.3"/></svg>') repeat;
    animation: move 60s linear infinite;
    z-index: 0;
    pointer-events: none;
    transition: background 0.3s ease;
}
body.light-mode::after {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M10 10 L 90 10 L 90 90 L 10 90 Z" fill="none" stroke="%232563eb" stroke-width="0.5"/><circle cx="50" cy="50" r="5" fill="%232563eb"/><line x1="50" y1="50" x2="10" y2="10" stroke="%232563eb" stroke-width="0.3"/><line x1="50" y1="50" x2="90" y2="10" stroke="%232563eb" stroke-width="0.3"/><line x1="50" y1="50" x2="90" y2="90" stroke="%232563eb" stroke-width="0.3"/><line x1="50" y1="50" x2="10" y2="90" stroke="%232563eb" stroke-width="0.3"/></svg>') repeat;
}

.glow-effect {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    transition: background 0.3s ease;
    animation: glow 4s ease-in-out infinite;
}
body.light-mode .glow-effect {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

/* ====================================================
   CABEÇALHO
   ==================================================== */
header {
    position: relative;
    z-index: 10;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease;
}
body.light-mode header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-n {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    position: relative; overflow: hidden;
}
.logo-n::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}
body.light-mode .logo-n {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}
.logo-n span {
    color: white; font-size: 32px; font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative; z-index: 1;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text .nodo {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(135deg, #00ffff, #4d9fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 1px; line-height: 1;
}
body.light-mode .logo-text .nodo {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-text .tagline {
    font-size: 10px; color: #4d9fff; letter-spacing: 2px; text-transform: uppercase;
}
body.light-mode .logo-text .tagline { color: #2563eb; }

/* Navegação */
nav { display: flex; gap: 40px; align-items: center; }
nav a {
    color: #b0e0ff; text-decoration: none; font-weight: 500; font-size: 16px;
    transition: all 0.3s ease; position: relative; padding: 5px 0;
}
body.light-mode nav a { color: #1e293b; }
nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #00ffff, #0066ff);
    transition: width 0.3s ease;
}
nav a:hover { color: #00ffff; text-shadow: 0 0 10px rgba(0, 255, 255, 0.3); }
body.light-mode nav a:hover { color: #2563eb; }
nav a:hover::after { width: 100%; }

/* Botões do header */
.theme-toggle {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 8px 12px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.1); transition: all 0.3s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
.theme-icon { font-size: 18px; }
.theme-text { font-size: 14px; font-weight: 500; color: #b0e0ff; }
body.light-mode .theme-toggle { background: rgba(37, 99, 235, 0.1); }
body.light-mode .theme-text { color: #1e293b; }

.btn-header {
    background: linear-gradient(135deg, #0066ff, #00ccff);
    color: white; border: none; padding: 10px 30px; border-radius: 8px;
    font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
    text-transform: uppercase; letter-spacing: 1px;
    position: relative; overflow: hidden;
}
.btn-header::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.btn-header:hover::before { left: 100%; }
.btn-header:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 102, 255, 0.5); }

/* ====================================================
   CONTEÚDO PRINCIPAL
   ==================================================== */
main {
    position: relative; z-index: 5; min-height: calc(100vh - 140px);
    display: flex; align-items: center; justify-content: center;
}
.cadastro-wrapper {
    display: flex; justify-content: center; align-items: center;
    width: 100%; padding: 40px 20px;
}
.container {
    background: rgba(10, 25, 41, 0.9); backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(0, 255, 255, 0.1), 0 0 20px rgba(0, 255, 255, 0.2);
    padding: 40px; width: 100%; max-width: 600px; position: relative;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease;
}
body.light-mode .container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.2);
}
.container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, #4d9fff, #00ffff, transparent);
    border-radius: 20px 20px 0 0; animation: pulse 2s ease-in-out infinite;
}

/* ====================================================
   FORMULÁRIO
   ==================================================== */
#cadastroForm { display: flex; flex-direction: column; width: 100%; }

.form-header {
    display: flex; align-items: center; gap: 15px; margin-bottom: 30px;
    padding-bottom: 20px; border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}
.form-header .logo-n {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    position: relative; overflow: hidden;
}
.form-header .logo-n::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg); animation: shine 3s infinite;
}
.form-header .logo-n span {
    color: white; font-size: 32px; font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); position: relative; z-index: 1;
}
.form-header h1 {
    color: #fff; font-size: 28px; text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}
body.light-mode .form-header h1 { color: #1e293b; }
.form-header p { color: #b0e0ff; font-size: 14px; margin-top: 5px; }
body.light-mode .form-header p { color: #334155; }

/* Grade de campos */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 15px; }
.form-group.full-width { grid-column: span 2; }

/* Labels */
label {
    display: block; margin-bottom: 8px; color: #b0e0ff; font-weight: 500;
    font-size: 14px; letter-spacing: 0.5px;
}
body.light-mode label { color: #334155; }
.required::after { content: '*'; color: #00ffff; margin-left: 4px; }
body.light-mode .required::after { color: #2563eb; }

/* Inputs e selects */
input, select {
    width: 100%; padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px; font-size: 16px; color: #fff; transition: all 0.3s ease;
}
body.light-mode input, body.light-mode select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(37, 99, 235, 0.2); color: #1e293b;
}
input:focus, select:focus {
    outline: none; border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); background: rgba(0, 255, 255, 0.05);
}
body.light-mode input:focus, body.light-mode select:focus {
    border-color: #2563eb; box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.95);
}
input::placeholder { color: rgba(176, 224, 255, 0.3); }
body.light-mode input::placeholder { color: rgba(51, 65, 85, 0.5); }

/* Helpers */
.cnpj-helper, .celular-helper, .data-helper {
    font-size: 11px; color: rgba(176, 224, 255, 0.7); margin-top: 5px; transition: color 0.3s ease;
}
body.light-mode .cnpj-helper, body.light-mode .celular-helper, body.light-mode .data-helper {
    color: rgba(51, 65, 85, 0.7);
}

/* Celular com prefixo */
.telefone-wrapper {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255, 255, 255, 0.05); border-radius: 10px;
    border: 2px solid rgba(0, 255, 255, 0.2); transition: all 0.3s ease;
}
.telefone-wrapper:focus-within {
    border-color: #00ffff; box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
}
body.light-mode .telefone-wrapper {
    background: rgba(255, 255, 255, 0.8); border: 2px solid rgba(37, 99, 235, 0.2);
}
body.light-mode .telefone-wrapper:focus-within {
    border-color: #2563eb; background: rgba(255, 255, 255, 0.9);
}
.prefixo-telefone {
    background: transparent; color: #00ffff; font-weight: 600;
    padding: 12px 0 12px 15px; border: none; font-size: 16px;
}
body.light-mode .prefixo-telefone { color: #2563eb; }
#celular {
    border: none !important; background: transparent !important;
    box-shadow: none !important; padding: 12px 15px 12px 5px; outline: none; flex: 1;
}
#celular:focus { border: none !important; box-shadow: none !important; }

/* Feedback visual de validação */
.form-control.erro, #dataNascimento.erro {
    border-color: #ff4d4d; box-shadow: 0 0 5px rgba(255, 77, 77, 0.3);
}
.form-control.sucesso, #dataNascimento.sucesso {
    border-color: #00ff00; box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}
body.light-mode .form-control.erro, body.light-mode #dataNascimento.erro { border-color: #dc2626; }
body.light-mode .form-control.sucesso, body.light-mode #dataNascimento.sucesso { border-color: #16a34a; }
.telefone-wrapper.erro { border-color: #ff4d4d; }
.telefone-wrapper.sucesso { border-color: #00ff00; }

.campo-mensagem {
    font-size: 12px; margin-top: 5px; min-height: 20px; transition: all 0.3s ease;
}
.campo-mensagem.erro { color: #ff4d4d; }
.campo-mensagem.sucesso { color: #00ff00; }
.campo-mensagem.info { color: #ffaa00; }
body.light-mode .campo-mensagem.erro { color: #dc2626; }
body.light-mode .campo-mensagem.sucesso { color: #16a34a; }
body.light-mode .campo-mensagem.info { color: #d97706; }

/* ====================================================
   TIPO DE USUÁRIO
   ==================================================== */
.checkbox-group {
    background: rgba(0, 255, 255, 0.05); border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px; padding: 15px; margin-bottom: 20px;
}
body.light-mode .checkbox-group {
    background: rgba(37, 99, 235, 0.05); border: 1px solid rgba(37, 99, 235, 0.2);
}
.radio-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #b0e0ff; }
.radio-item:last-child { margin-bottom: 0; }
.radio-item input[type="radio"] {
    width: auto; margin-right: 10px; accent-color: #00ffff; transform: scale(1.2); cursor: pointer;
}
body.light-mode .radio-item input[type="radio"] { accent-color: #2563eb; }
.radio-item label { margin-bottom: 0; cursor: pointer; color: #b0e0ff; }
body.light-mode .radio-item label { color: #334155; }

/* ====================================================
   SERVIÇOS
   ==================================================== */
.servicos-group {
    background: rgba(0, 255, 255, 0.03); border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 10px; padding: 20px; margin: 20px 0; transition: all 0.3s ease;
}
body.light-mode .servicos-group {
    background: rgba(37, 99, 235, 0.03); border: 1px solid rgba(37, 99, 235, 0.15);
}
.servicos-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
    color: #00ffff; font-weight: 600; font-size: 18px;
}
body.light-mode .servicos-header { color: #2563eb; }
.servicos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.servicos-categoria h4 {
    color: #00ffff; font-size: 16px; margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2); padding-bottom: 5px;
}
body.light-mode .servicos-categoria h4 { color: #2563eb; border-bottom: 1px solid rgba(37, 99, 235, 0.2); }
.servicos-categoria .checkbox-item { margin-bottom: 8px; }
.checkbox-item { display: flex; align-items: center; gap: 10px; color: #b0e0ff; }
.checkbox-item input[type="checkbox"] {
    width: auto; accent-color: #00ffff; transform: scale(1.2); cursor: pointer;
}
body.light-mode .checkbox-item input[type="checkbox"] { accent-color: #2563eb; }
.checkbox-item label { margin-bottom: 0; cursor: pointer; }

/* ====================================================
   TERMOS LGPD
   ==================================================== */
.terms-group {
    background: rgba(0, 255, 255, 0.03); border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 10px; padding: 20px; margin: 20px 0;
}
body.light-mode .terms-group {
    background: rgba(37, 99, 235, 0.03); border: 1px solid rgba(37, 99, 235, 0.15);
}
.terms-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
    color: #00ffff; font-weight: 600;
}
body.light-mode .terms-header { color: #2563eb; }
.terms-content {
    max-height: 150px; overflow-y: auto; padding: 15px;
    background: rgba(0, 0, 0, 0.2); border-radius: 8px; color: #b0e0ff;
    font-size: 12px; line-height: 1.6; margin-bottom: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}
body.light-mode .terms-content { background: rgba(255, 255, 255, 0.9); color: #334155; border-color: rgba(37, 99, 235, 0.1); }
.terms-content::-webkit-scrollbar { width: 6px; }
.terms-content::-webkit-scrollbar-track { background: rgba(0, 255, 255, 0.05); border-radius: 10px; }
.terms-content::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #0066ff, #00ccff); border-radius: 10px; }
body.light-mode .terms-content::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #2563eb, #38bdf8); }

/* ====================================================
   TERMOS DE USO
   ==================================================== */
.terms-checkbox {
    display: flex; align-items: flex-start; gap: 10px; color: #b0e0ff; font-size: 14px; margin-bottom: 20px;
}
body.light-mode .terms-checkbox { color: #334155; }
.terms-checkbox input[type="checkbox"] {
    width: auto; margin-top: 3px; accent-color: #00ffff; transform: scale(1.2);
}
body.light-mode .terms-checkbox input[type="checkbox"] { accent-color: #2563eb; }
.terms-checkbox a { color: #00ffff; text-decoration: none; border-bottom: 1px dotted #00ffff; }
body.light-mode .terms-checkbox a { color: #2563eb; border-bottom: 1px dotted #2563eb; }
.terms-checkbox a:hover { color: #fff; border-bottom-color: #fff; }
body.light-mode .terms-checkbox a:hover { color: #0891b2; border-bottom-color: #0891b2; }

/* ====================================================
   REQUISITOS DA SENHA (compacto com grid)
   ==================================================== */
.senha-requisitos {
    margin-top: 8px;
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 5px 20px;
}
body.light-mode .senha-requisitos {
    background: rgba(37, 99, 235, 0.03);
    border-color: rgba(37, 99, 235, 0.1);
}
.requisito-item {
    font-size: 11px;
    color: rgba(176, 224, 255, 0.7);
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 0;
}
.requisito-item.sucesso { color: #00ff00; }
.requisito-item.erro { color: #ff4d4d; }
body.light-mode .requisito-item { color: rgba(51, 65, 85, 0.7); }
body.light-mode .requisito-item.sucesso { color: #16a34a; }
body.light-mode .requisito-item.erro { color: #dc2626; }
.requisito-icon { font-size: 14px; width: 16px; text-align: center; }

/* ====================================================
   MENSAGENS E BOTÕES
   ==================================================== */
.required-message {
    color: rgba(176, 224, 255, 0.6); font-size: 12px; margin-top: 10px; text-align: right;
}
.required-message span { color: #00ffff; }
body.light-mode .required-message { color: rgba(51, 65, 85, 0.6); }
body.light-mode .required-message span { color: #2563eb; }

.form-actions { display: flex; gap: 15px; margin-top: 30px; }

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    color: white; border: none; padding: 14px; border-radius: 10px;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 1px;
    position: relative; overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5); }

.btn-secondary {
    flex: 1;
    background: transparent; color: #00ffff; border: 2px solid #00ffff;
    padding: 14px; border-radius: 10px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
}
body.light-mode .btn-secondary { color: #2563eb; border-color: #2563eb; }
.btn-secondary:hover { background: rgba(0, 255, 255, 0.1); box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); transform: translateY(-2px); }
body.light-mode .btn-secondary:hover { background: rgba(37, 99, 235, 0.1); box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }

.login-link { text-align: center; margin-top: 20px; color: #b0e0ff; font-size: 14px; }
body.light-mode .login-link { color: #334155; }
.login-link a {
    color: #00ffff; text-decoration: none; font-weight: 600; transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3); cursor: pointer;
}
body.light-mode .login-link a { color: #2563eb; text-shadow: 0 0 10px rgba(37, 99, 235, 0.3); }
.login-link a:hover { text-decoration: underline; color: #fff; }
body.light-mode .login-link a:hover { color: #0891b2; }

/* ====================================================
   RODAPÉ
   ==================================================== */
footer {
    position: relative; z-index: 10;
    background: rgba(10, 25, 41, 0.9); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 255, 0.2); padding: 30px 0; transition: background 0.3s ease;
}
body.light-mode footer { background: rgba(255, 255, 255, 0.9); border-top: 1px solid rgba(37, 99, 235, 0.2); }
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center; color: #b0e0ff;
}
body.light-mode .footer-container { color: #334155; }
.footer-links { display: flex; gap: 30px; }
.footer-links a { color: #b0e0ff; text-decoration: none; transition: all 0.3s ease; }
body.light-mode .footer-links a { color: #334155; }
.footer-links a:hover { color: #00ffff; }
body.light-mode .footer-links a:hover { color: #2563eb; }

/* ====================================================
   BLOCOS ESPECIAIS
   ==================================================== */
.mensagem-geral {
    padding: 15px 20px; border-radius: 10px; margin-bottom: 25px; font-weight: 500;
    animation: fadeIn 0.3s ease;
}
.mensagem-geral.sucesso { background: rgba(0, 255, 0, 0.1); border: 1px solid #00ff00; color: #00ff00; }
.mensagem-geral.erro { background: rgba(255, 77, 77, 0.1); border: 1px solid #ff4d4d; color: #ff4d4d; }
body.light-mode .mensagem-geral.sucesso { background: rgba(22, 163, 74, 0.1); border-color: #16a34a; color: #16a34a; }
body.light-mode .mensagem-geral.erro { background: rgba(220, 38, 38, 0.1); border-color: #dc2626; color: #dc2626; }

/* Modal genérico */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-container {
    background: rgba(10,25,41,0.95); backdrop-filter: blur(10px);
    border: 1px solid rgba(0,255,255,0.3); border-radius: 20px; padding: 30px;
    max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h2 { color: #00ffff; }
.modal-fechar { background: transparent; border: none; color: #b0e0ff; font-size: 24px; cursor: pointer; }
.modal-corpo { color: #b0e0ff; line-height: 1.6; }

/* Erro inline */
input.erro-campo, .telefone-wrapper.erro-campo, select.erro-campo {
    border-color: #ff4d4d !important; box-shadow: 0 0 10px rgba(255, 77, 77, 0.3) !important;
}
.erro-mensagem { font-size: 13px; color: #ff4d4d; margin-top: 5px; display: block; }
@keyframes pulseErro { 0%, 100% { border-color: #ff4d4d; } 50% { border-color: #ff8888; } }
.erro-campo.pulsar { animation: pulseErro 0.8s ease-in-out 3; }

/* ====================================================
   BLOCO DE ENDEREÇO (INTEGRADO)
   ==================================================== */

.input-readonly {
    color: #aac8e0 !important;   /* tom mais claro para indicar que é automático */
    cursor: not-allowed !important;
}
body.light-mode .input-readonly {
    color: #475569 !important;
}

/* Mensagem de feedback do CNPJ dentro do bloco */
#enderecoBloco .modal-mensagem {
    padding: 10px 15px; border-radius: 8px; margin-bottom: 12px;
    font-size: 13px; font-weight: 500;
}
#enderecoBloco .modal-mensagem.sucesso {
    background: rgba(0, 255, 0, 0.1); border: 1px solid #00ff00; color: #00ff00;
}
#enderecoBloco .modal-mensagem.erro {
    background: rgba(255, 77, 77, 0.1); border: 1px solid #ff4d4d; color: #ff4d4d;
}

/* Separador visual para "Dados de Acesso" */
.secao-acesso {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}
.endereco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.secao-acesso h4 {
    color: #00ffff; margin-bottom: 15px; font-size: 16px;
}
body.light-mode .secao-acesso h4 { color: #2563eb; }

/* ====================================================
   MEDIA QUERIES
   ==================================================== */
@media (max-width: 968px) {
    .header-container { flex-direction: column; gap: 20px; }
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
    nav { flex-wrap: wrap; justify-content: center; gap: 20px; }
}
@media (max-width: 768px) {
    .container { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 10px; }
    .form-group.full-width { grid-column: span 1; }
    .form-actions { flex-direction: column; }
    .form-header { flex-direction: column; text-align: center; }
    .servicos-grid { grid-template-columns: 1fr; }
    .telefone-wrapper { width: 100%; }
    #enderecoBloco .form-grid { grid-template-columns: 1fr; }
    .endereco-grid { grid-template-columns: 1fr; }  
}
.cnpj-mensagem-erro {
    font-size: 13px;
    color: #ff4d4d;
    margin-bottom: 5px;
    padding: 8px 12px;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid #ff4d4d;
    border-radius: 6px;
    display: none;
}