@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Slab:wght@600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    /* Fundo desktop com imagem + overlay verde mais leve */
    background-color: #288761; /* cor solicitada atualizada */
    background-image: linear-gradient(rgba(22, 111, 74, 0.25), rgba(22, 111, 74, 0.25)), url('../images/left-hero.png');
    /* Imagem mantendo proporção natural sem esticar */
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    /* não centralizar verticalmente: manter topo como no Elementor */
    color: #fff;
}

/* Media queries removidas - imagem agora cobre toda a tela em qualquer resolução */

.container {
    width: 100%;
    max-width: 1280px; /* um pouco mais largo como no print */
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh; /* seção altura total como Elementor */
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 como no layout Elementor */
    gap: 48px; /* mais respiro entre colunas */
    width: 100%;
    align-items: start; /* alinhar ao topo */
}

.left-section {
    display: flex;
    align-items: flex-start; /* leva o texto para cima */
    padding: 10px 20px 20px 0; /* aproxima ainda mais do topo */
    min-height: 520px;
    /* sem fundo individual: usa o fundo global da página */
}

.headline h2 {
    font-size: 34px;
    line-height: 1.3;
    color: #ffffff;
    max-width: 420px; /* texto mais estreito como no Elementor */
    font-weight: 700;
    font-family: 'Roboto Slab', 'Roboto', Arial, sans-serif;
    text-align: center; /* centralizar como no print */
    margin: 0 auto; /* centraliza dentro da coluna */
}

.right-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* alinhar com o topo como no Elementor */
    align-items: flex-start;
    margin-top: 12px; /* desce levemente o card para parecer com a referência */
    background: transparent; /* remove qualquer fundo da seção direita */
}

.form-card {
    width: 100%;
    max-width: 500px; /* ligeiramente menor */
    background: #1f7a4b; /* card verde */
    padding: 22px; /* leve ajuste de padding */
    border-radius: 20px; /* cantos maiores */
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #ffffff; /* labels claras no card verde */
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.form-group input {
    width: 100%;
    height: 40px; /* altura ligeiramente maior */
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    font-size: 14px;
    color: #1c1c1c;
    background: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-group + .submit-btn {
    margin-top: 10px; /* dá respiro antes do botão */
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #ffffff; /* igual aos outros labels no card */
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.lgpd-explanation {
    margin-top: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border-left: 3px solid #2ecc71;
    animation: slideDown 0.3s ease-out;
}

.lgpd-explanation p {
    font-size: 11px;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.submit-btn {
    display: block;
    min-width: 140px;
    width: auto; /* botão menor e centralizado */
    background: #2ecc71;
    color: #ffffff;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin: 8px auto 0; /* centraliza */
}

.submit-btn:hover {
    background: #45a049;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* Banner decorativo abaixo do formulário (opcional) */
.banner-section {
    width: 100%;
    margin-top: 22px; /* espaço abaixo do formulário */
    display: flex;
    justify-content: flex-start; /* alinhado à esquerda como no mockup */
}

.banner-section .banner-image {
    width: auto;
    max-width: 340px; /* reduzido um pouco */
    height: auto;
    display: block;
    border-radius: 0;
}

.logo {
    width: 56px;
    height: 56px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.governo {
    font-size: 11px;
    color: #e8e8e8;
}

.santa-catarina {
    font-size: 16px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
}

.secretaria {
    font-size: 11px;
    color: #e8e8e8;
}

/* Mensagens de feedback */
.message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-weight: 500;
    color: white;
    text-align: center;
}

.message.success {
    background-color: #28a745;
    border: 1px solid #1e7e34;
}

.message.error {
    background-color: #dc3545;
    border: 1px solid #bd2130;
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        /* Fundo específico para mobile */
        background-image: url('../images/mobile-hero.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        height: 100vh;
        overflow: hidden;
    }
    
    .container {
        padding: 15px;
        height: 100vh;
        position: relative;
    }
    
    .content-wrapper {
        display: block;
        height: 100%;
        position: relative;
    }
    
    .right-section {
        /* Formulário posicionado sobre a ilustração */
        position: absolute;
        top: 120px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 350px;
        z-index: 100;
        padding: 0;
        margin: 0;
        pointer-events: auto;
    }
    
    .form-card {
        width: 100%;
        margin: 0;
        padding: 20px;
        pointer-events: auto;
        touch-action: manipulation;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input {
        height: 40px;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-user-select: text;
        user-select: text;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .left-section {
        /* Texto posicionado no topo da tela */
        position: absolute;
        top: 15px;
        left: 0;
        right: 0;
        padding: 0 15px;
        text-align: center;
        z-index: 5;
        height: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: none;
    }
    
    .headline {
        display: block !important;
        visibility: visible !important;
    }
    
    .headline h2 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
        font-weight: 700 !important;
        font-family: 'IBM Plex Sans', 'Roboto', Arial, sans-serif !important;
        background: transparent !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        visibility: visible !important;
        opacity: 1 !important;
        border: none !important;
    }
    
    .banner-section {
        display: none;
    }
    
    .logo-section {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
}

/* Mensagens de sucesso/erro */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

.message.success {
    background-color: #28a745;
    color: white;
    border: 1px solid #1e7e34;
}

.message.error {
    background-color: #dc3545;
    color: white;
    border: 1px solid #bd2130;
}
