@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Cores extraídas e alinhadas com o logo InovaIT */
    --color-bg: #0f172a !important;            /* Azul-escuro tecnológico/slate (Background) */
    --color-container: #ffffff !important;     /* Fundo limpo para contraste */
    --color-primary: #104565 !important;        /* O Azul Oficial do seu logo (Autoridade/TI) */
    --color-accent: #2d9a94 !important;         /* O Verde-Teal/Turquesa do seu logo (Inovação) */
    --color-accent-hover: #227570 !important;   /* Tom mais escuro para efeito hover */
    --color-candidaturh: #ff00ea !important;    /* Rosa/Magenta vibrante mantido para o destaque */
    
    /* Neutros e UI */
    --color-text-main: #1e293b !important;
    --color-text-muted: #64748b !important;
    --color-borda: #e2e8f0 !important;
    --color-borda-focus: #2d9a9480 !important;
    --color-erro: #ef4444 !important;
    --color-sombra: rgba(15, 23, 42, 0.08) !important;
    --color-sombra-caixa: rgba(15, 23, 42, 0.15) !important;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

#logo {
    max-width: 180px;
    display: block;
    margin: 0 auto 24px auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.container {
    max-width: 680px; /* Um pouco mais estreito para melhor legibilidade */
    margin: auto;
    background: var(--color-container);
    padding: 32px 40px;
    border-radius: 16px; /* Cantos arredondados modernos */
    box-shadow: 0 10px 25px -5px var(--color-sombra), 0 8px 10px -6px var(--color-sombra);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h2 {
    color: var(--color-primary);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-main);
}

/* Inputs estilo SaaS Premium */
input, textarea, select {
    width: 100%;
    padding: 10px 14px;
    margin-top: 2px;
    border-radius: 8px;
    border: 1px solid var(--color-borda);
    background-color: #f8fafc;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text-main);
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px var(--color-borda-focus);
}

input[type="radio"], input[type="checkbox"] {
    width: auto;
    accent-color: var(--color-accent); /* Alinha os checks nativos com a cor do logo */
}

/* Botões modernos com feedback tátil */
input[type="submit"], input[type="reset"] {
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 24px;
    margin-right: 12px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(45, 154, 148, 0.2);
}

input[type="submit"]:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 154, 148, 0.3);
}

input[type="submit"]:active {
    transform: translateY(0);
}

input[type="reset"] {
    background-color: #f1f5f9;
    color: var(--color-text-muted);
    box-shadow: none;
}

input[type="reset"]:hover {
    background-color: #e2e8f0;
    color: var(--color-text-main);
}

.small-note {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.error {
    color: var(--color-erro);
    font-weight: 500;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hidden {
    display: none;
}

.idioma-selector {
    text-align: right;
    margin-bottom: 16px;
}

.idioma-selector button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.idioma-selector button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.rodape {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 32px;
}

.candidaturh {
    color: var(--color-candidaturh);
    font-weight: 600;
}

.rodape small {
    font-size: 11px;
    display: block;
    margin-top: 6px;
    color: #64748b;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px dashed #64748b;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.heart {
    color: #ff4d6d;
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

/* Chat Widget estilo LiveChat/Intercom */
#chat-icon {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-accent);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(45, 154, 148, 0.4);
    transition: all 0.2s ease;
    z-index: 999;
}

#chat-icon:hover {
    transform: scale(1.08) rotate(5deg);
    background-color: var(--color-accent-hover);
}

#chatbox {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 300px;
    background: var(--color-container);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
    border: 1px solid var(--color-borda);
    display: none;
    z-index: 999;
}

#chatbutton {
    width: 100%;
    padding: 10px;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

#chatbutton:hover {
    background-color: #0b324a;
}

/* Caixa de Consentimento (Ex: RGPD) */
.consentimento-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--color-borda);
}

.consentimento-box input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.consentimento-box label {
    display: inline;
    width: auto;
    margin: 0;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-muted);
    cursor: pointer;
}

/* 1. Ensure body allows absolute positioning inside it */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text-main);
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
}

/* 2. Style the video container to lock it in the background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pushes the video behind everything */
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Prevents the video from stretching awkwardly */
}

/* 3. The tech overlay (Crucial for text contrast!) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.9));
}