.overlay-mask {
    --cyan: #00bcd4;
    --border: rgba(255, 255, 255, 0.2);
    --form-font: 'Inter', system-ui, -apple-system, sans-serif;

    position: fixed; 
    inset: 0; 
    background: #000; 
    z-index: 99999; /* Fica acima de menus e outros elementos do site */
    display: none; 
    opacity: 0; 
    overflow-y: auto; 
    overflow-x: hidden;
    transition: opacity 0.4s ease;
    padding: 20px;
    font-family: var(--form-font);
    color: #fff;
    box-sizing: border-box;
}

/* Garante que o box-sizing interno não seja afetado pelo site principal */
.overlay-mask * { 
    box-sizing: border-box; 
}

.overlay-mask.is-active { 
    display: block; 
    opacity: 1; 
}

/* 2. WRAPPER E FECHAMENTO */
.overlay-mask .form-wrapper {
    width: 100%; 
    max-width: 800px; 
    margin: 2rem auto;
    position: relative; 
    padding-bottom: 3rem;
}

.overlay-mask .close-trigger {
    position: absolute; 
    top: -10px; 
    right: 0; 
    background: none; 
    border: none;
    color: #fff; 
    font-size: 2.5rem; 
    cursor: pointer; 
    z-index: 10; 
    line-height: 1;
    transition: 0.3s;
}

.overlay-mask .close-trigger:hover {
    color: #fff !important;
    transform: scale(1.1);
}

/* 3. CABEÇALHO */
.overlay-mask .form-header { 
    text-align: center; 
    margin-bottom: 3rem; 
    width: 100%; 
}

.overlay-mask .brand-logo {
    max-width: 95px;
    margin-bottom: 0;
    height: auto;
}

.overlay-mask .title-main { 
    font-size: clamp(1.2rem, 5vw, 2rem); 
    font-weight: 900; 
    line-height: 1.3; 
    word-break: break-word; 
    text-transform: none;
}

/* 4. CAMPOS DE ENTRADA (INPUTS) */
.overlay-mask .input-group { 
    display: flex; 
    gap: 2rem; 
    margin-bottom: 2rem; 
    width: 100%; 
}

.overlay-mask .input-block { 
    flex: 1; 
    width: 100%; 
    min-width: 0; 
}

.overlay-mask .full-width { 
    margin-bottom: 2rem; 
}

.overlay-mask .line-input {
    width: 100%; 
    max-width: 100%; 
    background: transparent; 
    border: none;
    border-bottom: 1px solid var(--border); 
    padding: 12px 5px; 
    color: #fff;
    font-size: 1em; 
    outline: none; 
    transition: 0.3s; 
    border-radius: 0; 
    appearance: none;
}

.overlay-mask .line-input:focus { 
    border-bottom-color: #fff; 
}

.overlay-mask .area-input { 
    min-height: 80px; 
    resize: vertical; 
}

/* 5. GRID DE AMBIENTES (CORREÇÃO IMAGE_B5E01A.PNG) */
.overlay-mask .selection-box { 
    margin: 3rem 0; 
    width: 100%; 
}

.overlay-mask .section-label { 
    font-size: 1.35rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-align: left; 
    color: #fff !important; 
    text-transform: none;
    letter-spacing: 1px;
}

.overlay-mask .options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 10px; /* Mais espaço entre linhas, menos entre colunas */
    width: 100%;
    justify-items: start; /* Alinha itens à esquerda da célula */
}

.overlay-mask .check-control {
    display: flex; 
    align-items: center; 
    gap: 10px; /* Distância curta entre checkbox e texto */
    cursor: pointer; 
    font-size: 1.15rem;
    width: auto;
    text-align: left;
    color: #fff;
}

.overlay-mask .check-control input {
    width: 18px !important; 
    height: 18px !important; 
    margin: 0 !important;
    flex-shrink: 0;
    accent-color: #fff !important; 
    cursor: pointer;
}

.overlay-mask .check-control span {
    flex: 1; 
    word-break: break-word;
}

/* 6. UPLOAD E FEEDBACK */
.overlay-mask .file-box { 
    margin: 2rem 0; 
    padding-bottom: 2rem; 
    border-bottom: 1px solid var(--border); 
    text-align: center; 
    width: 100%; 
}

.overlay-mask .file-input { 
    max-width: 100%;
    font-size: 1.25rem;
    color: #ffffff;
}
.overlay-mask #uploadStatus {
    font-size: 0.9rem;
    margin-top: 15px;
    min-height: 24px;
    line-height: 1.4;
    font-weight: 500;
}

/* 7. BOTÕES E AÇÕES */
.overlay-mask .action-box { 
    text-align: center; 
    margin-top: 2rem; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.overlay-mask .btn-send {
    background: none; 
    border: none; 
    color: #fff; 
    cursor: pointer;
    display: inline-flex; 
    align-items: center; 
    gap: 1rem; 
    transition: 0.3s;
}

.overlay-mask .btn-send .text { 
    font-weight: bold; 
    letter-spacing: 0px; 
    font-size: 1em; 
}

.overlay-mask .btn-send .bracket { 
    font-size: 3rem; 
    font-weight: 300; 
    line-height: 1; 
    transition: 0.3s; 
}

.overlay-mask .btn-send:hover .text { 
    color: #fff !important; 
    letter-spacing: 6px; 
}

.overlay-mask .btn-send:hover .bracket { 
    color: #fff !important; 
    transform: scaleX(1.3); 
}

/* 8. RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
    .overlay-mask .input-group { 
        flex-direction: column; 
        gap: 2rem; 
        margin-bottom: 0; 
    }
    
    .overlay-mask .input-block { 
        margin-bottom: 2rem; 
    }
    
    .overlay-mask .options-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 500px) {
    .overlay-mask { 
        padding: 15px 10px; 
    }
    
    .overlay-mask .form-wrapper { 
        margin-top: 20px; 
    }
    
    .overlay-mask .close-trigger { 
        right: 5px; 
        top: -15px; 
    }
    
    .overlay-mask .options-grid { 
        grid-template-columns: 1fr; /* Coluna única no celular para evitar quebra */
        gap: 1rem; 
    }
    
    .overlay-mask .check-control { 
        padding: 8px 0; 
    }
    
    .overlay-mask .btn-send .bracket { 
        font-size: 2.2rem; 
    }
    
    .overlay-mask .title-main { 
        font-size: 1.25rem; 
    }
}