:root {
    --primary-color: #0A593C;   /* Verde Senorde */
    --secondary-color: #FBAC18; /* Amarelo */
}

* {
    box-sizing: border-box;
}

/* --- CONFIGURAÇÃO DO CORPO (BODY) --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0; 
    padding: 0;
    background-color: transparent; /* Transparente para o vídeo aparecer */
    color: #333;
}

/* --- ESTILO PARA O VÍDEO DE FUNDO --- */
.video-background {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100; /* Fica atrás de tudo */
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 80%; /* Transparência do vídeo */
}

/* --- CABEÇALHO E RODAPÉ (Para não sumirem no vídeo) --- */
header, footer {
    /* Fundo branco levemente transparente para leitura */
    background-color: rgba(255, 255, 255, 0.95); 
    position: relative; 
    z-index: 10; /* Fica acima do vídeo */
}

/* --- CONTEÚDO PRINCIPAL --- */
main {
    padding: 20px;
    min-height: 70vh;
    
    /* Fundo branco 85% visível para o texto não sumir no vídeo */
    background-color: rgba(255, 255, 255, 0.85); 
    
    border-radius: 15px;
    margin: 20px auto; /* Centraliza o bloco */
    max-width: 1200px; /* Limita a largura */
}

/* --- TÍTULOS --- */
.title-distribuidores,
.title-revendas {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* --- BOTÃO VOLTAR AO TOPO --- */
#btnTop {
    display: none; /* Começa invisível (JS ativa) */
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99;
    
    border: none;
    outline: none;
    background-color: var(--secondary-color); /* Amarelo */
    color: white;
    cursor: pointer;
    
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

#btnTop:hover {
    background-color: var(--primary-color); /* Verde ao passar o mouse */
    transform: translateY(-3px);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    #btnTop {
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    main {
        margin: 10px; /* Margem menor no celular */
        padding: 15px;
    }
}

/* Mensagem de Status (PHP) */
.status-message {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    font-weight: 500;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message i {
    margin-right: 8px;
}

/* --- ESTILO IDENTIDADE VISUAL SENORDE --- */

/* 1. Título com Barra Verde Lateral */
.section-title-bar {
    border-left: 6px solid var(--primary-color); /* A barra verde grossa */
    padding-left: 15px;
    margin-bottom: 20px;
}

.section-title-bar h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800; /* Negrito forte */
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

/* Versão menor para Sidebar */
.section-title-bar.small {
    border-left-width: 4px;
    padding-left: 12px;
    margin-bottom: 15px;
}

.section-title-bar.small h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0;
}

/* 2. Cards da Sidebar (Limpos e Brancos) */
.clean-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Sombra suave */
    margin-bottom: 30px;
    border: 1px solid #eee;
}

/* 3. Lista de Contato "Clean" (Sem traços, sem bolinhas) */
.contact-list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list-clean li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-list-clean li:last-child {
    margin-bottom: 0;
}

/* Ícones Redondos */
.icon-box {
    width: 40px;
    height: 40px;
    background-color: #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.icon-box.whatsapp {
    background-color: #e7fceb;
    color: #25d366;
}

/* Texto e Links */
.text-box {
    display: flex;
    flex-direction: column;
}

.text-box .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    margin-bottom: 2px;
}

.text-box a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none !important; /* REMOVE O TRAÇO/SUBLINHADO */
    transition: color 0.2s;
}

.text-box a:hover {
    color: var(--primary-color); /* Fica verde ao passar o mouse */
}

/* 4. Formulário Estilizado */
.form-card {
    background: #fff;
    padding: 5px;
}

.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

/* Inputs com Ícone Interno */
.input-wrapper {
    position: relative;
}

.icon-field {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.textarea-icon {
    top: 20px;
    transform: none;
}

.senorde-form input,
.senorde-form select,
.senorde-form textarea {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Espaço para o ícone */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fdfdfd;
    transition: 0.3s;
}

.senorde-form input:focus,
.senorde-form select:focus,
.senorde-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(12, 97, 66, 0.1);
    outline: none;
}

/* Botão Enviar */
.btn-submit-styled {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    width: 100%;
}

.btn-submit-styled:hover {
    background-color: var(--secondary-color);
    color: #0A593C;
}

/* Feedback */
.alert-box.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Mobile */
@media (max-width: 768px) {
    .form-row-dual {
        grid-template-columns: 1fr;
    }
}