body {
    margin: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.6);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
    box-sizing: border-box;
}

.Title {
    font-size: 30px;
    font-style: oblique;
}

/* Ícones das Redes Sociais e Hardware no Header */
.instagram {
    width: 3.0rem;
    position: absolute;
    left: 30px;
}
.X {
    width: 3rem;
    position: absolute;
    left: 100px;
}
.cpulog {
    width: 5rem;
    position: absolute;
    right: 17px;
}
.gpu {
    width: 7rem;
    position: absolute;
    right: 100px;
}
.meo {
    width: 9rem;
    position: absolute;
    right: 210px;
}
.mainb {
    width: 5rem;
    position: absolute;
    right: 350px;
}
.logh {
    position: absolute;
    top: 50px;
    width: 7rem;
    right: 50px;
}

/* ==================== ESTRUTURA PRINCIPAL (CORRIGIDA) ==================== */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 2rem;
}

/* Centraliza os anúncios laterais perfeitamente paralelos ao formulário */
.linha-principal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1400px;
    gap: 30px;
    margin-top: 150px; /* <--- Aumentado para descolar perfeitamente do header */
}

.container {
    flex-shrink: 0;
    margin: 0;
}

/* Formulário Corrigido (Sem as margens antigas que quebravam o layout) */
.fom {
    display: grid;
    grid-template-columns: repeat(2, 260px); 
    gap: 30px;
    width: fit-content; 
    margin: 0 auto; /* ZERADO: Agora quem cuida do espaçamento é a .linha-principal */
    background: rgba(255, 255, 255, 0.336); 
    backdrop-filter: blur(8px);           
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Ajustado para uma sombra mais natural */
}

/* Elementos do Formulário */
select {
    width: 100%; 
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    background: transparent;
    box-sizing: border-box; 
    border: 2px solid #000000; 
    border-radius: 10px;
    color: #333; 
    outline: none; 
    box-shadow: 0 0 5px #000000, 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

option {
    background-color: white; /* Corrigido para garantir leitura nos navegadores */
    color: black;
}

label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-family: sans-serif;
    white-space: nowrap; 
}

.cpu h2, section h2 {
    white-space: nowrap; 
}

.button {
    width: 100%; 
    padding: 10px;
    font-size: 16px;
    border: 2px solid #000000;
    background-color: transparent;
    border-radius: 10px;
    cursor: pointer;
    grid-column: 1 / 3;   
    box-sizing: border-box; 
    box-shadow: 0 0 5px #000000, 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.button:hover {
    background-color: #000000;
    color: #ffffff;
}

/* ==================== BLOCOS DE ANÚNCIOS ==================== */
.anuncio-box {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px dashed rgba(0, 0, 0, 0.15); 
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-family: sans-serif;
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.anuncio-lateral {
    width: 160px;
    /* Retirado o height fixo para usar o stretch e espelhar o tamanho exato do form */
}

.anuncio-topo {
    width: 728px;
    height: 90px;
    margin-top: 110px; /* Descolar perfeitamente do header fixo */
    margin-bottom: 10px;
}

/* ==================== MODAL (BOX FLUTUANTE) ==================== */
.modal {
    display: none;        
    position: fixed;      
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(5px);           
    z-index: 9999;        
}

.modal-content {
    background-color: #fff;
    margin: 15vh auto;    
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;     
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
    animation: abrirModal 0.3s ease-out; 
}

.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: #000000;
}

@keyframes abrirModal {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==================== RODAPÉ ==================== */
footer {
    width: 100%;
    padding: 10px 0;        /* <--- Reduzido de 20px para 10px */
    margin-top: 250px;       /* <--- Reduzido de 60px para 40px */
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #555; 
    font-family: sans-serif;
    font-size: 13px;
    }        /* <--- Fonte ligeiramente menor para ficar elegante */

.footer-content p {
    margin: 8px 0;

}

/* Responsive Design */
@media (max-width: 1100px) {
    .anuncio-lateral {
        display: none;
    }
    .anuncio-topo {
        width: 90%;
        height: 60px;
    }
    .linha-principal {
        margin-top: 130px;
    }
}
